-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
62 lines (53 loc) · 1.74 KB
/
build.xml
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
<project name="jmseq" basedir=".">
<property environment="env" />
<property name="mop.dir" location="${basedir}/javamop" />
<property name="mop.src.dir" location="${basedir}/src/main/java/mop" />
<property name="classes.dir" location="${basedir}/target/classes" />
<property name="java.home" location="${env.JAVA_HOME}" />
<property name="java.lib" location="${java.home}/lib" />
<property name="tools.jar" value="tools.jar" />
<property name="javamop-lib" location="${basedir}/lib" />
<path id="javamop-jars">
<fileset dir="${javamop-lib}">
<include name="**/javamop.jar" />
<include name="**/commons-collections-3.2.jar" />
<include name="**/logicrepository.jar" />
<include name="**/plugins/*.jar" />
</fileset>
</path>
<macrodef name="javamopc">
<attribute name="mop.dir" />
<attribute name="mop" />
<sequential>
<mkdir dir="${mop.src.dir}/@{mop.dir}" />
<echo>JavaMop compiling ${mop.dir}/@{mop.dir}/@{mop} to ${mop.src.dir}/@{mop.dir} </echo>
<java fork="true" classname="javamop.Main">
<classpath>
<path refid="javamop-jars">
</path>
</classpath>
<arg value="-local" />
<arg value="-d" />
<arg value="${mop.src.dir}/@{mop.dir}" />
<arg value="${mop.dir}/@{mop.dir}/@{mop}" />
</java>
</sequential>
</macrodef>
<target name="javamop-help">
<java fork="true" classname="javamop.Main">
<classpath>
<path refid="javamop-jars">
</path>
</classpath>
</java>
</target>
<target name="javamopc-HashSet">
<javamopc mop.dir="ERE/HashSet" mop="HashSet.mop" />
</target>
<target name="javamopc-HasNext">
<javamopc mop.dir="ERE/HasNext" mop="HasNext.mop" />
</target>
<target name="javamopc-Apples">
<javamopc mop.dir="apples" mop="Apples.mop" />
</target>
</project>