public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] eclipse should be built using 1.4
@ 2008-02-19 22:18 Federico Fissore
  2008-02-21 12:24 ` Vlastimil Babka
  0 siblings, 1 reply; 2+ messages in thread
From: Federico Fissore @ 2008-02-19 22:18 UTC (permalink / raw
  To: Gentoo Java

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

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 : federico@jabber.fsfe.org
---------+-----------------------------------------------------
     []   : "The best thing is when you mix free beer and free
   [][][] | speech 'cause then you get some really free speech"
     ||   :                                            Dick Wall

[-- Attachment #2: eclipse-sdk-3.3.1.1.ebuild.patch --]
[-- Type: text/x-patch, Size: 769 bytes --]

--- /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 {} \;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-java] eclipse should be built using 1.4
  2008-02-19 22:18 [gentoo-java] eclipse should be built using 1.4 Federico Fissore
@ 2008-02-21 12:24 ` Vlastimil Babka
  0 siblings, 0 replies; 2+ messages in thread
From: Vlastimil Babka @ 2008-02-21 12:24 UTC (permalink / raw
  To: gentoo-java

Federico Fissore wrote:
> 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

I've reopened the bug, sorry for jakub's misunderstanding :)
The goal is to build 1.4 bytecode. Using 1.4 jdk is just one option, 
hopefully not the only one (I can already hear ricers screaming that we 
force them to have 1.4 jdk in their systems :)
-- 
Vlastimil Babka (Caster)
Gentoo/Java
-- 
gentoo-java@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-21 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 22:18 [gentoo-java] eclipse should be built using 1.4 Federico Fissore
2008-02-21 12:24 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox