First try on creating a test example.
[pithos] / build.xml
index 4916235..4504495 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -32,9 +32,9 @@
     <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="junit.path" value="${deps.dir}/junit4.8.1"/>
+       <property name="junit.filename" value="junit4.8.1.zip"/>
+       <property name="junit.download.url" value="http://sourceforge.net/projects/junit/files/junit/4.8.1/junit4.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-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"/>
-
+       <property name="selenium-server.filename" value="selenium-server-standalone-2.0b1.jar"/>
+       <property name="selenium-server.download.url" value="http://selenium.googlecode.com/files/selenium-server-standalone-2.0b1.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="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="${junit.path}/junit.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="${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"/>
+               <pathelement location="${deps.dir}/${selenium-server.filename}"/>               
        </path>
 
        <target name="check-jboss">
 
     <target name="fetch-dependencies" description="Fetch the dpendencies" depends="check-jboss">
        <mkdir dir="${deps.dir}"/>
-  <!--       
-    <get src="${gwt-dnd.download.url}" dest="${deps.dir}/${gwt-dnd.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="${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="${jboss.download.url}" dest="${deps.dir}/${jboss.filename}" usetimestamp="true"/>
--->
-        <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}"/>
+        -->            
+       <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"/>
+       <get src="${junit.download.url}" dest="${deps.dir}/${junit.filename}" usetimestamp="true"/>
+       <get src="${selenium-server.download.url}" dest="${deps.dir}/${selenium-server.filename}" usetimestamp="true"/>         
+       <unzip src="${deps.dir}/${gwt.filename}" dest="${deps.dir}"/>
+       <unzip src="${deps.dir}/${junit.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}/${hornetq.filename}" dest="${deps.dir}"/>        
+        <unzip src="${deps.dir}/${jboss.filename}" dest="${jboss.home}/.."/>
+        -->
     </target>
 
        <target name="install" depends="fetch-dependencies, install-solr" description="Installs the configuration files of the application server">