summaryrefslogtreecommitdiffstats
path: root/make/gluegen-archivetasks.xml
blob: ee7501dae5942bc4d838c2d11263c398cfb8376c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<project name="GlueGen-archivetasks" basedir=".">
    <macrodef name="archive.7z">
      <attribute name="basedir" />
      <attribute name="destfile" />
      <attribute name="includes" />
      <sequential>
       <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>