source: CIVL/common.xml

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[aad342c]1<project name="common" basedir=".">
2
3 <!-- This file contains definitions that are shared by all ant scripts
4 in this repository -->
5
[ea777aa]6 <!-- Get name of directory containing this file and store in root.dir -->
7 <dirname property="root.dir" file="${ant.file.common}"/>
8 <property name="mod.dir" location="${root.dir}/mods" />
9 <property name="com.dir" location="${mod.dir}/dev.civl.com" />
[aad342c]10
11 <!-- If there is a file named build.properties in this directory,
12 read it. Else, read build_default.properties. -->
13
14 <condition property="properties.file"
[ea777aa]15 value="${root.dir}/build.properties"
16 else="${root.dir}/build_default.properties">
17 <available file="${root.dir}/build.properties" />
[aad342c]18 </condition>
19 <property file="${properties.file}"/>
[d5cb19a]20 <property name="revision" value="" /> <!-- override on the command line -->
[aad342c]21
22 <!-- Taskdefs -->
23
24 <taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
25 <classpath path="${jacoco.jar}" />
26 </taskdef>
27
28
29 <!-- Names of modules and main class -->
30
31 <property name="mod.abc" value="dev.civl.abc" />
32 <property name="mod.sarl" value="dev.civl.sarl" />
33 <property name="mod.gmc" value="dev.civl.gmc" />
34 <property name="mod.mc" value="dev.civl.mc" />
[d5cb19a]35 <property name="mod.antlr3" value="antlr3runtime" />
36 <property name="mod.antlr4" value="antlr4runtime" />
37 <property name="main.class" value="${mod.mc}.CIVL" />
[aad342c]38
39 <!-- Paths and Directories -->
40
41 <path id="antlr3.class.path">
42 <pathelement location="${antlr3.jar}" />
43 </path>
44
45 <path id="antlr4.class.path">
46 <pathelement location="${antlr4.jar}" />
47 </path>
48
49 <property name="lib.dir" value="${root.dir}/lib" />
50 <property name="app.dir" value="${root.dir}/civl.app" />
[d5cb19a]51 <property name="civl.complete.jar"
52 value="${lib.dir}/civl-complete.jar" />
[aad342c]53
54 <property name="gmc.dir" value="${mod.dir}/${mod.gmc}" />
55 <property name="gmc.src.dir" value="${gmc.dir}/src" />
56 <property name="gmc.bin.dir" value="${gmc.dir}/bin" />
57 <property name="gmc.lib.dir" value="${gmc.dir}/lib" />
58 <property name="gmc.test.dir" value="${gmc.dir}/test" />
59 <property name="gmc.javadoc.dir" value="${gmc.dir}/javadoc" />
60 <property name="gmc.junit.dir" value="${gmc.dir}/junit" />
61 <property name="gmc.coverage.dir" value="${gmc.dir}/coverage" />
62
63 <property name="sarl.dir" value="${mod.dir}/${mod.sarl}" />
64 <property name="sarl.src.dir" value="${sarl.dir}/src" />
65 <property name="sarl.bin.dir" value="${sarl.dir}/bin" />
66 <property name="sarl.lib.dir" value="${sarl.dir}/lib" />
67 <property name="sarl.test.dir" value="${sarl.dir}/test" />
68 <property name="sarl.javadoc.dir" value="${sarl.dir}/javadoc" />
69 <property name="sarl.junit.dir" value="${sarl.dir}/junit" />
70 <property name="sarl.coverage.dir" value="${sarl.dir}/coverage" />
71 <property name="sarl.bench.dir" value="${sarl.dir}/bench" />
72
73 <property name="abc.dir" value="${mod.dir}/${mod.abc}" />
74 <property name="abc.grammar.dir" value="${abc.dir}/grammar" />
75 <property name="abc.src.dir" value="${abc.dir}/src" />
76 <property name="abc.bin.dir" value="${abc.dir}/bin" />
77 <property name="abc.lib.dir" value="${abc.dir}/lib" />
78 <property name="abc.test.dir" value="${abc.dir}/test" />
79 <property name="abc.javadoc.dir" value="${abc.dir}/javadoc" />
80 <property name="abc.junit.dir" value="${abc.dir}/junit" />
81 <property name="abc.coverage.dir" value="${abc.dir}/coverage" />
82
83 <property name="mc.dir" value="${mod.dir}/${mod.mc}" />
84 <property name="mc.src.dir" value="${mc.dir}/src" />
85 <property name="mc.bin.dir" value="${mc.dir}/bin" />
86 <property name="mc.lib.dir" value="${mc.dir}/lib" />
87 <property name="mc.test.dir" value="${mc.dir}/test" />
88 <property name="mc.javadoc.dir" value="${mc.dir}/javadoc" />
89 <property name="mc.junit.dir" value="${mc.dir}/junit" />
90 <property name="mc.coverage.dir" value="${mc.dir}/coverage" />
91 <property name="mc.bench.dir" value="${mc.dir}/bench" />
92
[d5cb19a]93 <target name="clean-default" description="Delete default files.">
94 <delete>
95 <fileset dir="." defaultexcludes="false" includes="**/*~" />
96 <fileset dir="." defaultexcludes="false" includes="**/*.tmp" />
97 <fileset dir="." includes="junitvm*" />
98 <fileset dir="." includes="jacoco*" />
99 </delete>
100 </target>
101
[aad342c]102</project>
Note: See TracBrowser for help on using the repository browser.