mirror of https://github.com/apache/maven.git
o removing some debug info
o provide a message when tagging git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aed93fb8b4
commit
e8f0384f2f
|
@ -106,8 +106,6 @@ public abstract class AbstractReleaseMojo
|
||||||
|
|
||||||
scm.setUrl( urlScm );
|
scm.setUrl( urlScm );
|
||||||
|
|
||||||
System.out.println( "urlScm = " + urlScm );
|
|
||||||
|
|
||||||
if ( releaseProperties != null )
|
if ( releaseProperties != null )
|
||||||
{
|
{
|
||||||
tag = releaseProperties.getProperty( TAG );
|
tag = releaseProperties.getProperty( TAG );
|
||||||
|
@ -122,8 +120,6 @@ public abstract class AbstractReleaseMojo
|
||||||
username = releaseProperties.getProperty( USERNAME );
|
username = releaseProperties.getProperty( USERNAME );
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println( "username = " + username );
|
|
||||||
|
|
||||||
scm.setUsername( username );
|
scm.setUsername( username );
|
||||||
|
|
||||||
scm.setPassword( password );
|
scm.setPassword( password );
|
||||||
|
|
|
@ -346,12 +346,8 @@ public class PrepareReleaseMojo
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.out.println( "nextVersionString = " + nextVersionString );
|
|
||||||
|
|
||||||
nextVersionString = Integer.toString( Integer.parseInt( nextVersionString ) + 1 );
|
nextVersionString = Integer.toString( Integer.parseInt( nextVersionString ) + 1 );
|
||||||
|
|
||||||
System.out.println( "nextVersionString = " + nextVersionString );
|
|
||||||
|
|
||||||
projectVersion = projectVersion.substring( 0, projectVersion.lastIndexOf( "-" ) + 1 ) + nextVersionString + SNAPSHOT;
|
projectVersion = projectVersion.substring( 0, projectVersion.lastIndexOf( "-" ) + 1 ) + nextVersionString + SNAPSHOT;
|
||||||
}
|
}
|
||||||
catch ( NumberFormatException e )
|
catch ( NumberFormatException e )
|
||||||
|
@ -477,6 +473,8 @@ public class PrepareReleaseMojo
|
||||||
scm.setTag( tag );
|
scm.setTag( tag );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLog().info( "Tagging release with the label " + tag + "." );
|
||||||
|
|
||||||
scm.tag();
|
scm.tag();
|
||||||
}
|
}
|
||||||
catch ( Exception e )
|
catch ( Exception e )
|
||||||
|
|
|
@ -131,10 +131,6 @@ public class ScmBean
|
||||||
|
|
||||||
checkoutDirectory = new File( workingDirectory );
|
checkoutDirectory = new File( workingDirectory );
|
||||||
|
|
||||||
System.out.println( "workingDirectory = " + workingDirectory );
|
|
||||||
|
|
||||||
System.out.println( "tag = " + tag );
|
|
||||||
|
|
||||||
// TODO: sanity check that it is not . or .. or lower
|
// TODO: sanity check that it is not . or .. or lower
|
||||||
|
|
||||||
if ( FileUtils.fileExists( workingDirectory ) )
|
if ( FileUtils.fileExists( workingDirectory ) )
|
||||||
|
|
Loading…
Reference in New Issue