| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ! |
| ! Copyright 2006 The Apache Software Foundation. |
| ! |
| ! Licensed under the Apache License, Version 2.0 (the "License"); |
| ! you may not use this file except in compliance with the License. |
| ! You may obtain a copy of the License at |
| ! |
| ! http://www.apache.org/licenses/LICENSE-2.0 |
| ! |
| ! Unless required by applicable law or agreed to in writing, software |
| ! distributed under the License is distributed on an "AS IS" BASIS, |
| ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ! See the License for the specific language governing permissions and |
| ! limitations under the License. |
| !--> |
| |
| <!-- $Revision$ $Date$ --> |
| |
| <project default="jar" |
| xmlns:j="jelly:core" |
| xmlns:u="jelly:util" |
| xmlns:maven="jelly:maven" |
| xmlns:deploy="deploy" |
| xmlns:ant="jelly:ant"> |
| <postGoal name="test:compile"> |
| <mkdir dir="target/tempmar/META-INF"/> |
| <copy file="src/META-INF/module.xml" |
| tofile="target/tempmar/META-INF/module.xml"/> |
| <copy file="../../LICENSE.txt" |
| tofile="target/tempmar/META-INF/LICENSE.txt" overwrite="true"/> |
| |
| <mkdir dir="target/tempmar/lib"/> |
| <copy file="${maven.repo.local}/bsf/jars/bsf-${bsf.version}.jar" |
| tofile="target/tempmar/lib/bsf-${bsf.version}.jar"/> |
| <copy file="${maven.repo.local}/rhino/jars/js-${js.version}.jar" |
| tofile="target/tempmar/lib/js-${js.version}.jar"/> |
| <copy file="${maven.repo.local}/xmlbeans/jars/xbean-${xbean.version}.jar" |
| tofile="target/tempmar/lib/xbean-${xbean.version}.jar"/> |
| |
| <copy todir="target/tempmar"> |
| <fileset dir="target/classes"> |
| <include name="**/org/apache/*/**/*.class"/> |
| </fileset> |
| </copy> |
| |
| <mkdir dir="target/modules"/> |
| <jar jarfile="target/axis2-scripting-${scripting_version}.mar" basedir="target/tempmar"> |
| <include name="**"/> |
| </jar> |
| <copy file="target/axis2-scripting-${scripting_version}.mar" |
| tofile="target/modules/axis2-scripting-${scripting_version}.mar"/> |
| <copy file="target/axis2-scripting-${scripting_version}.mar" |
| tofile="${maven.repo.local}/org.apache.axis2/mars/axis2-scripting-${scripting_version}.mar"/> |
| </postGoal> |
| <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> |
| </project> |