Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Signing jars built from site.xml?
Signing jars built from site.xml? [message #61084] Tue, 12 May 2009 12:51 Go to next message
michael.sacarny is currently offline michael.sacarnyFriend
Messages: 103
Registered: July 2009
Location: USA
Senior Member
I use site.xml, Site Map, Build All to create an update site. Is there a
way to sign the plugin/feature jars built in this way? I'm looking for the
equivalent of the signing option in Export, for example.

Thanks,
MSacarny
Re: Signing jars built from site.xml? [message #62770 is a reply to message #61084] Fri, 22 May 2009 20:07 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
If you are running this in 3.5, you can sign them after the build using
an ant script like this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="default">
<target name="default">
<p2.process.artifacts repositoryPath="file:/path/to/project">
<sign keystore="keystore"
keypass="keypass"
storepass="storepass"
alias="alias"
unsign="true" />
</p2.process.artifacts>
</target>
</project>

You can run that as ant using the External Tools launch configs. Run it
in the same JRE as the workspace.
repositoryPath is a url to the update site project (when I tried this, I
used repositoryPath="file:${project}" and in the launch config set the
property project=${resource_loc:/site} ).
unsign="true" will strip any existing signatures first.
This task will also update the MD5 sums in the artifacts.xml since they
will change after signing.

-Andrew

msacarny wrote:
> I use site.xml, Site Map, Build All to create an update site. Is there a
> way to sign the plugin/feature jars built in this way? I'm looking for
> the equivalent of the signing option in Export, for example.
>
> Thanks,
> MSacarny
>
Re: Signing jars built from site.xml? [message #63480 is a reply to message #62770] Wed, 27 May 2009 12:10 Go to previous message
michael.sacarny is currently offline michael.sacarnyFriend
Messages: 103
Registered: July 2009
Location: USA
Senior Member
Andrew,
Thank you. I will try this.
Mike
Re: Signing jars built from site.xml? [message #597798 is a reply to message #61084] Fri, 22 May 2009 20:07 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
If you are running this in 3.5, you can sign them after the build using
an ant script like this:

<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="default">
<target name="default">
<p2.process.artifacts repositoryPath="file:/path/to/project">
<sign keystore="keystore"
keypass="keypass"
storepass="storepass"
alias="alias"
unsign="true" />
</p2.process.artifacts>
</target>
</project>

You can run that as ant using the External Tools launch configs. Run it
in the same JRE as the workspace.
repositoryPath is a url to the update site project (when I tried this, I
used repositoryPath="file:${project}" and in the launch config set the
property project=${resource_loc:/site} ).
unsign="true" will strip any existing signatures first.
This task will also update the MD5 sums in the artifacts.xml since they
will change after signing.

-Andrew

msacarny wrote:
> I use site.xml, Site Map, Build All to create an update site. Is there a
> way to sign the plugin/feature jars built in this way? I'm looking for
> the equivalent of the signing option in Export, for example.
>
> Thanks,
> MSacarny
>
Re: Signing jars built from site.xml? [message #597921 is a reply to message #62770] Wed, 27 May 2009 12:10 Go to previous message
michael.sacarny is currently offline michael.sacarnyFriend
Messages: 103
Registered: July 2009
Location: USA
Senior Member
Andrew,
Thank you. I will try this.
Mike
Previous Topic:Parameterized product builds
Next Topic:p2 director can't find binary,org.eclipse.equinox.executable_root
Goto Forum:
  


Current Time: Tue Apr 23 09:59:02 GMT 2024

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

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

Back to the top