ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sudip barat" <sba...@cisco.com>
Subject RE: Is it possible to change System PATH variable through ant tas k ?
Date Mon, 03 May 2004 16:19:41 GMT
Thanks to Atsushi and Jan ,the suggestions worked good for me . :)


-----Original Message-----
From: Atsushi SUGAWARA [mailto:asugawar@f3.dion.ne.jp] 
Sent: Thursday, April 29, 2004 10:24 PM
To: Ant Users List
Subject: Re: Is it possible to change System PATH variable through ant tas k
?


Hi.
I created a small patch.

patch to AbstractCvsTask.java
---------------------------------------------------------------------
151a152,154
>     private static final String DEFAULT_EXECUTABLE = "cvs";
>     private String executable;
> 
449a453,465
>     public void setExecutable(String executable) {
>         if (executable != null) {
>             if (executable.trim().equals("")) {
>                 executable = null;
>             }
>         }
>         this.executable = executable;
>     }
> 
>     public String getExecutable() {
>         return this.executable;
>     }
> 
744c760,764
<         c.setExecutable("cvs");
---
>         if (executable == null) {
>             c.setExecutable(DEFAULT_EXECUTABLE);
>         } else {
>             c.setExecutable(executable);
>         }
---------------------------------------------------------------------

Now, you can use a attribute "executable" in <cvs> task.
like this:

  <cvs
    cvsRoot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic"
    package="ant"
    command="checkout"
    executable="path/to/cvs"
  />

-- 
Atsushi SUGAWARA <asugawar@f3.dion.ne.jp>


---------------------------------------------------------------------
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