Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 65189 - pde.exportFeatures to single directory with headless Eclipse fails
Summary: pde.exportFeatures to single directory with headless Eclipse fails
Status: RESOLVED DUPLICATE of bug 58413
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 17:52 EDT by Mark Melvin CLA
Modified: 2004-06-07 22:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Melvin CLA 2004-06-01 17:52:42 EDT
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.
Comment 1 Wassim Melhem CLA 2004-06-07 22:15:51 EDT

*** This bug has been marked as a duplicate of 58413 ***