ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: AW: [PATCH] set filename of default buildfile
Date Tue, 12 Oct 2004 14:05:19 GMT
> From: steve morin [mailto:steve.morin@gmail.com]
> 
> 1st usage convenience..
> A person that often uses a different build file could use a shell
> script that calls ant using a different default for convenience.
> 
> 	#!/bin/sh
> 	ant -df config.xml "$@"
> 
> or
> 	alias cfg="ant -df config.xml"

No different than -f then. Even when using the hard-coded -f from
an alias, you can still specify another one on the command line,
since the last one wins, so really it doesn't bring anything.

> 2nd usage dynamic change of ant task default target.

Just use a property you can override from the command line,
and always set in your wrapper script or alias.

> 3rd usage dynamic change of subant task calls

Ditto.

I thus don't think it's a useful addition, since all scenarios
can be easily achieved right now, in the usual Ant way. --DD

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


Mime
View raw message