SOURCES: ant-gcjtask.patch (NEW) - fixes javac task using gcj: now it uses ...

pawelz pawelz at pld-linux.org
Wed Jan 28 10:40:09 CET 2009


Author: pawelz                       Date: Wed Jan 28 09:40:08 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixes javac task using gcj: now it uses "source" attribute

---- Files affected:
SOURCES:
   ant-gcjtask.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/ant-gcjtask.patch
diff -u /dev/null SOURCES/ant-gcjtask.patch:1.1
--- /dev/null	Wed Jan 28 10:40:09 2009
+++ SOURCES/ant-gcjtask.patch	Wed Jan 28 10:40:02 2009
@@ -0,0 +1,14 @@
+--- apache-ant-1.7.1/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java~	2008-06-27 07:05:16.000000000 +0200
++++ apache-ant-1.7.1/src/main/org/apache/tools/ant/taskdefs/compilers/Gcj.java	2009-01-28 09:43:14.000000000 +0100
+@@ -112,6 +112,11 @@
+             cmd.createArgument().setValue("-C");
+         }
+ 
++        if (attributes.getSource() != null) {
++            String source = attributes.getSource();
++            cmd.createArgument().setValue("-fsource=" + source);
++        }
++
+         addCurrentCompilerArgs(cmd);
+ 
+         return cmd;
================================================================


More information about the pld-cvs-commit mailing list