blob: 3a069785435538ed43b4504cd1a529f8cd9683b2 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Repackaging Eclipse</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="" type=text/css rel=stylesheet>
<td ALIGN=LEFT width="60%"><font class=indextop>Packaging eclipse components</font><br>
<font class=indexsub>get what you need</font></td>
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<td colspan="2" bgcolor="#0080c0" align="left" valign="top"><b><font color="#ffffff" face="">Repackaging Eclipse</font></b></td>
<p>Eclipse components are delivered as zip files. Each zip file contains a collection
of features and plug-ins. Typically the zips contain all function that a particular
component has to offer. It is often the case that consumers either need more
than one component and/or only need parts of some components. Without assistance,
consumers would have to manually fetch the zips containing the superset of
the function they need and then manually extract the required features and
plug-ins. This can be a laborious and error prone process.</p>
<p>Fortunately, PDE contains a batch oriented mechanism, the <em>packager</em> which
can help. In short, the packager takes as input a list of zips containing features
and a list of interesting features. It then fetches the zips, extracts the
features (and their plug-ins) and repackages them into an output zip.</p>
<h3>Packager configuration files:</h3>
<dd>A Java properties file that controls the packaging process</dd>
<dd>An Ant file used to customize different aspects of packaging</dd>
<dt> <strong></strong><br>
<dd>A Java properties file that controls the files included at the root
of the archives and file permissions</dd>
<h3>Quick start: </h3>
<p>Below is a set of basic steps to get started with the packager. More information
is available near the various properties in the actual packager configuration
files. It is suggested that you build *nix packages on a *nix machine to ensure
that file permissions are assigned correctly.</p>
<li>Create a directory to host the packaging work (we'll use <em>c:\temp\newPackaging</em>
<li>Unzip the <a href="">packager template files</a> into c:\temp\newPackaging</li>
<li>Customize the files as follows:<br>
Changes in the
<li> update <strong>baseDirectory</strong> to be suitable for you</li>
<li> update <strong>featureList</strong> to indicate which features you want to be included in your archive</li>
<li>update <strong>componentFilter</strong> to list the components that will contribute the features (if you don't know put *) </li>
<li>update <strong>contentFilter</strong> to identify the type of content to be included in the packaging</li>
<li>update <strong>config</strong> to indicate the platform configuration for which you are packaging</li>
<li> if you are running on linux, set <strong>zipArgs</strong> to -y </li>
Changes in the customTargets.xml:
<li> update the <strong>getMapFiles</strong> target to indicate the map file for the version you want to package.
The example map provided is referencing the 3.0 components.</li>
<li>In a shell, change to the install dir of the Eclipse you want to use to
<strong>run</strong> the packager and execute:
-application org.eclipse.ant.core.antRunner
-buildfile &lt;full path to Eclipse&gt;\plugins\org.eclipse.pde.build_3.0.0\scripts\package.xml
<h3>Packager map file format: </h3>
The map files are used to describe the various zip, their content and where they can be fetched from. They are alike the map file for the build process.
The format of a map file entry is as follow:
archiveName = url "|" [configList] "|" [directory] "|" [contentDescription] "|" [componentName]
<li>archivename: represents the name of the archive</li>
<li>url: the url where to find the archive (the concatenation of url and zip points to the file to download)</li>
<li>configList: an optional "&" separated list of configurations for which the zip
matches. win32,win32,86 & linux,gtk,x86. If nothing is specied, the archive content is platform independent</li>
<li>directory: the directory where the content of the archive should be go relatively to an eclipse install </li>
<li>contentDescription: flags indicating the content of the drop</li>
<li>componentName: the name of the component</li>
#Map file entry for the eclipse platform for windows<br> | win32,win32,x86 | | runtime | ide<br>
#Map file entry for EMF (platform independent)<br> | | | runtime | emf<br>
<p>This build process can be executed on any of the
<A target="extra" HREF="">Eclipse
3.0 Reference Platforms</A> plus the following:
<li><A target="extra" HREF="">CVS</A> client version 1.10 or higher on system path. </li>
<li><A target="extra" HREF="">Info-Zip</A> zip and unzip executables on system path.</li>