Bug 25590 - Should be possible to use variables specifying Ant classpath
Summary: Should be possible to use variables specifying Ant classpath
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 enhancement with 2 votes (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
: 29861 37848 (view as bug list)
Depends on: 40766
Blocks:
  Show dependency tree
 
Reported: 2002-10-31 10:11 EST by Darin Swanson CLA
Modified: 2004-04-21 14:39 EDT (History)
6 users (show)

See Also:


Attachments
patch to org.eclipse.ant.ui (14.28 KB, patch)
2004-04-07 14:26 EDT, Kevin Barnes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2002-10-31 10:11:03 EST
When specifying JARs or folders for the Ant classpath it should be possible to 
specify / use variables.
Comment 1 Darin Wright CLA 2002-11-15 20:50:09 EST
Consider for 2.1
Comment 2 Darin Wright CLA 2003-01-14 10:31:15 EST
Deferred for post 2.1 consideration
Comment 3 Darin Swanson CLA 2003-01-21 16:32:15 EST
More complete description from bug 29861:
However the Ant classpath configuration does not allow jar references relative 
to project locations, so the .launch files contain absolute paths, eg 
c:\dev\myproject\junit.jar, which is doesn't make the common launch 
configurations very useful when the developers are not all running on the same 
platform or are using different directory structures. The global ant 
preferences should also be project or workspace relative as well to aid 
portability.
Comment 4 Darin Swanson CLA 2003-01-21 16:32:28 EST
*** Bug 29861 has been marked as a duplicate of this bug. ***
Comment 5 Marcelo Paternostro CLA 2003-03-23 20:31:12 EST
I add my vote for this one.  Ant and Eclipse are create tools and this would 
leverage their integration one step above from what we can see in other 
environments.
Comment 6 Darin Swanson CLA 2003-05-29 15:12:53 EDT
*** Bug 37848 has been marked as a duplicate of this bug. ***
Comment 7 Darin Swanson CLA 2003-07-18 13:04:17 EDT
Reopen for consideration in 3.0
Comment 8 Darin Swanson CLA 2003-08-11 14:52:27 EDT
I have released changes to allow specifying Ant classpath entries and property 
files relative to the workspace location.

Currently only supported on the custom launch configuration classpath and not 
on the global Ant runtime classpath. The global Ant runtime classpath does not 
support workspace relative entries as these are stored in the Ant Core 
preferences and the support for launch variables lives in debug core which Ant 
core has no knowledge about.
Comment 9 Darin Swanson CLA 2003-09-30 14:05:43 EDT
Variable support will soon be available in org.eclipse.core.variables.
Moving to M5.
Comment 10 Darin Swanson CLA 2003-10-23 14:11:34 EDT
I have deprecated the methods that are going to have to change / be replaced in 
AntCorePreferences.
Comment 11 Darin Swanson CLA 2003-11-15 14:00:30 EST
The jars added to the Ant core runtime classpath can be workspace relative.
The Ant core will handle variables but we need to fully expose this in the UI.
Comment 12 Darin Swanson CLA 2003-11-18 11:42:29 EST
UI work to allow use of any variable will have be attempted in M6
Comment 13 Darin Swanson CLA 2003-12-05 18:40:10 EST
With M6 focus set on reducing the backlog of bugs, this enhancement will have 
to wait until M7
Comment 14 Darin Swanson CLA 2004-03-18 13:40:12 EST
Both Java and Ant are planning on adding something to the UI to make this 
easier in M9
Comment 15 Kevin Barnes CLA 2004-03-30 17:24:47 EST
Is this still an issue? After the work done earlier this year on the classpath 
tab, it seems that entries are now being resolved relative to the workspace.
Comment 16 Darin Swanson CLA 2004-03-30 17:27:20 EST
But there is no means to add entries that are anything else BUT relative to the 
workspace. We have so many variables... :-)
Comment 17 Gunnar Wagenknecht CLA 2004-03-31 00:45:47 EST
The classpath tab is nice in 3.0 M8 but I'm still missing a button that is 
available in the Java build path "Add Variable...". This will bring up a dialog 
for selecting a variable and extending it. 

This feature is necessary to share launch configs with JARs in the classpath 
which are OUTSIDE the workspace.

It's impossible that every developer with have the JAR 
at "D:\myAppServer\libs\tata.jar". It's easier to 
specify "APP_SERVER_HOME/libs/tata.jar".

The platforms variables should be reused for this.
Comment 18 Darin Swanson CLA 2004-04-02 18:54:23 EST
This should just come out of bug 40766. Assigning to Kevin to make sure :-)
Comment 19 Kevin Barnes CLA 2004-04-07 14:25:32 EDT
Bug 40766 makes this fix possible, but we still need to make some UI changes 
in ant land to expose the variables to users. Attached patch for changes to: 
AntClasspathTab
AntLaunchConfigurationMessages.properties
AddVariableStringAction (new)
DialogSettingsHelper (new)

DarinS, see Bug 40766 comment 8 for list of files you will need to update 
before the patch will work.
Comment 20 Kevin Barnes CLA 2004-04-07 14:26:27 EDT
Created attachment 9299 [details]
patch to org.eclipse.ant.ui
Comment 21 Darin Swanson CLA 2004-04-07 19:07:14 EDT
I logged two bugs:
bug 57838
bug 57839
Patch applied. Thanks kevin.
Comment 22 Darin Swanson CLA 2004-04-07 19:07:28 EDT
Please verify DarinW.
Comment 23 Darin Wright CLA 2004-04-21 14:39:42 EDT
Verified.