o removing debug and adding a note

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@171368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2005-05-22 20:26:32 +00:00
parent e52be1da9a
commit 934763d0ad
3 changed files with 4 additions and 7 deletions

View File

@ -43,7 +43,7 @@
<dependency>
<groupId>plexus</groupId>
<artifactId>plexus-input-handler</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
<version>1.0-alpha-2-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -325,7 +325,7 @@ private void transformPomToReleaseVersionPom()
transformer.transformNodes();
transformer.write();
transformer.write();
}
catch ( Exception e )
{
@ -337,7 +337,8 @@ private void transformPomToSnapshotVersionPom()
throws MojoExecutionException
{
// TODO: we will need to incorporate versioning strategies here because it is unlikely
// that everyone will be able to agree on a standard.
// that everyone will be able to agree on a standard. This is extremely limited right
// now and really only works for the way maven is versioned.
// releaseVersion = 1.0-beta-4
// snapshotVersion = 1.0-beta-5-SNAPSHOT

View File

@ -64,14 +64,10 @@ public void transformNode( Node node )
if ( version != null )
{
System.out.println( ">> We have a version element and we are changing it to " + getUpdatedModel().getVersion() );
version.setText( getUpdatedModel().getVersion() );
}
else
{
System.out.println( ">> We are adding a version element and we are setting it to " + getUpdatedModel().getVersion() );
project.addElement( "version" ).addText( getUpdatedModel().getVersion() );
}
}