krysalis-version/src/java/org/krysalis/version/constraint/collecting/collectors ClasspathConstraintCollector.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/constraint/collecting/collectors
In directory sc8-pr-cvs1:/tmp/cvs-serv18085/src/java/org/krysalis/version/constraint/collecting/collectors

Modified Files:
	ClasspathConstraintCollector.java 
Log Message:
1) Refactored some shared behaviours
2) Worked on constraints colelcting/evaluating/result sets...

Index: ClasspathConstraintCollector.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/constraint/collecting/collectors/ClasspathConstraintCollector.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ClasspathConstraintCollector.java	5 Mar 2003 00:36:43 -0000	1.1
--- ClasspathConstraintCollector.java	5 Mar 2003 19:57:39 -0000	1.2
***************
*** 64,69 ****
--- 64,71 ----
  import org.krysalis.version.exception.VersionException;
  import org.krysalis.version.loading.VersionLoaderLogger;
+ import org.krysalis.version.util.classpath.PathSet;
  import org.krysalis.version.util.classpath.walker.FileListener;
  import org.krysalis.version.util.classpath.walker.PathWalker;
+ import org.krysalis.version.util.debug.DebugUtils;
  import org.krysalis.version.util.note.AnnotationScratchpad;
  
***************
*** 83,88 ****
      
      /**
!     * Construct a VersionFinder class (a ClasspathSearcher specifialized for
!     * Manifest)
      */
      public ClasspathConstraintCollector() {
--- 85,89 ----
      
      /**
!     * Construct a ClasspathConstraintCollector class
      */
      public ClasspathConstraintCollector() {
***************
*** 91,94 ****
--- 92,103 ----
      }
  
+     /**
+     * Construct a ClasspathConstraintCollector class
+     */
+     public ClasspathConstraintCollector(PathSet pathSet) {
+         m_searcher = new PathWalker(this, null, "constraints.txt", pathSet);
+         m_loader = new ConstraintTextLoader();
+     }
+ 
      public void collectInto(ConstraintSetCollection collection)
          throws VersionException {
***************
*** 126,130 ****
  
      public static void main(String args[]) throws Exception {
!         (new ClasspathConstraintCollector()).collect().dump(System.out);
      }
  }
--- 135,139 ----
  
      public static void main(String args[]) throws Exception {
!         DebugUtils.dump((new ClasspathConstraintCollector()).collect());
      }
  }




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
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.