-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
25 lines (22 loc) · 1.02 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<project default="xar" name="myapp">
<xmlproperty file="expath-pkg.xml"/>
<property name="project.version" value="${package(version)}"/>
<property name="project.app" value="jmmc-resources"/>
<property name="build.dir" value="build"/>
<target name="xar" depends="copyLibs">
<mkdir dir="${build.dir}"/>
<delete dir="${build.dir}" includes="*.xar"/>
<zip basedir="." destfile="${build.dir}/${project.app}-${project.version}.xar"
excludes="${build.dir}/**,.exist/**,target/**,build.xml,pom.xml"/>
</target>
<target name="copyLibs">
<delete dir="content" includes="*.jar" />
<copy todir="content" verbose="true">
<fileset dir="target/jmmc-libs" includes="*.jar" />
</copy>
<!-- tested with inclusion in xar to avoid class not found exception without success
<copy file="target/original-libs/slf4j-api-2.0.7.jar" todir="content" verbose="true"/>
-->
</target>
</project>