-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
43 lines (31 loc) · 1.43 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
<project name="social-framework" basedir="." default="generate-domain">
<property name="application.name" value="${ant.project.name}"/>
<property name="src.dir" value="src/main"/>
<property name="java.src.dir" value="${src.dir}/java"/>
<property name="dml.src.dir" value="${src.dir}/dml"/>
<property name="lib.dir" value="lib"/>
<property name="target.dir" value="target"/>
<property name="classes.target.dir" value="${target.dir}/classes"/>
<property name="src.target.dir" value="${target.dir}/src"/>
<property name="bin.dir" value="bin"/>
<property name="dml.filename" value="${application.name}.dml"/>
<property name="javac.encoding" value="UTF-8" />
<property name="java.file.encoding" value="UTF-8" />
<path id="project.classpath">
<pathelement location="${classes.target.dir}" />
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef resource="pt/ist/fenixframework/dml-ant.xml" classpathref="project.classpath"/>
<target name="generate-domain" description="Generates the FenixFramework base classes">
<dml-domain-generator destDirectory="${java.src.dir}"
destDirectoryBase="${src.target.dir}">
<fileset file="${dml.src.dir}/${application.name}.dml"/>
</dml-domain-generator>
</target>
<target name="clean" description="Cleans the project">
<delete dir="${target.dir}" />
<delete dir="${bin.dir}" />
</target>
</project>