Skip to main content



      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 08:51 Go to next message
Eclipse UserFriend
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 16:07 Go to previous messageGo to next message
Eclipse UserFriend
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 08:10 Go to previous message
Eclipse UserFriend
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 16:07 Go to previous message
Eclipse UserFriend
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 08:10 Go to previous message
Eclipse UserFriend
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: Sun May 11 18:11:44 EDT 2025

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

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

Back to the top