You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2008/12/05 05:07:02 UTC

svn commit: r723573 - in /webservices/juddi/branches/v3_trunk/juddi-core: pom.xml src/main/resources/version/ src/main/resources/version/Release.java

Author: tcunning
Date: Thu Dec  4 20:07:02 2008
New Revision: 723573

URL: http://svn.apache.org/viewvc?rev=723573&view=rev
Log:
JUDDI-160
Add a release class into juddi-core jar.

Added:
    webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/
    webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/Release.java
Modified:
    webservices/juddi/branches/v3_trunk/juddi-core/pom.xml

Modified: webservices/juddi/branches/v3_trunk/juddi-core/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/pom.xml?rev=723573&r1=723572&r2=723573&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/pom.xml Thu Dec  4 20:07:02 2008
@@ -76,13 +76,18 @@
 	<artifactId>maven-antrun-plugin</artifactId>
         <executions>
           <execution>
-          <phase>compile</phase>
+          <phase>generate-resources</phase>
           <configuration>
             <tasks>
-	      <echo>PERSISTENCE=${persistence}</echo>
-	      <copy file="src/main/resources/persistence/${persistence}-persistence.xml" 
-		tofile="target/classes/META-INF/persistence.xml" 
-		overwrite="true"/>
+		<copy file="src/main/resources/version/Release.java"
+			tofile="src/main/java/org/apache/juddi/util/Release.java">
+			<filterset>
+			<filter token="juddi.version" value="${project.version}"/>	
+			</filterset>	
+		</copy>
+              <copy file="src/main/resources/persistence/${persistence}-persistence.xml" 
+                tofile="target/classes/META-INF/persistence.xml" 
+                overwrite="true"/>
               <delete dir="juddi-derby-test-db"/>
             </tasks>
           </configuration>
@@ -139,6 +144,11 @@
 			<version>3.2.1</version>
 		</dependency>
 		<dependency>
+			<groupId>commons-lang</groupId>
+			<artifactId>commons-lang</artifactId>
+			<version>2.3</version>
+		</dependency>
+		<dependency>
 	      <groupId>log4j</groupId>
 	      <artifactId>log4j</artifactId>
 	      <version>1.2.13</version>
@@ -210,6 +220,6 @@
 </plugin>
 </plugins>
 </build>
-  </profile>    
-  </profiles>
+</profile>    
+</profiles>
 </project>

Added: webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/Release.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/Release.java?rev=723573&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/Release.java (added)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/resources/version/Release.java Thu Dec  4 20:07:02 2008
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi.util;
+
+public class Release {
+	private static final String REGISTRY_VERSION = "@juddi.version@";
+	private static final String UDDI_VERSION = "3.0";
+   
+	private Release () {
+	}
+
+	public static String getRegistryVersion() {
+		return REGISTRY_VERSION;
+	}
+
+	public static String getUDDIVersion() {
+		return UDDI_VERSION;	
+	} 
+}



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