Re: [fedora-java] Eclipse plugin building script
by Mat Booth
Nifty script.
> A drawback is that we're calling copy-platform multiple times
> for multiple-feature projects like Mylyn and the calls after the first
> one all say "file exists" for the mkdir and ln -s calls.
It should be fairly easy to change the copy-platform script to only
generate the necessary directories and links if they don't already
exist, shouldn't it?
--
Mat Booth
www.matbooth.co.uk
15 years, 5 months
Eclipse plugin building script
by Andrew Overholt
Hi,
Someone on the FPC (Fedora Packaging Committee) voted -1 to the Eclipse
plugin packaging guidelines in the recent meeting due to the verbosity of
our PDE Build invocation. While I was annoyed with this at first, I took
the opportunity to write a bash script to wrap our copy-platform and PDE
build calls. I made it so that if there's only one feature in the source
directory, it finds it automatically.
I've attached it so that my horrible bash skills can be laughed at.
Suggestions greatly welcome. I'm going to put it into the eclipse-pde
RPM when it's ready.
I tried it locally with eclipse-quickrex and here's what the diff looks like:
-# See comments in the script to understand this.
-/bin/sh -x %{eclipse_base}/buildscripts/copy-platform SDK %{eclipse_base}
-mkdir home
-
%build
-SDK=$(cd SDK > /dev/null && pwd)
-
-# Eclipse may try to write to the home directory.
-homedir=$(cd home > /dev/null && pwd)
-
-java -cp $SDK/startup.jar \
- -Dosgi.sharedConfiguration.area=%{_libdir}/eclipse/configuration \
- org.eclipse.core.launcher.Main \
- -application org.eclipse.ant.core.antRunner \
- -Dtype=feature \
- -Did=de.babe.eclipse.plugins.QuickREx \
- -DbaseLocation=$SDK \
- -DsourceDirectory=$(pwd) \
- -DbuildDirectory=$(pwd)/build \
- -Dbuilder=%{eclipse_base}/plugins/org.eclipse.pde.build/templates/package-build \
- -f %{eclipse_base}/plugins/org.eclipse.pde.build/scripts/build.xml \
- -vmargs -Duser.home=$homedir
+%{eclipse_base}/plugins/org.eclipse.pde.build/templates/package-build/pdebuild
I've attached the diff for Mylyn (eclipse-mylyn). Both packages build
the same with and without the script (which I have on my path for
testing). A drawback is that we're calling copy-platform multiple times
for multiple-feature projects like Mylyn and the calls after the first
one all say "file exists" for the mkdir and ln -s calls.
The nice thing here is that if we get package-build or something like it
into pde.build upstream, we can just change the script.
I'd really appreciate some feedback.
Andrew
15 years, 6 months
Fedora Java and Jena
by Oliver Ruebenacker
Dear friends,
I saved a project which was running fine on one Fedora 8 machine
with Eclipse to a SVN repository, and when I checked it out on another
Fedora 8 machine via Eclipse, it compiles fine, but when I run it, I
get:
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.8rh)
at com.hp.hpl.jena.iri.IRIFactory.<clinit>(IRIFactory.java:98)
at java.lang.Class.initializeClass(libgcj.so.8rh)
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.<init>(XMLHandler.java:424)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.<init>(RDFXMLParser.java:40)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:83)
at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:76)
at java.lang.Class.newInstance(libgcj.so.8rh)
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:101)
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:86)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:192)
at org.vcell.sybil.models.config.SchemaFileParser.parseFile(SchemaFileParser.java:24)
at org.vcell.sybil.models.config.SchemaFileParser.parseFile(SchemaFileParser.java:17)
at org.vcell.sybil.models.BlackBoard.<init>(BlackBoard.java:28)
at org.vcell.sybil.init.StartSybil.main(StartSybil.java:26)
Caused by: java.lang.IllegalArgumentException: Internal IRI code
error. Did not find CLOSE_SQ in until().
at com.hp.hpl.jena.iri.impl.ComponentPatternParser.untilCloseSq(ComponentPatternParser.java:107)
at com.hp.hpl.jena.iri.impl.ComponentPatternParser.next(ComponentPatternParser.java:120)
at com.hp.hpl.jena.iri.impl.ComponentPatternParser.<init>(ComponentPatternParser.java:67)
at com.hp.hpl.jena.iri.impl.ComponentPattern.<init>(ComponentPattern.java:26)
at com.hp.hpl.jena.iri.impl.SchemeSpecification.setPattern(SchemeSpecification.java:48)
at com.hp.hpl.jena.iri.ViolationCodes$Initialize.<clinit>(ViolationCodes.java:1854)
at java.lang.Class.initializeClass(libgcj.so.8rh)
...14 more
There are no complaints about missing class dependencies.
What can I do? Thanks!
Take care
Oliver
--
Oliver Ruebenacker, Post-Doc Researcher
Center for Cell Analysis and Modelling
http://www.ccam.uchc.edu/
15 years, 6 months
[mike.cloaked@gmail.com: Java security update and Iced Tea]
by Andrew Overholt
----- Forwarded message from Mike <mike.cloaked(a)gmail.com> -----
> From: Mike <mike.cloaked(a)gmail.com>
> To: fedora-list(a)redhat.com
> User-Agent: Loom/3.14 (http://gmane.org/)
> Date: Fri, 7 Mar 2008 18:14:08 +0000 (UTC)
> Subject: Java security update and Iced Tea
>
> Today I received a notification from US-CERT that
> Sun Java Runtime Environment versions JDK and JRE 6 Update 4 and earlier
> have multiple vulnerabilities and Java 1.6.0_05 is available as an update.
>
> Does anybody know if Iced Tea as current in F8 is immune from this problem?
> This is effectively version 1.7.0
>
> --
> fedora-list mailing list
> fedora-list(a)redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
----- End forwarded message -----
15 years, 6 months
eclipse 3.3.2
by Jack Tanner
New Eclipse is out. I couldn't even get through the new feature list, it's
enormous.
http://tinyurl.com/3btmmx
At the same time, I didn't see much that I was dying to have in my development
work. Does this release affect Fedora 9?
15 years, 6 months
Anyone fancy taking over jython?
by Andrew Overholt
Hi,
Does anyone have an interest in owning the jython package? I'm a
horrible owner but thankfully there are only a handful of open bugs. I
think there's actually a new release upstream as well.
Anyone?
Andrew
15 years, 6 months
IcedTea and fontconfig (was: [Fwd: Re: file dependencies and packages and [blocker] bugs])
by Andrew Overholt
-------- Forwarded Message --------
> From: Nicolas Mailhot <nicolas.mailhot(a)laposte.net>
> Reply-To: Development discussions related to Fedora
> <fedora-devel-list(a)redhat.com>
> To: Development discussions related to Fedora
> <fedora-devel-list(a)redhat.com>
> Subject: Re: file dependencies and packages and [blocker] bugs
> Date: Mon, 03 Mar 2008 19:19:20 +0100
>
> BTW I sure hope the icedtea plan involves moving java to fontconfig,
> and not just replacing the crappy font renderer with freetype while
> keeping the crappy font configuration engine intact.
>
> --
> fedora-devel-list mailing list
> fedora-devel-list(a)redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
15 years, 6 months