maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject cvs commit: maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin CompilerMojo.java
Date Sun, 09 Jan 2005 22:38:57 GMT
carlos      2005/01/09 14:38:57

  Modified:    maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin
                        CompilerMojo.java
  Log:
  Added debug option to compiler configuration
  
  Revision  Changes    Path
  1.11      +6 -4      maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java
  
  Index: CompilerMojo.java
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CompilerMojo.java	9 Jan 2005 00:21:12 -0000	1.10
  +++ CompilerMojo.java	9 Jan 2005 22:38:57 -0000	1.11
  @@ -94,10 +94,12 @@
           /* Compile with debugging info */
           String debugAsString = (String) request.getParameter( "debug" );
   
  -        if (debugAsString != null)
  +        if ( debugAsString != null )
           {
  -            if (Boolean.valueOf(debugAsString).booleanValue())
  -                compilerConfiguration.addCompilerOption("-g", null);
  +            if ( Boolean.valueOf( debugAsString ).booleanValue() )
  +            {
  +                compilerConfiguration.setDebug( true );
  +            }
           }
   
           List messages = compiler.compile(compilerConfiguration);
  
  
  

Mime
View raw message