krysalis-version/src/java/org/krysalis/version/util/classpath/walker PathWalker.java,1.2,1.3

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

Modified Files:
	PathWalker.java 
Log Message:
Try 2: Allow Eclipse plug-in to set the Classpath

Index: PathWalker.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/util/classpath/walker/PathWalker.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PathWalker.java	9 Feb 2003 02:44:14 -0000	1.2
--- PathWalker.java	18 Feb 2003 22:17:06 -0000	1.3
***************
*** 81,84 ****
--- 81,85 ----
  
      private PathWalkerContext m_context = null;
+     private PathSet m_pathSet = null;
  
      private ArrayList m_classListeners = null;
***************
*** 106,109 ****
--- 107,130 ----
      }
  
+    
+     public PathWalker(
+         Object listener,
+         Object context,
+         String classEnding,
+         String classPart1,
+         String classPart2,
+         PathSet pathSet) {
+ 
+         m_classEnding = classEnding;
+         m_classPart1 = classPart1;
+         m_classPart2 = classPart2;
+         
+         m_pathSet = pathSet;
+ 
+         initialize();
+ 
+         addListener(listener, context);
+     }
+ 
      public PathWalker(ManifestListener listener, Object context) {
  
***************
*** 176,181 ****
          addListener(this, context);
  
!         searchClassPaths();
!         searchClassLoaders();
  
          return context;
--- 197,206 ----
          addListener(this, context);
  
!         if (null != m_pathSet)
!             searchPath(m_pathSet);
!         else {
!             searchClassPaths();
!             searchClassLoaders();
!         }
  
          return context;
***************
*** 186,192 ****
          PathWalkerContext context = new PathWalkerContext();
          addListener(this, context);
!         
          searchPath(pathSet);
!         
          return context;
      }
--- 211,217 ----
          PathWalkerContext context = new PathWalkerContext();
          addListener(this, context);
! 
          searchPath(pathSet);
! 
          return context;
      }
***************
*** 470,472 ****
--- 495,513 ----
          }
      }
+     /**
+      * Returns the pathSet.
+      * @return PathSet
+      */
+     public PathSet getPathSet() {
+         return m_pathSet;
+     }
+ 
+     /**
+      * Sets the pathSet.
+      * @param pathSet The pathSet to set
+      */
+     public void setPathSet(PathSet pathSet) {
+         m_pathSet = pathSet;
+     }
+ 
  }




-------------------------------------------------------
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.