aboutsummaryrefslogtreecommitdiffstats
path: root/etc/targets/global-jar.xml
blob: 22b6cd4c726d1aaffae83d64b8f2454a1939b251 (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
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>

<project name="global-jar" basedir=".">

    <target name="global-jar" depends="global-compile">
		<delete dir="${global.dir.build.jar}" />
		<mkdir dir="${global.dir.build.jar}" />
		<mkdir dir="${global.dir.build.tar}/lib" />
		<mkdir dir="${global.dir.src.resources}" />

        <copy todir="${global.dir.build.jar}">
			<fileset dir="${global.dir.build.java}">
				<include name="**/*.dat" />
			</fileset>
			<fileset dir="${global.dir.build.classes}">
				<include name="**" />
			</fileset>
			<fileset dir="${global.dir.src.resources}">
				<include name="log4j.properties" />
			</fileset>
		</copy>

		<jar
				destfile="${global.file.jar}"
				manifest="etc/MANIFEST"
				index="true"
				compress="${system.jar.compress}">
			<fileset dir="${global.dir.build.jar}" />
			<manifest>
				<attribute name="Built-By" value="${user.name}" />
			</manifest>
		</jar>
    </target>

</project>