ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: retrieving project names with subant
Date Mon, 25 Jul 2005 07:02:01 GMT
Or doing something like

<input property="fs.includes" message="Type your buildfiles"/>
<property name="fs.includes" value="module1/build.xml,module3/build.xml"/>
<subant>
    <fileset dir="." includes="${fs.includes}"/>
</subant>


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com] 
>Gesendet: Freitag, 15. Juli 2005 17:44
>An: Ant Users List
>Betreff: RE: retrieving project names with subant
>
>Hello,
>
>--- hind.lwahhabi@accenture.com wrote:
>
>> hi ivan,
>> It's for user friendliness purpose, typically:
>> Hello user: here are all the buildable projects, choose the projects 
>> to build blabla...
>If you want to give the user ability to choose projects to 
>build, note that <subant> accepts <filelist>s[1] as well. So 
>you can use something like
>this:
><property name="build.files" 
>    value="module1/build.xml,...,moduleN/build.xml"/>
><filelist dir="${dir}" 
>    files="${build.files}"/>
>
>Now when the user starts Ant she can provide build.files 
>property from the command line:
>ant
>-Dbuild.files=module2/build.xml,module7/build.xml,module11/build.xml.
>
>However, it is up to you to resolve module dependencies (if 
>you have of course): for example
>module2 depends on module5 and the user does not specify 
>explicitly module5 on the command line.
>
>Regards
>Ivan
>
>[1]http://ant.apache.org/manual/CoreTypes/filelist.html
>
>
>
>		
>____________________________________________________
>Start your day with Yahoo! - make it your home page 
>http://www.yahoo.com/r/hs 
> 
>
>---------------------------------------------------------------------
>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