Signing jars built from site.xml? [message #61084] |
Tue, 12 May 2009 08:51  |
Eclipse User |
|
|
|
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 #597798 is a reply to message #61084] |
Fri, 22 May 2009 16:07  |
Eclipse User |
|
|
|
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03390 seconds