Skip to content

Commit

Permalink
Version 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
l-gu committed Mar 3, 2015
1 parent b749d7b commit 33b25ee
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ver2.1.1/.project
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>
14 changes: 14 additions & 0 deletions ver2.1.1/build_clean.xml
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>
28 changes: 28 additions & 0 deletions ver2.1.1/build_dist.xml
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>
30 changes: 30 additions & 0 deletions ver2.1.1/build_svg.xml
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>
45 changes: 45 additions & 0 deletions ver2.1.1/doc/UpdateSiteGeneration.txt
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
---------------------------------------------------------
9 changes: 9 additions & 0 deletions ver2.1.1/site.xml
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>

0 comments on commit 33b25ee

Please sign in to comment.