Bug 373885 - [jar exporter] save runnable jar export as ant script with relative name saves in eclipse program folder not workspace
Summary: [jar exporter] save runnable jar export as ant script with relative name save...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M7   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2012-03-11 08:23 EDT by jules CLA
Modified: 2012-04-16 10:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jules CLA 2012-03-11 08:23:01 EDT
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857 

When saving settings for producing a runnable jar file as an ant script, if you enter a relative filename in the filename box, a message appears suggesting that this will be relative to the workspace root.  However, when the file is actually saved, it is saved relative to the directory eclipse is installed in.


Reproducible: Always

Steps to Reproduce:
1. export > runnable jar file
2. check 'save as ant script'
3. enter a relative path (e.g. 'myproject/exportjar.xml') in the filename box
4. click finish

the file is not produced in the myproject directory of the workspace, but in a new subdirectory of the eclipse program directory.
Comment 1 jules CLA 2012-03-11 08:31:33 EDT
See also bug 269201 comment 21

On re-reading, it seems I may have misinterpreted the message displayed ("The ANT script will be relative to your Workspace") which may have actually been intended to indicate the behaviour that bug 269201 is supposed to be implementing.  But as this behaviour is not implemented (the generated ant script has full path names for the referenced files) the message is erroneous either way.  

And in any case, interpreting the entered path as relative to the eclipse program directory is non-intuitive, to say the least.