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/java/org/apache/antlib/nativelib Exec.java
Date Sat, 12 Jan 2002 05:50:43 GMT
donaldp     02/01/11 21:50:43

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/nativelib
                        Exec.java
  Log:
  Make sure that exec runs even if you don't specify an OS
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/nativelib/Exec.java
  
  Index: Exec.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/nativelib/Exec.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Exec.java	12 Jan 2002 04:54:27 -0000	1.1
  +++ Exec.java	12 Jan 2002 05:50:43 -0000	1.2
  @@ -10,11 +10,11 @@
   import java.io.File;
   import java.io.IOException;
   import java.util.Properties;
  +import org.apache.aut.nativelib.Os;
   import org.apache.avalon.excalibur.i18n.ResourceManager;
   import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.myrmidon.api.AbstractTask;
   import org.apache.myrmidon.api.TaskException;
  -import org.apache.aut.nativelib.Os;
   import org.apache.tools.ant.taskdefs.exec.Execute2;
   import org.apache.tools.ant.types.Argument;
   import org.apache.tools.ant.types.Commandline;
  @@ -107,7 +107,7 @@
           throws TaskException
       {
           validate();
  -        if( Os.isFamily( m_os ) )
  +        if( null == m_os || Os.isFamily( m_os ) )
           {
               final Execute2 exe = createExecute();
               doExecute( exe );
  
  
  

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