ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Is it possible to change System PATH variable through ant tas k ?
Date Fri, 30 Apr 2004 04:57:43 GMT
I only see these possiblities:
- add the cvs-dir to PATH
- modify the start script to do that
- do a quick hack:
  - subclass org.apache.tools.ant.taskdefs.Cvs
  - overwrite 
    protected void configureCommandline(Commandline c)
    (comes from org.apache.tools.ant.taskdefs.AbstractCvsTask)
  - modify the line AbstractCvsTask:737: 
        c.setExecutable("cvs"); 
    to an appropriate value.
  - taskdef this class in your buildfile
    mycvs=...
  - use <mycvs> instead of <cvs>

Jan
   

> -----Original Message-----
> From: sudip barat [mailto:sbarat@cisco.com]
> Sent: Friday, April 30, 2004 12:45 AM
> To: 'Ant Users List'
> Subject: Is it possible to change System PATH variable 
> through ant task
> ?
> 
> 
> I wanted to know if it is possible to update the System PATH 
> variable to
> include path of CVS.exe . I am writing a web based 
> application . The tomcat
> on the unix box does not have CVS in the  system path as a 
> result my <cvs>
> task fails . Is it possible for me to have the cvs.exe path 
> included in
> build.xml or is it possible to set the path in the
> org.apche.tools.ant.Project I am creating from my servlet to 
> execute the
> build.xml ?
> 
> Thx 
>  sb
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message