1 <?xml version="1.0" encoding="utf-8" ?>
2 <project name="gss" default="deploy" basedir=".">
3 <description>The GSS project build file</description>
5 <property file="build.properties"/>
6 <property name="deps.dir" value="dependencies"/>
8 <!-- User-editable settings. These are the only settings in this file that
9 a user may consider changing. Note that these can also be configured
10 through command line parameters (e.g. "ant -Dgwt.workers=2") or a
11 build.properties file. -->
12 <property name="gwt.workers" value="1" />
13 <property name="jboss.home" value="${deps.dir}/jboss-5.1.0.GA" />
14 <property name="jboss.args" value="" />
15 <property name="solr.root" value="${deps.dir}/apache-solr-1.4.1"/>
16 <property name="solr.lib" value="${solr.root}/lib"/>
17 <property name="solr.dist" value="${solr.root}/dist"/>
18 <property name="solr.home" value="${deps.dir}/apache-solr-1.4.1/example/solr"/>
20 <!-- Library and runtime dependencies -->
21 <property name="jboss.version" value="5.1.0" />
22 <property name="jboss.filename" value="jboss-5.1.0.GA-jdk6.zip"/>
23 <property name="jboss.download.url" value="http://switch.dl.sourceforge.net/project/jboss/JBoss/JBoss-${jboss.version}.GA/${jboss.filename}"/>
24 <property name="solr.version" value="1.4.1" />
25 <property name="solr.filename" value="apache-solr-1.4.1.zip"/>
26 <property name="solr.download.url" value="http://apache.ntua.gr/lucene/solr/${solr.version}/${solr.filename}"/>
27 <property name="solrj.version" value="1.4.1"/>
28 <property name="solrj.jar" value="apache-solr-solrj-${solrj.version}.jar"/>
30 <property name="gwt.path" value="${deps.dir}/gwt-2.2-M1"/>
31 <property name="gwt.filename" value="gwt-2.2-M1.zip"/>
32 <property name="gwt.download.url" value="http://google-web-toolkit.googlecode.com/files/gwt-2.2-M1.zip"/>
35 <property name="gwt.path" value="${deps.dir}/gwt-2.1.1"/>
36 <property name="gwt.filename" value="gwt-2.1.1.zip"/>
37 <property name="gwt.download.url" value="http://google-web-toolkit.googlecode.com/files/gwt-2.1.1.zip"/>
41 <property name="hornetq.path" value="${deps.dir}/hornetq-2.0.0.GA" />
42 <property name="hornetq.filename" value="hornetq-2.0.0.GA.zip/"/>
43 <property name="hornetq.download.url" value="http://sourceforge.net/projects/hornetq/files/2.0.0.GA/hornetq-2.0.0.GA.zip/download"/>
44 <property name="junit.path" value="${deps.dir}/junit4.8.1"/>
45 <property name="junit.filename" value="junit4.8.1.zip"/>
46 <property name="junit.download.url" value="http://sourceforge.net/projects/junit/files/junit/4.8.1/junit4.8.1.zip/download"/>
47 <property name="gwt-dnd.filename" value="gwt-dnd-3.0.1.jar"/>
48 <property name="gwt-dnd.download.url" value="http://gwt-dnd.googlecode.com/files/gwt-dnd-3.0.1.jar"/>
49 <property name="gwt-gears.path" value="${deps.dir}/gwt-gears-1.3.0" />
50 <property name="gwt-gears.filename" value="gwt-gears-1.3.0.zip"/>
51 <property name="gwt-gears.download.url" value="http://gwt-google-apis.googlecode.com/files/gwt-gears-1.3.0.zip"/>
52 <property name="gwt-visualization.path" value="${deps.dir}/gwt-visualization-1.1.0" />
53 <property name="gwt-visualization.filename" value="gwt-visualization-1.1.0.zip"/>
54 <property name="gwt-visualization.download.url" value="http://gwt-google-apis.googlecode.com/files/gwt-visualization-1.1.0.zip"/>
55 <property name="gwt-incubator.filename" value="gwt-incubator-20101117-r1766.jar"/>
56 <property name="gwt-incubator.download.url" value="http://google-web-toolkit-incubator.googlecode.com/files/gwt-incubator-20101117-r1766.jar"/>
57 <property name="selenium-server.filename" value="selenium-server-standalone-2.0b1.jar"/>
58 <property name="selenium-server.download.url" value="http://selenium.googlecode.com/files/selenium-server-standalone-2.0b1.jar"/>
61 <property name="gquery.filename" value="gwtquery-1.0.0-SNAPSHOT.jar"/>
62 <property name="gquery-dnd-bundle.filename" value="gquery-dnd-bundle-1.0.2.jar"/>
63 <property name="gquery-dnd-bundle.download.url" value="http://gwtquery-plugins.googlecode.com/files/gquery-dnd-bundle-1.0.2.jar"/>
66 <!-- Source and runtime layout configuration -->
67 <property name="jboss_run_configuration" value="default" />
68 <property name="root.context" value="gss" />
69 <property name="gwt.module" value="gr.ebs.gss.GSS" />
70 <property name="gwt.module.class" value="GSS" />
71 <property name="gwt.admin.module" value="gr.ebs.gss.admin.TwoAdmin" />
72 <property name="gwt.admin.module.class" value="TwoAdmin" />
73 <property name="src.dir" value="${basedir}/src"/>
74 <property name="jboss-spec.dir" value="${basedir}/jboss" />
75 <property name="jboss-spec.conf.dir" value="${jboss-spec.dir}/conf" />
76 <property name="jboss-spec.bin.dir" value="${jboss-spec.dir}/bin" />
77 <property name="jboss-spec.deploy.dir" value="${jboss-spec.dir}/deploy" />
78 <property name="jboss-spec.lib.dir" value="${jboss-spec.dir}/lib" />
79 <property name="jboss.project" value="${basedir}/jboss-config/${jboss.version}" />
80 <property name="jboss.bin.dir" value="${jboss.home}/bin" />
81 <property name="jboss.conf.dir" value="${jboss.home}/server/${jboss_run_configuration}/conf" />
82 <property name="jboss.deploy.dir" value="${jboss.home}/server/${jboss_run_configuration}/deploy" />
83 <property name="jboss.run_conf.lib.dir" value="${jboss.home}/server/${jboss_run_configuration}/lib" />
84 <property name="jboss.lib.dir" value="${jboss.home}/lib" />
85 <property name="jboss.common.lib.dir" value="${jboss.home}/common/lib" />
87 <property name="solr-spec.dir" value="${basedir}/solr"/>
88 <property name="solr-spec.conf.dir" value="${solr-spec.dir}/conf"/>
89 <property name="solr.conf.dir" value="${solr.home}/conf"/>
92 <property name="mbeans.dir" value="${basedir}/mbeans"/>
93 <property name="mbeans.meta-inf.dir" value="${mbeans.dir}/META-INF"/>
96 <property name="test.dir" value="${basedir}/test" />
99 <property name="src.dir" value="${basedir}/src}"/>
100 <property name="solr.src.dir" value="${solr-spec.dir}/src"/>
101 <property name="build.dir" value="${basedir}/bin" />
102 <property name="build.classes.dir" value="${build.dir}/classes" />
103 <property name="test.build.dir" value="${build.dir}" />
104 <property name="test.build.classes.dir" value="${test.build.dir}/" />
105 <property name="gwt.www.dir" value="${basedir}/www" />
106 <property name="gwt.www.admin.dir" value="${basedir}/wwwadmin" />
107 <property name="dist.war" value="${ant.project.name}.war"/>
108 <property name="dist.admin.war" value="${ant.project.name}-admin.war"/>
109 <property name="webdav.war" value="webdav.war"/>
110 <property name="dist.ear" value="${ant.project.name}.ear"/>
111 <property name="war.dir" value="${basedir}/war" />
112 <property name="war.web-inf.dir" value="${war.dir}/WEB-INF"/>
113 <property name="war.lib.dir" value="${war.web-inf.dir}/lib"/>
114 <property name="war.admin.dir" value="${basedir}/waradmin" />
115 <property name="war.admin.web-inf.dir" value="${war.dir}/WEB-INF"/>
116 <property name="war.admin.lib.dir" value="${war.web-inf.dir}/lib"/>
117 <property name="webdav.war.dir" value="${basedir}/webdav" />
118 <property name="webdav.war.web-inf.dir" value="${webdav.war.dir}/WEB-INF"/>
119 <property name="webdav.war.lib.dir" value="${webdav.war.web-inf.dir}/lib"/>
120 <property name="ear.dir" value="${basedir}/ear" />
121 <property name="ear.lib.dir" value="${ear.dir}/lib" />
122 <property name="mbeans.dist.file" value="${ant.project.name}-mbeans.sar"/>
123 <property name="lib.dir" value="${basedir}/lib" />
125 <!-- set classpath -->
126 <path id="project.class.path">
127 <pathelement path="${java.class.path}/" />
128 <!-- DO NOT MOVE THESE JARS BELOW MUST BE FIRST ON CLASSPATH -->
129 <pathelement location="${lib.dir}/gwtquery-1.0.0-20110116.074055-7.jar"/>
130 <pathelement location="${lib.dir}/droppable-plugin-1.0.2.jar"/>
131 <pathelement location="${lib.dir}/draggable-plugin-1.0.2.jar"/>
132 <pathelement location="${lib.dir}/commonui-plugin-1.0.3.jar"/>
133 <!-- END OF DO NOT MOVE THESE JARS BELOW MUST BE FIRST ON CLASSPATH -->
134 <pathelement path="${gwt.path}/gwt-user.jar" />
135 <pathelement location="${jboss.common.lib.dir}/commons-logging.jar"/>
136 <pathelement location="${jboss.common.lib.dir}/ejb3-persistence.jar"/>
137 <pathelement location="${jboss.common.lib.dir}/jboss-ejb3-ext-api.jar"/>
138 <pathelement location="${jboss.common.lib.dir}/jboss-javaee.jar"/>
139 <pathelement location="${jboss.common.lib.dir}/jbosssx.jar"/>
140 <pathelement location="${jboss.common.lib.dir}/hibernate-core.jar"/>
141 <pathelement location="${jboss.common.lib.dir}/hibernate-annotations.jar"/>
142 <pathelement location="${jboss.lib.dir}/jboss-j2se.jar"/>
143 <pathelement location="${jboss.lib.dir}/jboss-kernel.jar"/>
144 <pathelement location="${jboss.lib.dir}/jboss-system-jmx.jar"/>
145 <pathelement location="${jboss.lib.dir}/jboss-system.jar"/>
146 <pathelement location="${jboss.lib.dir}/jbosssx.jar"/>
147 <pathelement location="${ear.lib.dir}/commons-codec-1.4.jar"/>
148 <pathelement location="${ear.lib.dir}/commons-configuration-1.6.jar"/>
149 <pathelement location="${war.lib.dir}/commons-fileupload-1.2.jar"/>
150 <pathelement location="${ear.lib.dir}/commons-httpclient-3.1.jar"/>
151 <pathelement location="${ear.lib.dir}/commons-lang.jar"/>
152 <pathelement location="${ear.lib.dir}/ldap.jar"/>
153 <pathelement location="${junit.path}/junit.jar"/>
154 <pathelement location="${deps.dir}/${gwt-dnd.filename}"/>
155 <pathelement location="${gwt-gears.path}/gwt-gears.jar"/>
156 <pathelement location="${deps.dir}/${gwt-incubator.filename}"/>
157 <pathelement location="${gwt-visualization.path}/gwt-visualization.jar"/>
158 <pathelement location="${solr.dist}/${solrj.jar}"/>
159 <pathelement location="${solr.dist}/apache-solr-core-1.4.1.jar"/>
160 <pathelement location="${solr.lib}/lucene-core-2.9.3.jar"/>
161 <pathelement location="${solr.lib}/lucene-analyzers-2.9.3.jar"/>
162 <pathelement location="${deps.dir}/${selenium-server.filename}"/>
165 <target name="check-jboss">
166 <available file="${jboss.home}" type="dir" property="jboss.home.present"/>
169 <target name="fetch-dependencies" description="Fetch the dpendencies" depends="check-jboss">
170 <mkdir dir="${deps.dir}"/>
172 <get src="${gwt-dnd.download.url}" dest="${deps.dir}/${gwt-dnd.filename}" usetimestamp="true"/>
173 <get src="${gwt-gears.download.url}" dest="${deps.dir}/${gwt-gears.filename}" usetimestamp="true"/>
174 <get src="${gwt-visualization.download.url}" dest="${deps.dir}/${gwt-visualization.filename}" usetimestamp="true"/>
175 <get src="${hornetq.download.url}" dest="${deps.dir}/${hornetq.filename}" usetimestamp="true"/>
176 <get src="${jboss.download.url}" dest="${deps.dir}/${jboss.filename}" usetimestamp="true"/>
179 <get src="${gwt.download.url}" dest="${deps.dir}/${gwt.filename}" usetimestamp="true"/>
182 <get src="${gwt-incubator.download.url}" dest="${deps.dir}/${gwt-incubator.filename}" usetimestamp="true"/>
183 <get src="${junit.download.url}" dest="${deps.dir}/${junit.filename}" usetimestamp="true"/>
184 <get src="${selenium-server.download.url}" dest="${deps.dir}/${selenium-server.filename}" usetimestamp="true"/>
185 <unzip src="${deps.dir}/${gwt.filename}" dest="${deps.dir}"/>
186 <unzip src="${deps.dir}/${junit.filename}" dest="${deps.dir}"/>
188 <unzip src="${deps.dir}/${gwt-gears.filename}" dest="${deps.dir}"/>
189 <unzip src="${deps.dir}/${gwt-visualization.filename}" dest="${deps.dir}"/>
190 <unzip src="${deps.dir}/${hornetq.filename}" dest="${deps.dir}"/>
191 <unzip src="${deps.dir}/${jboss.filename}" dest="${jboss.home}/.."/>
195 <target name="install" depends="fetch-dependencies, install-solr" description="Installs the configuration files of the application server">
196 <!-- Install HornetQ configuration -->
197 <copy todir="${jboss.run_conf.lib.dir}">
198 <fileset dir="${hornetq.path}/lib">
199 <include name="hornetq-*.jar"/>
200 <include name="netty*.jar"/>
203 <property name="hornetq.sar.dir" value="${jboss.deploy.dir}/hornetq.sar"/>
204 <mkdir dir="${hornetq.sar.dir}"/>
205 <copy todir="${hornetq.sar.dir}">
206 <fileset dir="${hornetq.path}/config/jboss-as/non-clustered" includes="*" excludes="**/jboss-as-4/**"/>
208 <unzip src="${hornetq.path}/lib/hornetq-ra.rar" dest="${jboss.deploy.dir}/hornetq-ra.rar"/>
209 <delete dir="${jboss.deploy.dir}/messaging" failonerror="false"/>
210 <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x86"/>
211 <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x64"/>
212 <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x86" file="${hornetq.path}/bin/libHornetQAIO32.so"/>
213 <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x64" file="${hornetq.path}/bin/libHornetQAIO64.so"/>
214 <!-- Install gss configuration -->
215 <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false">
216 <fileset dir="${jboss.project}/bin"/>
218 <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false">
219 <fileset dir="${jboss-spec.bin.dir}" />
221 <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false">
222 <fileset dir="${jboss.project}/conf"/>
224 <copy todir="${jboss.conf.dir}" overwrite="true" failonerror="false">
225 <fileset dir="${jboss-spec.conf.dir}"/>
227 <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false">
228 <fileset dir="${jboss.project}/lib"/>
230 <copy todir="${jboss.run_conf.lib.dir}" overwrite="true" failonerror="false">
231 <fileset dir="${jboss-spec.lib.dir}" />
233 <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false">
234 <fileset dir="${jboss.project}/deploy"/>
236 <copy todir="${jboss.deploy.dir}" overwrite="true" failonerror="false">
237 <fileset dir="${jboss-spec.deploy.dir}" />
239 <!-- Make run.sh executable again -->
240 <chmod file="${jboss.bin.dir}/run.sh" perm="ugo+x"/>
243 <target name="compile" description="Compile src to bin">
244 <mkdir dir="${build.dir}" />
245 <javac srcdir="${src.dir}:${test.dir}" destdir="${build.dir}" debug="on" debuglevel="lines,vars,source" source="1.6">
246 <classpath refid="project.class.path" />
250 <target name="package-code" depends="compile" description="Package up the project code as a jar">
251 <jar destfile="${build.dir}/${ant.project.name}.jar">
253 <include name="org/json/**" />
254 <include name="**/client/AdminService.class" />
255 <include name="**/server/**" />
256 <exclude name="**/domain/**"/>
257 <exclude name="**/ejb/**"/>
260 <include name="**/*.xml" />
261 <include name="**/client/exceptions/**" />
266 <target name="package-webdav" depends="compile" description="Package up the webdav code as a jar">
267 <jar destfile="${build.dir}/webdav.jar">
269 <include name="**/webdav/**" />
274 <target name="package-ejb" depends="compile" description="Package up the EJB classes">
275 <jar destfile="${build.dir}/ejbs.jar">
276 <zipfileset dir="${basedir}/persistence" />
277 <zipfileset dir="${build.dir}">
278 <include name="**/configuration/**" />
279 <include name="**/exceptions/**" />
280 <include name="**/domain/**" />
281 <include name="**/ejb/**" />
282 <exclude name="**/*Test.class"/>
287 <target name="check-gwt-compile" depends="compile">
288 <uptodate property="compilation-not-needed">
289 <srcfiles dir="${src.dir}" excludes="**/server/**"/>
290 <mergemapper to="${build.dir}/www/gr.ebs.gss.GSS.nocache.js"/>
294 <target name="gwt-compile" depends="check-gwt-compile" unless="compilation-not-needed" description="Compile client code to JavaScript">
295 <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev.jar">
296 <available file="${gwt.path}/gwt-dev.jar" />
299 <java classname="com.google.gwt.dev.Compiler" failonerror="true" fork="true">
300 <!--arg value="-style"/>
301 <arg value="DETAILED"/-->
302 <arg value="-localWorkers" />
303 <arg value="${gwt.workers}" />
305 <arg value="${gwt.www.dir}"/>
306 <arg value="${gwt.module}"/>
309 <pathelement path="${gwt-dev-lib}"/>
310 <path refid="project.class.path" />
311 <pathelement path="${src.dir}" />
314 <mkdir dir="${build.dir}/www"/>
315 <copy todir="${build.dir}/www">
316 <fileset dir="${gwt.www.dir}/${gwt.module}" excludes="**/${gwt.module.class}.html">
319 <copy file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${build.dir}/www/index.html" />
322 <target name="package-war" depends="gwt-compile, package-code" description="Package up the web part as a war">
323 <jar destfile="${build.dir}/${dist.war}">
324 <zipfileset dir="${war.dir}" >
325 <exclude name="**/classes/**"/>
327 <zipfileset dir="${build.dir}/www" />
328 <zipfileset dir="${build.dir}" prefix="WEB-INF/lib">
329 <include name="${ant.project.name}.jar" />
334 <target name="check-gwt-admin-compile" depends="compile">
335 <uptodate property="compilation-not-needed">
336 <srcfiles dir="${src.dir}" excludes="**/server/**"/>
337 <mergemapper to="${build.dir}/wwwadmin/gr.ebs.gss.admin.TwoAdmin.nocache.js"/>
341 <target name="gwt-admin-compile" depends="check-gwt-admin-compile" unless="compilation-not-needed" description="Compile client code to JavaScript">
342 <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev.jar">
343 <available file="${gwt.path}/gwt-dev.jar" />
346 <java classname="com.google.gwt.dev.Compiler" failonerror="true" fork="true">
347 <!--arg value="-style"/>
348 <arg value="DETAILED"/-->
349 <arg value="-localWorkers" />
350 <arg value="${gwt.workers}" />
352 <arg value="${gwt.www.admin.dir}"/>
353 <arg value="${gwt.admin.module}"/>
354 <jvmarg value="-Xmx256m"/>
356 <pathelement path="${gwt-dev-lib}"/>
357 <path refid="project.class.path" />
358 <pathelement path="${src.dir}" />
361 <mkdir dir="${build.dir}/wwwadmin"/>
362 <copy todir="${build.dir}/wwwadmin">
363 <fileset dir="${gwt.www.admin.dir}/${gwt.admin.module}" excludes="**/${gwt.admin.module.class}.html">
366 <copy file="${gwt.www.admin.dir}/${gwt.admin.module}/${gwt.admin.module.class}.html" tofile="${build.dir}/wwwadmin/index.html" />
369 <target name="package-admin-war" depends="gwt-admin-compile, package-code" description="Package up the web part as a war">
370 <jar destfile="${build.dir}/${dist.admin.war}">
371 <zipfileset dir="${war.admin.dir}" >
372 <exclude name="**/classes/**"/>
374 <zipfileset dir="${build.dir}/wwwadmin" />
375 <zipfileset dir="${build.dir}" prefix="WEB-INF/lib">
376 <include name="${ant.project.name}.jar" />
378 <zipfileset dir="${gwt.path}" prefix="WEB-INF/lib">
379 <include name="gwt-servlet.jar" />
384 <target name="package-webdav-war" depends="package-webdav" description="Package up the WebDAV part as a war">
385 <jar destfile="${build.dir}/${webdav.war}">
386 <zipfileset dir="${webdav.war.dir}" />
387 <zipfileset dir="${build.dir}" prefix="WEB-INF/lib">
388 <include name="webdav.jar" />
393 <target name="package-mbeans" depends="compile">
394 <jar jarfile="${build.dir}/${mbeans.dist.file}" basedir="${build.dir}">
395 <include name="**/mbeans/**"/>
396 <metainf dir="${mbeans.meta-inf.dir}"/>
400 <target name="package-ear" depends=" package-war,package-admin-war,package-webdav-war, package-ejb, package-mbeans" description="Package up the project as an ear">
401 <jar destfile="${build.dir}/${dist.ear}">
402 <zipfileset dir="${ear.dir}" />
403 <zipfileset dir="${build.dir}" >
404 <include name="ejbs.jar" />
405 <include name="${dist.war}" />
406 <include name="${webdav.war}" />
407 <include name="${dist.admin.war}" />
408 <include name="${mbeans.dist.file}"/>
410 <zipfileset dir="${solr.dist}" prefix="lib">
411 <include name="${solrj.jar}" />
416 <target name="deploy" depends="package-ear" description="Deploy the project to the server">
417 <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}"/>
420 <target name="redeploy" depends="package-ear" description="Redeploy the project to the server">
421 <copy todir="${jboss.deploy.dir}" file="${build.dir}/${dist.ear}" overwrite="yes"/>
424 <target name="undeploy" description="Undeploy the project from the server">
425 <delete file="${jboss.deploy.dir}/${dist.ear}"/>
428 <target name="clean" description="Delete the contents of the bin and www directories">
429 <delete dir="${build.dir}"/>
430 <delete dir="${gwt.www.dir}"/>
431 <delete dir="${gwt.www.admin.dir}"/>
434 <target name="deinstall"
435 description="Delete the contents of the JBoss home directory">
436 <delete dir="${jboss.home}"/>
439 <target name="distclean" depends="deinstall, clean"
440 description="Delete the contents of the JBoss home directory and all downloaded artifacts">
441 <delete dir="${deps.dir}"/>
444 <target name="test" description="Performs unit tests on the project" depends="compile">
446 property="junit.present"
447 classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
448 classpathref="project.class.path"/>
449 <fail unless="junit.present">
450 ##################################################################
452 Please make sure junit.jar is in ANT_HOME/lib, or made available
453 to Ant using other mechanisms like -lib or CLASSPATH.
454 ##################################################################
457 <junit printsummary="withOutAndErr" fork="yes" haltonfailure="yes">
458 <classpath refid="project.class.path"/>
459 <formatter type="plain"/>
460 <batchtest todir="${test.build.dir}">
461 <fileset dir="${test.build.classes.dir}">
462 <include name="**/*Test.class"/>
469 <target name="run" description="Starts the server" depends="deploy">
470 <exec executable="${jboss.bin.dir}/run.sh" osfamily="unix">
471 <arg line="${jboss.args}"/>
473 <exec executable="cmd" osfamily="windows">
475 <arg value="${jboss.bin.dir}/run.bat"/>
476 <arg line="${jboss.args}"/>
480 <target name="check-solr">
481 <available file="${solr.root}" type="dir" property="solr.home.present"/>
484 <target name="fetch-solr" unless="solr.home.present" depends="check-solr">
485 <get src="${solr.download.url}" dest="${deps.dir}/${solr.filename}" usetimestamp="true"/>
486 <unzip src="${deps.dir}/${solr.filename}" dest="${deps.dir}"/>
489 <target name="compile-solr" depends="fetch-solr">
490 <mkdir dir="${build.dir}"/>
491 <javac srcdir="${solr.src.dir}" destdir="${build.dir}" debug="on" debuglevel="lines,vars,source" source="1.6">
492 <classpath refid="project.class.path" />
496 <target name="install-solr" depends="fetch-solr, compile-solr">
497 <copy todir="${solr.conf.dir}" overwrite="true" failonerror="false">
498 <fileset dir="${solr-spec.conf.dir}" />
500 <jar destfile="${solr.root}/greektokenfilter.jar">
501 <fileset dir="${build.dir}">
502 <include name="gr/ebs/gss/solr/analysis/GreekLowerCaseFilterFactory.class"/>
507 <target name="run-solr" depends="install-solr">
508 <java jar="${solr.root}/example/start.jar" fork="true" dir="${solr.root}/example"/>