Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE (batch) Build and P2 ... where to condition or sign?
PDE (batch) Build and P2 ... where to condition or sign? [message #524224] Wed, 31 March 2010 08:43 Go to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
I've recently started to convert some scripts to use p2.gathering=true.

I've succeeded in getting the buildRepo created and the traditional zip
files created .... but, its unclear to me where to do the pack200
conditioning (and, maybe signing). By its name, sounds like it might be
preProcessRepos or postProcessRepos step, but thought I'd ask how others
might do it. I'd like to make sure its done once (before zips are
created, for example). Even if, say, its postProcessRepos, and others do
them "in place" in buildRepo, in our builds, we actually run more than
one build (more than one customTargets.xml file) and they all go into
buildRepo ... so is there some trick to prevent re-processing files
there that are already condidtioned, or signed, or pack200'd?

Thanks,
Re: PDE (batch) Build and P2 ... where to condition or sign? [message #525023 is a reply to message #524224] Mon, 05 April 2010 12:55 Go to previous messageGo to next message
michael.sacarny is currently offline michael.sacarnyFriend
Messages: 103
Registered: July 2009
Location: USA
Senior Member
We sign as follows in postAssemble:

<target name="postAssemble">
<signjar
alias="${sign.alias}" keystore="${sign.keystore}"
storepass="${sign.storepass}"
keypass="${sign.keypass}"
tsaurl="${sign.tsaurl}"
preservelastmodified="true">
<path>
<fileset dir="${buildDirectory}/buildRepo/plugins">
<include name="**/ourplugins*.jar" />
</fileset>
<fileset dir="${buildDirectory}/buildRepo/features">
<include name="**/ourfeatures*" />
</fileset>
</path>
</signjar>
<!-- p2.process.artifacts makes artifacts.xml MD5 data agree with signed jars -->
<p2.process.artifacts repositoryPath="file:${buildDirectory}/buildRepo"/>
</target>
Re: PDE (batch) Build and P2 ... where to condition or sign? [message #605459 is a reply to message #524224] Mon, 05 April 2010 12:55 Go to previous message
michael.sacarny is currently offline michael.sacarnyFriend
Messages: 103
Registered: July 2009
Location: USA
Senior Member
We sign as follows in postAssemble:

<target name="postAssemble">
<signjar
alias="${sign.alias}" keystore="${sign.keystore}"
storepass="${sign.storepass}"
keypass="${sign.keypass}"
tsaurl="${sign.tsaurl}"
preservelastmodified="true">
<path>
<fileset dir="${buildDirectory}/buildRepo/plugins">
<include name="**/ourplugins*.jar" />
</fileset>
<fileset dir="${buildDirectory}/buildRepo/features">
<include name="**/ourfeatures*" />
</fileset>
</path>
</signjar>
<!-- p2.process.artifacts makes artifacts.xml MD5 data agree with signed jars -->
<p2.process.artifacts repositoryPath="file:${buildDirectory}/buildRepo"/>
</target>
Previous Topic:Manifest: CTRL-F does not format long lines
Next Topic:Manifest: CTRL-F does not format long lines
Goto Forum:
  


Current Time: Tue Apr 23 06:40:44 GMT 2024

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

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

Back to the top