1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project name =" redmine-cli" default =" all" >
3+
4+
5+ <property file =" build.properties" />
6+ <!-- Uncomment the following property if no tests compilation is needed -->
7+ <!--
8+ <property name="skip.tests" value="true"/>
9+ -->
10+
11+ <!-- Compiler options -->
12+
13+ <property name =" compiler.debug" value =" on" />
14+ <property name =" compiler.generate.no.warnings" value =" off" />
15+ <property name =" compiler.args" value =" " />
16+ <property name =" compiler.max.memory" value =" 700m" />
17+ <patternset id =" ignored.files" >
18+ <exclude name =" **/CVS/**" />
19+ <exclude name =" **/SCCS/**" />
20+ <exclude name =" **/RCS/**" />
21+ <exclude name =" **/rcs/**" />
22+ <exclude name =" **/.DS_Store/**" />
23+ <exclude name =" **/.svn/**" />
24+ <exclude name =" **/.pyc/**" />
25+ <exclude name =" **/.pyo/**" />
26+ <exclude name =" **/*.pyc/**" />
27+ <exclude name =" **/*.pyo/**" />
28+ <exclude name =" **/.git/**" />
29+ <exclude name =" **/*.hprof/**" />
30+ <exclude name =" **/_svn/**" />
31+ <exclude name =" **/.hg/**" />
32+ <exclude name =" **/*.lib/**" />
33+ <exclude name =" **/*~/**" />
34+ <exclude name =" **/__pycache__/**" />
35+ <exclude name =" **/.bundle/**" />
36+ <exclude name =" **/*.rbc/**" />
37+ <exclude name =" **/*.aux/**" />
38+ <exclude name =" **/*.tks/**" />
39+ </patternset >
40+ <patternset id =" library.patterns" >
41+ <include name =" *.war" />
42+ <include name =" *.ear" />
43+ <include name =" *.apk" />
44+ <include name =" *.zip" />
45+ <include name =" *.swc" />
46+ <include name =" *.ane" />
47+ <include name =" *.egg" />
48+ <include name =" *.jar" />
49+ </patternset >
50+ <patternset id =" compiler.resources" >
51+ <exclude name =" **/?*.java" />
52+ <exclude name =" **/?*.form" />
53+ <exclude name =" **/?*.class" />
54+ <exclude name =" **/?*.groovy" />
55+ <exclude name =" **/?*.scala" />
56+ <exclude name =" **/?*.flex" />
57+ <exclude name =" **/?*.kt" />
58+ <exclude name =" **/?*.clj" />
59+ </patternset >
60+
61+
62+ <!-- Project Libraries -->
63+
64+ <path id =" library.commons-cli-1.2.classpath" >
65+ <pathelement location =" ${ basedir } /lib/commons-cli-1.2.jar" />
66+ </path >
67+
68+
69+ <!-- Global Libraries -->
70+
71+ <!-- Modules -->
72+
73+
74+ <!-- Module redmine-cli -->
75+
76+ <dirname property =" module.redmine-cli.basedir" file =" ${ ant.file } " />
77+
78+
79+
80+ <property name =" compiler.args.redmine-cli" value =" -encoding UTF-8 -source 8 ${ compiler.args } " />
81+
82+ <property name =" redmine-cli.output.dir" value =" ${ module.redmine-cli.basedir } /out/production/redmine-cli" />
83+ <property name =" redmine-cli.testoutput.dir" value =" ${ module.redmine-cli.basedir } /out/test/redmine-cli" />
84+
85+ <path id =" redmine-cli.module.bootclasspath" >
86+ <!-- Paths to be included in compilation bootclasspath -->
87+ </path >
88+
89+ <path id =" redmine-cli.module.production.classpath" >
90+ <path refid =" library.commons-cli-1.2.classpath" />
91+ </path >
92+
93+ <path id =" redmine-cli.runtime.production.module.classpath" >
94+ <pathelement location =" ${ redmine-cli.output.dir } " />
95+ <path refid =" library.commons-cli-1.2.classpath" />
96+ </path >
97+
98+ <path id =" redmine-cli.module.classpath" >
99+ <pathelement location =" ${ redmine-cli.output.dir } " />
100+ <path refid =" library.commons-cli-1.2.classpath" />
101+ </path >
102+
103+ <path id =" redmine-cli.runtime.module.classpath" >
104+ <pathelement location =" ${ redmine-cli.testoutput.dir } " />
105+ <pathelement location =" ${ redmine-cli.output.dir } " />
106+ <path refid =" library.commons-cli-1.2.classpath" />
107+ </path >
108+
109+
110+ <patternset id =" excluded.from.module.redmine-cli" >
111+ <patternset refid =" ignored.files" />
112+ </patternset >
113+
114+ <patternset id =" excluded.from.compilation.redmine-cli" >
115+ <patternset refid =" excluded.from.module.redmine-cli" />
116+ </patternset >
117+
118+ <path id =" redmine-cli.module.sourcepath" >
119+ <dirset dir =" ${ module.redmine-cli.basedir } " >
120+ <include name =" src" />
121+ </dirset >
122+ </path >
123+
124+
125+ <target name =" compile.module.redmine-cli" depends =" compile.module.redmine-cli.production,compile.module.redmine-cli.tests" description =" Compile module redmine-cli" />
126+
127+ <target name =" compile.module.redmine-cli.production" description =" Compile module redmine-cli; production classes" >
128+ <mkdir dir =" ${ redmine-cli.output.dir } " />
129+ <javac destdir =" ${ redmine-cli.output.dir } " debug =" ${ compiler.debug } " nowarn =" ${ compiler.generate.no.warnings } " memorymaximumsize =" ${ compiler.max.memory } " fork =" true" >
130+ <compilerarg line =" ${ compiler.args.redmine-cli } " />
131+ <bootclasspath refid =" redmine-cli.module.bootclasspath" />
132+ <classpath refid =" redmine-cli.module.production.classpath" />
133+ <src refid =" redmine-cli.module.sourcepath" />
134+ <patternset refid =" excluded.from.compilation.redmine-cli" />
135+ </javac >
136+
137+ <copy todir =" ${ redmine-cli.output.dir } " >
138+ <fileset dir =" ${ module.redmine-cli.basedir } /src" >
139+ <patternset refid =" compiler.resources" />
140+ <type type =" file" />
141+ </fileset >
142+ </copy >
143+ </target >
144+
145+ <target name =" compile.module.redmine-cli.tests" depends =" compile.module.redmine-cli.production" description =" compile module redmine-cli; test classes" unless =" skip.tests" />
146+
147+ <target name =" clean.module.redmine-cli" description =" cleanup module" >
148+ <delete dir =" ${ redmine-cli.output.dir } " />
149+ <delete dir =" ${ redmine-cli.testoutput.dir } " />
150+ </target >
151+
152+ <target name =" init" description =" Build initialization" >
153+ <!-- Perform any build initialization in this target -->
154+ </target >
155+
156+ <target name =" clean" depends =" clean.module.redmine-cli" description =" cleanup all" />
157+
158+ <target name =" build.modules" depends =" init, clean, compile.module.redmine-cli" description =" build all modules" />
159+
160+ <target name =" init.artifacts" >
161+ <property name =" artifacts.temp.dir" value =" ${ basedir } /__artifacts_temp" />
162+ <property name =" artifact.output.redmine-cli:jar" value =" ${ basedir } /out/artifacts" />
163+ <mkdir dir =" ${ artifacts.temp.dir } " />
164+ <property name =" temp.jar.path.redmine-cli.jar" value =" ${ artifacts.temp.dir } /redmine-cli.jar" />
165+ </target >
166+
167+ <target name =" artifact.redmine-cli:jar" depends =" init.artifacts, compile.module.redmine-cli" description =" Build 'redmine-cli:jar' artifact" >
168+ <property name =" artifact.temp.output.redmine-cli:jar" value =" ${ artifacts.temp.dir } /redmine_cli_jar" />
169+ <mkdir dir =" ${ artifact.temp.output.redmine-cli:jar } " />
170+ <jar destfile =" ${ temp.jar.path.redmine-cli.jar } " duplicate =" preserve" filesetmanifest =" mergewithoutmain" >
171+ <zipfileset dir =" ${ redmine-cli.output.dir } " />
172+ <zipfileset src =" ${ basedir } /lib/commons-cli-1.2.jar" />
173+ </jar >
174+ <copy file =" ${ temp.jar.path.redmine-cli.jar } " tofile =" ${ artifact.temp.output.redmine-cli:jar } /redmine-cli.jar" />
175+ </target >
176+
177+ <target name =" build.all.artifacts" depends =" artifact.redmine-cli:jar" description =" Build all artifacts" >
178+ <mkdir dir =" ${ artifact.output.redmine-cli:jar } " />
179+ <copy todir =" ${ artifact.output.redmine-cli:jar } " >
180+ <fileset dir =" ${ artifact.temp.output.redmine-cli:jar } " />
181+ </copy >
182+
183+ <!-- Delete temporary files -->
184+ <delete dir =" ${ artifacts.temp.dir } " />
185+ </target >
186+
187+ <target name =" all" depends =" build.modules, build.all.artifacts" description =" build all" />
188+ </project >
0 commit comments