forked from AlloyTools/org.alloytools.alloy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.xml
36 lines (36 loc) · 1.28 KB
/
release.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
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<project default="binary">
<property file="src/release.properties" />
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<macrodef name="buildJar">
<attribute name="dir"/>
<attribute name="ext"/>
<attribute name="suffix" default=""/>
<sequential>
<jar jarfile="kodkod.${kodkod.version}@{suffix}.jar">
<fileset dir="@{dir}">
<include name="**/*.@{ext}" />
<exclude name="**/taglet/*" />
</fileset>
<manifest>
<attribute name="Built-By" value="${kodkod.author}" />
<attribute name="Built-Date" value="${TODAY}" />
<attribute name="Specification-Vendor" value="${kodkod.author}" />
<attribute name="Specification-Title" value="${kodkod.specification.title}" />
<attribute name="Specification-Version" value="${kodkod.version}" />
<attribute name="Implementation-Vendor" value="${kodkod.author}" />
<attribute name="Implementation-Title" value="${kodkod.specification.title}" />
<attribute name="Implementation-Version" value="${kodkod.version}" />
</manifest>
</jar>
</sequential>
</macrodef>
<target name="binary">
<buildJar dir="bin" ext="class" />
</target>
<target name="source">
<buildJar dir="src" ext="java" suffix="-src"/>
</target>
</project>