Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8c456c994579ffd95fd82605ee5edbe238aa0985 (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
<?xml version="1.0"?>
<!-- ======================================================================
 	 Copyright (c) 2005, 2008 IBM Corporation and others.\
 	 This program and the accompanying materials 
 	 are made available under the terms of the Eclipse Public License 2.0
 	 which accompanies this distribution, and is available at
 	 https://www.eclipse.org/legal/epl-2.0/
 	 
 	 SPDX-License-Identifier: EPL-2.0
 
 	 Contributors:
    	 IBM Corporation - initial API and implementation
         Wind River Systems - adopted to use with DSF

     EclipseCon    
     DSF Tutorial Exercises
     ====================================================================== -->
<project name="EclipseCon" default="generateAll">
	<description>
            DSF Tutorial Exercises
    </description>

	<taskdef name="preprocess" classname="org.eclipse.cdt.examples.ant.tasks.PreProcessor" classpath="bin" />
	<property name="$workspace" location="c:\eclipse-dev\dev-3.4" />
	<property name="srcBase" location="${workspace}/org.eclipse.cdt.examples.dsf/src_preprocess" />
	<property name="destBase" location="${workspace}/org.eclipse.cdt.examples.dsf/src" />

	<!-- ================================= 
          target: generateAll              
         ================================= -->
	<target name="generateAll" description="--> DSF Tutorial Exercises">
		
    <!-- = = = = = = = = = = = = = = = = =
          macrodef: process          
         = = = = = = = = = = = = = = = = = -->
    <macrodef name="process">
        <attribute name="packagedir"/>
        <sequential>
            <delete dir="src/@{packagedir}"/>
            <mkdir dir="src/@{packagedir}"/>
            <mkdir dir="src/@{packagedir}/answers"/>
        	<preprocess destdir="src/@{packagedir}" symbols="exercises">
        		<fileset dir="src_preprocess/@{packagedir}"/>
        	</preprocess>
        	<preprocess destdir="src/@{packagedir}/answers" symbols="answers">
        		<fileset dir="src_preprocess/@{packagedir}"/>
        	</preprocess>
        </sequential>
    </macrodef>

	<process packagedir="org/eclipse/cdt/examples/dsf/requestmonitor"/>
    <process packagedir="org/eclipse/cdt/examples/dsf/dataviewer"/>
	</target>

</project>

Back to the top