diff --git a/maven-mboot2/src/main/java/compile/JavacCompiler.java b/maven-mboot2/src/main/java/compile/JavacCompiler.java index 748b94dfb0..2a1d146d53 100644 --- a/maven-mboot2/src/main/java/compile/JavacCompiler.java +++ b/maven-mboot2/src/main/java/compile/JavacCompiler.java @@ -69,6 +69,11 @@ public class JavacCompiler args.add( getClasspathString( config.getClasspathEntries() ) ); + if ( config.isDebug() ) + { + args.add( "-g" ); + } + Iterator it = compilerOptions.entrySet().iterator(); while ( it.hasNext() ) @@ -184,4 +189,4 @@ public class JavacCompiler { return "Sun Javac Compiler"; } -} \ No newline at end of file +}