Author: brett Date: Mon Apr 25 21:31:47 2005 New Revision: 164740 URL: http://svn.apache.org/viewcvs?rev=164740&view=rev Log: make debug compiling the default
Modified: maven/components/trunk/maven-mboot2/src/main/java/MBoot.java maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java Modified: maven/components/trunk/maven-mboot2/src/main/java/MBoot.java URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-mboot2/src/main/java/MBoot.java?rev=164740&r1=164739&r2=164740&view=diff ============================================================================== --- maven/components/trunk/maven-mboot2/src/main/java/MBoot.java (original) +++ maven/components/trunk/maven-mboot2/src/main/java/MBoot.java Mon Apr 25 21:31:47 2005 @@ -887,14 +887,15 @@ 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 @@ return; } - List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**", false ); + List files = FileUtils.getFiles( sd, "**/**", "**/CVS/**,**/.svn/**", false ); for ( Iterator i = files.iterator(); i.hasNext(); ) { Modified: maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java?rev=164740&r1=164739&r2=164740&view=diff ============================================================================== --- maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java (original) +++ maven/components/trunk/maven-plugins/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/CompilerMojo.java Mon Apr 25 21:31:47 2005 @@ -62,7 +62,7 @@ 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; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]