Skip to content

Commit d319347

Browse files
committed
Fix Recompile task
1 parent 238c1b6 commit d319347

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/net/minecraftforge/gradle/user/TaskRecompileMc.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void doStuff() throws IOException
8080
extractSources(tempSrc, inJar);
8181

8282
AntBuilder ant = CreateStartTask.setupAnt(this);
83+
getExtPath();
8384
// recompile
8485
ant.invokeMethod("javac",
8586
ImmutableMap.builder()
@@ -92,7 +93,7 @@ public void doStuff() throws IOException
9293
.put("source", "1.6")
9394
.put("target", "1.6")
9495
.put("debug", "true")
95-
.put("java.ext.dirs", getExtPath())
96+
//.put("Djava.ext.dirs", )
9697
.build()
9798
);
9899

@@ -116,6 +117,7 @@ private static String getExtPath()
116117
}
117118
}
118119
}
120+
System.setProperty("java.ext.dirs", newExtDirs);
119121
return newExtDirs;
120122
}
121123

0 commit comments

Comments
 (0)