Replace JBossMessaging 1.x and its HSQLDB data store with HornetQ. Indexing should...
[pithos] / build.xml
index 8963f14..6ae83f4 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -30,6 +30,7 @@
        <property name="jboss.prod.home" value="${env.JBOSS_PROD_HOME}" />
        <property name="jboss.version" value="${env.JBOSS_VERSION}" />
        <property name="gwt.path" value="${env.GWT_PATH}" />
+       <property name="hornetq.path" value="${env.HORNETQ_PATH}" />
        <property name="src.dir" value="${basedir}/src"/>
 
        <property name="jboss.project" value="${basedir}/jboss-config/${jboss.version}" />
@@ -85,6 +86,7 @@
                <pathelement location="${jboss.common.lib.dir}/ejb3-persistence.jar"/>
                <pathelement location="${jboss.common.lib.dir}/jboss-javaee.jar"/>
                <pathelement location="${jboss.common.lib.dir}/jbosssx.jar"/>
+               <pathelement location="${jboss.common.lib.dir}/hibernate-core.jar"/>
                <pathelement location="${jboss.lib.dir}/jboss-j2se.jar"/>
                <pathelement location="${jboss.lib.dir}/jboss-kernel.jar"/>
                <pathelement location="${jboss.lib.dir}/jboss-system-jmx.jar"/>
                <pathelement location="${war.lib.dir}/commons-fileupload-1.2.jar"/>
                <pathelement location="${ear.lib.dir}/commons-lang.jar"/>
                <pathelement location="${junit.path}/junit.jar"/>
-               <pathelement location="${basedir}/lib/gwt-dnd-2.5.6.jar"/>
+               <pathelement location="${basedir}/lib/gwt-dnd-3.0.0.jar"/>
                <pathelement location="${basedir}/lib/gwt-gears.jar"/>
        </path>
 
        <target name="install" description="Installs the configuration files of the application server">
+               <!-- Install HornetQ configuration -->
+               <copy todir="${jboss.run_conf.lib.dir}">
+                       <fileset dir="${hornetq.path}/lib">
+                               <include name="hornetq-*.jar"/>
+                               <include name="netty*.jar"/>
+                       </fileset>
+               </copy>
+               <property name="hornetq.sar.dir" value="${jboss.deploy.dir}/hornetq.sar"/>
+               <mkdir dir="${hornetq.sar.dir}"/>
+               <copy todir="${hornetq.sar.dir}">
+                       <fileset dir="${hornetq.path}/config/jboss-as/non-clustered" includes="*" excludes="**/jboss-as-4/**"/>
+               </copy>
+               <unzip src="${hornetq.path}/lib/hornetq-ra.rar" dest="${jboss.deploy.dir}/hornetq-ra.rar"/>
+               <delete dir="${jboss.deploy.dir}/messaging" failonerror="false"/>
+               <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x86"/>
+               <mkdir dir="${jboss.bin.dir}/META-INF/lib/linux2/x64"/>
+               <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x86" file="${hornetq.path}/bin/libHornetQAIO32.so"/>
+               <copy todir="${jboss.bin.dir}/META-INF/lib/linux2/x64" file="${hornetq.path}/bin/libHornetQAIO64.so"/>
+               <!-- Install gss configuration -->
                <copy todir="${jboss.bin.dir}" overwrite="true" failonerror="false">
                        <fileset dir="${jboss.project}/bin"/>
                </copy>
        <target name="check-gwt-compile" depends="compile">
                <uptodate property="compilation-not-needed">
                        <srcfiles dir="${src.dir}" excludes="**/server/**"/>
-                       <mergemapper to="${build.dir}/www/clear.cache.gif"/>
+                       <mergemapper to="${build.dir}/www/gr.ebs.gss.GSS.nocache.js"/>
                </uptodate>
        </target>
-
+       
        <target name="gwt-compile" depends="check-gwt-compile" unless="compilation-not-needed" description="Compile client code to JavaScript">
-       <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-linux.jar">
-               <available file="${gwt.path}/gwt-dev-linux.jar"/>
-       </condition>
-       <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-mac.jar">
-               <available file="${gwt.path}/gwt-dev-mac.jar" />
-       </condition>
-       <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev-windows.jar">
-               <available file="${gwt.path}/gwt-dev-windows.jar" />
-       </condition>
-               <java classname="com.google.gwt.dev.GWTCompiler" failonerror="true" fork="true">
-                       <arg value="-out"/>
-                       <arg value="${gwt.www.dir}"/>
-                       <arg value="${gwt.module}"/>
-                       <jvmarg value="-Xmx196m"/>
-                   <classpath>
-                       <pathelement location="dist/test.jar"/>
-                       <pathelement path="${gwt-dev-lib}"/>
-                               <path refid="project.class.path" />
-                               <pathelement path="${src.dir}" />
-                   </classpath>
-               </java>
-               <mkdir dir="${build.dir}/www"/>
-               <copy todir="${build.dir}/www">
-                       <fileset dir="${gwt.www.dir}/${gwt.module}" excludes="**/${gwt.module.class}.html">
-                       </fileset>
-               </copy>
-               <copy file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${build.dir}/www/index.html" />
-       </target>
+               <condition property="gwt-dev-lib" value="${gwt.path}/gwt-dev.jar">
+                       <available file="${gwt.path}/gwt-dev.jar" />
+               </condition>
+                       
+                       <java classname="com.google.gwt.dev.Compiler" failonerror="true" fork="true">
+                               <!--arg value="-style"/>
+                               <arg value="DETAILED"/-->
+                               <arg value="-localWorkers" />
+                               <arg value="2" />
+                               <arg value="-war"/>
+                               <arg value="${gwt.www.dir}"/>
+                               <arg value="${gwt.module}"/>
+                               
+                           <classpath>
+                               <pathelement location="dist/test.jar"/>
+                               <pathelement path="${gwt-dev-lib}"/>
+                                       <path refid="project.class.path" />
+                                       <pathelement path="${src.dir}" />
+                           </classpath>
+                       </java>
+                       <mkdir dir="${build.dir}/www"/>
+                       <copy todir="${build.dir}/www">
+                               <fileset dir="${gwt.www.dir}/${gwt.module}" excludes="**/${gwt.module.class}.html">
+                               </fileset>
+                       </copy>
+                       <copy file="${gwt.www.dir}/${gwt.module}/${gwt.module.class}.html" tofile="${build.dir}/www/index.html" />
+               </target>
        
        <target name="package-war" depends="gwt-compile, package-code" description="Package up the web part as a war">
                <jar destfile="${build.dir}/${dist.war}">