Commit f1b2a06a authored by Quality Assurance's avatar Quality Assurance Committed by qa

Fixed some misc bugs with the dist.src and buildplugins targets;

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7009 b35dd754-fafc-0310-a699-88a17e54d16e
parent 29e250f7
...@@ -709,13 +709,17 @@ ...@@ -709,13 +709,17 @@
</copy> </copy>
<!-- Copy the license --> <!-- Copy the license -->
<copy todir="${release.src.out.dir}" file="${license.file.path}/LICENSE.html"/> <copy todir="${release.src.out.dir}" file="${license.file.path}/LICENSE.html"/>
<!-- Copy docs --> <!-- Copy text docs -->
<copy todir="${release.src.out.dir}/documentation"> <copy todir="${release.src.out.dir}/documentation">
<fileset dir="${docs.dir}" includes="**/*.*"/> <fileset dir="${docs.dir}" includes="**/*.html,**/*.txt"/>
<filterset> <filterset>
<filter token="version" value="${version}"/> <filter token="version" value="${version}"/>
</filterset> </filterset>
</copy> </copy>
<!-- Copy rest of docs -->
<copy todir="${release.src.out.dir}/documentation">
<fileset dir="${docs.dir}" excludes="**/*.html,**/*.txt"/>
</copy>
<!-- Copy Javadocs --> <!-- Copy Javadocs -->
<copy todir="${release.src.out.dir}/documentation/docs/javadoc"> <copy todir="${release.src.out.dir}/documentation/docs/javadoc">
<fileset dir="${javadoc.dest.dir}"/> <fileset dir="${javadoc.dest.dir}"/>
...@@ -1045,6 +1049,7 @@ ...@@ -1045,6 +1049,7 @@
<macrodef name="buildplugin"> <macrodef name="buildplugin">
<attribute name="plugin"/> <attribute name="plugin"/>
<attribute name="pluginsrc"/> <attribute name="pluginsrc"/>
<attribute name="pluginlib" default="${plugin.dev.dest.dir}/@{plugin}/work/lib" />
<sequential> <sequential>
<!-- For each plugin, copile code, make a jar and copy resources. --> <!-- For each plugin, copile code, make a jar and copy resources. -->
...@@ -1069,16 +1074,15 @@ ...@@ -1069,16 +1074,15 @@
</classpath> </classpath>
</javac> </javac>
<mkdir dir="${plugin.dev.dest.dir}/@{plugin}/target/lib" />
<!-- Searchs source of a plugin and makes a <plugin>-lib.jar that contains compiled versions of all <!-- Searchs source of a plugin and makes a <plugin>-lib.jar that contains compiled versions of all
non-distributable source --> non-distributable source -->
<property name="pluginlib" value="@{pluginsrc}/@{plugin}/lib" /> <mkdir dir="@{pluginlib}/source" />
<mkdir dir="@{pluginlib}/classes" />
<mkdir dir="${pluginlib}" />
<mkdir dir="${pluginlib}/source" />
<mkdir dir="${pluginlib}/classes" />
<!-- copy the source we want to compile --> <!-- copy the source we want to compile -->
<copy todir="${pluginlib}/source"> <copy todir="@{pluginlib}/source">
<fileset dir="@{pluginsrc}/@{plugin}/src/java" includes="**/*.java" > <fileset dir="@{pluginsrc}/@{plugin}/src/java" includes="**/*.java" >
<not> <not>
<srcinc /> <srcinc />
...@@ -1088,18 +1092,18 @@ ...@@ -1088,18 +1092,18 @@
<if> <if>
<not><uptodate> <not><uptodate>
<srcfiles dir="${pluginlib}/source" includes="**/*.java"/> <srcfiles dir="@{pluginlib}/source" includes="**/*.java"/>
<mapper type="merge" to="${pluginlib}/@{plugin}-lib.jar"/> <mapper type="merge" to="@{pluginlib}/@{plugin}-lib.jar"/>
</uptodate></not> </uptodate></not>
<then> <then>
<javac <javac
destdir="${pluginlib}/classes" destdir="@{pluginlib}/classes"
includeAntRuntime="no" includeAntRuntime="no"
debug="on" debug="on"
source="1.5" source="1.5"
includes="**/*.java" includes="**/*.java"
> >
<src path="${pluginlib}/source"/> <src path="@{pluginlib}/source"/>
<classpath> <classpath>
<pathelement location="${plugin.dev.dest.dir}/@{plugin}/target/classes"/> <pathelement location="${plugin.dev.dest.dir}/@{plugin}/target/classes"/>
<path> <path>
...@@ -1110,22 +1114,23 @@ ...@@ -1110,22 +1114,23 @@
</classpath> </classpath>
</javac> </javac>
<jar jarfile="${pluginlib}/@{plugin}-lib.jar">
<fileset dir="${pluginlib}/classes" /> <jar jarfile="${plugin.dev.dest.dir}/@{plugin}/target/lib/@{plugin}-lib.jar">
<fileset dir="@{pluginlib}/classes" />
</jar> </jar>
</then> </then>
</if> </if>
<!-- Make the jar --> <!-- Make the jar -->
<mkdir dir="${plugin.dev.dest.dir}/@{plugin}/target/lib"/>
<jar jarfile="${plugin.dev.dest.dir}/@{plugin}/target/lib/plugin-@{plugin}.jar"> <jar jarfile="${plugin.dev.dest.dir}/@{plugin}/target/lib/plugin-@{plugin}.jar">
<fileset dir="${plugin.dev.dest.dir}/@{plugin}/target/classes" > <fileset dir="${plugin.dev.dest.dir}/@{plugin}/target/classes" >
<present present="srconly" targetdir="${pluginlib}/classes"/> <present present="srconly" targetdir="@{pluginlib}/classes"/>
</fileset> </fileset>
</jar> </jar>
<delete dir="${pluginlib}/classes" /> <!-- Clean-up our source files for the "srcinc" files -->
<delete dir="${pluginlib}/source" /> <delete dir="@{pluginlib}/classes" />
<delete dir="@{pluginlib}/source" />
<available file="@{pluginsrc}/@{plugin}/src/include" type="dir" <available file="@{pluginsrc}/@{plugin}/src/include" type="dir"
property="@{plugin}.include.exists"/> property="@{plugin}.include.exists"/>
...@@ -1145,7 +1150,7 @@ ...@@ -1145,7 +1150,7 @@
<fileset dir="@{pluginsrc}/@{plugin}/lib" includes="**/*.*"/> <fileset dir="@{pluginsrc}/@{plugin}/lib" includes="**/*.*"/>
</copy> </copy>
<!-- Copy anything in the plugin's lib dir to the target lib dir --> <!-- Copy web.xml to web-custom.xml -->
<copy todir="${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF" failonerror="false" <copy todir="${plugin.dev.dest.dir}/@{plugin}/target/web/WEB-INF" failonerror="false"
overwrite="${overwrite}"> overwrite="${overwrite}">
<fileset dir="@{pluginsrc}/@{plugin}/src/web/WEB-INF" includes="web.xml"/> <fileset dir="@{pluginsrc}/@{plugin}/src/web/WEB-INF" includes="web.xml"/>
......
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