avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject svn commit: rev 22115 - avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model
Date Sat, 26 Jun 2004 04:44:44 GMT
Author: mcconnell
Date: Fri Jun 25 21:44:44 2004
New Revision: 22115

Modified:
   avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Info.java
Log:
Update magic to generate a -DEV sufix on content flagged as SNAPSHOT.

Modified: avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Info.java
==============================================================================
--- avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Info.java	(original)
+++ avalon/trunk/tools/magic/src/main/org/apache/avalon/tools/model/Info.java	Fri Jun 25 21:44:44
2004
@@ -97,7 +97,21 @@
     */
     public String getVersion()
     {
-        return m_version;
+        if( isaSnapshot() )
+        {
+            if( null == m_version )
+            {
+                return "DEV";
+            }
+            else
+            {
+                return m_version + "-DEV";
+            }
+        }
+        else
+        {
+            return m_version;
+        }
     }
 
    /**

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message