blob: 24309d881b93cf822f076c874a7921894d75e29b (
plain)
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
26
27
28
29
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="jogamp-archivetasks" basedir=".">
<dirname property="jogamp-archivetasks.basedir" file="${ant.file.jogamp-archivetasks}"/>
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${jogamp-archivetasks.basedir}/lib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<macrodef name="archive.7z">
<attribute name="basedir" />
<attribute name="destfile" />
<attribute name="includes" />
<sequential>
<var name="destfile.path" unset="true"/>
<property name="destfile.path" location="@{destfile}"/> <!-- absolute path -->
<delete file="${destfile.path}" quiet="true" failonerror="false" />
<exec executable="7z"
searchpath="true"
dir="@{basedir}"
spawn="false"
failifexecutionfails="true"
failonerror="true">
<arg line="a -r ${destfile.path} @{includes}"/>
</exec>
</sequential>
</macrodef>
</project>
|