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 2003/02/02 16:31:01 UTC

cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/jelly/tags/maven SnapshotSignature.java

jvanzyl     2003/02/02 07:31:01

  Modified:    src/java/org/apache/maven/jelly/tags/maven
                        SnapshotSignature.java
  Log:
  o pushing the snapshot version into the context so that we can augment the deploy scripts
    to push a small file which will map the SNAPSHOT identifier to a
    real snapshot version which is required for releases.
  
  Revision  Changes    Path
  1.4       +8 -3      jakarta-turbine-maven/src/java/org/apache/maven/jelly/tags/maven/SnapshotSignature.java
  
  Index: SnapshotSignature.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/jelly/tags/maven/SnapshotSignature.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SnapshotSignature.java	14 Jan 2003 01:16:31 -0000	1.3
  +++ SnapshotSignature.java	2 Feb 2003 15:31:01 -0000	1.4
  @@ -114,11 +114,16 @@
           Date now = new Date();
           SimpleDateFormat formatter = new SimpleDateFormat( "yyyyMMdd.HHmmss" );
           formatter.setTimeZone( TimeZone.getTimeZone( "GMT" ) );
  -        String buildNumber = formatter.format( now );
  +        String snapshotVersion = formatter.format( now );
   
           String snapshotSignature = getProject().getArtifactId() + "-"
  -            + getProject().getCurrentVersion() + "." + buildNumber;
  +            + getProject().getCurrentVersion() + "." + snapshotVersion;
   
           context.setVariable( "snapshotSignature", snapshotSignature );
  +
  +        // We want to straight version so that we can deploy a marker
  +        // that will allow projects to flip between the 'SNAPSHOT'
  +        // identifier and a real snapshot version identifier.
  +        context.setVariable( "snapshotVersion", snapshotVersion );
       }
   }