incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 36672 - in incubator/depot/trunk/update/src/java/org/apache/depot/update: . version
Date Fri, 20 Aug 2004 19:17:49 GMT
Author: ajack
Date: Fri Aug 20 12:17:48 2004
New Revision: 36672

Modified:
   incubator/depot/trunk/update/src/java/org/apache/depot/update/Artifact.java
   incubator/depot/trunk/update/src/java/org/apache/depot/update/ArtifactInstance.java
   incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java
Log:
Fixed a few things that broke due to the new TestXXXX classes.

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/Artifact.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/Artifact.java	(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/Artifact.java	Fri Aug 20
12:17:48 2004
@@ -25,9 +25,9 @@
 import org.apache.depot.update.artifact.ArtifactGroup;
 import org.apache.depot.update.artifact.ArtifactType;
 import org.apache.depot.update.util.identity.GenericIdentifier;
-import org.apache.depot.update.util.net.VirtualResourceLocator;
 import org.apache.depot.version.Version;
 import org.apache.depot.version.impl.ApacheVersion;
+import org.apache.depot.version.impl.TestApacheVersion;
 
 /**
  * An entity in a repository (e.g. junit-3.8.1.jar). An Artifact has (at least
@@ -296,10 +296,10 @@
 		for (int i = 0; i < count; ++i) {
 			String name = group + Integer.toString(1 + i);
 			ArtifactList.add(Artifact.getTestArtifact(name,
-					ApacheVersion.getTestVersion(1, i),
+					TestApacheVersion.getTestVersion(1, i),
 					ArtifactType.JAVA_BINARY));
 			ArtifactList.add(Artifact.getTestArtifact(name,
-					ApacheVersion.getTestVersion(1, i),
+					TestApacheVersion.getTestVersion(1, i),
 					ArtifactType.SOURCE_CODE));
 
 			// :TODO: Add some randomness
@@ -317,7 +317,7 @@
 	}
 
 	public static Artifact getTestArtifact(String name, ArtifactType type) {
-		return getTestArtifact(name, ApacheVersion.getTestVersion(1, 1), type);
+		return getTestArtifact(name, TestApacheVersion.getTestVersion(1, 1), type);
 	}
 
 	public static Artifact getTestArtifact(String name, Version version,

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ArtifactInstance.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/ArtifactInstance.java	(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/ArtifactInstance.java	Fri
Aug 20 12:17:48 2004
@@ -32,6 +32,7 @@
 import org.apache.depot.update.util.select.ISelectable;
 import org.apache.depot.version.Version;
 import org.apache.depot.version.impl.ApacheVersion;
+import org.apache.depot.version.impl.TestApacheVersion;
 
 /**
  * This defines a 'real world' file, e.g. junit-3.8.1.jar and has all the
@@ -228,10 +229,10 @@
 		for (int i = 0; i < count; ++i) {
 			String name = group + Integer.toString(1 + i);
 			resourceList.add(ArtifactInstance.getTestArtifactInstance(name,
-					ApacheVersion.getTestVersion(1, i),
+					TestApacheVersion.getTestVersion(1, i),
 					ArtifactType.JAVA_BINARY));
 			resourceList.add(ArtifactInstance.getTestArtifactInstance(name,
-					ApacheVersion.getTestVersion(1, i),
+					TestApacheVersion.getTestVersion(1, i),
 					ArtifactType.SOURCE_CODE));
 
 			// :TODO: Add some randomness
@@ -250,7 +251,7 @@
 
 	public static ArtifactInstance getTestArtifactInstance(String name,
 			ArtifactType type) {
-		return getTestArtifactInstance(name, ApacheVersion.getTestVersion(1, 1), type);
+		return getTestArtifactInstance(name, TestApacheVersion.getTestVersion(1, 1), type);
 	}
 
 	public static ArtifactInstance getTestArtifactInstance(String name,

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java	(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java	Fri
Aug 20 12:17:48 2004
@@ -1,4 +1,3 @@
-
 /* 
  *
  * NOTE: Automatically Generated File (see Depot Version from the Apache Incubator)
@@ -17,37 +16,42 @@
 import java.util.Map;
 /**
  * A autogenerated VersionStamp class for org.apache.depot.update .
- * Generated at Sun Aug 15 22:17:02 PDT 2004 
- * on dolly/192.168.57.222
- * by Nick
+ * Generated at Thu Aug 19 12:16:21 MDT 2004 
+ * on tsws1/4.228.69.39
+ * by ajack
  * @author <a href="http://incubator.apache.org/depot">Depot Version</a> 
  *         from the <a href="http://incubator.apache.org/">Apache Incubator</a>,

-           version 0.1.1-dev-20040815
- * @version 0.1-dev-20040815
+           version 0.1-dev
+ * @version 0.1-dev
+ * @generated
  */
 public final class Version { 
 	/* SINGLETON PATTERN */
 	private final static  Version INSTANCE = new  Version();
+	/**
+	 * Get the Singleton instance of this class.
+	 * @return the Singleton instance of this class
+	 */
     public static Version getInstance() {return INSTANCE ;}
     
-    
     private final Map  attributes;
-
-
 	
+	/**
+	 * Private constructor for Singleton.
+	 */
 	private  Version()  {
 	Map temp = new HashMap();
 	
     temp.put("org.apache.depot.version.build.host",
-             "dolly");// dolly
+             "tsws1");// tsws1
     temp.put("org.apache.depot.version.build.ant",
-             "Apache Ant version 1.6.2 compiled on July 16 2004");// Apache Ant version 1.6.2
compiled on July 16 2004
+             "Apache Ant version 1.6.1 compiled on February 12 2004");// Apache Ant version
1.6.1 compiled on February 12 2004
     temp.put("org.apache.depot.version.build.user",
-             "Nick");// Nick
+             "ajack");// ajack
     temp.put("org.apache.depot.version.build.datetime",
-             new java.util.Date(1092633422812L));// Sun Aug 15 22:17:02 PDT 2004
+             new java.util.Date(1092939380162L));// Thu Aug 19 12:16:20 MDT 2004
     temp.put("org.apache.depot.version.build.jvm",
-             "1.4.2_05-b04");// 1.4.2_05-b04
+             "1.4.2-b28");// 1.4.2-b28
 	attributes = Collections.unmodifiableMap(temp);
 	
 	}
@@ -62,23 +66,23 @@
 	
 		
 	/**
-	 * The user that built org.apache.depot.update was Nick.
-	 * @return the String "Nick"
+	 * The user that built org.apache.depot.update was ajack.
+	 * @return the String "ajack"
 	 */
-	public String getUser() {return "Nick"; }
+	public String getUser() {return "ajack"; }
 	
 		
 	/**
-	 * org.apache.depot.update was built on dolly/192.168.57.222.
-	 * @return the String "dolly/192.168.57.222"
+	 * org.apache.depot.update was built on tsws1/4.228.69.39.
+	 * @return the String "tsws1/4.228.69.39"
 	 */
-	public String getHost() {return "dolly/192.168.57.222"; }
+	public String getHost() {return "tsws1/4.228.69.39"; }
 	
 	/**
-	 * org.apache.depot.update was built at Sun Aug 15 22:17:02 PDT 2004.
-	 * @return the Date "Sun Aug 15 22:17:02 PDT 2004"
+	 * org.apache.depot.update was built at Thu Aug 19 12:16:21 MDT 2004.
+	 * @return the Date "Thu Aug 19 12:16:21 MDT 2004"
 	 */
-	public Date getDate() {return new java.util.Date(1092633422937L); }
+	public Date getDate() {return new java.util.Date(1092939381173L); }
 	
 	/**
 	 * The ID of the Version Specification.
@@ -95,30 +99,30 @@
 	public String getShortVersion() {return "0.1";}
 	
 	/**
-	 * org.apache.depot.update 0.1-dev-20040815.
-	 * @return the String "0.1-dev-20040815"
+	 * org.apache.depot.update 0.1-dev.
+	 * @return the String "0.1-dev"
 	 */
-	public String getLongVersion() {return "0.1-dev-20040815";}
+	public String getLongVersion() {return "0.1-dev";}
 
 	/**
-	 * org.apache.depot.update 0.1-dev-20040815.
-	 * @return the String "0.1-dev-20040815"
+	 * org.apache.depot.update 0.1-dev.
+	 * @return the String "0.1-dev"
 	 */
-	public String getDefaultVersion() {return "0.1-dev-20040815";}	
+	public String getDefaultVersion() {return "0.1-dev";}	
 
 	/**
 	 * Get the Unmodifiable map of attributes. 	
 	 * <dl>
      *     <dt>org.apache.depot.version.build.host</dt>
-     *         <dd>dolly</dd>
+     *         <dd>tsws1</dd>
      *     <dt>org.apache.depot.version.build.ant</dt>
-     *         <dd>Apache Ant version 1.6.2 compiled on July 16 2004</dd>
+     *         <dd>Apache Ant version 1.6.1 compiled on February 12 2004</dd>
      *     <dt>org.apache.depot.version.build.user</dt>
-     *         <dd>Nick</dd>
+     *         <dd>ajack</dd>
      *     <dt>org.apache.depot.version.build.datetime</dt>
-     *         <dd>Sun Aug 15 22:17:02 PDT 2004</dd>
+     *         <dd>Thu Aug 19 12:16:20 MDT 2004</dd>
      *     <dt>org.apache.depot.version.build.jvm</dt>
-     *         <dd>1.4.2_05-b04</dd>
+     *         <dd>1.4.2-b28</dd>
      * </dl>
 	 * @return unmodifiable Map of attributes.
 	 */
@@ -127,8 +131,8 @@
 
 	
 	/**
-	 * org.apache.depot.update 0.1-dev-20040815.
-	 * @return the String "0.1-dev-20040815"
+	 * org.apache.depot.update 0.1-dev.
+	 * @return the String "0.1-dev"
 	 */
-	public String toString() {return "0.1-dev-20040815";}
+	public String toString() {return "0.1-dev";}
 }    

Mime
View raw message