Skip to main content
summaryrefslogtreecommitdiffstats
blob: 75f4fe9fc861bf1def803ff937bc387657194f41 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?xml version="1.0" encoding="UTF-8"?>
<!--
    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="com.bredexsw.guidancer.examples" default="build">

	<property name="build.dir"						value="build"/>
	<property name="examples.aut.dir"				value="${build.dir}/AUTs"/>
	<property name="examples.projects.dir"			value="${build.dir}/projects"/>
	<property name="examples.scripts.dir"			value="${build.dir}/scripts"/>
	<property name="examples.library.dir"			value="${build.dir}/testCaseLibrary"/>
	<property name="examples.development.dir"	    value="${build.dir}/development"/>

	<property name="examples.aut.simpleAdder.dir"	value="${examples.aut.dir}/SimpleAdder"/>

	<property name="SimpleAdder.Swing"	value="org.eclipse.jubula.examples.aut.adder.swing"/>
	<property name="SimpleAdder.JavaFX"	value="org.eclipse.jubula.examples.aut.adder.javafx"/>
	<property name="SimpleAdder.SWT"	value="org.eclipse.jubula.examples.aut.adder.swt"/>
	<property name="SimpleAdder.RCP"	value="org.eclipse.jubula.examples.aut.adder.rcp.releng"/>
	<property name="SimpleAdder.Web"	value="org.eclipse.jubula.examples.aut.adder.html"/>
	<property name="DvdTool"			value="org.eclipse.jubula.examples.aut.dvdtool"/>

	<property name="ExampleSwingExtensionAUT"       value="org.eclipse.jubula.examples.extension.swing.aut"/>
    <property name="ExampleJavaFXExtensionAUT"       value="org.eclipse.jubula.examples.extension.javafx.aut"/>

	<property name="ExampleGEFIdentifierExample"    value="org.eclipse.jubula.examples.extension.rcp.gef.logic.identifier"/>

	<target name="build"   depends="clean, 
									createDirStructure,
									releaseSimpleAdderSwing,
	    							releaseSimpleAdderJavaFX,
									releaseSimpleAdderSWT,
									releaseSimpleAdderRCP,
									releaseSimpleAdderWeb,
									releaseDvdTool,
                                    releaseProjects,
									releaseLibrary,
									releaseScripts,
									releaseWorkspace,
									releaseDevelopment">
		<antcall target="markAsExecutable" />
	</target>

	<target name="createDirStructure">
		<mkdir dir="${build.dir}"/>
		<mkdir dir="${examples.aut.dir}"/>
		<mkdir dir="${examples.projects.dir}"/>
		<mkdir dir="${examples.scripts.dir}"/>
		<mkdir dir="${examples.library.dir}"/>
		<mkdir dir="${examples.development.dir}"/>
	</target>

	<target name="releaseSimpleAdderSwing">
		<ant dir="../${SimpleAdder.Swing}" antfile="buildScript.xml" target="build" inheritAll="false" />
		<mkdir dir="${examples.aut.simpleAdder.dir}/swing"/>
		<copy todir="${examples.aut.simpleAdder.dir}/swing">
			<fileset dir="../${SimpleAdder.Swing}/build/jars/"/>
		</copy>
		<copy todir="${examples.aut.simpleAdder.dir}/swing">
			<fileset dir="../${SimpleAdder.Swing}/resources/launcher"/>
		</copy>
		<antcall target="markAsExecutable" />
	</target>

	<target name="releaseSimpleAdderJavaFX">
		<exec dir="../${SimpleAdder.JavaFX}" executable="ant" >
			<env key="JAVA_HOME" value="/devapps/java64/java8"/>
			<arg value="-f"/>
			<arg value="buildScript.xml"/>
			<arg value="build"/>
		</exec>
		<mkdir dir="${examples.aut.simpleAdder.dir}/javafx"/>
		<copy todir="${examples.aut.simpleAdder.dir}/javafx">
			<fileset dir="../${SimpleAdder.JavaFX}/build/jars/"/>
		</copy>
		<copy todir="${examples.aut.simpleAdder.dir}/javafx">
			<fileset dir="../${SimpleAdder.JavaFX}/resources/launcher"/>
		</copy>
		<antcall target="markAsExecutable" />
	</target>

    <target name="releaseExampleJavaFXExtensionAUT">
        <exec dir="../${ExampleJavaFXExtensionAUT}" executable="ant" >
            <env key="JAVA_HOME" value="/devapps/java64/java8"/>
            <arg value="-f"/>
            <arg value="buildScript.xml"/>
            <arg value="build"/>
        </exec>
        <mkdir dir="${examples.development.dir}/extension/AUT"/>
        <copy todir="${examples.development.dir}/extension/AUT">
            <fileset dir="../${ExampleJavaFXExtensionAUT}/build/jars/"/>
        </copy>
        <antcall target="markAsExecutable" />
    </target>

	<target name="releaseSimpleAdderSWT">
		<ant dir="../${SimpleAdder.SWT}" antfile="buildScript.xml" target="build" inheritAll="false" />
		<mkdir dir="${examples.aut.simpleAdder.dir}/swt"/>
		<copy todir="${examples.aut.simpleAdder.dir}/swt">
			<fileset dir="../${SimpleAdder.SWT}/build/jars/"/>
		</copy>
		<copy todir="${examples.aut.simpleAdder.dir}/swt">
			<fileset dir="../${SimpleAdder.SWT}/resources/launcher"/>
		</copy>
		<antcall target="markAsExecutable" />
	</target>

	<target name="releaseSimpleAdderRCP">
		<ant dir="../${SimpleAdder.RCP}" antfile="buildScript.xml" inheritAll="false" />
		<mkdir dir="${examples.aut.simpleAdder.dir}/rcp"/>
		<move todir="${examples.aut.simpleAdder.dir}/rcp">
			<fileset dir="../org.eclipse.jubula.examples.aut.adder.rcp.product/target/products/org.eclipse.jubula.product.examples.aut.adder.rcp/"/>
		</move>

	</target>

	<target name="releaseSimpleAdderWeb">
		<mkdir dir="${examples.aut.simpleAdder.dir}/html"/>
		<copy todir="${examples.aut.simpleAdder.dir}/html">
			<fileset dir="../${SimpleAdder.Web}/resources/aut"/>
		</copy>
	</target>

	<target name="releaseDvdTool">
		<ant dir="../${DvdTool}" antfile="buildScript.xml" target="build" inheritAll="false" />
		<mkdir dir="${examples.aut.dir}/DVDTool"/>
		<copy todir="${examples.aut.dir}/DVDTool">
			<fileset dir="../${DvdTool}/build/jars/"/>
		</copy>
		<copy todir="${examples.aut.dir}/DVDTool">
			<fileset dir="../${DvdTool}/resources/launcher"/>
		</copy>
		<antcall target="markAsExecutable" />
	</target>

	<target name="clean">
		<delete dir="${build.dir}" />
		<ant dir="../${SimpleAdder.Swing}" antfile="buildScript.xml" target="clean" inheritAll="false" />
		<ant dir="../${SimpleAdder.JavaFX}" antfile="buildScript.xml" target="clean" inheritAll="false" />
		<ant dir="../${SimpleAdder.SWT}" antfile="buildScript.xml" target="clean" inheritAll="false" />
		<ant dir="../${SimpleAdder.RCP}" antfile="buildScript.xml" target="clean" inheritAll="false" />
		<ant dir="../${DvdTool}" antfile="buildScript.xml" target="clean" inheritAll="false" />
	</target>

	<target name="markAsExecutable">
		<chmod dir="${build.dir}" perm="775" includes="**/*.sh"/>
	</target>

	<target name="releaseProjects">
		<copy todir="${examples.projects.dir}">
			<fileset dir="resources/projects/samples"/>
		</copy>
	</target>

	<target name="releaseWorkspace">
		<copy todir="${build.dir}">
			<fileset dir="resources/workspace"/>
		</copy>
	</target>

	<target name="releaseExampleSwingExtensionAUT">
		<ant dir="../${ExampleSwingExtensionAUT}" antfile="buildScript.xml" target="build" inheritAll="false" />
		<mkdir dir="${examples.development.dir}/extension/AUT"/>
		<copy todir="${examples.development.dir}/extension/AUT">
			<fileset dir="../${ExampleSwingExtensionAUT}/build/jars/"/>
		</copy>
	</target>

	<target name="releaseDevelopment" depends="releaseExampleSwingExtensionAUT,
		releaseExampleJavaFXExtensionAUT">
		<mkdir dir="${examples.development.dir}/gef"/>
		<zip destfile="${examples.development.dir}/gef/${ExampleGEFIdentifierExample}.zip">
			<zipfileset dir="../${ExampleGEFIdentifierExample}" prefix="${ExampleGEFIdentifierExample}"/>
		</zip>
	</target>

	<target name="releaseLibrary">
		<copy todir="${examples.library.dir}">
			<fileset dir="../org.eclipse.jubula.client.ui.rcp/resources/library"/>
		</copy>
	</target>

	<target name="releaseScripts">
		<copy todir="${examples.scripts.dir}">
			<fileset dir="resources/scripts"/>
		</copy>
	</target>

</project>

Back to the top