ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: using property in target depends
Date Tue, 27 Aug 2002 15:45:10 GMT
Hmm, good point.

-Matt

--- Diane Holt <holtdl@yahoo.com> wrote:
> --- David Adams <DAdams@ignitesports.com> wrote:
> > I was looking to control a project flow by putting
> in a property value
> > dynamically into the depends attribute of the
> target tag. 
> > 
> > For example, I wanted to do the following:
> > 	<target name="main" depends="${build.type}"/>
> > 
> > 	<target name="dev"
> depends="prepare,compile,dist,javadocs,test.suite"/>
> > 
> > 	<target name="test"
> depends="prepare,compile,test.suite"/>
> > 
> > 	<target name="prod"
> >
> depends="prepare,compile,test.suite,dist,javadocs"/>
> > 
> > where build.type would be either dev, test, or
> prod, defaulting to dev
> > in a properties file and configurable through the
> command line. 
> 
> Dump "main" and just have "dev" be the default
> target. Anyone wanting to
> run one of the other targets instead should just run
> 'ant test' or 'ant
> prod' -- much easier than running 'ant
> -Dbuild.type=test' (besides which,
> it'll actually work :)
> 
> Diane
> 
> =====
> (holtdl@yahoo.com)
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:ant-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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


Mime
View raw message