ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <mce...@smsi.com>
Subject wrapping long string literals
Date Thu, 23 May 2002 20:52:27 GMT
I want to write something like this in Ant:

    <property name="longdir" value="/base/rootdir/subdir1/
            subdir2/subdir3/subdir4"/>

which actually works, but produces a string with whitespace before
"subdir2".

Is there a way to break strings across lines (without introducing extra
whitespace)?  We have a coding standard here of <=80 chr lines.

In Java, of course, I just write:

    String longdir = "/base/rootdir/subdir1/" +
            "subdir2/subdir3/subdir4";

I paged thru "Applied XML" and "Professional XML", but I found nothing
addressing this.  I realize this is more of an XML/SGML syntax question,
but it's a usability aspect of Ant too.

Thanks.


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message