You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2005/05/21 22:29:28 UTC
svn commit: r171249 -
/maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java
Author: jvanzyl
Date: Sat May 21 13:29:27 2005
New Revision: 171249
URL: http://svn.apache.org/viewcvs?rev=171249&view=rev
Log:
o i can now do a deploy with a couple of glitches, will work through the
problems as i release more components.
Modified:
maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java
Modified: maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java?rev=171249&r1=171248&r2=171249&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java (original)
+++ maven/components/trunk/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PerformReleaseMojo.java Sat May 21 13:29:27 2005
@@ -37,7 +37,7 @@
/**
* @parameter expression="${goals}"
*/
- private String goals = "deploy site:site site:deploy";
+ private String goals = "deploy";
protected void executeTask()
throws MojoExecutionException
@@ -50,6 +50,8 @@
private void checkout()
throws MojoExecutionException
{
+ System.out.println( "Checking out the project to perform the release ..." );
+
try
{
getScm().checkout();
@@ -63,11 +65,19 @@
private void runGoals()
throws MojoExecutionException
{
+ // TODO: we need to get a reference to the maven component and use that so this
+ // will work purely in an embedded mode.
+
Commandline cl = new Commandline();
+
cl.setExecutable( "m2" );
+
cl.setWorkingDirectory( getWorkingDirectory() );
+
cl.createArgument().setLine( goals );
+
StreamConsumer consumer = new DefaultConsumer();
+
try
{
CommandLineUtils.executeCommandLine( cl, consumer, consumer );
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org