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/types Commandline.java
Date Thu, 14 Feb 2002 10:48:52 GMT
donaldp     02/02/14 02:48:52

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/types
                        Commandline.java
  Log:
  Move body of addLine into this class rather than delegating and temporarily commented out
markers
  
  Revision  Changes    Path
  1.16      +10 -7     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types/Commandline.java
  
  Index: Commandline.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/types/Commandline.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Commandline.java	9 Feb 2002 23:34:50 -0000	1.15
  +++ Commandline.java	14 Feb 2002 10:48:52 -0000	1.16
  @@ -11,6 +11,7 @@
   import java.util.ArrayList;
   import org.apache.avalon.excalibur.util.StringUtil;
   import org.apache.myrmidon.api.TaskException;
  +import org.apache.tools.ant.util.FileUtils;
   
   /**
    * Commandline objects help handling command lines specifying processes to
  @@ -139,9 +140,11 @@
       public void addLine( final String line )
           throws TaskException
       {
  -        final Argument argument = new Argument();
  -        argument.setLine( line );
  -        addArgument( argument );
  +        final String[] parts = FileUtils.translateCommandline( line );
  +        for( int i = 0; i < parts.length; i++ )
  +        {
  +            addArgument( parts[ i ] );
  +        }
       }
   
       /**
  @@ -150,10 +153,10 @@
        * This marker can be used to locate a position on the commandline - to
        * insert something for example - when all parameters have been set.</p>
        */
  -    public Marker createMarker()
  -    {
  -        return new Marker( this, m_arguments.size() );
  -    }
  +//    public Marker createMarker()
  +//    {
  +//        return new Marker( this, m_arguments.size() );
  +//    }
   
       public int size()
       {
  
  
  

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