I have a newbie question:

new.classpath and old.classpath are known definitions? otherwise- what
should be the real values?

Eyal


David Weintraub wrote:
> 
> So, you already have a classpath defined, and you just want to add an
> additional JAR to it?
> 
> If you have that path as a property:
> 
> <path id="new.classpath">
>      <pathelement path="${old.classpath}"/>
>      <pathelement location="${additional.jar}"/>
> </path>
> 
> If you have that previous path as a reference:
> 
> <path id="new.classpath">
>     <path refid="old.classpath"/>
>     <pathelement location="${additional.jar}"/>
> </path>
> 
> Or, you can cheat (For example, this is for a <javac> task):
> 
> <java
>     srcdir="${src.dir}"
>     destdir="${dest.dir}"
>     classpath="${old.classpath}:${additional.jar}"/>
> 
> Note that the colon in the value for "classpath" will convert over to
> a semicolon on Windows systems.
> 
> 
> On Mon, Mar 23, 2009 at 6:14 PM, eyalg1972 <eyal_go...@bmc.com> wrote:
>>
>> Hi,
>>
>> Does anyone knows how to add a specific jar to the classpath?
>>
>> I know that there is a property- additional.classpath, but I don't know
>> how
>> to use it...
>>
>> Eyal
>> --
>> View this message in context:
>> http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p22670440.html
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
>> For additional commands, e-mail: user-h...@ant.apache.org
>>
>>
> 
> 
> 
> -- 
> --
> David Weintraub
> qazw...@gmail.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-specific-jar-to-classpath-tp22670440p22681448.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to