You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-commits@maven.apache.org by da...@apache.org on 2008/08/02 04:48:19 UTC
svn commit: r681929 -
/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
Author: dantran
Date: Fri Aug 1 19:48:19 2008
New Revision: 681929
URL: http://svn.apache.org/viewvc?rev=681929&view=rev
Log:
SCM-393: Add option to pass in a list of profiles to scm:bootstrap
Modified:
maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
Modified: maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java?rev=681929&r1=681928&r2=681929&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java (original)
+++ maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/BootstrapMojo.java Fri Aug 1 19:48:19 2008
@@ -55,6 +55,14 @@
private String goals;
/**
+ * A list of profiles to run with the goals.
+ * Multiple profiles must be comma separated with no spaces.
+ *
+ * @parameter expression="${profiles}"
+ */
+ private String profiles;
+
+ /**
* The subdirectory (under the project directory) in which to run the goals.
* The project directory is the same as the checkout directory in most cases,
* but for some SCMs, it is a subdirectory of the checkout directory.
@@ -109,6 +117,11 @@
}
}
+ if ( ! StringUtils.isEmpty( this.profiles ) )
+ {
+ cl.createArgument().setValue( "-P" + this.profiles );
+ }
+
StreamConsumer consumer = new DefaultConsumer();
try