This repository has been archived by the owner on Jul 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.xml
167 lines (138 loc) · 4.46 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--L
Copyright Ekagra Software Technologies Ltd.
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/xmihandler/LICENSE.txt for details.
L-->
<project name="XMI In Out" default="compile" basedir=".">
<property file="build.properties"/>
<property name="src.dir" value="src"/>
<property name="test.src.dir" value="test/src"/>
<property name="test.class.dir" value="test/classes" />
<property name="class.dir" value="classes"/>
<property name="lib.dir" value="lib"/>
<property name="dist.dir" value="dist" />
<property name="config.dir" value="properties"/>
<property name="docs.dir" value="javadoc" />
<property name="log4j.dir" value="test/resources" />
<path id="proj.class.path">
<pathelement location="${class.dir}"/>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
<include name="**/*.jar"/>
</fileset>
</path>
<path id="test.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<pathelement location="${class.dir}"/>
<pathelement location="${test.class.dir}"/>
</path>
<target name="clean">
<delete dir="${class.dir}" failonerror="true" />
<delete dir="${test.class.dir}" failonerror="true" />
</target>
<target name="compile">
<mkdir dir="${class.dir}"/>
<mkdir dir="${test.class.dir}"/>
<javac
destdir="${class.dir}"
debug="on"
srcdir="${src.dir}"
deprecation="false"
fork="yes"
>
<classpath refid="proj.class.path"/>
</javac>
<javac
debug="on"
destdir="${class.dir}"
srcdir="${test.src.dir}"
deprecation="false"
>
<classpath refid="test.classpath"/>
</javac>
</target>
<target name="prepare"
depends="compile">
</target>
<target name="dist" depends="prepare">
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/xmi.in.out.jar">
<fileset dir="${class.dir}">
</fileset>
</jar>
</target>
<target name="deploy" depends="dist">
<copy todir="${deploy.dir}" file="${dist.dir}/xmi.in.out.jar"/>
</target>
<target name="doc">
<mkdir dir="${docs.dir}"/>
<mkdir dir="${docs.dir}/api"/>
<javadoc
destdir="${docs.dir}/api"
author="true"
version="true"
use="true"
windowtitle="Xmi In Out">
<packageset dir="src" defaultexcludes="yes">
<include name="gov/nih/nci/ncicb/xmiinout/domain" />
<include name="gov/nih/nci/ncicb/xmiinout/handler" />
<include name="gov/nih/nci/ncicb/xmiinout/util" />
</packageset>
<doctitle><![CDATA[<h1>Xmi In Out</h1>]]></doctitle>
<bottom><![CDATA[<i>~~--~~</i>]]></bottom>
<tag name="todo" scope="all" description="To do:" />
<link href="http://java.sun.com/products/jdk/1.5/docs/api/" />
<link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/>
</javadoc>
</target>
<target name="jUnit" depends="clean, prepare, testEA, testArgo">
<java classname="XmiTestCase"
fork="yes"
>
<arg value="test/testdata/test-with-dependency.xmi"/>
<classpath refid="test.classpath"/>
<sysproperty key="log4j.configuration"
value="${log4j.dir}/log4j.properties"/>
</java>
</target>
<target name="testArgo" depends="clean, prepare">
<java classname="SDKTestModel_TestCase"
fork="yes"
>
<arg value="test/testdata/sdk.uml"/>
<arg value="ArgoUMLDefault"/>
<arg value=".new.uml"/>
<arg value="Model"/>
<classpath refid="test.classpath"/>
<sysproperty key="log4j.configuration"
value="${log4j.dir}/log4j.properties"/>
</java>
</target>
<target name="testEA" depends="clean, prepare">
<java classname="SDKTestModel_TestCase"
fork="yes"
>
<arg value="test/testdata/sdk.xmi"/>
<arg value="EADefault"/>
<arg value=".new.xmi"/>
<arg value="EA Model"/>
<classpath refid="test.classpath"/>
<sysproperty key="log4j.configuration"
value="${log4j.dir}/log4j.properties"/>
</java>
</target>
<target name="testEA2" depends="prepare">
<java classname="XmiTestCase"
fork="yes"
>
<arg value="test/testdata/test-with-dependency.xmi"/>
<classpath refid="test.classpath"/>
<sysproperty key="log4j.configuration"
value="${log4j.dir}/log4j.properties"/>
</java>
</target>
</project>