Community
Participate
Working Groups
When running an Ant buildfile, via the External Tools Ant Build configuration, the properties specified in the Properties tab (I'm just using the global properties via the checkbox) are not passed through to Ant if you specify a separate JRE on the JRE tab. You also don't have visibility of the JDTCompilerAdapter class so maybe the classpath settings don't work either.
Which properties? Likely a duplicate of bug 78298. When running in a separate JRE you will not have the Eclipse workspace "context" for the build. Therefore to use the JDTCompilerAdapter you will need to add the appropriate JDT Core JARs to the Ant runtime classpath.
The reported bug regarding properties is the same as bug 78298 (i searched for existing bugs containing properties so didn't see that one). I will close this bug and follow up on 78298. I've just noticed that the classpath entries change when you switch between JRE's which explains the absence of the JDTCompilerAdapter class. *** This bug has been marked as a duplicate of 78298 ***