aspose file tools*
The moose likes Beginning Java and the fly likes can i enter value in console as a argument to the java class through ant? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can i enter value in console as a argument to the java class through ant?" Watch "can i enter value in console as a argument to the java class through ant?" New topic
Author

can i enter value in console as a argument to the java class through ant?

subba rao
Greenhorn

Joined: Apr 24, 2008
Posts: 24
I have used input task to enter value in the console as a argument.
when i run this task it will ask me enter either y or n;say if i enter y then how to pass this value to the java class?

<input
message="All data is going to be deleted from DB continue (y/n)?"
validargs="y,n"
addproperty="do.delete"
/>
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2713
    
    5

Hi subbu, welcome to Javaranch,
before posting reply to your post, I would like you to know that your name does not follow the Javaranch naming policy.
please change it here


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i enter value in console as a argument to the java class through ant?
 
Similar Threads
Checking whether a string is a substring of another string without using indexOf method
Check for integer input
Help in do while loop
Brackets [ ] in regular expression
Java String Spliter, substring, string tokenizer