ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec ExecTask.java
Date Sat, 22 Dec 2001 13:00:27 GMT
donaldp     01/12/22 05:00:27

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec
                        ExecTask.java
  Log:
  restyled
  
  Removed setAntRun() calls from Execute class
  
  Renamed Environment to EnvironmentData
  
  Revision  Changes    Path
  1.3       +3 -4      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/ExecTask.java
  
  Index: ExecTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/exec/ExecTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExecTask.java	2001/12/21 13:34:16	1.2
  +++ ExecTask.java	2001/12/22 13:00:26	1.3
  @@ -18,7 +18,7 @@
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.types.Commandline;
  -import org.apache.tools.ant.types.Environment;
  +import org.apache.tools.ant.types.EnvironmentData;
   
   /**
    * Executes a given command if the os platform is appropriate.
  @@ -35,7 +35,7 @@
       protected boolean failOnError = false;
       protected boolean newEnvironment = false;
       private Integer timeout = null;
  -    private Environment env = new Environment();
  +    private EnvironmentData env = new EnvironmentData();
       protected Commandline cmdl = new Commandline();
       private FileOutputStream fos = null;
       private ByteArrayOutputStream baos = null;
  @@ -173,7 +173,7 @@
        *
        * @param var The feature to be added to the Env attribute
        */
  -    public void addEnv( Environment.Variable var )
  +    public void addEnv( EnvironmentData.Variable var )
       {
           env.addVariable( var );
       }
  @@ -393,7 +393,6 @@
           log( cmdl.toString(), Project.MSG_VERBOSE );
   
           Execute exe = new Execute( createHandler(), createWatchdog() );
  -        exe.setAntRun( getProject() );
           exe.setWorkingDirectory( dir );
           exe.setVMLauncher( vmLauncher );
           String[] environment = env.getVariables();
  
  
  

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


Mime
View raw message