tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util JavaGeneratorTool.java
Date Fri, 08 Feb 2002 13:00:18 GMT
larryi      02/02/08 05:00:18

  Modified:    src/share/org/apache/tomcat/util JavaGeneratorTool.java
  Log:
  Fix a couple of hardcoded '/' separators.
  
  Revision  Changes    Path
  1.7       +2 -2      jakarta-tomcat/src/share/org/apache/tomcat/util/JavaGeneratorTool.java
  
  Index: JavaGeneratorTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/JavaGeneratorTool.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JavaGeneratorTool.java	9 Jan 2002 06:29:07 -0000	1.6
  +++ JavaGeneratorTool.java	8 Feb 2002 13:00:18 -0000	1.7
  @@ -146,7 +146,7 @@
        *          the mapFile or the coresponding class file is not found
        */
       public static int readVersion(String classDir, String baseClassName) {
  -	File mapFile=new File( classDir + "/" + baseClassName + ".ver");
  +	File mapFile=new File( classDir + File.separator + baseClassName + ".ver");
   	if( ! mapFile.exists() )
   	    return -1;
   	
  @@ -183,7 +183,7 @@
       public static void writeVersion(String classDir, String baseClassName,
   				    int version)
       {
  -	File mapFile=new File( 	classDir + "/" + baseClassName + ".ver");
  +	File mapFile=new File( 	classDir + File.separator + baseClassName + ".ver");
   
   	try {
   	    File dir=new File(mapFile.getParent());
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message