This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] build.xml tweak to select-java targets


The attached patch tweaks the -maybe-select-java* targets to have both
"if" and "unless" attributes.  This ensures that only one of them is
enabled at a time, so the preprocessing only happens once.

Currently (without this patch), if building with JDK 1.7, the
preprocessor first edits all the files to set up for JAVA6, then again
for JAVA7.  If building with JDK 1.8, it preprocesses three times, for
JAVA6, then JAVA7, then JAVA8.

The extra steps are harmless, in that they cancel each other out, but
they affect file modification times, making javac recompile files that
it didn't really need to.

--
Jamison Hope
The PTR Group
www.theptrgroup.com


Attachment: build-xml-java-selection.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]