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 10458 - in incubator/depot/trunk/update: . src/java/org/apache/depot/update/ant/task src/java/org/apache/depot/update/repository src/java/org/apache/depot/update/tool
Date Fri, 30 Apr 2004 22:24:25 GMT
Author: ajack
Date: Fri Apr 30 15:24:24 2004
New Revision: 10458

Added:
   incubator/depot/trunk/update/build-ant-sample.xml
Modified:
   incubator/depot/trunk/update/build.xml
   incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/task/RepositoryToolTask.java
   incubator/depot/trunk/update/src/java/org/apache/depot/update/repository/RepositorySet.java
   incubator/depot/trunk/update/src/java/org/apache/depot/update/tool/RepositoriesTool.java
Log:
1) sample = part sample, part demo, part test.
2) copied property technique/value from version to update (to get latest antlets)


Added: incubator/depot/trunk/update/build-ant-sample.xml
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/update/build-ant-sample.xml	Fri Apr 30 15:24:24 2004
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!-- $HeadURL: https://svn.apache.org/repos/asf/incubator/depot/trunk/version/build.xml
$ -->
+<!--
+Copyright 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.
+-->
+
+<!--
+==============================================================================
+
+	Standalone Sample
+ 
+==============================================================================
+-->
+
+<project name="depot-update-ant-sample" default="gump" basedir=".">
+	
+	<!-- Display the contents of a repository -->
+	<target name="repo" description="Display Contents of a Repostiory">
+		<taskdef resource="depot-update-antlib.xml" />		
+		<repotool />
+	</target>
+
+	<target name="gump" depends="repo" />
+	
+</project>
\ No newline at end of file

Modified: incubator/depot/trunk/update/build.xml
==============================================================================
--- incubator/depot/trunk/update/build.xml	(original)
+++ incubator/depot/trunk/update/build.xml	Fri Apr 30 15:24:24 2004
@@ -29,16 +29,18 @@
 	<property name="project.test.dir" value="src/test" />
 	<property name="project.package" value="org.apache.depot.update" />
 
-
 	<property name="apache.antlet.svn.www.url"
 	          value="https://svn.apache.org/repos/asf/incubator/depot/trunk/www/update" />
 	<property name="depot-version.antlet.isDependent" value="true"/>
-    
-	<importer name="init-0.1" href="http://metamorphosis.krysalis.org/antlet/" />
-	<importer name="java-0.1" href="http://metamorphosis.krysalis.org/antlet/" />
-	<importer name="junit-0.1" href="http://metamorphosis.krysalis.org/antlet/" />
-	<importer name="forrest-0.1" href="http://metamorphosis.krysalis.org/antlet/" />
-	<importer name="apache-0.1" href="http://metamorphosis.krysalis.org/antlet/" />
+	
+    <property name="antlets.repo" value="http://antworks.sourceforge.net/library/antlets/"
/>
+	
+	<importer name="init-0.1" href="${antlets.repo}" />
+	<importer name="java-0.1" href="${antlets.repo}" />
+	<importer name="junit-0.1" href="${antlets.repo}" />
+	<importer name="forrest-0.1" href="${antlets.repo}" />
+	<importer name="apache-0.1" href="${antlets.repo}" />
+	
 	<importer name="depot-version-0.1" />
 
 	<path id="depot-update.classpath">

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/task/RepositoryToolTask.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/task/RepositoryToolTask.java
(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/ant/task/RepositoryToolTask.java
Fri Apr 30 15:24:24 2004
@@ -39,7 +39,7 @@
  */
 public class RepositoryToolTask extends Task {
 
-	private String m_ruper = UpdateConstants.DEFAULT;
+	private String m_updater = UpdateConstants.DEFAULT;
 	private String m_repositories = UpdateConstants.DEFAULT;
 	private String m_group = null;
 
@@ -53,8 +53,8 @@
 	/**
 	 * @param string
 	 */
-	public void setRuper(String string) {
-		m_ruper = string;
+	public void setUpdater(String updater) {
+		m_updater = updater;
 	}
 
 	/* (non-Javadoc)

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/repository/RepositorySet.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/repository/RepositorySet.java
(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/repository/RepositorySet.java
Fri Apr 30 15:24:24 2004
@@ -31,14 +31,13 @@
  */
 public class RepositorySet implements IReferenceable {
 
-	public static final String REPOSITORYSET_CLASSNAME =
-		RepositorySet.class.getName();
+	public static final String REPOSITORYSET_CLASSNAME = RepositorySet.class.getName();
 
 	private RepositorySetIdentifier m_identifier = null;
 	private ArrayList m_repositories = new ArrayList();
 
 	/**
-	 * 
+	 *  
 	 */
 	public RepositorySet() {
 		this(new RepositorySetIdentifier(UpdateConstants.UNNAMED));
@@ -65,14 +64,14 @@
 	}
 
 	/**
-	 * 
+	 *  
 	 */
 	public RepositorySet(RepositorySetIdentifier identifier) {
 		m_identifier = identifier;
 	}
 
 	/**
-	 * 
+	 *  
 	 */
 	public RepositorySet(String identifier) {
 		m_identifier = new RepositorySetIdentifier(identifier);
@@ -85,16 +84,13 @@
 		return m_identifier;
 	}
 
-	public static RepositorySet getRepositorySet(
-		String identifier,
-		final boolean createIfRequired) {
-
-		return getRepositorySet(
-			new RepositorySetIdentifier(identifier),
-			createIfRequired);
+	public static RepositorySet getRepositorySet(String identifier,
+			final boolean createIfRequired) {
 
+		return getRepositorySet(new RepositorySetIdentifier(identifier),
+				createIfRequired);
 	}
-	
+
 	/**
 	 * @return
 	 */
@@ -125,8 +121,8 @@
 	}
 
 	public Object createChild(Class clazz, String tagId, String refId) {
-		Object object =
-			ReferenceManager.createReferenceObject(clazz, tagId, refId);
+		Object object = ReferenceManager.createReferenceObject(clazz, tagId,
+				refId);
 		if (object != null) {
 			if (object instanceof IRepository) {
 				this.m_repositories.add(object);
@@ -144,21 +140,19 @@
 
 		return buff.toString();
 	}
-	
+
 	public static RepositorySet getRepositorySet(
-		RepositorySetIdentifier identifier,
-		final boolean createIfRequired) {
+			RepositorySetIdentifier identifier, final boolean createIfRequired) {
 
 		RepositorySet set = null;
 
 		if (ReferenceManager.hasReference(identifier)) {
 			try {
 				set = (RepositorySet) ReferenceManager.getReference(identifier);
-			}
-			catch (NoSuchReferenceException exp) {
+			} catch (NoSuchReferenceException exp) {
 				Logger.getLogger().error(
-					"No RepositorySet reference in the ReferenceManager by id " + identifier,
-					exp);
+						"No RepositorySet reference in the ReferenceManager by id "
+								+ identifier, exp);
 			}
 		}
 

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/tool/RepositoriesTool.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/tool/RepositoriesTool.java
(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/tool/RepositoriesTool.java
Fri Apr 30 15:24:24 2004
@@ -31,7 +31,7 @@
 	private static Option l_listOption = null;
 
 	static {
-		l_setOption = new Option("s", "set", true, "RepositorySet");
+		l_setOption = new Option("r", "repoSet", true, "RepositorySet");
 		l_groupsOption = new Option("g", "groups", false, "List groups");
 		l_listOption = new Option("l", "list", true, "List resources");
 	}
@@ -77,6 +77,6 @@
 	}
 
 	public static void main(String[] args) {
-		(new RepositoryTool()).run(args);
+		(new RepositoriesTool()).run(args);
 	}
 }

Mime
View raw message