make debug compiling the default

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@164740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-26 04:31:47 +00:00
parent 3809f57da9
commit 3f5d831fc6
2 changed files with 9 additions and 8 deletions

View File

@ -887,15 +887,16 @@ public class MBoot
compilerConfiguration.setSourceLocations( Arrays.asList( sourceDirectories ) ); compilerConfiguration.setSourceLocations( Arrays.asList( sourceDirectories ) );
/* Compile with debugging info */ /* Compile with debugging info */
String debugAsString = System.getProperty( "maven.compiler.debug" ); String debugAsString = System.getProperty( "maven.compiler.debug", "true" );
if ( debugAsString != null ) if ( !Boolean.valueOf( debugAsString ).booleanValue() )
{ {
if ( Boolean.valueOf( debugAsString ).booleanValue() ) compilerConfiguration.setDebug( false );
}
else
{ {
compilerConfiguration.setDebug( true ); compilerConfiguration.setDebug( true );
} }
}
List messages = compiler.compile( compilerConfiguration ); List messages = compiler.compile( compilerConfiguration );
@ -925,7 +926,7 @@ public class MBoot
return; return;
} }
List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**", false ); List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**,**/.svn/**", false );
for ( Iterator i = files.iterator(); i.hasNext(); ) for ( Iterator i = files.iterator(); i.hasNext(); )
{ {

View File

@ -62,7 +62,7 @@ public class CompilerMojo
private Compiler compiler = new JavacCompiler(); private Compiler compiler = new JavacCompiler();
// TODO: use boolean when supported // TODO: use boolean when supported
private String debug = Boolean.FALSE.toString(); private String debug = Boolean.TRUE.toString();
private List compileSourceRoots; private List compileSourceRoots;