forked from nickdul/quickfix-logviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
155 lines (148 loc) · 6.82 KB
/
Copy pathbuild.xml
File metadata and controls
155 lines (148 loc) · 6.82 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="quickfix-logviewer-master" default="all" basedir=".">
<property file="local.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.pyc/**"/>
<exclude name="**/.pyo/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/*.hprof/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/*.lib/**"/>
<exclude name="**/*~/**"/>
<exclude name="**/__pycache__/**"/>
<exclude name="**/.bundle/**"/>
<exclude name="**/*.rbc/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.zip"/>
<include name="*.apk"/>
<include name="*.war"/>
<include name="*.egg"/>
<include name="*.ear"/>
<include name="*.ane"/>
<include name="*.swc"/>
<include name="*.jar"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
<include name="**/?*.ftl"/>
</patternset>
<!-- Modules -->
<!-- Module quickfix-logviewer -->
<dirname property="basedir" file="${ant.file}"/>
<property name="compiler.args.quickfix-logviewer" value="-encoding UTF-8 -source 1.7 ${compiler.args}"/>
<property name="output.dir" value="${basedir}/build"/>
<property name="quickfix-logviewer.output.dir" value="${output.dir}/classes/main"/>
<property name="quickfix-logviewer.testoutput.dir" value="${output.dir}/classes/test"/>
<path id="bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="production.classpath">
<pathelement location="${basedir}/lib/junit.jar"/>
<pathelement location="${basedir}/lib/quickfixj.jar"/>
</path>
<path id="quickfix-logviewer.runtime.production.module.classpath">
<pathelement location="${quickfix-logviewer.output.dir}"/>
<pathelement location="${basedir}/lib/junit.jar"/>
<pathelement location="${basedir}/lib/quickfixj.jar"/>
</path>
<path id="classpath">
<pathelement location="${quickfix-logviewer.output.dir}"/>
<pathelement location="${basedir}/lib/junit.jar"/>
<pathelement location="${basedir}/lib/quickfixj.jar"/>
</path>
<path id="quickfix-logviewer.runtime.module.classpath">
<pathelement location="${quickfix-logviewer.testoutput.dir}"/>
<pathelement location="${quickfix-logviewer.output.dir}"/>
<pathelement location="${basedir}/lib/junit.jar"/>
<pathelement location="${basedir}/lib/quickfixj.jar"/>
</path>
<patternset id="excluded.from.module.quickfix-logviewer">
<patternset refid="ignored.files"/>
<exclude name="build/classes/**"/>
<exclude name="build/classes/main/**"/>
<exclude name="build/classes/main/lib/**"/>
<exclude name="build/classes/main/quickfix/**"/>
<exclude name="build/classes/main/quickfix/logviewer/**"/>
<exclude name="build/classes/main/quickfix/logviewer/test/**"/>
</patternset>
<patternset id="excluded.from.compilation.quickfix-logviewer">
<patternset refid="excluded.from.module.quickfix-logviewer"/>
</patternset>
<path id="sourcepath" path="${basedir}/quickfix">
</path>
<target name="compile.module.quickfix-logviewer"
depends="compile.production,compile.tests"
description="Compile module quickfix-logviewer"/>
<target name="compile.production"
description="Compile module quickfix-logviewer; production classes">
<mkdir dir="${quickfix-logviewer.output.dir}"/>
<javac destdir="${quickfix-logviewer.output.dir}" debug="${compiler.debug}"
nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.quickfix-logviewer}"/>
<bootclasspath refid="bootclasspath"/>
<classpath refid="production.classpath"/>
<src refid="sourcepath"/>
<patternset refid="excluded.from.compilation.quickfix-logviewer"/>
</javac>
<copy todir="${quickfix-logviewer.output.dir}">
<fileset dir="${basedir}" excludes="**/*.java" includes="quickfix/**/*"/>
</copy>
</target>
<target name="compile.tests" depends="compile.production"
description="compile module quickfix-logviewer; test classes" unless="skip.tests"/>
<target name="clean.module.quickfix-logviewer" description="cleanup module">
<delete dir="${quickfix-logviewer.output.dir}"/>
<delete dir="${quickfix-logviewer.testoutput.dir}"/>
</target>
<target name="clean.all" description="cleanup build directory">
<delete dir="${output.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.quickfix-logviewer" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.quickfix-logviewer"
description="build all modules"/>
<target name="all" depends="build.modules" description="build all"/>
<target name="dist" depends="clean.all, build.modules">
<jar destfile="${output.dir}/dist/quickfix-logviewer.jar"
duplicate="preserve"
basedir="${quickfix-logviewer.output.dir}"
includes="**/*">
<zipgroupfileset dir="lib" includes="quickfix*.jar"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Implementation-Vendor" value="Deltix Inc."/>
<attribute name="Implementation-Title" value="QuickFIX LogViewer"/>
<attribute name="Main-Class" value="quickfix.logviewer.Main"/>
</manifest>
</jar>
</target>
</project>