eclipse should be built using 1.4

Federico Fissore <[email protected]> Tue, 19 Feb 2008 23:18:12 +0100
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
hello all

I'm just trying the latest 3.3.1.1 and I've found an issue

Since I'm working on a 1.4 project and since all the plugins are built 
with 1.5, when I run my junit tests I get an UnsupportedClassVersionError

I'm experimenting a patched version of the ebuild that SHOULD leave 
junit.runtime plugin untouched, but it doesn't work: my class files are 
still compiled with target 1.5 (I get a 49 when running "file 
RemoteTestRunner.class", a class into 
org.eclipse.jdt.junit.runtime.*.jar). You find the patch attached

I'll be glad to get some feedback on it

Thank you all

ps: at the beginning this email was a bugzilla entry, but jakub was a 
little touchy [0] at that time. btw I love that guy: it does a great job

[0] http://bugs.gentoo.org/show_bug.cgi?id=210759
-- 
: Federico Fissore
:   Blog : http://www.fissore.org
: Jabber : [email protected]
---------+-----------------------------------------------------
     []   : "The best thing is when you mix free beer and free
   [][][] | speech 'cause then you get some really free speech"
     ||   :                                            Dick Wall
eclipse-sdk-3.3.1.1.ebuild.patch (text/x-patch, 769 B)
--- /usr/portage/dev-util/eclipse-sdk/eclipse-sdk-3.3.1.1.ebuild	2008-02-06 21:05:57.000000000 +0100
+++ eclipse-sdk-3.3.1.1.ebuild	2008-02-19 22:50:31.000000000 +0100
@@ -87,7 +87,8 @@
 	remove-bundled-stuff
 
 	# No warnings / Java 5 / all output should be directed to stdout
-	find "${S}" -type f -name '*.xml' -exec \
+#	find "${S}" -type f -name '*.xml' -exec \
+	find "${S}" -type f -name '*.xml' -not \( -wholename './plugins/org.eclipse.jdt.junit.runtime/build.xml' \) -exec \
 		sed -r -e "s:(-encoding ISO-8859-1):\1 -nowarn:g" -e "s:(\"compilerArg\" value=\"):\1-nowarn :g" \
 		-e "s:(<property name=\"javacSource\" value=)\".*\":\1\"1.5\":g" \
 		-e "s:(<property name=\"javacTarget\" value=)\".*\":\1\"1.5\":g" -e "s:output=\".*(txt|log).*\"::g" -i {} \;