File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/java/org/moe/gradle/tasks Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,10 @@ public void setDestDir(@Nullable Object destDir) {
111111 this .destDir = destDir ;
112112 }
113113
114- private HashSet <File > destJars = new HashSet <>();
115-
116114 @ Internal
117115 @ NotNull
118- public HashSet <File > getDestJars () {
119- return new HashSet <>( destJars );
116+ public Set <File > getDestJars () {
117+ return getProject (). fileTree ( getDestDir ()). filter ( it -> it . isFile () && it . getName (). endsWith ( ".jar" )). getFiles ( );
120118 }
121119
122120 @ Override
@@ -127,13 +125,10 @@ protected void run() {
127125 throw new GradleException ("an IOException occurred" , e );
128126 }
129127 getDestDir ().mkdirs ();
130- destJars .clear ();
131128
132129 int index = 0 ;
133130 for (File f : getInputFiles ()) {
134131 File out = new File (getDestDir (), "classes-" + index + ".jar" );
135- destJars .add (out );
136-
137132 LOG .info ("Dxing {} to {}..." , f , out );
138133
139134 javaexec (spec -> {
You can’t perform that action at this time.
0 commit comments