Skip to content

Commit

Permalink
bundle plugin into a package
Browse files Browse the repository at this point in the history
  • Loading branch information
vladykin committed Jun 1, 2014
1 parent e389472 commit c8ec007
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
<project name="joomla-mendeley" default="dist">

<target name="dist" depends="plugin-dist">
<mkdir dir="target"/>
<zip destfile="target/pkg_mendeley.zip">
<fileset dir="." includes="pkg_mendeley.xml"/>
<fileset dir="plugin/target" includes="*.zip"/>
</zip>
</target>

<target name="plugin-dist">
<phing dir="plugin" target="dist"/>
<phing dir="plugin" target="dist"/>
</target>

</project>
9 changes: 9 additions & 0 deletions pkg_mendeley.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="3.3">
<name>Mendeley Integration Package</name>
<packagename>mendeley</packagename>
<version>0.0.1</version>
<files>
<file type="plugin" id="mendeley" group="content">plg_mendeley.zip</file>
</files>
</extension>
2 changes: 1 addition & 1 deletion plugin/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<target name="dist" depends="static-checks">
<mkdir dir="target"/>
<zip destfile="target/mendeley-plugin.zip" basedir="src"/>
<zip destfile="target/plg_mendeley.zip" basedir="src"/>
</target>

<target name="static-checks">
Expand Down

0 comments on commit c8ec007

Please sign in to comment.