summaryrefslogtreecommitdiff
blob: eca1b5e9af3aab0014bbe71b61405e2294f368e4 (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
36
37
38
39
<?xml version="1.0"?>

<project name="jcvs" default="jar">
	<property name="lib" value="bin/jars" />

	<!-- compiles the sources -->
	<target name="compile">
		<mkdir dir="build" />
	
		<javac srcdir="source" destdir="build" source="1.4">
		<classpath>
				<pathelement path="${lib}/activation.jar" />
				<pathelement path="${lib}/commons-logging.jar" />
				<pathelement path="${lib}/j2ssh-common.jar" />
				<pathelement path="${lib}/j2ssh-core.jar" />
				<pathelement path="${lib}/jh.jar" />
			</classpath>
		</javac>
		
		<!-- we need the *.properties at the correct 
		     position in the jar archive!        -->
		<copy todir="build">
		<fileset dir="source">
			<exclude name="**/*.java" />
			<include name="**/*" />
		</fileset>
		</copy>
	</target>

	<!-- create the jar archive -->
	<target name="jar" depends="compile">
		<mkdir dir="jar" />
	
		<jar jarfile="bin/jcvsii.jar"
			basedir="build"
			manifest="MANIFEST.MF">
		</jar>
	</target>
</project>