You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by ji...@codehaus.org on 2005/01/11 03:42:28 UTC
[jira] Updated: (MNG-104) m2 should compile java code with debug info by default
The following issue has been updated:
Updater: Mauro Botelho (mailto:codehaus@e-botelho.com)
Date: Mon, 10 Jan 2005 9:42 PM
Changes:
Attachment changed to testcompilermojo.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/MNG-104?page=history
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MNG-104
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MNG-104
Summary: m2 should compile java code with debug info by default
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: m2
Assignee:
Reporter: Eugene Kuleshov
Created: Tue, 4 Jan 2005 11:40 AM
Updated: Mon, 10 Jan 2005 9:42 PM
Description:
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++ )
{
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira