mirror of https://github.com/apache/maven.git
o the getScm() call creates a new instance of the scm bean so I corrected some
spots where it was being used because it was assuming the target/checkout directory for the prepare phase. this needs a touch of work but i left it pretty much as is to get it working. i have successfully prepared for the release and now i'm going to try and perform the release. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e801e4af69
commit
eb4631e6f2
|
@ -338,6 +338,8 @@ public class PrepareReleaseMojo
|
|||
{
|
||||
ScmBean scm = getScm();
|
||||
|
||||
scm.setWorkingDirectory( basedir );
|
||||
|
||||
if ( scm.getTag() == null )
|
||||
{
|
||||
getLog().info( "What tag name should be used? [ " + tag + " ]" );
|
||||
|
@ -354,7 +356,7 @@ public class PrepareReleaseMojo
|
|||
scm.setTag( tag );
|
||||
}
|
||||
|
||||
getScm().tag();
|
||||
scm.tag();
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
|
|
|
@ -175,7 +175,8 @@ public class ScmBean
|
|||
|
||||
CheckInScmResult result = getScmManager().checkIn( repository,
|
||||
new ScmFileSet( new File( workingDirectory ), includes, excludes ),
|
||||
tag, message );
|
||||
tag,
|
||||
message );
|
||||
checkResult( result );
|
||||
}
|
||||
|
||||
|
@ -217,6 +218,8 @@ public class ScmBean
|
|||
|
||||
public void setWorkingDirectory( String workingDirectory )
|
||||
{
|
||||
FileUtils.mkdir( workingDirectory );
|
||||
|
||||
this.workingDirectory = workingDirectory;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue