cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1195970 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java
Date Tue, 01 Nov 2011 13:00:22 GMT
Author: simonetripodi
Date: Tue Nov  1 13:00:22 2011
New Revision: 1195970

URL: http://svn.apache.org/viewvc?rev=1195970&view=rev
Log:
added pipeline IDs as main argument, like ant tasks or maven goals

Modified:
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java?rev=1195970&r1=1195969&r2=1195970&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java (original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java Tue
Nov  1 13:00:22 2011
@@ -19,6 +19,8 @@
 package org.apache.cocoon.cli;
 
 import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
 
 import com.beust.jcommander.IStringConverter;
 import com.beust.jcommander.Parameter;
@@ -38,6 +40,9 @@ public final class CliOptions
     @Parameter( names = { "-f", "--file" }, description = "Force the use of an alternate
c3p file.", converter = FileConverter.class )
     private File pipelineDescriptor = new File( System.getProperty( "user.dir" ), "c3p.xml"
);
 
+    @Parameter( description = "Pipeline IDs." )
+    public List<String> pipelineIDs = new ArrayList<String>();
+
     public boolean isPrintHelp()
     {
         return printHelp;
@@ -58,6 +63,11 @@ public final class CliOptions
         return pipelineDescriptor;
     }
 
+    public List<String> getPipelineIDs()
+    {
+        return pipelineIDs;
+    }
+
     public static class FileConverter
         implements IStringConverter<File>
     {



Mime
View raw message