ruper2/src/java/core/org/krysalis/ruper/api/tool ClasspathUpdater.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/api/tool
In directory sc8-pr-cvs1:/tmp/cvs-serv6833/src/java/core/org/krysalis/ruper/api/tool

Modified Files:
	ClasspathUpdater.java 
Log Message:
Moved the stdout SimpleLogger to the tools, to not mess w/ Ant stuff.

Index: ClasspathUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/api/tool/ClasspathUpdater.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ClasspathUpdater.java	8 Sep 2003 23:21:40 -0000	1.2
--- ClasspathUpdater.java	22 Sep 2003 17:09:42 -0000	1.3
***************
*** 4,10 ****
--- 4,14 ----
  package org.krysalis.ruper.api.tool;
  
+ import java.util.ArrayList;
+ import java.util.Iterator;
+ 
  import org.krysalis.ruper.ResourceUpdater;
  import org.krysalis.ruper.RuperException;
  import org.krysalis.ruper.impl.ResourceUpdaterIdentifier;
+ import org.krysalis.version.util.classpath.PathPart;
  import org.krysalis.version.util.classpath.PathSet;
  
***************
*** 36,48 ****
  	}
  
! 	public void updateClasspathInPlace(final String classpathStr) {
  		PathSet classpath = new PathSet(/* getIdentifier().getId() */
  		":TODO:", classpathStr);
  
  
! 		//:TODO:
! 
  
  	}
- 
  }
--- 40,60 ----
  	}
  
! 	public void updateClasspathFiles(final String classpathStr)
! 		throws RuperException {
  		PathSet classpath = new PathSet(/* getIdentifier().getId() */
  		":TODO:", classpathStr);
+ 		updateClasspathFiles(classpath);
+ 	}
  
+ 	public void updateClasspathFiles(final PathSet classpath)
+ 		throws RuperException {
+ 		ArrayList files = new ArrayList();
  
! 		for (Iterator i = classpath.iterator(); i.hasNext();) {
! 			PathPart part = (PathPart) i.next();
! 			files.add(part.getPart());
! 		}
  
+ 		updateFiles(files);
  	}
  }




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.