incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r545555 - /incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java
Date Fri, 08 Jun 2007 16:35:42 GMT
Author: sisbell
Date: Fri Jun  8 09:35:40 2007
New Revision: 545555

URL: http://svn.apache.org/viewvc?view=rev&rev=545555
Log:
Fix for allowing abritrary information within version. As long as it follows the form 0.0.0.0-<<whatever>>

Modified:
    incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java

Modified: incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java?view=diff&rev=545555&r1=545554&r2=545555
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java
(original)
+++ incubator/nmaven/trunk/components/dotnet-assembler/src/main/java/org/apache/maven/dotnet/assembler/impl/AssemblerContextImpl.java
Fri Jun  8 09:35:40 2007
@@ -122,15 +122,11 @@
                 }
             }
         }
-        
-        // Check if the version if a snapshot, if so we need to mangle the version and configuration
-        if (ArtifactUtils.isSnapshot(version)) {
-            logger.debug( "NMAVEN-020-999: Detected SNAPSHOT version: " + version);
+        if ( version.contains( "-" ) )
+        {
             informationalVersion = version;
-            version = version.replace( "-" + SNAPSHOT_SUFFIX, "" );
+            version = version.split( "-" )[0];
         }
-
-
         assemblyInfo.setCompany( company );
         assemblyInfo.setCopyright( copyright );
         assemblyInfo.setCulture( "" );



Mime
View raw message