@@ -67,7 +67,7 @@ public abstract class PlugGenerateTask extends DefaultTask {
67
67
public PlugGenerateTask () {
68
68
this .getOutputs ().upToDateWhen (unused -> {
69
69
Manifest manifest = loadManifest ();
70
- String componentsCmd = serviceComponents ();
70
+ String componentsCmd = atplugComponents ();
71
71
String componentsActual = manifest .getMainAttributes ().getValue (PlugPlugin .SERVICE_COMPONENT );
72
72
return Objects .equals (componentsActual , componentsCmd );
73
73
});
@@ -125,7 +125,7 @@ public void build() throws Throwable {
125
125
// generate the metadata
126
126
SortedMap <String , String > result = generate ();
127
127
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
129
129
FileMisc .cleanDir (getAtplugInfFolder ());
130
130
for (Map .Entry <String , String > entry : result .entrySet ()) {
131
131
File serviceFile = new File (getAtplugInfFolder (), entry .getKey () + PlugPlugin .DOT_JSON );
@@ -135,7 +135,7 @@ public void build() throws Throwable {
135
135
// the resources directory *needs* the Service-Component entry of the manifest to exist in order for tests to work
136
136
// so we'll get a manifest (empty if necessary, but preferably we'll load what already exists)
137
137
Manifest manifest = loadManifest ();
138
- String componentsCmd = serviceComponents ();
138
+ String componentsCmd = atplugComponents ();
139
139
String componentsActual = manifest .getMainAttributes ().getValue (PlugPlugin .SERVICE_COMPONENT );
140
140
if (Objects .equals (componentsActual , componentsCmd )) {
141
141
return ;
@@ -197,16 +197,16 @@ private SortedMap<String, String> generate() throws Throwable {
197
197
}
198
198
}
199
199
200
- private String serviceComponents () {
201
- return serviceComponents (getAtplugInfFolder ());
200
+ private String atplugComponents () {
201
+ return atplugComponents (getAtplugInfFolder ());
202
202
}
203
203
204
- static String serviceComponents (File osgiInf ) {
205
- if (!osgiInf .isDirectory ()) {
204
+ static String atplugComponents (File atplugInf ) {
205
+ if (!atplugInf .isDirectory ()) {
206
206
return null ;
207
207
} else {
208
208
List <String > serviceComponents = new ArrayList <>();
209
- for (File file : FileMisc .list (osgiInf )) {
209
+ for (File file : FileMisc .list (atplugInf )) {
210
210
if (file .getName ().endsWith (PlugPlugin .DOT_JSON )) {
211
211
serviceComponents .add (PlugPlugin .ATPLUG_INF + file .getName ());
212
212
}
0 commit comments