ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject RE: retrieving project names with subant
Date Fri, 15 Jul 2005 15:43:34 GMT
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


Mime
View raw message