On this subject (well, not exactly, but close enough .. ;-)), is there a
way that this class reference could me made available to more than one
project, e.g. put it into a global ant.properties file much in the same
way that one would put global property definitions into the same place ?
Thanks
Werner
Stefan Bodewig wrote:
> Jay Glanville <[EMAIL PROTECTED]> wrote:
>
> > and later on, in my task, I have the following external execute task
> >
> > <exec executable="debugger">
> > <arg line="-classpath ${myclasspath}" />
> > </exec>
> >
> > Basically, I need to have ant replace ${myclasspath} with the value
> > in the path reference "classpath".
>
> First create a property with a value taken from your <path>
>
> <property name="myclasspath" refid="myclasspath" />
> <exec executable="debugger">
> <arg line="-classpath ${myclasspath}" />
> </exec>
>
> Even better, let Ant translate that path to the correct system format
> using the path attribute of arg:
>
> <property name="myclasspath" refid="myclasspath" />
> <exec executable="debugger">
> <arg value="-classpath" />
> <arg path="${myclasspath}" />
> </exec>
>
> Stefan