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-connectors/jk/jkant/java/org/apache/jk/ant/compilers MsvcCompiler.java
Date Fri, 03 May 2002 05:24:17 GMT
larryi      02/05/02 22:24:17

  Modified:    jk/jkant/java/org/apache/jk/ant/compilers MsvcCompiler.java
  Log:
  Add quotes around include files, if not already present, in case path includes
  spaces.
  
  Revision  Changes    Path
  1.5       +8 -1      jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/MsvcCompiler.java
  
  Index: MsvcCompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/MsvcCompiler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MsvcCompiler.java	4 Dec 2001 01:43:52 -0000	1.4
  +++ MsvcCompiler.java	3 May 2002 05:24:17 -0000	1.5
  @@ -156,7 +156,14 @@
               ccpw.println(localCflags);
               for( int i=0; i<includeList.length; i++ ) {
                   ccpw.print("-I");
  -                ccpw.println(includeList[i] );
  +                if (!includeList[i].startsWith("\"")) {
  +                    ccpw.print("\"");
  +                }
  +                ccpw.print(includeList[i] );
  +                if (!includeList[i].endsWith("\"")) {
  +                    ccpw.print("\"");
  +                }
  +                ccpw.println();
               }
   
               if( defines.size() > 0 ) {
  
  
  

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