|
|
a33882 |
### Eclipse Workspace Patch 1.0
|
|
|
a33882 |
#P org.eclipse.jdt.core
|
|
|
a33882 |
Index: batch/org/eclipse/jdt/internal/compiler/batch/Main.java
|
|
|
a33882 |
===================================================================
|
|
|
a33882 |
RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java,v
|
|
|
a33882 |
retrieving revision 1.327
|
|
|
a33882 |
diff -u -r1.327 Main.java
|
|
|
a33882 |
--- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 21 Apr 2008 15:00:59 -0000 1.327
|
|
|
a33882 |
+++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 20 Nov 2008 19:26:57 -0000
|
|
|
a33882 |
@@ -2609,6 +2609,29 @@
|
|
|
a33882 |
this.options.put(CompilerOptions.OPTION_Process_Annotations, CompilerOptions.ENABLED);
|
|
|
a33882 |
}
|
|
|
a33882 |
|
|
|
a33882 |
+ {
|
|
|
a33882 |
+ // If we're building an RPM, force full debugging info to
|
|
|
a33882 |
+ // be generated, no matter what options have been passed
|
|
|
a33882 |
+ // by Ant. This is something of a kludge, but it is far
|
|
|
a33882 |
+ // better than the alternative, which is having class
|
|
|
a33882 |
+ // files with debug info mysteriously missing.
|
|
|
a33882 |
+
|
|
|
a33882 |
+ String RpmPackageName = System.getenv("RPM_PACKAGE_NAME");
|
|
|
a33882 |
+ String RpmArch = System.getenv("RPM_ARCH");
|
|
|
a33882 |
+ String RpmBuildRoot = System.getenv("RPM_BUILD_ROOT");
|
|
|
a33882 |
+ if (RpmPackageName != null && RpmArch != null && RpmBuildRoot != null) {
|
|
|
a33882 |
+ this.options.put(
|
|
|
a33882 |
+ CompilerOptions.OPTION_LocalVariableAttribute,
|
|
|
a33882 |
+ CompilerOptions.GENERATE);
|
|
|
a33882 |
+ this.options.put(
|
|
|
a33882 |
+ CompilerOptions.OPTION_LineNumberAttribute,
|
|
|
a33882 |
+ CompilerOptions.GENERATE);
|
|
|
a33882 |
+ this.options.put(
|
|
|
a33882 |
+ CompilerOptions.OPTION_SourceFileAttribute,
|
|
|
a33882 |
+ CompilerOptions.GENERATE);
|
|
|
a33882 |
+ }
|
|
|
a33882 |
+ }
|
|
|
a33882 |
+
|
|
|
a33882 |
this.logger.logCommandLineArguments(newCommandLineArgs);
|
|
|
a33882 |
this.logger.logOptions(this.options);
|
|
|
a33882 |
|