Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3b08abf61b084216d2970d99a0f02e67534072b4 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0"?>
<!--
    Copyright (c) 2004, 2010 BREDEX GmbH.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html
 -->

<project name="org.eclipse.jubula.app.cmd" default="compile" basedir=".">

	<!-- 
		application specific 
		*********************
		app.name 	the name of the application
					which is used for directory naming.
					you can use projects name in 90%.
	-->
  	<property name="app.name"       	value="org.eclipse.jubula.app.cmd"/>

	<!-- 
		general definitions
		********************
		
		src			the name of the diretory(starting at basedir)
					where to find project source files
					
		build		the name of the diretory(starting at basedir)
					where to compile to.

		classes		the name of the diretory(starting at basedir)
					where to put compiled classes to.
					
		jars		the name of the diretory(starting at basedir)
					where to put generated jars to.
					
		lib			the name of the diretory(starting at basedir)
					where to find libaries, needed for
					compilation.
					
	-->
	<property name="src" 			value="src"/>
	<property name="build" 			value="build"/>
	<property name="classesUnix"		value="build/classes"/>
	<property name="jars" 			value="build/jars"/>
	<property name="lib" 			value="lib"/>
	
	<!-- classpath -->

		<!-- internal -->
	<property name="ant.jar" value="${lib}/ant.jar"/>
	
	<property name="javac.classpathUnix" value="classpathCmd"/>
	
	<path id="classpathRaw">
		<path refid="javac.classpathUnix"/>           		
		<pathelement location="${ant.jar}"/>
	</path>
	
	<property name="javac" value="javac"/>
	<property name="javac.debug" value="javac.debug"/>

	<!-- 
		Targets
		********
		
		all				calling the targets clean and compile.
						So "all" is replacing compiled files

		clean			deletes the build directory
	
		compile			compiles a project into the $build directory
		
		jar				creates one or more jar files from the project.

	-->
	<target name="all" depends="clean, compile">
	</target>

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

	<target name="compile">
		<mkdir dir="${build}"/>
		<mkdir dir="${classesUnix}"/>
		<mkdir dir="${jars}"/>
		<javac srcdir="${src}"
		       destdir="${classesUnix}"
			   classpathref="${javac.classpathUnix}"
		       debug="${javac.debug}"
			   fork="true"
			   executable="${javac}"/>
		</target>

	<target name="jar" depends="compile">
		<jar basedir="${classesUnix}" destfile="${jars}/org.eclipse.jubula.app.cmd.jar">
			 <fileset dir="${src}"
	  			 		includes="**/*"
			            excludes="**/*.java"/>
		</jar>
	</target>

</project>

Back to the top