ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <mce...@smsi.com>
Subject RE: wrapping long string literals
Date Thu, 23 May 2002 21:15:02 GMT
--- George McKinney wrote:

> The brute force way would be
>      <property name="pt1" value="/base/rootdir/subdir1/"/>
>      <property name="pt2" value="subdir2/subdir3/subdir4"/>
>      <property name="longdir" value="${pt1}${pt2}"/>
> Although you might prefer a ${base} property that has the common root
and
> concatenate that with specific sub-paths whenever you need them.

Agreed.  And we do that.  Here's another example:

   <javadoc doctitle="SMSI Java API Reference"
        header="&amp;copy; Copyright SMSI, 2000, 2001, 2002&lt;br>All
Rights Reserved"

Having to write:

   <property name="header1" value="&amp;copy; Copyright SMSI, 2000, "/>
   <property name="header2" value="2001, 2002&lt;br>All Rights
Reserved"/>
   <property name="javadoc_header" value="${header1}${header2}"/>

is amazingly unsatisfying.

Other thoughts?


--
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