ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re[4]: is command line input possible when running <java>?
Date Tue, 19 Nov 2002 16:52:32 GMT
Hello Keith,

Yeah, I had thought about that.  Writing a generic GUI app to run
command line apps within may be the solution.

thanks,

Jake

Tuesday, November 19, 2002, 10:07:30 AM, you wrote:

KH> Is there scope to put an AWT/Swing interface on your app that will handle the input?
KH> Not trivial, I know, but in the absence of other suggestions ...


KH> -----Original Message-----
KH> From: Jacob Kjome [mailto:hoju@visi.com]
KH> Sent: 19 November 2002 16:04
KH> To: Ant Users List
KH> Subject: Re[2]: is command line input possible when running <java>?


KH> Hello Edward,

KH> Unless I'm mistaken, the <input> task allows input to set properties
KH> in ant.  This does not address a running java program that requires
KH> it's own input *after* the app is already running.  Keep in mind, this
KH> app doesn't perform anything Ant related.  It is just a demo app that
KH> I can run from the command line and I want to know if I can launch it
KH> from within Ant and provide input to it there just like I could if I
KH> launch it directly on the command line outside of Ant.  So far, it
KH> doesn't look like it is possible.  Any other comments?

KH> Jake

KH> Tuesday, November 19, 2002, 8:46:43 AM, you wrote:

GE>> Sure,
GE>> http://jakarta.apache.org/ant/manual/CoreTasks/input.html

GE>> Thank You,

GE>> Edward Grinvald
GE>> Computer Associates International
GE>> Programmer, Storage Development
GE>> Edward.Grinvald@ca.com
GE>> (631) 342 6350


GE>> -----Original Message-----
GE>> From: Jacob Kjome [mailto:hoju@visi.com] 
GE>> Sent: Tuesday, November 19, 2002 9:26 AM
GE>> To: Ant Users List
GE>> Subject: RE: is command line input possible when running <java>?



GE>> hmmm...  maybe I didn't explain this well.  The problem is that the app
GE>> is 
GE>> not running in batch mode.  It takes user input.  It isn't a task that
GE>> you 
GE>> just give some parameters and say "go off and do something and come back

GE>> when you finish".  It is an interactive app that you ask it each time to
GE>> do 
GE>> a new thing.  So, once it is running, I need to be able to type commands
GE>> to 
GE>> the program.  Sending parameters to it when it starts isn't useful in
GE>> this 
GE>> case.

GE>> Is there any way to do that running under ant with the <java> task or
GE>> any 
GE>> other task in ant?

GE>> Jake

GE>> At 02:26 AM 11/19/2002 -0600, you wrote:
>>>use something like
>>>cmd line:
>>>  ant  -DmyParam="myValue1 myValue2"
>>>
>>>and inside java task use this myParam .. it will be passed to java task
>>>
>>>
>>>Prem
>>>
>>>
>>>
>>>
>>>-----Original Message-----
>>>From: Jacob Kjome [mailto:hoju@visi.com]
>>>Sent: Tuesday, 19 November 2002 11:36 AM
>>>To: Ant Users List
>>>Subject: is command line input possible when running <java>?
>>>
>>>
>>>
>>>Hi,
>>>
>>>I'm running some demos from my ant build file with the <java> task.   A
>>>couple of the demos are gui apps and I've had no problem with them.  
>>>However, now I have an app that takes command line input and it doesn't

>>>seem to be able to take any user input from the console.  Is there a 
>>>way to make this work for <java>?  Are there other tasks in Ant that 
>>>will allow this?  Any suggestions?  Of course a user can just run it 
>>>from the command line, but I'd like to have all the demos available to 
>>>run via ant targets.
>>>
>>>Jake
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
GE>> <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>>For additional commands, e-mail: 
>>><mailto:ant-user-help@jakarta.apache.org>
>>>
>>>--
>>>To unsubscribe, e-mail:
GE>> <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>>For additional commands, e-mail: 
>>><mailto:ant-user-help@jakarta.apache.org>

GE>> --
GE>> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
GE>> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>






-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


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


Mime
View raw message