-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
24 lines (22 loc) · 983 Bytes
/
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_runnable" name="Create Runnable">
<property name="dir.buildfile" value="."/>
<property name="dir.jarfile" value="${dir.buildfile}/target"/>
<target name="create_runnable">
<jar destfile="${dir.jarfile}/easybackup.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.nucleo.easybackup.Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${dir.buildfile}/target/classes"/>
</jar>
<exec executable="/bin/sh">
<arg value="-c" />
<arg value="cat stub.sh ${dir.buildfile}/target/easybackup.jar > ${dir.buildfile}/target/easybackup.run" />
</exec>
<exec executable="/bin/sh">
<arg value="-c" />
<arg value="chmod +x ${dir.buildfile}/target/easybackup.run" />
</exec>
</target>
</project>