This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes input tag in WSAD for ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "input tag in WSAD for ANT" Watch "input tag in WSAD for ANT" New topic
Author

input tag in WSAD for ANT

chennai Kumar
Ranch Hand

Joined: Jun 04, 2005
Posts: 66
Hai All,

I am trying to lanuch the build script in WSAD. I am getting an error as "Failed to read input from console".

I am using below input tag in ANT script.

<input
message="Version ?"
addproperty="constants.tag"
/>
<condition property="do.stop">
<equals arg1="" arg2="${constants.tag}"/>
</condition>
<fail if="do.stop">Entrez un numéro de version.</fail>

Is WSAD supports input tag for ANT script, otherwise we have any other alternative way.

Thanks and Regards,
Ramkumar .p





Greg Charles
Bartender

Joined: Oct 01, 2001
Posts: 2542
    
  10

You're running through the IDE? I'd say there's a pretty good chance that doesn't accept console input. As an alternative, you could have the version be a property, and set it via a property file, or pass it in as a parameter to the Ant build.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: input tag in WSAD for ANT
 
Similar Threads
Radio button not working
Regular Expression
Need to Break the execution of Ant script and agani resume based on user Input
Problem while generating JAXB mapping classes for remotely place XSDs
Ant: How to execute ant command line arguments from another ant script