Bug 32683 - Java Target Needs Improved bootclasspath options
Summary: Java Target Needs Improved bootclasspath options
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.6.2
Hardware: PC Linux
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2004-12-14 07:07 UTC by Bryce Alcock
Modified: 2008-11-24 03:58 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Bryce Alcock 2004-12-14 07:07:41 UTC
I want to do a -Xbootclasspath/p:

However as of ANT 1.6.2, the source code is "Hard-Coded" as follows:
Starting at Line 361 of package org.apache.tools.ant.types.CommandlineJava.java

if (haveBootclasspath(true)) {
   listIterator.add("-Xbootclasspath:" + bootclasspath.toString());

I would like to be able to pass in a "prepend" (i.e. "/p:") apend (i.e. "/a:") 
or nothing (i.e. ":")
You could call it bootclasspathPendingType.

Also, I am not sure if it is legal in java, but if it is legal to do both 
prepend and apend the bootclasspath, then we should do both.  I am willing
to test this once you have a fix ready!

Comment 1 Kyrill Alyoshin 2006-01-19 22:54:11 UTC
I strongly support this RFE. jvmarg -Xbootclasspath is not portable because of
";:" issues. It'd be nice to have options to prepend and append stuff into the
<bootclasspath> element.

Comment 2 Peter Reilly 2007-01-01 16:25:39 UTC
I have added a note on using ${toString:pathreference} with
It would be a little tricky to add ant element support for
this request. There are a number of different compilers
that have to be considered.