Skip to content
Permalink
Browse files

+ phing build script

# installing package
  • Loading branch information...
svanschu committed Aug 18, 2016
1 parent 4bb0702 commit 6e70779be1aaec118ef347dd26add41b874901fd
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<extension method="upgrade" version="3.6" type="component">
<name>com_schuweb_sitemap</name>
<creationDate>2011-04-10</creationDate>
<author>Guillermo Vargas</author>
<creationDate>sw.build.date</creationDate>
<author>Sven Schultschik | Guillermo Vargas</author>
<copyright>This component is released under the GNU/GPL License</copyright>
<authorEmail>guille@vargas.co.cr</authorEmail>
<authorUrl></authorUrl>
<version>2.3.4</version>
<version>sw.build.version</version>
<license>GNU/GPL</license>
<description>Xmap - Sitemap Generator for Joomla!</description>
<install folder="admin">
@@ -81,6 +81,6 @@
</images>
</administration>
<updateservers>
<server type="extension" priority="1" name="Xmap Update Site">https://raw.github.com/guilleva/Xmap/master/xmap-update.xml</server>
<!--server type="extension" priority="1" name="Xmap Update Site">https://raw.github.com/guilleva/Xmap/master/xmap-update.xml</server-->
</updateservers>
</extension>
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Override variables:
- Version number -Dbuild.version=0.0.0
All paths starts at the build folder
- Build dir -Dbuilddir=./../../packages/swsetgroup
- Sourcefiles -Dsrc=./..
-->
<project name="schuweb_sitemap" default="build">
<property name="extension_name" value="SchuWeb_Sitemap"/>
<!-- Version number of build -->
<property name="build.version" value="0.0.0" override="true"/>
<!-- get the date for build -->
<tstamp prefix="build.date"/>
<!-- Set the directory where the packages should be saved. Relative to the build dir -->
<property name="builddir" value="./../../packages/${extension_name}" override="true"/>
<!-- Declare Project src files -->
<property name="src" value="./.." override="true"/>
<property name="plugins" value="${src}/plugins"/>

<!-- plugins -->
<fileset dir="${plugins}/schuweb_sitemap" id="schuweb_sitemap_plugins">
<include name="**"/>
</fileset>
<fileset dir="${src}/administrator/components/com_schuweb_sitemap" id="schuweb_sitemap_admin">
<include name="**"/>
</fileset>
<fileset dir="${src}/components/com_schuweb_sitemap" id="schuweb_sitemap_front">
<include name="**"/>
</fileset>

<target name="build" depends="prepare, copy">
<zip destfile="${builddir}/tmp/packages/com_schuweb_sitemap_${build.version}_${build.date.DSTAMP}.zip">
<fileset dir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap">
<include name="**"/>
</fileset>
</zip>
<zip destfile="${builddir}/tmp/packages/plg_content_${build.version}_${build.date.DSTAMP}.zip">
<fileset dir="${builddir}/tmp/schuweb_sitemap/plugins/com_content">
<include name="**"/>
</fileset>
</zip>
<zip destfile="${builddir}/tmp/packages/plg_kunena_${build.version}_${build.date.DSTAMP}.zip">
<fileset dir="${builddir}/tmp/schuweb_sitemap/plugins/com_kunena">
<include name="**"/>
</fileset>
</zip>
<zip destfile="${builddir}/tmp/packages/plg_sobipro_${build.version}_${build.date.DSTAMP}.zip">
<fileset dir="${builddir}/tmp/schuweb_sitemap/plugins/com_sobipro">
<include name="**"/>
</fileset>
</zip>

<zip destfile="${builddir}/pkg_schuweb_sitemap_${build.version}_${build.date.DSTAMP}.zip">
<fileset dir="${builddir}/tmp">
<include name="packages/*.zip"/>
<include name="*.xml"/>
</fileset>
</zip>
<delete dir="${builddir}/tmp"/>
<echo msg="Zip ALL OK!"/>
</target>

<target name="prepare">
<mkdir dir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap/admin"/>
<mkdir dir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap/front"/>
<mkdir dir="${builddir}/tmp/schuweb_sitemap/plugins/"/>
<mkdir dir="${builddir}/tmp/packages/"/>
<echo msg="Create temp folder OK!"/>
</target>

<target name="copy">
<!-- copy the plugins -->
<copy todir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap/admin">
<fileset refid="schuweb_sitemap_admin"/>
</copy>
<copy todir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap/front">
<fileset refid="schuweb_sitemap_front"/>
</copy>
<copy file="${src}/administrator/components/com_schuweb_sitemap/schuweb_sitemap.xml" todir="${builddir}/tmp/schuweb_sitemap/schuweb_sitemap" />
<copy file="${src}/pkg_schuweb_sitemap.xml" todir="${builddir}/tmp" />
<copy todir="${builddir}/tmp/schuweb_sitemap/plugins">
<fileset refid="schuweb_sitemap_plugins"/>
</copy>
<echo msg="Copy was successfull"/>
<!-- insert version, build number and date into the xml files -->
<reflexive>
<fileset dir="${builddir}/tmp/">
<include name="**"/>
</fileset>
<filterchain>
<replaceregexp>
<regexp pattern="sw\.build\.version" replace="${build.version}"/>
<regexp pattern="sw\.build\.date" replace="${build.date.DSTAMP}"/>
</replaceregexp>
</filterchain>
</reflexive>
</target>
</project>
@@ -2,16 +2,17 @@
<extension type="package" version="3.0">
<name>SchuWeb Sitemap Package</name>
<packagename>schuweb_sitemap</packagename>
<version>2.3.3</version>
<date>sw.build.date</date>
<version>sw.build.version</version>
<url>http://extensions.schultschik.de</url>
<packager>SchuWeb</packager>
<packager>SchuWeb Sitemap</packager>
<packagerurl>http://extensions.schultschik.de</packagerurl>
<description>The Site Map generator for Joomla!</description>
<files folder="packages">
<file type="component" id="com_schuweb_sitemap">com_xmap.zip</file>
<file type="plugin" id="com_content" group="schuweb_sitemap">plg_com_content.zip</file>
<file type="plugin" id="com_kunena" group="schuweb_sitemap">plg_com_kunena.zip</file>
<file type="plugin" id="com_sobipro" group="schuweb_sitemap">plg_com_sobipro.zip</file>
<file type="component" id="com_schuweb_sitemap">com_schuweb_sitemap_sw.build.version_sw.build.date.zip</file>
<file type="plugin" id="com_content" group="schuweb_sitemap">plg_content_sw.build.version_sw.build.date.zip</file>
<file type="plugin" id="com_kunena" group="schuweb_sitemap">plg_kunena_sw.build.version_sw.build.date.zip</file>
<file type="plugin" id="com_sobipro" group="schuweb_sitemap">plg_sobipro_sw.build.version_sw.build.date.zip</file>
<!--file type="plugin" id="com_mtree" group="schuweb_sitemap">plg_com_mtree.zip</file>
<file type="plugin" id="com_virtuemart" group="schuweb_sitemap">plg_com_virtuemart.zip</file>
<file type="plugin" id="com_weblinks" group="schuweb_sitemap">plg_com_weblinks.zip</file>
@@ -3,12 +3,12 @@
<extension type="plugin" group="schuweb_sitemap" version="3" method="upgrade">
<name>SchuWeb Sitemap - Content Plugin</name>
<author>Guillermo Vargas </author>
<creationDate>01/26/2011</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>guille@vargas.co.cr</authorEmail>
<authorUrl>joomla.vargas.co.cr</authorUrl>
<version>2.0.4</version>
<version>sw.build.version</version>
<description>SCHUWEB_SITEMAP_CONTENT_PLUGIN_DESCRIPTION</description>
<files>
<filename plugin="com_content">com_content.php</filename>
@@ -2,12 +2,12 @@
<extension type="plugin" group="xmap" version="2.5" method="upgrade">
<name>SCHUWEB_SITEMAP_PLUGIN_K2</name>
<author>Mohammad Hasani Eghtedar</author>
<creationDate>November 2011</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>m.h.eghtedar@gmail.com</authorEmail>
<authorUrl>https://github.com/mhehm/Xmap</authorUrl>
<version>1.3</version>
<version>sw.build.version</version>
<description>SCHUWEB_SITEMAP_PLUGIN_K2_DESC</description>
<files>
<filename plugin="com_k2">com_k2.php</filename>
@@ -3,12 +3,12 @@
<extension type="plugin" group="schuweb_sitemap" version="3.0" method="upgrade">
<name>SchuWeb Sitemap - Kunena Plugin</name>
<author>Sven Schultschik | Guillermo Vargas</author>
<creationDate>September 2007</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>extensions@schultschik.de</authorEmail>
<authorUrl>extensions.schultschik.de</authorUrl>
<version>3.0.0</version>
<version>sw.build.version</version>
<description>SchuWeb Sitemap Plugin for Kunena component</description>
<files>
<filename plugin="com_kunena">com_kunena.php</filename>
@@ -3,12 +3,12 @@
<extension type="plugin" group="xmap" version="1.6" method="upgrade">
<name>Xmap - Mosets Tree Plugin</name>
<author>Guillermo Vargas</author>
<creationDate>07/20/2011</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>guille@vargas.co.cr</authorEmail>
<authorUrl>joomla.vargas.co.cr</authorUrl>
<version>2.0.2</version>
<version>sw.build.version</version>
<description>SCHUWEB_SITEMAP_MTREE_PLUGIN_DESCRIPTION</description>
<files>
<filename plugin="com_mtree">com_mtree.php</filename>
@@ -2,12 +2,12 @@
<extension type="plugin" group="schuweb_sitemap" version="3.0" method="upgrade">
<name>SchuWeb Sitemap - SobiPro Plugin</name>
<author>Sven Schultschik | Guillermo Vargas</author>
<creationDate>07/15/2011</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>extensions@schultschik.de</authorEmail>
<authorUrl>extensions.schultschik.de</authorUrl>
<version>2.0.2</version>
<version>sw.build.version</version>
<description>SchuWeb Sitemap Plugin for SobiPro component</description>
<files>
<filename plugin="com_sobipro">com_sobipro.php</filename>
@@ -2,12 +2,12 @@
<extension type="plugin" group="xmap" version="1.6" method="upgrade">
<name>Xmap - Virtuemart Plugin</name>
<author>Guillermo Vargas</author>
<creationDate>January 2012</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>guille@vargas.co.cr</authorEmail>
<authorUrl>joomla.vargas.co.cr</authorUrl>
<version>2.0.3</version>
<version>sw.build.version</version>
<description>SCHUWEB_SITEMAP_VM_PLUGIN_DESCRIPTION</description>
<files>
<filename plugin="com_virtuemart">com_virtuemart.php</filename>
@@ -2,12 +2,12 @@
<extension type="plugin" group="xmap" version="1.6" method="upgrade">
<name>Xmap - WebLinks Plugin</name>
<author>Guillermo Vargas</author>
<creationDate>Apr 2004</creationDate>
<creationDate>sw.build.date</creationDate>
<copyright>GNU GPL</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<authorEmail>guille@vargas.co.cr</authorEmail>
<authorUrl>joomla.vargas.co.cr</authorUrl>
<version>2.0.1</version>
<version>sw.build.version</version>
<description>SCHUWEB_SITEMAP_WL_PLUGIN_DESCRIPTION</description>
<files>
<filename plugin="com_weblinks">com_weblinks.php</filename>

0 comments on commit 6e70779

Please sign in to comment.
You can’t perform that action at this time.