tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant Project.java
Date Mon, 27 Dec 1999 19:42:00 GMT
rubys       99/12/27 11:42:00

  Modified:    ant/src/main/org/apache/tools/ant Project.java
  Log:
  Permit the use of NT drive specifiers in Javac classpath
  Submitted by: Conor MacNeill <conor@m64.com>
  
  Revision  Changes    Path
  1.22      +9 -0      jakarta-tools/ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Project.java	1999/12/13 23:11:51	1.21
  +++ Project.java	1999/12/27 19:42:00	1.22
  @@ -448,6 +448,15 @@
           for (char c = sci.first(); c != CharacterIterator.DONE; c = sci.next()) {
               tmp = String.valueOf(c);
               
  +            if (tmp.equals(":")) {
  +		// could be a DOS drive or a Unix path separator...
  +		// if followed by a backslash, assume it is a drive
  +		c = sci.next();
  +		tmp = String.valueOf(c);
  +		bs.append( tmp.equals("\\") ? ":" : path );
  +		if (c == CharacterIterator.DONE) break;
  +	    }
  +
               if (tmp.equals(":") || tmp.equals(";"))
                   tmp = path;
               else if (tmp.equals("/") || tmp.equals ("\\"))
  
  
  

Mime
View raw message