You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Res Pons <po...@hotmail.com> on 2006/11/30 00:26:42 UTC

How to pass property?

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


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


RE: How to pass property?

Posted by Res Pons <po...@hotmail.com>.
That worked. Thank you very much.

----Original Message Follows----
From: "Anderson, Rob (Global Trade)" <Ro...@nike.com>
Reply-To: "Ant Users List" <us...@ant.apache.org>
To: "Ant Users List" <us...@ant.apache.org>, anthill@caladin.urbancode.com
Subject: RE: How to pass property?
Date: Wed, 29 Nov 2006 15:31:50 -0800

The property you should set on the command line is do.delete not
validargs. Run ant like this...

ant target -Ddo.delete=y

That should prevent the input task from prompting you.

-Rob Anderson


 > -----Original Message-----
 > From: Res Pons [mailto:pons32@hotmail.com]
 > Sent: Wednesday, November 29, 2006 3:27 PM
 > To: user@ant.apache.org; anthill@caladin.urbancode.com
 > Subject: How to pass property?
 >
 > 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=hmemailtaglinenov0
 > 6&FORM=MGAC01
 >
 >
 > ---------------------------------------------------------------------
 > 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

_________________________________________________________________
Get the latest Windows Live Messenger 8.1 Beta version. Join now. 
http://ideas.live.com


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


RE: How to pass property?

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
The property you should set on the command line is do.delete not
validargs. Run ant like this...

ant target -Ddo.delete=y

That should prevent the input task from prompting you.

-Rob Anderson


> -----Original Message-----
> From: Res Pons [mailto:pons32@hotmail.com] 
> Sent: Wednesday, November 29, 2006 3:27 PM
> To: user@ant.apache.org; anthill@caladin.urbancode.com
> Subject: How to pass property?
> 
> 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=hmemailtaglinenov0
> 6&FORM=MGAC01
> 
> 
> ---------------------------------------------------------------------
> 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