Community
Participate
Working Groups
I have a single plugin used for branding (contains no Java code), and an associated primary feature. I am trying to automate the building of this feature with Ant and a headless Eclipse install. I used the PDE feature.xml editor to generate a file to export my features. It produced the following: <?xml version="1.0" encoding="UTF-8"?> <project name="build" default="feature_export"> <target name="feature_export"> <pde.exportFeatures features="com.dspfactory.platform" destination="C:\eclipse3.0M9\myfeature" exportType="directory" exportSource="false"/> </target> </project> Running this as an Ant task in Eclipse (in the same VM as Eclipse) works fine and generates my directory structure. Running this using Ant from a headless Eclipse tells me it succeeded, but it did not work. The directory "C:\eclipse3.0M9\myfeature" is created (if it wasn't there before), but there are no contents. I also get the following exception on the command line: feature_export: BUILD SUCCESSFUL BUILD SUCCESSFUL Total time: 3 seconds Exception in thread "main" org.eclipse.ant.core.AntSecurityException at org.eclipse.ant.internal.core.ant.AntSecurityManager.checkExit(AntSec urityManager.java:44) at java.lang.Runtime.exit(Runtime.java:88) at java.lang.System.exit(System.java:713) at org.eclipse.core.launcher.Main.main(Main.java:623) C:\Temp>pause Press any key to continue . . . Now - if I change the export to output to a zipfile rather than a single directory, the headless execution of Ant creates a zipfile as it should. However - the same exception is thrown as above. I am running 3.0M9.
*** This bug has been marked as a duplicate of 58413 ***