1+ <?xml version =" 1.0" ?>
2+ <!--
3+ The MIT License (MIT)
4+
5+ Copyright (c) 2013 dajester2013
6+
7+ Permission is hereby granted, free of charge, to any person obtaining a copy of
8+ this software and associated documentation files (the "Software"), to deal in
9+ the Software without restriction, including without limitation the rights to
10+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11+ the Software, and to permit persons to whom the Software is furnished to do so,
12+ subject to the following conditions:
13+
14+ The above copyright notice and this permission notice shall be included in all
15+ copies or substantial portions of the Software.
16+
17+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+ -->
24+ <project name =" RailoCompilerService" xmlns : ivy =" antlib:org.apache.ivy.ant" default =" war" >
25+
26+ <target name =" load-ivy" >
27+ <path id =" ivy.lib.path" >
28+ <pathelement location =" lib/commons-codec-1.2.jar" />
29+ <pathelement location =" lib/commons-httpclient-3.0.jar" />
30+ <pathelement location =" lib/commons-logging-1.0.4.jar" />
31+ <pathelement location =" lib/commons-vfs-1.0.jar" />
32+ <pathelement location =" lib/jsch-0.1.31.jar" />
33+ <pathelement location =" lib/ivy-2.3.0.jar" />
34+ <pathelement location =" lib/oro-2.0.8.jar" />
35+ </path >
36+
37+ <taskdef resource =" org/apache/ivy/ant/antlib.xml" uri =" antlib:org.apache.ivy.ant" classpathref =" ivy.lib.path" />
38+ </target >
39+
40+ <target name =" init" >
41+ <mkdir dir =" dist" />
42+ <mkdir dir =" dist/war" />
43+ <mkdir dir =" dist/war-standalone" />
44+ </target >
45+ <target name =" war" depends =" init" >
46+ <zip destfile =" dist/war/rcs.war" basedir =" src" includes =" **" excludes =" railo.pw" />
47+ </target >
48+ <target name =" war-standalone" depends =" init,load-ivy" >
49+ <ivy : retrieve conf =" war-standalone" pattern =" build/deps/[conf]/railo.war" />
50+ <zip destfile =" dist/war-standalone/rcs.war" >
51+ <fileset dir =" src" includes =" **" excludes =" railo.pw" />
52+ <zipfileset src =" build/deps/war-standalone/railo.war" includes =" **" excludes =" **/*.cfc,**/*.cfm,res/**" />
53+ </zip >
54+ </target >
55+ <target name =" clean" >
56+ <delete dir =" dist" includes =" **" />
57+ </target >
58+ </project >
0 commit comments