1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="extensionpoint" default="run" basedir=".">
8 <antcall target="-build-one">
9 <param name="version" value="api"/>
11 <antcall target="-build-one">
12 <param name="version" value="helloworld"/>
13 <param name="cp" location="build/api/classes"/>
15 <antcall target="-build-one">
16 <param name="version" value="hellodesign"/>
17 <param name="cp" location="build/api/classes"/>
21 <target name="run" depends="build">
22 <echo level="info" message="Running without any extension points."/>
23 <antcall target="-run-one">
25 <echo level="info" message="Running with 'Hello World!' extension."/>
26 <antcall target="-run-one">
27 <param name="version1" value="helloworld"/>
29 <echo level="info" message="Running with 'Hello Design!' extension."/>
30 <antcall target="-run-one">
31 <param name="version1" value="hellodesign"/>
33 <echo level="info" message="Running with both extension."/>
34 <antcall target="-run-one">
35 <param name="version1" value="helloworld"/>
36 <param name="version2" value="hellodesign"/>
41 <!-- support methods -->
43 <target name="-run-one">
45 classpath="build/${version1}/classes:build/${version2}/classes:build/api/classes:../libs/dist/org-openide-util.jar"
46 classname="org.apidesign.extensionpoint.Main"
53 <target name="-build-one">
54 <fail message="You need to specify version number" unless="version"/>
56 <mkdir dir="build/${version}/classes"/>
57 <property name="cp" value=""/>
59 srcdir="src-${version}"
60 destdir="build/${version}/classes"
61 source="1.5" target="1.5"
64 <copy todir="build/${version}/classes">
65 <fileset dir="src-${version}">
66 <exclude name="**/*.java"/>