@@ -67,7 +67,7 @@ public abstract class PlugGenerateTask extends DefaultTask {
6767 public PlugGenerateTask () {
6868 this .getOutputs ().upToDateWhen (unused -> {
6969 Manifest manifest = loadManifest ();
70- String componentsCmd = serviceComponents ();
70+ String componentsCmd = atplugComponents ();
7171 String componentsActual = manifest .getMainAttributes ().getValue (PlugPlugin .SERVICE_COMPONENT );
7272 return Objects .equals (componentsActual , componentsCmd );
7373 });
@@ -125,7 +125,7 @@ public void build() throws Throwable {
125125 // generate the metadata
126126 SortedMap <String , String > result = generate ();
127127
128- // clean out the osgiInf folder, and put the map's content into the folder
128+ // clean out the ATPLUG-INF folder, and put the map's content into the folder
129129 FileMisc .cleanDir (getAtplugInfFolder ());
130130 for (Map .Entry <String , String > entry : result .entrySet ()) {
131131 File serviceFile = new File (getAtplugInfFolder (), entry .getKey () + PlugPlugin .DOT_JSON );
@@ -135,7 +135,7 @@ public void build() throws Throwable {
135135 // the resources directory *needs* the Service-Component entry of the manifest to exist in order for tests to work
136136 // so we'll get a manifest (empty if necessary, but preferably we'll load what already exists)
137137 Manifest manifest = loadManifest ();
138- String componentsCmd = serviceComponents ();
138+ String componentsCmd = atplugComponents ();
139139 String componentsActual = manifest .getMainAttributes ().getValue (PlugPlugin .SERVICE_COMPONENT );
140140 if (Objects .equals (componentsActual , componentsCmd )) {
141141 return ;
@@ -197,16 +197,16 @@ private SortedMap<String, String> generate() throws Throwable {
197197 }
198198 }
199199
200- private String serviceComponents () {
201- return serviceComponents (getAtplugInfFolder ());
200+ private String atplugComponents () {
201+ return atplugComponents (getAtplugInfFolder ());
202202 }
203203
204- static String serviceComponents (File osgiInf ) {
205- if (!osgiInf .isDirectory ()) {
204+ static String atplugComponents (File atplugInf ) {
205+ if (!atplugInf .isDirectory ()) {
206206 return null ;
207207 } else {
208208 List <String > serviceComponents = new ArrayList <>();
209- for (File file : FileMisc .list (osgiInf )) {
209+ for (File file : FileMisc .list (atplugInf )) {
210210 if (file .getName ().endsWith (PlugPlugin .DOT_JSON )) {
211211 serviceComponents .add (PlugPlugin .ATPLUG_INF + file .getName ());
212212 }
0 commit comments