git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271336 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -11,6 +11,7 @@ import java.io.File; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import org.apache.avalon.excalibur.util.StringUtil; | import org.apache.avalon.excalibur.util.StringUtil; | ||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.util.FileUtils; | |||||
| /** | /** | ||||
| * Commandline objects help handling command lines specifying processes to | * Commandline objects help handling command lines specifying processes to | ||||
| @@ -139,9 +140,11 @@ public class Commandline | |||||
| public void addLine( final String line ) | public void addLine( final String line ) | ||||
| throws TaskException | 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 @@ public class Commandline | |||||
| * This marker can be used to locate a position on the commandline - to | * This marker can be used to locate a position on the commandline - to | ||||
| * insert something for example - when all parameters have been set.</p> | * 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() | public int size() | ||||
| { | { | ||||
| @@ -11,6 +11,7 @@ import java.io.File; | |||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||
| import org.apache.avalon.excalibur.util.StringUtil; | import org.apache.avalon.excalibur.util.StringUtil; | ||||
| import org.apache.myrmidon.api.TaskException; | import org.apache.myrmidon.api.TaskException; | ||||
| import org.apache.tools.ant.util.FileUtils; | |||||
| /** | /** | ||||
| * Commandline objects help handling command lines specifying processes to | * Commandline objects help handling command lines specifying processes to | ||||
| @@ -139,9 +140,11 @@ public class Commandline | |||||
| public void addLine( final String line ) | public void addLine( final String line ) | ||||
| throws TaskException | 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 @@ public class Commandline | |||||
| * This marker can be used to locate a position on the commandline - to | * This marker can be used to locate a position on the commandline - to | ||||
| * insert something for example - when all parameters have been set.</p> | * 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() | public int size() | ||||
| { | { | ||||