ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers DefaultCompilerAdapter.java
Date Wed, 28 Mar 2001 08:34:40 GMT
nico        01/03/28 00:34:40

  Modified:    src/main/org/apache/tools/ant/taskdefs/compilers
                        DefaultCompilerAdapter.java
  Log:
  Bug #1011
  
  If debug is set to false pass -g:none to javac if JDK 1.2 or JDK 1.3 to get really no debug
information at all.
  
  Submitted by Peter Janes <pjanes@liberate.com>
  
  Revision  Changes    Path
  1.4       +3 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
  
  Index: DefaultCompilerAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultCompilerAdapter.java	2001/03/09 16:07:56	1.3
  +++ DefaultCompilerAdapter.java	2001/03/28 08:34:38	1.4
  @@ -243,6 +243,9 @@
           }
           if (debug) {
               cmd.createArgument().setValue("-g");
  +        } else if (Project.getJavaVersion() != Project.JAVA_1_0 &&
  +                   Project.getJavaVersion() != Project.JAVA_1_1) {
  +            cmd.createArgument().setValue("-g:none");
           }
           if (optimize) {
               cmd.createArgument().setValue("-O");
  
  
  

Mime
View raw message