| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ --> | |
| <project default="jar" | |
| xmlns:j="jelly:core" | |
| xmlns:u="jelly:util" | |
| xmlns:maven="jelly:maven" | |
| xmlns:deploy="deploy" | |
| xmlns:ant="jelly:ant"> | |
| <preGoal name="itest:compile"> | |
| <u:file var="file" name="${maven.itest.src}"/> | |
| <j:if test="${!file.exists()}"> | |
| <j:expr value="${context.setVariable('maven.itest.skip', 'true')}"/> | |
| </j:if> | |
| </preGoal> | |
| <postGoal name="java:compile"> | |
| <!-- Temp dir to hold the contents of the mar --> | |
| <mkdir dir="target/temp-mar/META-INF"/> | |
| <mkdir dir="target/modules"/> | |
| <!-- Copy the required content for the mar into the temp dir--> | |
| <copy todir="target/temp-mar"> | |
| <fileset dir="target/classes"> | |
| <include name="**/org/apache/axis2/handlers/*/**/*.class"/> | |
| </fileset> | |
| </copy> | |
| <copy file="src/META-INF/module.xml" | |
| tofile="target/temp-mar/META-INF/module.xml" overwrite="true"/> | |
| <copy file="../../LICENSE.txt" | |
| tofile="target/temp-mar/META-INF/LICENSE.txt" overwrite="true"/> | |
| <copy file="../../NOTICE.txt" | |
| tofile="target/temp-mar/META-INF/LICENSE.txt" overwrite="true"/> | |
| <jar jarfile="target/soapmonitor-${soapmonitor_version}.mar" basedir="target/temp-mar/"> | |
| <include name="**/*"/> | |
| </jar> | |
| <copy file="target/soapmonitor-${soapmonitor_version}.mar" tofile="target/modules/soapmonitor-${soapmonitor_version}.mar"/> | |
| <copy file="target/soapmonitor-${soapmonitor_version}.mar" tofile="${maven.repo.local}/org.apache.axis2/mars/soapmonitor-${soapmonitor_version}.mar"/> | |
| <delete includeEmptyDirs="true"> | |
| <fileset dir="target/temp-mar"/> | |
| <!-- don't put handler files in jar --> | |
| <fileset dir="target/classes/org/apache/axis2/handlers"/> | |
| </delete> | |
| </postGoal> | |
| </project> |