Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Using different JDKs for Building my Application with ANT
Using different JDKs for Building my Application with ANT [message #604365] Mon, 25 January 2010 14:45 Go to next message
TW  is currently offline TW Friend
Messages: 62
Registered: November 2009
Member
Hi,

I have some problems with the headless build of my application. At the moment I am building my application with some ant scripts and everything works well.

I would like to launch my application in German. Because of this I downloaded some babel language plug-ins and added some properties.

When I run the ant-scripts with the German babel plug-ins there are some problems and the application is in English and not in German.

I analyzed the problem and recognized that the jarsigner causes these problems.

In my build.properties I have the following code:
Quote:
> signJars=true
> sign.alias=abc
> sign.keystore=${buildDirectory}/builder/.keystore
> sign.storepass=ABCABC


The Jarsigner signs my own plug-ins and features correctly but overrides the Information in the Manifest.mf file of the language plug-ins.

I found out, that this bug is fixed with JDK 1.6.x.
Unfortunately I have to use JDK 1.5.x to build my application.

Is there any possibility to build my application with JDK 1.5. but sign the jars with JDK 1.6 ?
Re: Using different JDKs for Building my Application with ANT [message #604395 is a reply to message #604365] Wed, 27 January 2010 09:36 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 199
Registered: July 2009
Senior Member
You could sign the jars "by hand" when you use a customAssembly.xml
(this is from the thread "Headless signing just our JARs" by Ben Vitale
on this group):

<target name="post.gather.bin.parts">
<signjar alias="arenae.developer.key"
keystore="my.development.keystore"
storepass="pass" keypass="pass"
preservelastmodified="true" lazy="true" >
<path>
<fileset dir="${buildDirectory}/buildRepo/plugins">
<include name="**/ch.arenae.*.jar"/>
</fileset>
<fileset dir="${buildDirectory}/buildRepo/features"
includes="**/ch.arenae.*.jar" />
</path>
</signjar>
</target>

In this way you can control which jars are signed. Usually you don't
want to re-sign signed jars from eclipse.org.

Regards,
Peter

TW schrieb:
> Hi,
>
> I have some problems with the headless build of my application. At the
> moment I am building my application with some ant scripts and everything
> works well.
>
> I would like to launch my application in German. Because of this I
> downloaded some babel language plug-ins and added some properties.
> When I run the ant-scripts with the German babel plug-ins there are some
> problems and the application is in English and not in German.
> I analyzed the problem and recognized that the jarsigner causes these
> problems.
>
> In my build.properties I have the following code:
> Quote:
>> signJars=true
>> sign.alias=abc
>> sign.keystore=${buildDirectory}/builder/.keystore
>> sign.storepass=ABCABC
>
>
> The Jarsigner signs my own plug-ins and features correctly but overrides
> the Information in the Manifest.mf file of the language plug-ins.
>
> I found out, that this bug is fixed with JDK 1.6.x. Unfortunately I have
> to use JDK 1.5.x to build my application.
> Is there any possibility to build my application with JDK 1.5. but sign
> the jars with JDK 1.6 ?
>
Previous Topic:Using different JDKs for Building my Application with ANT
Next Topic:PDE Build produces a buildRepo with folder artifacts
Goto Forum:
  


Current Time: Wed Nov 26 04:27:03 GMT 2014

Powered by FUDForum. Page generated in 0.02062 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software