-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>TelosysToolsPluginUpdateSite</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.pde.UpdateSiteBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.pde.UpdateSiteNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<project name="TelosysToolsUpdateSite" default="clean"> | ||
|
||
<!-- ============================================================================== --> | ||
<!-- --> | ||
<!-- ============================================================================== --> | ||
<target name="clean" > | ||
<echo message="Cleaning ... " /> | ||
<delete file="artifacts.jar" /> | ||
<delete file="content.jar" /> | ||
<delete dir="features" /> | ||
<delete dir="plugins" /> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<project name="TelosysToolsUpdateSite" default="build"> | ||
<tstamp> | ||
<format property="DSTAMP" pattern="yyyy-MM-dd" /> | ||
</tstamp> | ||
|
||
<property name="version" value="2.1.1" /> | ||
<property name="dist_dir" value="./dist" /> | ||
<property name="zip_file" value="${dist_dir}/TelosysTools-${version}-UpdateSite-${DSTAMP}.zip" /> | ||
|
||
<!-- ============================================================================== --> | ||
<!-- --> | ||
<!-- ============================================================================== --> | ||
<target name="build" > | ||
<echo message="Build ... file : ${zip_file} " /> | ||
<mkdir dir="${dist_dir}" /> | ||
<delete file="${zip_file}" /> | ||
|
||
<zip destfile="${zip_file}" > | ||
<zipfileset dir="./plugins" prefix="plugins" /> | ||
<zipfileset dir="./features" prefix="features" /> | ||
<zipfileset file="./artifacts.jar" /> | ||
<zipfileset file="./content.jar" /> | ||
<zipfileset file="./site.xml" /> | ||
</zip> | ||
|
||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<project default="save"> | ||
|
||
<tstamp> | ||
<format property="DSTAMP" pattern="yyyy-MM-dd" /> | ||
</tstamp> | ||
|
||
<property name="dest_dir" value="../(backup)/${DSTAMP}" /> | ||
|
||
<property name="zip_file" value="${dest_dir}/TelosysToolsPluginUpdateSite-${DSTAMP}-${TSTAMP}.zip" /> | ||
|
||
<!-- ============================================================================== --> | ||
<target name="save" > | ||
<echo message="Project name : ${project.name} " /> | ||
|
||
<echo message="DSTAMP : ${DSTAMP} TSTAMP : ${TSTAMP} " /> | ||
|
||
<echo message="Create dir : ${dest_dir} " /> | ||
<mkdir dir="${dest_dir}"/> | ||
|
||
<echo message="Zip file : ${zip_file} " /> | ||
<zip destfile="${zip_file}" > | ||
<zipfileset file="./build_dist.xml" /> | ||
<zipfileset file="./build_clean.xml" /> | ||
<zipfileset file="./build_svg.xml" /> | ||
<zipfileset file="./site.xml" /> | ||
<zipfileset dir="./doc" prefix="doc" /> | ||
</zip> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Before - Check version in : | ||
|
||
* "TelosysToolsPlugin" project | ||
. "plugin.xml" ( tabs "Overview", "Runtime / Classpath" ) | ||
. "PluginBuildInfo.java" ( BUILD_ID = "GA", BUILD_DATE ) | ||
|
||
* "TelosysToolsPluginHelp" project | ||
. "plugin.xml" ( tab "Overview" ) | ||
|
||
* "TelosysToolsPluginFeature" project | ||
. "feature.xml" ( tabs "Overview", "Information", "Plug_ins" ) | ||
|
||
* "TelosysToolsUpdateSite" project | ||
. "build_dist.xml" | ||
. "site.xml" ( check feature version ) | ||
|
||
-------------------------------------------------------------------------------- | ||
How to generate the "Update Site" : | ||
|
||
1) Clean the existing artifacts with ANT : "build_clean.xml" | ||
|
||
2) Standard Eclipse Build | ||
- Open the file "site.xml" | ||
- Verify version ( "feature" tag : url and version ) | ||
- Click "Build All" | ||
|
||
Files generated : | ||
. features/ | ||
. org.telosys.tools.eclipse.feature_x.x.x.jar | ||
. plugins/ | ||
. org.telosys.tools.eclipse.plugin_x.x.x.jar | ||
. org.telosys.tools.eclipse.plugin.help_x.x.x.jar | ||
. content.jar (1 file : content.xml) | ||
. artifacts.jar (1 file : artifacts.xml) | ||
|
||
3) Use ANT to package the site in a ZIP file | ||
- Verify version in "build_dist.xml" | ||
- Run "build_dist.xml" ANT BUILD | ||
Result : dist/TelosysTools-X.X.X-UpdateSite.zip | ||
|
||
--------------------------------------------------------- | ||
Plugin Installation / Eclipse : | ||
. Unzip / directory | ||
. In Eclipse : Installation / "Local Site" -> this directory | ||
--------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<site> | ||
<feature url="features/org.telosys.tools.eclipse.feature_2.1.1.jar" id="org.telosys.tools.eclipse.feature" version="2.1.1"/> | ||
<category-def name="TelosysToolbox" label="Telosys Toolbox"> | ||
<description> | ||
Set of tools for code generation | ||
</description> | ||
</category-def> | ||
</site> |