source: CIVL/mods/dev.civl.com/common.xml@ cb4d4f4

main test-branch
Last change on this file since cb4d4f4 was d5cb19a, checked in by Stephen Siegel <siegel@…>, 3 years ago

Fixing some things in the build files, adding overall build file.

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

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