You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/04/26 05:02:46 UTC

[jira] Closed: (MNG-104) m2 should compile java code with debug info by default

     [ http://jira.codehaus.org/browse/MNG-104?page=all ]
     
Brett Porter closed MNG-104:
----------------------------

    Resolution: Fixed

this was already supported, but it is now the default

> m2 should compile java code with debug info by default
> ------------------------------------------------------
>
>          Key: MNG-104
>          URL: http://jira.codehaus.org/browse/MNG-104
>      Project: m2
>         Type: Bug
>     Reporter: Eugene Kuleshov
>     Assignee: Brett Porter
>      Fix For: 2.0-alpha-2
>  Attachments: JavacCompiler.patch, build.patch, testcompilermojo.patch
>
>
> Currently it is not possible to debug any snapshots that has been build with m2 because there is no debug information. Please add -g option to javac call and optionally make possible to turn debug info off.
> Here is the patch for m2 bootstrap:
> Index: JavacCompiler.java
> ===================================================================
> RCS file: /home/cvspublic/maven-components/maven-mboot2/src/main/java/compile/JavacCompiler.java,v
> retrieving revision 1.1
> diff -u -r1.1 JavacCompiler.java
> --- JavacCompiler.java	5 Dec 2004 04:12:24 -0000	1.1
> +++ JavacCompiler.java	4 Jan 2005 16:28:53 -0000
> @@ -44,19 +44,21 @@
>  
>          String[] sources = getSourceFiles( sourceDirectories );
>  
> -        int j = 5;
> +        int j = 6;
>  
>          String[] args = new String[sources.length + j];
>  
> -        args[0] = "-d";
> +        args[0] = "-g";
>  
> -        args[1] = destinationDir.getAbsolutePath();
> +        args[1] = "-d";
>  
> -        args[2] = "-nowarn";
> +        args[2] = destinationDir.getAbsolutePath();
>  
> -        args[3] = "-classpath";
> +        args[3] = "-nowarn";
>  
> -        args[4] = getClasspathString( classpathElements );
> +        args[4] = "-classpath";
> +
> +        args[5] = getClasspathString( classpathElements );
>  
>          for ( int i = 0; i < sources.length; i++ )
>          {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org