|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Urgent : Send me some Initial DocsHello all !
I am a new user to the group. I wanna use ANT for automated testing (In Webservices). Please send me the Initial docs on ANT covering all the basics and Examples. I need to understand the use of ANT with examples so that I am able to bridge my project. Thanks in advance, Vipin Batra. ----- Original Message ----- From: "gboysko" <gboysko@...> To: <user@...> Sent: Wednesday, March 29, 2006 6:56 AM Subject: How to use stdin/stdout with exec > > I am using Ant to automate the creation of some Java classes and compile > them. I also want to be able to execute one of these generated Java classes > (which has a builtin command processor). The commands are entered by the > user (interactively) and the output is sent back to the console (via > System.out). > > I simply want to use either the JAVA or EXEC task to invoke the class, but I > can't get the stdin and stdout to be routed to the class. I can see lots of > ways to wire up the input/output to files, but no way to have them wired > back to the Ant console. Am I missing something? Without specifying > anything, I don't see anything and can't enter anything. Is there a way I > can specify the console/terminal in Windows using the input and output > attributes? > > I am using Ant 1.6.5 on Windows. > -- > View this message in context: http://www.nabble.com/How-to-use-stdin-stdout-with-exec-t1360004.html#a36435 92 > Sent from the Ant - Users forum at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
||||||||
|
|
How to use stdin/stdout with execI am using Ant to automate the creation of some Java classes and compile them. I also want to be able to execute one of these generated Java classes (which has a builtin command processor). The commands are entered by the user (interactively) and the output is sent back to the console (via System.out).
I simply want to use either the JAVA or EXEC task to invoke the class, but I can't get the stdin and stdout to be routed to the class. I can see lots of ways to wire up the input/output to files, but no way to have them wired back to the Ant console. Am I missing something? Without specifying anything, I don't see anything and can't enter anything. Is there a way I can specify the console/terminal in Windows using the input and output attributes? I am using Ant 1.6.5 on Windows. |
||||||||
|
|
|
||||||||
|
|
|
||||||||
|
|
Re: Urgent : Send me some Initial DocsYou might want to try reading the "Smart Questions" FAQ before posting to this list again. http://www.catb.org/~esr/faqs/smart-questions.html
"Vipin Batra" <vbatra@...> wrote on 03/28/2006 04:15:01 PM: > Hello all ! > > I am a new user to the group. I wanna use ANT for automated testing (In > Webservices). Please send me the Initial docs on ANT covering all the basics > and Examples. > I need to understand the use of ANT with examples so that I am able to > bridge my project. > Thanks in advance, > > Vipin Batra. > > ----- Original Message ----- > From: "gboysko" <gboysko@...> > To: <user@...> > Sent: Wednesday, March 29, 2006 6:56 AM > Subject: How to use stdin/stdout with exec > > > > > > I am using Ant to automate the creation of some Java classes and compile > > them. I also want to be able to execute one of these generated Java > classes > > (which has a builtin command processor). The commands are entered by the > > user (interactively) and the output is sent back to the console (via > > System.out). > > > > I simply want to use either the JAVA or EXEC task to invoke the class, but > I > > can't get the stdin and stdout to be routed to the class. I can see lots > of > > ways to wire up the input/output to files, but no way to have them wired > > back to the Ant console. Am I missing something? Without specifying > > anything, I don't see anything and can't enter anything. Is there a way I > > can specify the console/terminal in Windows using the input and output > > attributes? > > > > I am using Ant 1.6.5 on Windows. > > -- > > View this message in context: > http://www.nabble.com/How-to-use-stdin-stdout-with-exec-t1360004.html#a36435 > 92 > > Sent from the Ant - Users forum at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@... > > For additional commands, e-mail: user-help@... > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > |
||||||||
|
|
|
||||||||
|
|
Re: Urgent : Send me some Initial DocsHi All !!
I have started using ANT and deploying applications. Can anyone send me the Useful Code examples to show the tasks I can accomplish using ANT. It would be great if I am able to get these... Great Thanks in advance ... Keep booming .. Cheers !!! ----- Original Message ----- From: <Jan.Materne@...> To: <user@...> Sent: Wednesday, March 29, 2006 7:48 AM Subject: AW: Urgent : Send me some Initial Docs http://ant.apache.org/manual/ http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html Jan >-----Ursprüngliche Nachricht----- >Von: Vipin Batra [mailto:vbatra@...] >Gesendet: Dienstag, 28. März 2006 23:15 >An: Ant Users List >Betreff: Urgent : Send me some Initial Docs > >Hello all ! > >I am a new user to the group. I wanna use ANT for automated testing (In >Webservices). Please send me the Initial docs on ANT covering >all the basics >and Examples. >I need to understand the use of ANT with examples so that I am able to >bridge my project. >Thanks in advance, > >Vipin Batra. > >----- Original Message ----- >From: "gboysko" <gboysko@...> >To: <user@...> >Sent: Wednesday, March 29, 2006 6:56 AM >Subject: How to use stdin/stdout with exec > > >> >> I am using Ant to automate the creation of some Java classes >and compile >> them. I also want to be able to execute one of these generated Java >classes >> (which has a builtin command processor). The commands are >entered by the >> user (interactively) and the output is sent back to the console (via >> System.out). >> >> I simply want to use either the JAVA or EXEC task to invoke >the class, but >I >> can't get the stdin and stdout to be routed to the class. I >can see lots >of >> ways to wire up the input/output to files, but no way to >have them wired >> back to the Ant console. Am I missing something? Without specifying >> anything, I don't see anything and can't enter anything. Is >there a way I >> can specify the console/terminal in Windows using the input >and output >> attributes? >> >> I am using Ant 1.6.5 on Windows. >> -- >> View this message in context: >http://www.nabble.com/How-to-use-stdin-stdout-with-exec-t136000 >4.html#a36435 >92 >> Sent from the Ant - Users forum at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.3.2/294 - Release >Date: 3/27/2006 >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@... >For additional commands, e-mail: user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
||||||||
|
|
RE: Urgent : Send me some Initial DocsCheckout http://www.bronzedrum.com/product.html
-----Original Message----- From: Vipin Batra [mailto:vbatra@...] Sent: Friday, March 31, 2006 9:11 PM To: Ant Users List Subject: Re: Urgent : Send me some Initial Docs Hi All !! I have started using ANT and deploying applications. Can anyone send me the Useful Code examples to show the tasks I can accomplish using ANT. It would be great if I am able to get these... Great Thanks in advance ... Keep booming .. Cheers !!! ----- Original Message ----- From: <Jan.Materne@...> To: <user@...> Sent: Wednesday, March 29, 2006 7:48 AM Subject: AW: Urgent : Send me some Initial Docs http://ant.apache.org/manual/ http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html Jan >-----Ursprüngliche Nachricht----- >Von: Vipin Batra [mailto:vbatra@...] >Gesendet: Dienstag, 28. März 2006 23:15 >An: Ant Users List >Betreff: Urgent : Send me some Initial Docs > >Hello all ! > >I am a new user to the group. I wanna use ANT for automated testing (In >Webservices). Please send me the Initial docs on ANT covering >all the basics >and Examples. >I need to understand the use of ANT with examples so that I am able to >bridge my project. >Thanks in advance, > >Vipin Batra. > >----- Original Message ----- >From: "gboysko" <gboysko@...> >To: <user@...> >Sent: Wednesday, March 29, 2006 6:56 AM >Subject: How to use stdin/stdout with exec > > >> >> I am using Ant to automate the creation of some Java classes >and compile >> them. I also want to be able to execute one of these generated Java >classes >> (which has a builtin command processor). The commands are >entered by the >> user (interactively) and the output is sent back to the console (via >> System.out). >> >> I simply want to use either the JAVA or EXEC task to invoke >the class, but >I >> can't get the stdin and stdout to be routed to the class. I >can see lots >of >> ways to wire up the input/output to files, but no way to >have them wired >> back to the Ant console. Am I missing something? Without specifying >> anything, I don't see anything and can't enter anything. Is >there a way I >> can specify the console/terminal in Windows using the input >and output >> attributes? >> >> I am using Ant 1.6.5 on Windows. >> -- >> View this message in context: >http://www.nabble.com/How-to-use-stdin-stdout-with-exec-t136000 >4.html#a36435 >92 >> Sent from the Ant - Users forum at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.385 / Virus Database: 268.3.2/294 - Release >Date: 3/27/2006 >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@... >For additional commands, e-mail: user-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
||||||||
|
|
Re: How to use stdin/stdout with execI read through all the responses to your question. I saw nothing that addressed this.
Your question addresses an issue with is the same problem as running a KSH interactive script from the ant exec command. Specifically, ant does not block for user input when a script executes a read command ,at least, using the following configuration: ant build.xml snippet: <target name="promote" depends="" description="Usage: ant promote"> <echo message="running: build-promote.sh"/> <exec dir="${clearance.dir}" spawn="false" executable="/bin/ksh"> <arg line='-c "build-promote.sh < $STDIN"'/> </exec> </target> ksh: build-promote.sh snippet: echo echo "Select kit number: " typeset -i akit read aKit echo "Is this kit number ok? $aKit" Upon execution of the read command, ant must stop and allow the user to enter a response. Instead what is happening is execution continues with the next line in the shell pgm. I can't enter a response to any of the reads in the pgm. Seems this is just operator error on our part. But, I've messed around with this too long and tried several different approaches. Were you able to get this working? thx in advance. kev.
|
||||||||
| Free Forum Powered by Nabble | Forum Help |