costin      02/05/22 16:34:53

  Modified:    jk/jkant/java/org/apache/jk/ant/compilers CcCompiler.java
  Log:
  Hpux doesn't support -W.
  ( or at least it has a different meaning ).
  
  Long term - we should start using <includeset> <defineset> <flagset>
  like in ant-contrib cc tasks, it's much easier to do this in the xml
  file.
  
  Revision  Changes    Path
  1.9       +4 -1      
jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/CcCompiler.java
  
  Index: CcCompiler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/CcCompiler.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CcCompiler.java   12 Jan 2002 05:33:03 -0000      1.8
  +++ CcCompiler.java   22 May 2002 23:34:53 -0000      1.9
  @@ -123,7 +123,10 @@
           }
   
           if( optWgcc ) {
  -         cmd.createArgument().setValue("-W");
  +         if( ! "HP-UX".equalsIgnoreCase( System.getProperty( "os.name" )) ) {
  +                // HP-UX uses -W for some other things
  +                cmd.createArgument().setValue("-W");
  +            }
   
               if( cc!= null && cc.indexOf( "gcc" ) >= 0 ) {
                   //cmd.createArgument().setValue("-Wall");
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to