File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3232import org .apache .tools .ant .types .Commandline ;
3333import org .apache .tools .ant .types .Commandline .Argument ;
3434import org .apache .tools .ant .types .Path ;
35+ import org .apache .tools .ant .util .FileUtils ;
3536import org .apache .tools .ant .util .JavaEnvUtils ;
3637import org .eclipse .jdt .core .compiler .CharOperation ;
3738import org .eclipse .jdt .internal .antadapter .AntAdapterMessages ;
@@ -174,6 +175,9 @@ protected Commandline setupJavacCommand() throws BuildException {
174175 cmd .createArgument ().setValue ("-sourcepath" ); //$NON-NLS-1$
175176 createClasspathArgument (cmd , sourcepath );
176177
178+ // There is a circularity problem if JavaEnvUtils is initialized before FileUtils on Windows
179+ // https://github.com/eclipse-platform/eclipse.platform/issues/2605
180+ FileUtils .getFileUtils ();
177181 final String javaVersion = JavaEnvUtils .getJavaVersion ();
178182 String memoryParameterPrefix = javaVersion .equals (JavaEnvUtils .JAVA_1_1 ) ? "-J-" : "-J-X" ;//$NON-NLS-1$//$NON-NLS-2$
179183 if (this .memoryInitialSize != null ) {
You can’t perform that action at this time.
0 commit comments