krysalis-version/src/java/org/krysalis/version/constraint/loading/loaders ConstraintTextLoader.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/loading/loaders
In directory sc8-pr-cvs1:/tmp/cvs-serv11553/src/java/org/krysalis/version/constraint/loading/loaders

Modified Files:
	ConstraintTextLoader.java 
Log Message:
Docs

Index: ConstraintTextLoader.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/constraint/loading/loaders/ConstraintTextLoader.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConstraintTextLoader.java	16 Feb 2003 00:08:11 -0000	1.1
--- ConstraintTextLoader.java	17 Feb 2003 06:27:26 -0000	1.2
***************
*** 61,64 ****
--- 61,65 ----
  import java.io.LineNumberReader;
  import java.io.Reader;
+ import java.util.StringTokenizer;
  
  import org.krysalis.version.constraint.Constraint;
***************
*** 102,110 ****
                  line = line.substring(0, hashPos);
  
!             ConstraintLoaderLogger.g_log.debug(line);
!             
!             Constraint c = ConstraintTextFactory.getConstraintForText(line);
!             
!             constraints.add(c);
          }
      }
--- 103,116 ----
                  line = line.substring(0, hashPos);
  
!             StringTokenizer tokens = new StringTokenizer(line, "\t\n ");
! 
!             if (tokens.countTokens() > 0) {
! 
!                 ConstraintLoaderLogger.g_log.debug(line);
! 
!                 Constraint c = ConstraintTextFactory.getConstraintForText(line);
! 
!                 constraints.add(c);
!             }
          }
      }
***************
*** 117,121 ****
          ConstraintTextLoader loader = new ConstraintTextLoader();
          ConstraintSet set = loader.load(new FileReader(file));
!         
          set.dump(System.out);
      }
--- 123,127 ----
          ConstraintTextLoader loader = new ConstraintTextLoader();
          ConstraintSet set = loader.load(new FileReader(file));
! 
          set.dump(System.out);
      }




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