Commit 3d6cc17e authored by Bill Lynch's avatar Bill Lynch Committed by bill

Added plugin copying (initial), compile task for custom ant task.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@468 b35dd754-fafc-0310-a699-88a17e54d16e
parent da75aa8c
......@@ -32,6 +32,11 @@
<pathelement location="${basedir}/build/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<taskdef name="subdirinfo" classname="org.jivesoftware.ant.SubDirInfoTask">
<classpath>
<pathelement location="${basedir}/build/lib/ant-subdirtask.jar"/>
</classpath>
</taskdef>
<!-- ======================================================================================= -->
<!-- GLOBAL PROPERTIES -->
......@@ -186,8 +191,8 @@
<fileset dir="${jspc.classes.dest.dir}" includes="**/*.class" />
<fileset dir="${src.i18n.dir}" includes="*.properties" />
<fileset dir="${src.dir}" includes="database/*.sql" />
<fileset dir="${resources.dir}/jar" includes="admin-sidebar.xml" />
<fileset dir="${lib.build.installer.dir}/images" includes="**/*.gif" />
<fileset dir="${resources.dir}/jar" includes="admin-sidebar.xml" />
<fileset dir="${lib.build.installer.dir}/images" includes="**/*.gif" />
<zipgroupfileset dir="${lib.merge.dir}" includes="*.jar"/>
<manifest>
<attribute name="Built-By" value="Jive Software (www.jivesoftware.org)"/>
......@@ -562,6 +567,31 @@
</antcall>
</target>
<!-- plugins =============================================================================== -->
<target name="plugins">
<mkdir dir="${target.dir}/plugin-dev" />
<subdirinfo dir="${src.dir}/plugins" property="dirlist" ifexists="plugin.xml" />
<for list="${dirlist}" param="dir" trim="true">
<sequential>
<copy todir="${target.dir}/plugin-dev/@{dir}">
<fileset dir="${src.dir}/plugins/@{dir}" />
</copy>
</sequential>
</for>
</target>
<!-- anttasks ============================================================================== -->
<target name="anttasks" depends="compile">
<!-- Compile the custom ant task -->
<property name="anttask.dest" value="${target.dir}/anttask" />
<mkdir dir="${anttask.dest}" />
<jar jarfile="${anttask.dest}/ant-subdirtask.jar">
<fileset dir="${compile.dir}" includes="**/SubDirInfoTask.class" />
</jar>
</target>
<!-- clean ================================================================================= -->
<target name="clean" description="Cleans up all build-generated output">
<delete dir="${target.dir}" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment