Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
subba rao
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic