Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 261247
Collapse All | Expand All

(-)build.properties (-1 / +2 lines)
Lines 1-4 Link Here
1
source.. = test/
1
source.. = test/,\
2
           suite/
2
output.. = bin/
3
output.. = bin/
3
bin.includes = META-INF/,\
4
bin.includes = META-INF/,\
4
               .
5
               .
(-)src/org/eclipse/ptp/rdt/core/tests/ConnectionSuite.java (-7 / +6 lines)
Lines 10-36 Link Here
10
 *******************************************************************************/ 
10
 *******************************************************************************/ 
11
package org.eclipse.ptp.rdt.core.tests;
11
package org.eclipse.ptp.rdt.core.tests;
12
12
13
import java.io.File;
13
import junit.framework.TestResult;
14
import junit.framework.TestResult;
14
import junit.framework.TestSuite;
15
import junit.framework.TestSuite;
15
16
16
17
18
/**
17
/**
19
 * A test suite that will establish a connection before running the tests.
18
 * A test suite that will establish a connection before running the tests.
20
 */
19
 */
21
20
22
public class ConnectionSuite extends TestSuite {
21
public class ConnectionSuite extends TestSuite {
23
22
24
	private String propertyFile;
23
	private File propertyFile;
25
	private String serviceModelFile;
24
	private File serviceModelFile;
26
25
27
	public ConnectionSuite() {
26
	public ConnectionSuite() {
28
		
27
		
29
	}
28
	}
30
	
29
	
31
	public ConnectionSuite(String propertyFile, String serviceModelFile) {
30
	public ConnectionSuite(File propertiesFile, File serviceModelFile2) {
32
		this.propertyFile = propertyFile;
31
		this.propertyFile = propertiesFile;
33
		this.serviceModelFile = serviceModelFile;
32
		this.serviceModelFile = serviceModelFile2;
34
	}
33
	}
35
	
34
	
36
	public void connect() throws Exception {
35
	public void connect() throws Exception {
(-)src/org/eclipse/ptp/rdt/core/tests/ConnectionManager.java (-8 / +6 lines)
Lines 10-15 Link Here
10
 *******************************************************************************/ 
10
 *******************************************************************************/ 
11
package org.eclipse.ptp.rdt.core.tests;
11
package org.eclipse.ptp.rdt.core.tests;
12
12
13
import java.io.File;
13
import java.io.FileInputStream;
14
import java.io.FileInputStream;
14
import java.io.FileReader;
15
import java.io.FileReader;
15
import java.io.IOException;
16
import java.io.IOException;
Lines 32-40 Link Here
32
public class ConnectionManager {
33
public class ConnectionManager {
33
34
34
	public static final String PROPERTY_CONNECTION_CLASS = "connection.class";
35
	public static final String PROPERTY_CONNECTION_CLASS = "connection.class";
35
	
36
	
37
	
38
	public static final String PROPERTY_WORKSPACE    = "project.workspace";
36
	public static final String PROPERTY_WORKSPACE    = "project.workspace";
39
	public static final String PROPERTY_SERVICE_MODEL_CONFIG_FILE = "project.servicemodel";
37
	public static final String PROPERTY_SERVICE_MODEL_CONFIG_FILE = "project.servicemodel";
40
	
38
	
Lines 44-50 Link Here
44
	
42
	
45
	private IRDTTestConnection connection;
43
	private IRDTTestConnection connection;
46
	private Properties properties;
44
	private Properties properties;
47
	private String serviceModelConfigFile;
45
	private File serviceModelConfigFile;
48
	
46
	
49
	
47
	
50
	private ConnectionManager() {}
48
	private ConnectionManager() {}
Lines 61-71 Link Here
61
	 * configuration file.
59
	 * configuration file.
62
	 * @throws IOException if there is a problem reading the properties file
60
	 * @throws IOException if there is a problem reading the properties file
63
	 */
61
	 */
64
	public void initialize(String propertiesFileName, String serviceModelConfigFileName) throws IOException {
62
	public void initialize(File propertyFile, File serviceModelFile) throws IOException {
65
		properties = new Properties();
63
		properties = new Properties();		
66
		properties.load(new FileInputStream(propertiesFileName));
64
		properties.load(new FileInputStream(propertyFile));
67
		
65
		
68
		this.serviceModelConfigFile = serviceModelConfigFileName;
66
		this.serviceModelConfigFile = serviceModelFile;
69
	}
67
	}
70
	
68
	
71
	public boolean isConnected() {
69
	public boolean isConnected() {
(-)build.properties (-14 / +16 lines)
Lines 1-14 Link Here
1
###############################################################################
1
###############################################################################
2
# Copyright (c) 2008 IBM Corporation and others.
2
# Copyright (c) 2008 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
6
# http://www.eclipse.org/legal/epl-v10.html
7
#
7
#
8
# Contributors:
8
# Contributors:
9
#     IBM Corporation - initial API and implementation
9
#     IBM Corporation - initial API and implementation
10
###############################################################################
10
###############################################################################
11
source.. = src/,\
11
source.. = src/,\
12
           test/
12
           test/,\
13
bin.includes = META-INF/,\
13
           suite/
14
               .
14
bin.includes = META-INF/,\
15
               .
16
output.. = bin/
(-)build.xml (+326 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project name="org.eclipse.ptp.rdt.core.tests" default="build.jars" basedir=".">
3
4
	<property name="basews" value="${ws}"/>
5
	<property name="baseos" value="${os}"/>
6
	<property name="basearch" value="${arch}"/>
7
	<property name="basenl" value="${nl}"/>
8
	<property name="bundleId" value="org.eclipse.ptp.rdt.core.tests"/>
9
	<property name="bundleVersion" value="1.0.0"/>
10
11
	<!-- Compiler settings. -->
12
	<property name="javacFailOnError" value="false"/>
13
	<property name="javacDebugInfo" value="on"/>
14
	<property name="javacVerbose" value="false"/>
15
	<property name="logExtension" value=".log"/>
16
	<property name="compilerArg" value=""/>
17
	<property name="javacSource" value="1.3"/>
18
	<property name="javacTarget" value="1.2"/>
19
	<condition property="dir_bootclasspath" value="${java.home}/../Classes">
20
		<os family="mac"/>
21
	</condition>
22
	<property name="dir_bootclasspath" value="${java.home}/lib"/>
23
	<path id="path_bootclasspath">
24
		<fileset dir="${dir_bootclasspath}">
25
			<include name="*.jar"/>
26
		</fileset>
27
	</path>
28
	<property name="bootclasspath" refid="path_bootclasspath"/>
29
	<property name="bundleJavacSource" value="${javacSource}"/>
30
	<property name="bundleJavacTarget" value="${javacTarget}"/>
31
	<property name="bundleBootClasspath" value="${bootclasspath}"/>
32
33
	<target name="init" depends="properties">
34
<condition property="pluginTemp" value="${buildTempFolder}/plugins"		>
35
			<isset property="buildTempFolder"/>
36
		</condition>
37
		<property name="pluginTemp" value="${basedir}"/>
38
<condition property="build.result.folder" value="${pluginTemp}/org.eclipse.ptp.rdt.core.tests_1.0.0"		>
39
			<isset property="buildTempFolder"/>
40
		</condition>
41
		<property name="build.result.folder" value="${basedir}"/>
42
		<property name="temp.folder" value="${basedir}/temp.folder"/>
43
		<property name="plugin.destination" value="${basedir}"/>
44
	</target>
45
46
	<target name="properties" if="eclipse.running">
47
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
48
49
	</target>
50
51
	<target name="build.update.jar" depends="init" description="Build the plug-in: org.eclipse.ptp.rdt.core.tests for an update site.">
52
		<delete dir="${temp.folder}"/>
53
		<mkdir dir="${temp.folder}"/>
54
		<antcall target="build.jars"/>
55
		<antcall target="gather.bin.parts">
56
			<param name="destination.temp.folder" value="${temp.folder}/"/>
57
		</antcall>
58
		<jar destfile="${plugin.destination}/org.eclipse.ptp.rdt.core.tests_1.0.0.jar" basedir="${temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0" filesetmanifest="merge"/>
59
		<delete dir="${temp.folder}"/>
60
	</target>
61
62
	<target name="@dot" depends="init" unless="@dot" description="Create jar: org.eclipse.ptp.rdt.core.tests @dot.">
63
		<delete dir="${temp.folder}/@dot.bin"/>
64
		<mkdir dir="${temp.folder}/@dot.bin"/>
65
		<path id="@dot.classpath">
66
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.jface_3.4.0.I20080606-1300.jar"/>
67
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.osgi_3.4.0.v20080605-1900.jar"/>
68
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.swt_3.4.0.v3448f.jar"/>
69
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.swt.win32.win32.x86_3.4.0.v3448f.jar"/>
70
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.commands_3.4.0.I20080509-2000.jar"/>
71
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar"/>
72
			<pathelement path="../org.eclipse.rse.connectorservice.dstore/bin/"/>
73
			<pathelement path="../org.eclipse.rse.connectorservice.dstore/@dot"/>
74
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui_3.4.0.I20080610-1200.jar"/>
75
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar"/>
76
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.jobs_3.4.0.v20080512.jar"/>
77
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20080610/runtime_registry_compatibility.jar"/>
78
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20080610"/>
79
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar"/>
80
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.preferences_3.2.200.v20080421-2006.jar"/>
81
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20080610/@dot"/>
82
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar"/>
83
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.runtime.compatibility.auth_3.2.100.v20070502.jar"/>
84
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.app_1.1.0.v20080421-2006.jar"/>
85
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.osgi.services_3.1.200.v20071203.jar"/>
86
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/javax.servlet_2.4.0.v200806031604.jar"/>
87
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.workbench_3.4.0.I20080606-1300.jar"/>
88
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20080509-2000/compatibility.jar"/>
89
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.workbench.compatibility_3.2.0.I20080509-2000/@dot"/>
90
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/com.ibm.icu_3.8.1.v20080530.jar"/>
91
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.help_3.3.100.v20080610.jar"/>
92
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.expressions_3.4.0.v20080603-2000.jar"/>
93
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.jface.databinding_1.2.0.I20080515-2000a.jar"/>
94
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.databinding_1.1.0.I20080527-2000.jar"/>
95
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.resources_3.4.0.v20080604-1400.jar"/>
96
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.resources.compatibility_3.4.0.v20080604-1400.jar"/>
97
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.resources.win32.x86_3.4.0.v20071204.jar"/>
98
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ant.core_3.2.0.v20080529.jar"/>
99
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.variables_3.2.100.v20080529-1300.jar"/>
100
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.filesystem_1.2.0.v20080604-1400.jar"/>
101
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.filesystem.win32.x86_1.1.0.v20080604-1400.jar"/>
102
			<pathelement path="../org.eclipse.rse.services/bin/"/>
103
			<pathelement path="../org.eclipse.rse.services/@dot"/>
104
			<pathelement path="../org.eclipse.rse.services.dstore/bin/"/>
105
			<pathelement path="../org.eclipse.rse.services.dstore/@dot"/>
106
			<pathelement path="../org.eclipse.dstore.core/bin/"/>
107
			<pathelement path="../org.eclipse.dstore.core/@dot"/>
108
			<pathelement path="../org.eclipse.dstore.extra/bin/"/>
109
			<pathelement path="../org.eclipse.dstore.extra/@dot"/>
110
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.views_3.3.0.I20080509-2000.jar"/>
111
			<pathelement path="../org.eclipse.rse.ui/bin/"/>
112
			<pathelement path="../org.eclipse.rse.ui/@dot"/>
113
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.jface.text_3.4.0.v20080603-2000.jar"/>
114
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.text_3.4.0.v20080605-1800.jar"/>
115
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.forms_3.3.100.v20080611.jar"/>
116
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.ide_3.4.0.I20080606-1300.jar"/>
117
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.win32_3.2.100.v20080408-0800.jar"/>
118
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.update.configurator_3.2.200.v20080417.jar"/>
119
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.update.core_3.2.200.v20080515.jar"/>
120
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.update.core.win32_3.2.100.v20080107.jar"/>
121
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.net_1.1.0.I20080604.jar"/>
122
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.net.win32.x86_1.0.0.I20080521.jar"/>
123
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.security_1.0.0.v20080512-1800.jar"/>
124
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.equinox.security.win32.x86_1.0.0.v20080529-1600.jar"/>
125
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.update.ui_3.2.100.v20080318.jar"/>
126
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.workbench.texteditor_3.4.0.v20080603-2000.jar"/>
127
			<pathelement path="../org.eclipse.rse.core/bin/"/>
128
			<pathelement path="../org.eclipse.rse.core/@dot"/>
129
			<pathelement path="../org.eclipse.cdt.core/bin"/>
130
			<pathelement path="../org.eclipse.cdt.core/@dot"/>
131
			<pathelement path="../org.eclipse.cdt.core.linux.ia64/@dot"/>
132
			<pathelement path="../org.eclipse.cdt.core.linux.ppc/@dot"/>
133
			<pathelement path="../org.eclipse.cdt.core.qnx/bin"/>
134
			<pathelement path="../org.eclipse.cdt.core.qnx/cdt_qnx.jar"/>
135
			<pathelement path="../org.eclipse.cdt.core.qnx/@dot"/>
136
			<pathelement path="../org.eclipse.cdt.core.linux/bin"/>
137
			<pathelement path="../org.eclipse.cdt.core.linux/cdt_linux.jar"/>
138
			<pathelement path="../org.eclipse.cdt.core.linux/@dot"/>
139
			<pathelement path="../org.eclipse.cdt.core.macosx/bin"/>
140
			<pathelement path="../org.eclipse.cdt.core.macosx/cdt_macosx.jar"/>
141
			<pathelement path="../org.eclipse.cdt.core.macosx/@dot"/>
142
			<pathelement path="../org.eclipse.cdt.core.aix/bin"/>
143
			<pathelement path="../org.eclipse.cdt.core.aix/cdtaix.jar"/>
144
			<pathelement path="../org.eclipse.cdt.core.aix/@dot"/>
145
			<pathelement path="../org.eclipse.cdt.core.linux.x86/@dot"/>
146
			<pathelement path="../org.eclipse.cdt.core.linux.x86_64/@dot"/>
147
			<pathelement path="../org.eclipse.cdt.core.solaris/bin"/>
148
			<pathelement path="../org.eclipse.cdt.core.solaris/cdt_solaris.jar"/>
149
			<pathelement path="../org.eclipse.cdt.core.solaris/@dot"/>
150
			<pathelement path="../org.eclipse.cdt.core.win32/bin"/>
151
			<pathelement path="../org.eclipse.cdt.core.win32/cdt_win32.jar"/>
152
			<pathelement path="../org.eclipse.cdt.core.win32/@dot"/>
153
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.core.filebuffers_3.4.0.v20080603-2000.jar"/>
154
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ltk.core.refactoring_3.4.0.v20080603-2000.jar"/>
155
			<pathelement path="../org.eclipse.ptp.rdt.core/build/"/>
156
			<pathelement path="../org.eclipse.ptp.rdt.core/@dot"/>
157
			<pathelement path="../org.eclipse.ptp.rdt.services/bin/"/>
158
			<pathelement path="../org.eclipse.ptp.rdt.services/@dot"/>
159
			<pathelement path="../org.eclipse.cdt.make.core/bin"/>
160
			<pathelement path="../org.eclipse.cdt.make.core/@dot"/>
161
			<pathelement path="../org.eclipse.cdt.managedbuilder.core/bin"/>
162
			<pathelement path="../org.eclipse.cdt.managedbuilder.core/@dot"/>
163
			<pathelement path="../org.eclipse.ptp.remote.core/bin/"/>
164
			<pathelement path="../org.eclipse.ptp.remote.core/@dot"/>
165
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.junit4_4.3.1/junit.jar"/>
166
			<pathelement path="../org.eclipse.cdt.ui.tests/bin"/>
167
			<pathelement path="../org.eclipse.cdt.ui.tests/cdtuitests.jar"/>
168
			<pathelement path="../org.eclipse.cdt.ui/bin"/>
169
			<pathelement path="../org.eclipse.cdt.ui/@dot"/>
170
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.editors_3.4.0.v20080603-2000.jar"/>
171
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.search_3.4.0.v20080603-2000.jar"/>
172
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ltk.ui.refactoring_3.4.0.v20080605-1800.jar"/>
173
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.navigator_3.3.100.I20080606-1300.jar"/>
174
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.compare_3.4.0.I20080604.jar"/>
175
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.team.core_3.4.0.I20080605.jar"/>
176
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.team.ui_3.4.0.I20080604.jar"/>
177
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.navigator.resources_3.3.100.I20080606-1300.jar"/>
178
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.views.properties.tabbed_3.4.0.I20080527-2000.jar"/>
179
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.eclipse.ui.console_3.3.0.v20080529-1300.jar"/>
180
			<pathelement path="../../../eclipse/eclipse_3.4/plugins/org.junit_3.8.2.v20080602-1318/junit.jar"/>
181
			<pathelement path="../org.eclipse.cdt.core.tests/bin/"/>
182
			<pathelement path="../org.eclipse.cdt.core.tests/cdtcoretests.jar"/>
183
		</path>
184
		<!-- compile the source code -->
185
		<javac destdir="${temp.folder}/@dot.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bundleBootClasspath}" source="${bundleJavacSource}" target="${bundleJavacTarget}"		>
186
			<compilerarg line="${compilerArg}" compiler="${build.compiler}"/>
187
			<classpath refid="@dot.classpath" />
188
			<src path="src/"			/>
189
			<src path="test/"			/>
190
			<compilerarg value="@${basedir}/javaCompiler...args" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
191
			<compilerarg line="-log '${temp.folder}/@dot.bin${logExtension}'" compiler="org.eclipse.jdt.core.JDTCompilerAdapter"/>
192
		</javac>
193
		<!-- Copy necessary resources -->
194
		<copy todir="${temp.folder}/@dot.bin" failonerror="true" overwrite="false">
195
			<fileset dir="src/">
196
				<exclude name="**/*.java"/>
197
				<exclude name="**/package.htm*"/>
198
			</fileset>
199
			<fileset dir="test/">
200
				<exclude name="**/*.java"/>
201
				<exclude name="**/package.htm*"/>
202
			</fileset>
203
		</copy>
204
		<mkdir dir="${build.result.folder}"/>
205
		<copy todir="${build.result.folder}/@dot" failonerror="true" overwrite="false">
206
			<fileset dir="${temp.folder}/@dot.bin">
207
			</fileset>
208
		</copy>
209
		<delete dir="${temp.folder}/@dot.bin"/>
210
	</target>
211
212
	<target name="src.zip" depends="init" unless="src.zip">
213
		<mkdir dir="${build.result.folder}"/>
214
		<antcall target="zip.src.zip"/>
215
	</target>
216
	<target name="zip.src.zip">
217
		<zip destfile="${build.result.folder}/src.zip" filesonly="false" whenempty="skip" update="false">
218
			<fileset dir="src/">
219
				<include name="**/*.java"/>
220
			</fileset>
221
			<fileset dir="test/">
222
				<include name="**/*.java"/>
223
			</fileset>
224
		</zip>
225
	</target>
226
	<target name="copy.src.zip">
227
		<copy todir="${source.destination.folder}/" failonerror="true" overwrite="true">
228
			<fileset dir="src/">
229
				<include name="**/*.java"/>
230
			</fileset>
231
			<fileset dir="test/">
232
				<include name="**/*.java"/>
233
			</fileset>
234
		</copy>
235
	</target>
236
237
	<target name="build.jars" depends="init" description="Compile classes and build nested jars for the plug-in: org.eclipse.ptp.rdt.core.tests.">
238
		<available property="@dot" file="${build.result.folder}/@dot"/>
239
		<antcall target="@dot"/>
240
	</target>
241
242
	<target name="build.sources" depends="init">
243
		<available property="src.zip" file="${build.result.folder}/src.zip"/>
244
		<antcall target="src.zip"/>
245
	</target>
246
247
	<target name="gather.bin.parts" depends="init" if="destination.temp.folder">
248
		<mkdir dir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0"/>
249
		<copy todir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0" failonerror="true" overwrite="false">
250
			<fileset dir="${build.result.folder}/@dot">
251
				<include name="**"/>
252
			</fileset>
253
		</copy>
254
		<copy todir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0" failonerror="true" overwrite="false">
255
			<fileset dir="${basedir}">
256
				<include name="META-INF/"/>
257
			</fileset>
258
		</copy>
259
	</target>
260
261
	<target name="build.zips" depends="init">
262
	</target>
263
264
	<target name="gather.sources" depends="init" if="destination.temp.folder">
265
		<mkdir dir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0"/>
266
		<copy file="${build.result.folder}/src.zip" todir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0" failonerror="false" overwrite="false"/>
267
		<antcall target="copy.src.includes">
268
			<param name="source.destination.folder" value="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0"/>
269
		</antcall>
270
	</target>
271
272
	<target name="gather.individual.sources" depends="init">
273
		<antcall target="copy.src.zip">
274
			<param name="source.destination.folder" value="${destination.temp.folder}"/>
275
		</antcall>
276
		<antcall target="copy.src.includes">
277
			<param name="source.destination.folder" value="${destination.temp.folder}"/>
278
		</antcall>
279
	</target>
280
281
	<target name="copy.src.includes" depends="init">
282
	</target>
283
284
	<target name="gather.logs" depends="init" if="destination.temp.folder">
285
		<mkdir dir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0"/>
286
		<copy todir="${destination.temp.folder}/org.eclipse.ptp.rdt.core.tests_1.0.0" failonerror="false" overwrite="false">
287
			<fileset dir="${temp.folder}">
288
				<include name="@dot.bin${logExtension}"/>
289
			</fileset>
290
		</copy>
291
	</target>
292
293
	<target name="clean" depends="init" description="Clean the plug-in: org.eclipse.ptp.rdt.core.tests of all the zips, jars and logs created.">
294
		<delete dir="${build.result.folder}/@dot"/>
295
		<delete file="${build.result.folder}/src.zip"/>
296
		<delete file="${plugin.destination}/org.eclipse.ptp.rdt.core.tests_1.0.0.jar"/>
297
		<delete file="${plugin.destination}/org.eclipse.ptp.rdt.core.tests_1.0.0.zip"/>
298
		<delete dir="${temp.folder}"/>
299
	</target>
300
301
	<target name="refresh" depends="init" if="eclipse.running" description="Refresh this folder.">
302
		<eclipse.convertPath fileSystemPath="D:/workspaces/cdt_5.0_branch/org.eclipse.ptp.rdt.core.tests" property="resourcePath"/>
303
		<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
304
	</target>
305
306
	<target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: org.eclipse.ptp.rdt.core.tests.">
307
		<delete dir="${temp.folder}"/>
308
		<mkdir dir="${temp.folder}"/>
309
		<antcall target="build.jars"/>
310
		<antcall target="build.sources"/>
311
		<antcall target="gather.bin.parts">
312
			<param name="destination.temp.folder" value="${temp.folder}/"/>
313
		</antcall>
314
		<antcall target="gather.sources">
315
			<param name="destination.temp.folder" value="${temp.folder}/"/>
316
		</antcall>
317
		<delete>
318
			<fileset dir="${temp.folder}">
319
				<include name="**/*.bin${logExtension}"/>
320
			</fileset>
321
		</delete>
322
		<zip destfile="${plugin.destination}/org.eclipse.ptp.rdt.core.tests_1.0.0.zip" basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
323
		<delete dir="${temp.folder}"/>
324
	</target>
325
326
</project>

Return to bug 261247