incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 6874 - incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko
Date Thu, 26 Feb 2004 08:54:48 GMT
Author: nickchalko
Date: Thu Feb 26 00:54:48 2004
New Revision: 6874

Modified:
   incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
Log:
Added to string.

Modified: incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
==============================================================================
--- incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
(original)
+++ incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
Thu Feb 26 00:54:48 2004
@@ -15,17 +15,14 @@
  * ========================================================================
  */
 package org.apache.ruper.ant.sandbox.chalko;
-
- 
 /**
- *
- *  @version $Revision: $
+ * @version $Revision: $
  */
 public class Resource {
 	private String name;
 	private String version;
 	private String repository;
-
+	private String ext;
 	/**
 	 * @return Returns the name.
 	 */
@@ -33,7 +30,8 @@
 		return name;
 	}
 	/**
-	 * @param name The name to set.
+	 * @param name
+	 *            The name to set.
 	 */
 	public void setName(String name) {
 		this.name = name;
@@ -45,7 +43,8 @@
 		return repository;
 	}
 	/**
-	 * @param repository The repository to set.
+	 * @param repository
+	 *            The repository to set.
 	 */
 	public void setRepository(String repository) {
 		this.repository = repository;
@@ -57,9 +56,26 @@
 		return version;
 	}
 	/**
-	 * @param version The version to set.
+	 * @param version
+	 *            The version to set.
 	 */
 	public void setVersion(String version) {
 		this.version = version;
+	}
+	/**
+	 * @return Returns the ext.
+	 */
+	public String getExt() {
+		return ext;
+	}
+	/**
+	 * @param ext
+	 *            The ext to set.
+	 */
+	public void setExt(String ext) {
+		this.ext = ext;
+	}
+	public String toString() {
+		return name + "-" + version + "." + ext + "@" + repository;
 	}
 }

Mime
View raw message