<property name="gwt.workers" value="1" />
<property name="jboss.home" value="${deps.dir}/jboss-5.1.0.GA" />
<property name="jboss.args" value="" />
+ <property name="solr.root" value="${deps.dir}/apache-solr-1.4.1"/>
+ <property name="solr.lib" value="${solr.root}/lib"/>
+ <property name="solr.dist" value="${solr.root}/dist"/>
+ <property name="solr.home" value="${deps.dir}/apache-solr-1.4.1/example/solr"/>
<!-- Library and runtime dependencies -->
<property name="jboss.version" value="5.1.0" />
<property name="jboss.filename" value="jboss-5.1.0.GA-jdk6.zip"/>
- <property name="jboss.download.url" value="http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download"/>
- <property name="gwt.path" value="${deps.dir}/gwt-2.0.4"/>
- <property name="gwt.filename" value="gwt-2.0.4.zip"/>
- <property name="gwt.download.url" value="http://google-web-toolkit.googlecode.com/files/gwt-2.0.4.zip"/>
+ <property name="jboss.download.url" value="http://switch.dl.sourceforge.net/project/jboss/JBoss/JBoss-${jboss.version}.GA/${jboss.filename}"/>
+ <property name="solr.version" value="1.4.1" />
+ <property name="solr.filename" value="apache-solr-1.4.1.zip"/>
+ <property name="solr.download.url" value="http://apache.ntua.gr/lucene/solr/${solr.version}/${solr.filename}"/>
+ <property name="solrj.version" value="1.4.1"/>
+ <property name="solrj.jar" value="apache-solr-solrj-${solrj.version}.jar"/>
+ <property name="gwt.path" value="${deps.dir}/gwt-2.1.1"/>
+ <property name="gwt.filename" value="gwt-2.1.1.zip"/>
+ <property name="gwt.download.url" value="http://google-web-toolkit.googlecode.com/files/gwt-2.1.1.zip"/>
<property name="hornetq.path" value="${deps.dir}/hornetq-2.0.0.GA" />
<property name="hornetq.filename" value="hornetq-2.0.0.GA.zip/"/>
<property name="hornetq.download.url" value="http://sourceforge.net/projects/hornetq/files/2.0.0.GA/hornetq-2.0.0.GA.zip/download"/>
<property name="junit.path" value="${deps.dir}/junit3.8.1" />
<property name="junit.filename" value="junit3.8.1.zip"/>
<property name="junit.download.url" value="http://sourceforge.net/projects/junit/files/junit/3.8.1/junit3.8.1.zip/download"/>
-
+ <property name="gwt-dnd.filename" value="gwt-dnd-3.0.1.jar"/>
+ <property name="gwt-dnd.download.url" value="http://gwt-dnd.googlecode.com/files/gwt-dnd-3.0.1.jar"/>
+ <property name="gwt-gears.path" value="${deps.dir}/gwt-gears-1.3.0" />
+ <property name="gwt-gears.filename" value="gwt-gears-1.3.0.zip"/>
+ <property name="gwt-gears.download.url" value="http://gwt-google-apis.googlecode.com/files/gwt-gears-1.3.0.zip"/>
+ <property name="gwt-visualization.path" value="${deps.dir}/gwt-visualization-1.1.0" />
+ <property name="gwt-visualization.filename" value="gwt-visualization-1.1.0.zip"/>
+ <property name="gwt-visualization.download.url" value="http://gwt-google-apis.googlecode.com/files/gwt-visualization-1.1.0.zip"/>
+ <property name="gwt-incubator.filename" value="gwt-incubator-20101117-r1766.jar"/>
+ <property name="gwt-incubator.download.url" value="http://google-web-toolkit-incubator.googlecode.com/files/gwt-incubator-20101117-r1766.jar"/>
+
+ <!-- DND SUPPORT -->
+ <property name="gquery.filename" value="gwtquery-1.0.0-SNAPSHOT.jar"/>
+ <property name="gquery-dnd-bundle.filename" value="gquery-dnd-bundle-1.0.2.jar"/>
+ <property name="gquery-dnd-bundle.download.url" value="http://gwtquery-plugins.googlecode.com/files/gquery-dnd-bundle-1.0.2.jar"/>
+
+
<!-- Source and runtime layout configuration -->
<property name="jboss_run_configuration" value="default" />
<property name="root.context" value="gss" />
<property name="jboss.lib.dir" value="${jboss.home}/lib" />
<property name="jboss.common.lib.dir" value="${jboss.home}/common/lib" />
+ <property name="solr-spec.dir" value="${basedir}/solr"/>
+ <property name="solr-spec.conf.dir" value="${solr-spec.dir}/conf"/>
+ <property name="solr.conf.dir" value="${solr.home}/conf"/>
+
<!-- MBeans -->
<property name="mbeans.dir" value="${basedir}/mbeans"/>
<property name="mbeans.meta-inf.dir" value="${mbeans.dir}/META-INF"/>
<!-- JUnit dirs -->
<property name="test.dir" value="${basedir}/test" />
- <property name="test.src.dir" value="${test.dir}/src"/>
<!-- Build dirs -->
+ <property name="src.dir" value="${basedir}/src}"/>
+ <property name="solr.src.dir" value="${solr-spec.dir}/src"/>
<property name="build.dir" value="${basedir}/bin" />
<property name="build.classes.dir" value="${build.dir}/classes" />
<property name="test.build.dir" value="${build.dir}" />
<property name="ear.dir" value="${basedir}/ear" />
<property name="ear.lib.dir" value="${ear.dir}/lib" />
<property name="mbeans.dist.file" value="${ant.project.name}-mbeans.sar"/>
-
+ <property name="lib.dir" value="${basedir}/lib" />
+
<!-- set classpath -->
<path id="project.class.path">
<pathelement path="${java.class.path}/" />
+ <!-- DO NOT MOVE THESE JARS BELOW MUST BE FIRST ON CLASSPATH -->
+ <pathelement location="${lib.dir}/gwtquery-1.0.0-20110116.074055-7.jar"/>
+ <pathelement location="${lib.dir}/droppable-plugin-1.0.2.jar"/>
+ <pathelement location="${lib.dir}/draggable-plugin-1.0.2.jar"/>
+ <pathelement location="${lib.dir}/commonui-plugin-1.0.3.jar"/>
+ <!-- END OF DO NOT MOVE THESE JARS BELOW MUST BE FIRST ON CLASSPATH -->
<pathelement path="${gwt.path}/gwt-user.jar" />
<pathelement location="${jboss.common.lib.dir}/commons-logging.jar"/>
<pathelement location="${jboss.common.lib.dir}/ejb3-persistence.jar"/>
<pathelement location="${ear.lib.dir}/commons-lang.jar"/>
<pathelement location="${ear.lib.dir}/ldap.jar"/>
<pathelement location="${junit.path}/junit.jar"/>
- <pathelement location="${basedir}/lib/gwt-dnd-3.0.1.jar"/>
- <pathelement location="${basedir}/lib/gwt-gears.jar"/>
- <pathelement location="${basedir}/lib/gwt-incubator-20100204-r1747.jar"/>
- <pathelement location="${basedir}/lib/gwt-visualization.jar"/>
+ <pathelement location="${deps.dir}/${gwt-dnd.filename}"/>
+ <pathelement location="${gwt-gears.path}/gwt-gears.jar"/>
+ <!-- <pathelement location="${deps.dir}/${gwt-incubator.filename}"/> -->
+ <pathelement location="${gwt-visualization.path}/gwt-visualization.jar"/>
+ <pathelement location="${solr.dist}/${solrj.jar}"/>
+ <pathelement location="${solr.dist}/apache-solr-core-1.4.1.jar"/>
+ <pathelement location="${solr.lib}/lucene-core-2.9.3.jar"/>
+ <pathelement location="${solr.lib}/lucene-analyzers-2.9.3.jar"/>
+
+
</path>
<target name="check-jboss">
<available file="${jboss.home}" type="dir" property="jboss.home.present"/>
</target>
- <target name="fetch-dependencies" description="Fetch the dpendencies" unless="jboss.home.present" depends="check-jboss">
+ <target name="fetch-dependencies" description="Fetch the dpendencies" depends="check-jboss">
<mkdir dir="${deps.dir}"/>
- <get src="${gwt.download.url}" dest="${deps.dir}/${gwt.filename}" usetimestamp="true"/>
+ <!--
+ <get src="${gwt-dnd.download.url}" dest="${deps.dir}/${gwt-dnd.filename}" usetimestamp="true"/>
+ <get src="${gwt-gears.download.url}" dest="${deps.dir}/${gwt-gears.filename}" usetimestamp="true"/>
+ <get src="${gwt-visualization.download.url}" dest="${deps.dir}/${gwt-visualization.filename}" usetimestamp="true"/>
+
<get src="${hornetq.download.url}" dest="${deps.dir}/${hornetq.filename}" usetimestamp="true"/>
<get src="${junit.download.url}" dest="${deps.dir}/${junit.filename}" usetimestamp="true"/>
<get src="${jboss.download.url}" dest="${deps.dir}/${jboss.filename}" usetimestamp="true"/>
- <unzip src="${deps.dir}/${gwt.filename}" dest="${deps.dir}"/>
+-->
+ <get src="${gwt.download.url}" dest="${deps.dir}/${gwt.filename}" usetimestamp="true"/>
+ <get src="${gwt-incubator.download.url}" dest="${deps.dir}/${gwt-incubator.filename}" usetimestamp="true"/>
+ <unzip src="${deps.dir}/${gwt.filename}" dest="${deps.dir}"/>
+<!--
+
+ <unzip src="${deps.dir}/${gwt-gears.filename}" dest="${deps.dir}"/>
+ <unzip src="${deps.dir}/${gwt-visualization.filename}" dest="${deps.dir}"/>
<unzip src="${deps.dir}/${hornetq.filename}" dest="${deps.dir}"/>
<unzip src="${deps.dir}/${junit.filename}" dest="${deps.dir}"/>
- <unzip src="${deps.dir}/${jboss.filename}" dest="${jboss.home}/.."/>
+ <unzip src="${deps.dir}/${jboss.filename}" dest="${jboss.home}/.."/>-->
</target>
- <target name="install" depends="fetch-dependencies" description="Installs the configuration files of the application server">
+ <target name="install" depends="fetch-dependencies, install-solr" description="Installs the configuration files of the application server">
<!-- Install HornetQ configuration -->
<copy todir="${jboss.run_conf.lib.dir}">
<fileset dir="${hornetq.path}/lib">
</target>
<target name="compile" description="Compile src to bin">
- <mkdir dir="bin" />
- <javac srcdir="src:test" destdir="bin" debug="on" debuglevel="lines,vars,source" source="1.6">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}:${test.dir}" destdir="${build.dir}" debug="on" debuglevel="lines,vars,source" source="1.6">
<classpath refid="project.class.path" />
</javac>
</target>
</jar>
</target>
- <target name="package-ear" depends="package-admin-war, package-war, package-webdav-war, package-ejb, package-mbeans" description="Package up the project as an ear">
+ <target name="package-ear" depends=" package-war, package-webdav-war, package-ejb, package-mbeans" description="Package up the project as an ear">
<jar destfile="${build.dir}/${dist.ear}">
<zipfileset dir="${ear.dir}" />
- <zipfileset dir="${build.dir}">
+ <zipfileset dir="${build.dir}" >
<include name="ejbs.jar" />
<include name="${dist.war}" />
<include name="${webdav.war}" />
- <include name="${dist.admin.war}" />
+
<include name="${mbeans.dist.file}"/>
</zipfileset>
+ <zipfileset dir="${solr.dist}" prefix="lib">
+ <include name="${solrj.jar}" />
+ </zipfileset>
</jar>
</target>
<arg line="${jboss.args}"/>
</exec>
</target>
+
+ <target name="check-solr">
+ <available file="${solr.root}" type="dir" property="solr.home.present"/>
+ </target>
+
+ <target name="fetch-solr" unless="solr.home.present" depends="check-solr">
+ <get src="${solr.download.url}" dest="${deps.dir}/${solr.filename}" usetimestamp="true"/>
+ <unzip src="${deps.dir}/${solr.filename}" dest="${deps.dir}"/>
+ </target>
+
+ <target name="compile-solr" depends="fetch-solr">
+ <mkdir dir="${build.dir}"/>
+ <javac srcdir="${solr.src.dir}" destdir="${build.dir}" debug="on" debuglevel="lines,vars,source" source="1.6">
+ <classpath refid="project.class.path" />
+ </javac>
+ </target>
+
+ <target name="install-solr" depends="fetch-solr, compile-solr">
+ <copy todir="${solr.conf.dir}" overwrite="true" failonerror="false">
+ <fileset dir="${solr-spec.conf.dir}" />
+ </copy>
+ <jar destfile="${solr.root}/greektokenfilter.jar">
+ <fileset dir="${build.dir}">
+ <include name="gr/ebs/gss/solr/analysis/GreekLowerCaseFilterFactory.class"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="run-solr" depends="install-solr">
+ <java jar="${solr.root}/example/start.jar" fork="true" dir="${solr.root}/example"/>
+ </target>
</project>