diff --git a/maven-mboot2/src/main/java/MBoot.java b/maven-mboot2/src/main/java/MBoot.java index ab2174ae4a..05f578f53b 100644 --- a/maven-mboot2/src/main/java/MBoot.java +++ b/maven-mboot2/src/main/java/MBoot.java @@ -887,14 +887,15 @@ public class MBoot compilerConfiguration.setSourceLocations( Arrays.asList( sourceDirectories ) ); /* 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( true ); - } + compilerConfiguration.setDebug( false ); + } + else + { + compilerConfiguration.setDebug( true ); } List messages = compiler.compile( compilerConfiguration ); @@ -925,7 +926,7 @@ public class MBoot return; } - List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**", false ); + List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**,**/.svn/**", false ); for ( Iterator i = files.iterator(); i.hasNext(); ) { diff --git a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java b/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java index 9a6739aa94..311cf7d5a4 100644 --- a/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java +++ b/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java @@ -62,7 +62,7 @@ public class CompilerMojo private Compiler compiler = new JavacCompiler(); // TODO: use boolean when supported - private String debug = Boolean.FALSE.toString(); + private String debug = Boolean.TRUE.toString(); private List compileSourceRoots;