You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jason Sando <js...@think1up.com> on 2000/05/25 18:14:54 UTC

Long Property Values

Is there any way to break up a long <property> tag?  My "classpath" property
ends up wrapping or going off the screen:

    <property name="classpath"
value="${java.home}/lib/rt.jar:../lib/xml.jar:../lib/jsdk.jar:../lib/javalib
.jar:../lib/binkco.jar:../lib/ecs-1.2.jar:../lib/ifxjdbc.jar:../lib/junit.ja
r" />

Thanks,

-j


RE: Long Property Values

Posted by Jason Sando <js...@think1up.com>.
It seems obvious now but it just didn't occur to me.

Thanks!

-j

> -----Original Message-----
> From: Mariusz Nowostawski [mailto:mariusz@marni.otago.ac.nz]
> Sent: Thursday, May 25, 2000 2:50 PM
> To: ant-dev@jakarta.apache.org
> Subject: Re: Long Property Values
> 
> I am doing what I use to do in shell scripts, and I sort of have nothing
> against it, but it could be done nicer, I reckon. There is heaps of
> repeating, but it is pretty readable:
> 
> 
> <property name="classpath" value="${java.home}/lib/rt.jar" />
> 
> <property name="classpath" value="${classpath}:../lib/xml.jar" />
> <property name="classpath" value="${classpath}:../lib/jsdk.jar" />
> <property name="classpath" value="${classpath}:../lib/javalib.jar" />
> <property name="classpath" value="${classpath}:../lib/binkco.jar" />
> <property name="classpath" value="${classpath}:../lib/ecs-1.2.jar" />
> <property name="classpath" value="${classpath}:../lib/ifxjdbc.jar" />
> <property name="classpath" value="${classpath}:../lib/junit.jar" />
> 


Re: Long Property Values

Posted by Mariusz Nowostawski <ma...@marni.otago.ac.nz>.
I am doing what I use to do in shell scripts, and I sort of have nothing
against it, but it could be done nicer, I reckon. There is heaps of
repeating, but it is pretty readable:


<property name="classpath" value="${java.home}/lib/rt.jar" />

<property name="classpath" value="${classpath}:../lib/xml.jar" />
<property name="classpath" value="${classpath}:../lib/jsdk.jar" />
<property name="classpath" value="${classpath}:../lib/javalib.jar" />
<property name="classpath" value="${classpath}:../lib/binkco.jar" />
<property name="classpath" value="${classpath}:../lib/ecs-1.2.jar" />
<property name="classpath" value="${classpath}:../lib/ifxjdbc.jar" />
<property name="classpath" value="${classpath}:../lib/junit.jar" />



On Thu, 25 May 2000, Jason Sando wrote:
> Is there any way to break up a long <property> tag?  My "classpath" property
> ends up wrapping or going off the screen:
> 
>     <property name="classpath"
> value="${java.home}/lib/rt.jar:../lib/xml.jar:../lib/jsdk.jar:../lib/javalib
> .jar:../lib/binkco.jar:../lib/ecs-1.2.jar:../lib/ifxjdbc.jar:../lib/junit.ja
> r" />
> 
> Thanks,
> 
> -j
>