ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Freitag" <>
Subject RE: Deriving new properties based on existing properties
Date Wed, 29 Jan 2003 07:26:06 GMT
So fare as I know you have to do this with a script or your own task. Use
<script> and any of the supported script languages see for further information.

Here an javascript snipped:
<project basedir="../" name="projectname">
        <script language="javascript"> <![CDATA[
            var prj = projectname;
            var entityclasses = prj.getProperty("component.entityclasses");
            // generate entities
            if ( (entityclasses != null) && (!entityclasses.equals("")) ) {
                generate = true;
                prj.setProperty("component.generate", "true");
                prj.setProperty("component.generate.entity", "true");

-----Original Message-----
From: Naresh Bhatia []
Sent: Dienstag, 28. Januar 2003 23:46
Subject: Deriving new properties based on existing properties

Is there any way to derive new properties based on existing properties?
For example, given a property with value="user", I want to derive
another property with the first letter capitalized, i.e. "User". I would
like to use this approach to derive different filenames based on a base
name that is supplied as a parameter.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message