Or you can avoid having the extra shell-script and just <exec> "sh -c". If
you have $SKELETON, $IN, and $OUT set in your environment, read them in
using the <property environment="env"/> task (you can use whatever prefix
you want -- "env" is just an example). Or you could set them as Ant
properties instead -- whatever works best for you.

Assuming env vars, you'd do something like:

<property environment="env"/>
<exec executable="sh" dir="wherever" output="${env.OUT}">
  <arg line="-c &quot;jay &lt;${env.SKELETON}${env.IN}&quot;"/>
</exec>

Diane

--- Dana Rice <[EMAIL PROTECTED]> wrote:
> Just write a shell script with your command line on one line. Of course
> if
> you want to use $SKELTON,$IN,$OUT you will have to define these also in
> the
> shell script. So if you have done this and your file is called file.sh:
> <exec dir="." executable="file.sh" output="whatever"/>
> 
> -----Original Message-----
> From: Joel Cordonnier [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 11:14 AM
> To: [EMAIL PROTECTED]
> Subject: RE: exec: jay <$SKELETON $IN >$OUT, HELP PLEASE
> 
> 
> OK!
> 
> Could you give me samples ?
> 
> Joel
> 
> 
> --- Dana Rice <[EMAIL PROTECTED]> a �crit : > The
> only way I have been able to do things like this
> > is to put:
> > jay <$SKELETON $IN >$OUT in a shell script file and
> > use exec to call the
> > file. 
> > 
> > -----Original Message-----
> > From: Joel Cordonnier [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 11:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: exec: jay <$SKELETON $IN >$OUT, HELP PLEASE
> > 
> > 
> > Hi!
> > 
> > Can someone help me to 'translate' the unix shell
> > command with stdin and stout redirection : jay
> > <$SKELETON $IN >$OUT to the Ant Exec task ?
> > 
> > Thanks
> > Joel
> > 
> > ps: jay is the name of my executable
> > 
> >
> ___________________________________________________________
> > Do You Yahoo!? -- Pour dialoguer en direct avec vos
> > amis, 
> > Yahoo! Messenger : http://fr.messenger.yahoo.com
> 
> 
> ___________________________________________________________
> Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
> Yahoo! Messenger : http://fr.messenger.yahoo.com


=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to