File: build.xml

package info (click to toggle)
stoken 0.93-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 688 kB
  • sloc: ansic: 4,707; perl: 191; sh: 184; java: 123; makefile: 104; xml: 33
file content (33 lines) | stat: -rw-r--r-- 908 bytes parent folder | download
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
<project name="LibStoken" default="dist" basedir=".">
	<property name="build" location="build"/>
	<property name="dist"  location="dist"/>
	<property name="src"   location="src"/>

	<property name="jar_lib" location="${dist}/stoken-wrapper.jar"/>
	<property name="jar_app" location="${dist}/example.jar"/>

	<target name="init">
		<mkdir dir="${build}"/>
	</target>

	<target name="compile" depends="init">
		<javac srcdir="${src}" destdir="${build}"
		       source="1.8" target="1.8" includeantruntime="false"/>
	</target>

	<target name="dist" depends="compile">
		<jar jarfile="${jar_lib}" basedir="${build}"
		     includes="org/stoken/*" />

		<jar jarfile="${jar_app}" basedir="${build}">
			<manifest>
				<attribute name="Main-Class" value="com.example.LibTest" />
			</manifest>
		</jar>
	</target>

	<target name="clean">
		<delete dir="${build}"/>
		<delete dir="${dist}"/>
	</target>
</project>