ecj javac target/source build.xml rewriting
Roy Wright <[email protected]>
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
Howdy, I'm looking at http://bugs.gentoo.org/show_bug.cgi?id=196080 Basically what is happening is that these lines in build.xml are not being rewritten with the correct version: <property name="javac.target" value="1.2"/> <property name="javac.source" value="1.2"/> Ideally these should be: <property name="javac.target" value="$JAVA_PKG_WANT_TARGET"/> <property name="javac.source" value="$JAVA_PKG_WANT_SOURCE"/> While [email protected] has created a patch to bump these values to 1.3, this just postpones the real problem. Digging into java-ant-2.eclass I think that java-ant_bsfix_files() is the method that is modifying build.xml. The problem seems to be that the xml-rewrite*.py scripts are designed to only match element name (e) plus attribute (a) to change new value (v): <e a=v> I don't see how to specify element name (eM) plus an attribute (aM) with value (vM) to match plus attribute (a) to change to new value (v): <eM aM=vM a=v> Does anyone have any ideas of how this could be done? TIA, Roy -- [email protected] mailing list