Re: How to pass property?
Eric Minick <[email protected]> Wed, 29 Nov 2006 16:40:08 -0700
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
You want to pass the property as -Ddo.delete=y . Then you want to add a new property called something like 'noninteractive' and wrap that input step in a target that is something like: <target name="get.input" unless="noninteractive=true"> <input message="All data is going to be deleted. Continue?" validargs="y,n" addproperty="do.delete" /> </target> So then you end up passing -Ddo.delete=y -Dnoninteractive=true The second part skips you past the question, the first part sets the do.delete property for you. -- Eric Res Pons wrote: > hi > > I'm hoping someone could help with this. I've tried everything else > and can't pass the argument to the input task at the dos prompt or run > time. Eventually, i need to add it to Anthill. thanks for your help > > c:\>ant target -Dvalidargs=y > > it does not work and I still get a prompt to input y or n. > -Dvalidargs='y' doesn't work either > > > > > <input > message="All data is going to be deleted. Continue?" > validargs="y,n" > addproperty="do.delete" > /> > > _________________________________________________________________ > View Athlete’s Collections with Live Search > http://sportmaps.live.com/index.html?source=hmemailtaglinenov06&FORM=MGAC01 > > > _______________________________________________ > Anthill mailing list > Anthill-IWHQxnLZ/[email protected] > http://lists.urbancode.com/mailman/listinfo/anthill