ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: setting env variable in ant script
Date Fri, 28 Oct 2005 10:35:59 GMT

Hi,

how to delegate the path/to/cvs.exe to command ?

i've tried several combinations, f.e. =

<cvs cvsroot="${cvsroot}" 
         package="bla" 
         dest="${ant.working.dir}" 
         command="C:/cvsnt/cvs.exe -Q co"
         failonerror="true" 
    />

What's the right syntax for the command line ?

Gilbert
 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Friday, October 28, 2005 12:18 PM
To: user@ant.apache.org
Subject: AW: setting env variable in ant script

Use the command attribute of <cvs>.

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Gesendet: Freitag, 28. Oktober 2005 12:14
>An: user@ant.apache.org
>Betreff: setting env variable in ant script
>
>
>Hi,
>
>normally i run my scripts via batfile and do a set PATH=%PATH%;c:\cvnst
>
>now i have to run the same script on another machine, where my 
>ant script is called from java and ant-launcher.
>
>Problem = cvsnt isn't on path so script gets cvs error=2
>
>Question =
>
>how to set an env variable in my antscript similar to set PATH 
>in my bat file ?
>
><property environment="env" ...
>won't help as cvsnt isn't on path at that machine
>
>
>Gilbert
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

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


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


Mime
View raw message