Commit ee64ae3b authored by Bill Lynch's avatar Bill Lynch Committed by bill

Changed plugin building so it no longer uses the plugin dir as a temp dir,...

Changed plugin building so it no longer uses the plugin dir as a temp dir, fixed nightly build process.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1138 b35dd754-fafc-0310-a699-88a17e54d16e
parent 077b6e4e
...@@ -651,22 +651,22 @@ ...@@ -651,22 +651,22 @@
<!-- ZIP --> <!-- ZIP -->
<zip zipfile="${package.dest.dir}/${release.fullname}.zip" <zip zipfile="${package.dest.dir}/${release.fullname}.zip"
basedir="${release.out.dir}/.." basedir="${release.out.dir}/.."
includes="${release.name}/**/*" includes="${release.fullname}/**/*, ${release.name}/**/*"
/> />
<zip zipfile="${package.dest.dir}/${release.fullname.src}.zip" <zip zipfile="${package.dest.dir}/${release.fullname.src}.zip"
basedir="${release.src.out.dir}/.." basedir="${release.src.out.dir}/.."
includes="${release.name.src}/**/*" includes="${release.fullname.src}/**/*, ${release.name.src}/**/*"
/> />
<!-- TAR.GZ --> <!-- TAR.GZ -->
<tar tarfile="${package.dest.dir}/${release.fullname}.tar.gz" <tar tarfile="${package.dest.dir}/${release.fullname}.tar.gz"
basedir="${release.out.dir}/.." basedir="${release.out.dir}/.."
includes="${release.name}/**/*" includes="${release.fullname}/**/*, ${release.name}/**/*"
compression="gzip" compression="gzip"
longfile="gnu" longfile="gnu"
/> />
<tar tarfile="${package.dest.dir}/${release.fullname.src}.tar.gz" <tar tarfile="${package.dest.dir}/${release.fullname.src}.tar.gz"
basedir="${release.src.out.dir}/.." basedir="${release.src.out.dir}/.."
includes="${release.name.src}/**/*" includes="${release.fullname.src}/**/*, ${release.name.src}/**/*"
compression="gzip" compression="gzip"
longfile="gnu" longfile="gnu"
/> />
...@@ -676,7 +676,9 @@ ...@@ -676,7 +676,9 @@
<!-- dailybuild ============================================================================ --> <!-- dailybuild ============================================================================ -->
<target name="dailybuild" depends="init" description="Creates a daily build release"> <target name="dailybuild" depends="init" description="Creates a daily build release">
<property name="release.out.name" value="${dist.prefix}_${dailybuild.tstamp}" /> <property name="release.out.name" value="${dist.prefix}_${dailybuild.tstamp}" />
<property name="release.fullname" value="${release.out.name}" />
<property name="release.src.out.name" value="${dist.prefix}_src_${dailybuild.tstamp}" /> <property name="release.src.out.name" value="${dist.prefix}_src_${dailybuild.tstamp}" />
<property name="release.fullname.src" value="${release.src.out.name}" />
<property name="release.out.dir" value="${release.dest.dir}/dailybuild/${release.out.name}" /> <property name="release.out.dir" value="${release.dest.dir}/dailybuild/${release.out.name}" />
<property name="release.src.out.dir" value="${release.dest.dir}/dailybuild/${release.src.out.name}" /> <property name="release.src.out.dir" value="${release.dest.dir}/dailybuild/${release.src.out.name}" />
<antcall target="release"> <antcall target="release">
...@@ -807,7 +809,8 @@ ...@@ -807,7 +809,8 @@
</copy> </copy>
<!-- Copy the plugin.xml file to the target dir, code below assumes it's there --> <!-- Copy the plugin.xml file to the target dir, code below assumes it's there -->
<copy todir="${plugin.dest.dir}/@{plugin}" file="@{pluginsrc}/@{plugin}/plugin.xml" /> <mkdir dir="${plugin.dev.dest.dir}/@{plugin}/jar" />
<copy todir="${plugin.dev.dest.dir}/@{plugin}/jar" file="@{pluginsrc}/@{plugin}/plugin.xml" />
<!-- JSPC any JSP pages. Do this conditionally as there might not be a web dir. --> <!-- JSPC any JSP pages. Do this conditionally as there might not be a web dir. -->
<available property="plugin.@{plugin}.webdocs.available" <available property="plugin.@{plugin}.webdocs.available"
...@@ -907,7 +910,7 @@ ...@@ -907,7 +910,7 @@
</if> </if>
<!-- Copy everything else to Messenger's plugin dir --> <!-- Copy everything else to Messenger's plugin dir -->
<copy todir="${plugin.dest.dir}/@{plugin}"> <copy todir="${plugin.dev.dest.dir}/@{plugin}/jar">
<fileset dir="${plugin.dev.dest.dir}/@{plugin}/target"> <fileset dir="${plugin.dev.dest.dir}/@{plugin}/target">
<include name="lib/*.jar" /> <include name="lib/*.jar" />
</fileset> </fileset>
...@@ -920,7 +923,7 @@ ...@@ -920,7 +923,7 @@
<exclude name="java/**/*.java" /> <exclude name="java/**/*.java" />
</fileset> </fileset>
</copy> </copy>
<copy todir="${plugin.dest.dir}/@{plugin}/web" failonerror="false"> <copy todir="${plugin.dev.dest.dir}/@{plugin}/jar/web" failonerror="false">
<fileset dir="${plugin.dev.dest.dir}/@{plugin}/target/jspc"> <fileset dir="${plugin.dev.dest.dir}/@{plugin}/target/jspc">
<include name="web.xml" /> <include name="web.xml" />
</fileset> </fileset>
...@@ -928,11 +931,11 @@ ...@@ -928,11 +931,11 @@
<!-- Jar the plugin --> <!-- Jar the plugin -->
<jar jarfile="${plugin.dest.dir}/@{plugin}.jar"> <jar jarfile="${plugin.dest.dir}/@{plugin}.jar">
<fileset dir="${plugin.dest.dir}/@{plugin}" /> <fileset dir="${plugin.dev.dest.dir}/@{plugin}/jar" />
</jar> </jar>
<!-- Delete the exploded plugin --> <!-- Delete the exploded plugin -->
<delete dir="${plugin.dest.dir}/@{plugin}" /> <delete dir="${plugin.dev.dest.dir}/@{plugin}/jar" />
</sequential> </sequential>
</macrodef> </macrodef>
......
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