ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: variable license file?
Date Wed, 14 Jan 2004 18:55:17 GMT
You can append strings to a file and then read it when it is needed.

- Alexey.

Daniel M. Bikel wrote:

>Sorry about this long message.  Here's the simple question: what's the
>simplest way to change the value of properties according to what target I'm
>trying to build?
>
>--Dan.
>
>On Wed, 14 Jan 2004, Daniel M. Bikel wrote:
>
>  
>
>>Hi.  I have a build.xml file that, among other things, builds an entire
>>distributable version of my software, including source code.  This includes
>>copying a license text file, as well as inserting the lines of that license
>>into an install shell script (just like the J2SDK install script, which
>>cat's the JDK license and asks the user if he/she agrees).
>>
>>Anyway, here's my question: I want to distribute *two* versions of my
>>software, one version with source with one license and one version without
>>source code with a different license.  It's easy to build a second target
>>that doesn't copy the source code to a "dist" directory, but currently, I
>>have a property that specifies where this LICENSE text file lives in my
>>project hierarchy.  I have just read
>>	http://ant.apache.org/manual/CoreTasks/property.html
>>which makes it very clear that properties are *immutable*.  So, after this
>>(unfortunately long) preface, here's my question: how do you accomplish
>>what I want to do?  Do I need to use the Condition task somehow?
>>
>>If I were using make, I would simply redefine my ${deploy.license} variable
>>that specifies the relative path of my license file before building the
>>distributable.  But I can't do that in Ant.
>>
>>Thanks in advance!
>>
>>--Dan.
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>  
>

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


Mime
View raw message