diff options
author | Sven Gothel <[email protected]> | 2011-02-24 00:10:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-02-24 00:10:48 +0100 |
commit | 5cf4eeb334ac5390b0c681da0fb17db56a143395 (patch) | |
tree | 8ca5808874a5249ac0b93cdcdd1f01d806b471a8 /make/jogamp-archivetasks.xml | |
parent | b88976ac189c8154be2a8e2b748711c85a1af421 (diff) |
Fix archive.7z: unset property destfile.path. gluegen-archivetasks.xml -> jogamp-archivetasks.xml
Diffstat (limited to 'make/jogamp-archivetasks.xml')
-rw-r--r-- | make/jogamp-archivetasks.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/make/jogamp-archivetasks.xml b/make/jogamp-archivetasks.xml new file mode 100644 index 0000000..24309d8 --- /dev/null +++ b/make/jogamp-archivetasks.xml @@ -0,0 +1,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> + |