mirror of https://github.com/apache/maven.git
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:
parent
3809f57da9
commit
3f5d831fc6
|
@ -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(); )
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue