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 6877 - in incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant: . sandbox/chalko
Date Thu, 26 Feb 2004 09:16:11 GMT
Author: nickchalko
Date: Thu Feb 26 01:16:10 2004
New Revision: 6877

Added:
   incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/ResourceElement.java
      - copied, changed from rev 6874, incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
Removed:
   incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/Resource.java
Modified:
   incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/antlib.xml
   incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/RuperSet.java
Log:
Renane Resource to Resource Element

Modified: incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/antlib.xml
==============================================================================
--- incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/antlib.xml	(original)
+++ incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/antlib.xml	Thu Feb 26 01:16:10
2004
@@ -15,7 +15,7 @@
 -->
 <antlib>
     <typedef name="ruperset" classname="org.apache.ruper.ant.sandbox.chalko.RuperSet"/>
-    <typedef name="resource" classname="org.apache.ruper.ant.sandbox.chalko.Resource"/>
+    <typedef name="resource" classname="org.apache.ruper.ant.sandbox.chalko.ResourceElement"/>
     <typedef name="repository" classname="org.apache.ruper.ant.sandbox.chalko.Repository"/>
     <typedef name="repotool" classname="org.apache.ruper.ant.task.RepositoryToolTask"/>
     <typedef name="reposync" classname="org.apache.ruper.ant.task.SynchronizeTask"/>

Copied: incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/ResourceElement.java
(from rev 6874, 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/ResourceElement.java
Thu Feb 26 01:16:10 2004
@@ -18,7 +18,7 @@
 /**
  * @version $Revision: $
  */
-public class Resource {
+public class ResourceElement {
 	private String name;
 	private String version;
 	private String repository;

Modified: incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/RuperSet.java
==============================================================================
--- incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/RuperSet.java
(original)
+++ incubator/depot/trunk/ruper/src/java/ant/org/apache/ruper/ant/sandbox/chalko/RuperSet.java
Thu Feb 26 01:16:10 2004
@@ -18,7 +18,10 @@
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
+import java.util.Iterator;
 import java.util.List;
+
+import org.apache.ruper.ResourceUpdater;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.DirectoryScanner;
 import org.apache.tools.ant.FileScanner;
@@ -46,8 +49,8 @@
 	 * @param resource
 	 * @return Resource
 	 */
-	public Resource createResource() {
-		Resource resource = new Resource();
+	public ResourceElement createResource() {
+		ResourceElement resource = new ResourceElement();
 		resourceList.add(resource);
 		return resource;
 	}
@@ -69,9 +72,39 @@
 	 * @return
 	 */
 	FileScanner getFileScanner() {
+		
 		final DirectoryScanner scanner = new DirectoryScanner();
 		scanner.setBasedir(getRepoDir());
+		addResources(scanner);
 		return scanner;
+	}
+	/**
+	 * @param scanner
+	 */
+	private void addResources(DirectoryScanner scanner) {
+		for (Iterator i = resourceList.iterator(); i.hasNext();) {
+		ResourceElement r = (ResourceElement) i.next();
+		add(scanner,r);
+	}
+	}
+	/**
+	 * @param scanner
+	 * @param r
+	 */
+	private void add(DirectoryScanner scanner, ResourceElement r) {
+		log("Looking for "+r,Project.MSG_DEBUG);
+		ResourceUpdater ru = new ResourceUpdater(); 
+		
+		
+		
+		
+	}
+	/**
+	 * 
+	 */
+	private void findResources() {
+		// TODO Auto-generated method stub
+		
 	}
 	/**
 	 * @return

Mime
View raw message