From c18ceadb2c54524860db8238a2858ca44434afa1 Mon Sep 17 00:00:00 2001
From: ?? ? <ulysseskao@ximple.com.tw>
Date: Fri, 14 Mar 2008 11:27:55 +0800
Subject: [PATCH] EOFM-14

---
 ximple-jobcarrier/pom.xml                                     |  226 ++++++++++++++++++++++++++++++++++++++++-----
 ximple-jobcarrier/src/test/java/com/ximple/eofms/AppTest.java |   29 +----
 2 files changed, 205 insertions(+), 50 deletions(-)

diff --git a/ximple-jobcarrier/pom.xml b/ximple-jobcarrier/pom.xml
index f87ce51..d141cca 100644
--- a/ximple-jobcarrier/pom.xml
+++ b/ximple-jobcarrier/pom.xml
@@ -1,14 +1,17 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-  
+
   <properties>
     <oracle.jdbc>true</oracle.jdbc>
     <test.maxHeapSize>512M</test.maxHeapSize>
     <src.output>${basedir}/target</src.output>
     <java5>1.5</java5>
+    <xdgnio.version>0.0.1</xdgnio.version>
+    <xdgnsj.version>0.0.1</xdgnsj.version>
+    <gt.version>2.4.1</gt.version>
   </properties>
-  
+
   <profiles>
     <profile>
       <id>java5</id>
@@ -35,30 +38,30 @@
       </distributionManagement>
     </profile>
   </profiles>
-  
+
   <scm>
     <connection>
       scm:svn:http://www.ximple.com.tw/svn/xeofms/xspatialjob/truck/
     </connection>
     <url>http://www.ximple.com.tw/svn/xeofms/xspatialjob/truck/</url>
   </scm>
-  
+
   <groupId>com.ximple.eofms</groupId>
   <artifactId>ximple-jobcarrier</artifactId>
   <packaging>jar</packaging>
   <version>0.0.1</version>
   <name>ximple-jobcarrier</name>
   <url>http://maven.apache.org</url>
-  
+
   <description>Ximple Job Carrier for Quartz</description>
-  
+
   <organization>
     <name>Ximple</name>
     <url>http://www.ximple.com.tw</url>
   </organization>
-  
+
   <inceptionYear>2008</inceptionYear>
-  
+
   <!-- =========================================================== -->
   <!--     Issue managements and mailing lists.                    -->
   <!-- =========================================================== -->
@@ -66,27 +69,27 @@
     <system>JIRA</system>
     <url>http://www.ximple.com.tw/jira/browse/EOFMS</url>
   </issueManagement>
-  
+
   <!-- =========================================================== -->
   <!--    Continuous Integration                                   -->
   <!-- =========================================================== -->
   <ciManagement>
     <system>continuum</system>
   </ciManagement>
-  
+
   <mailingLists>
     <mailingList>
     </mailingList>
   </mailingLists>
-  
+
   <developers>
     <developer>
     </developer>
   </developers>
-  
+
   <contributors>
   </contributors>
-  
+
   <!-- =========================================================== -->
   <!--     Dependency Management                                   -->
   <!--     If a POM declares one of those dependencies, then it    -->
@@ -95,18 +98,32 @@
   <!-- =========================================================== -->
   <dependencyManagement>
     <dependencies>
+      <!-- GeoAPI and its dependencies -->
+      <dependency>
+        <groupId>org.opengis</groupId>
+        <artifactId>geoapi-nogenerics</artifactId>
+        <version>2.1.0</version>
+      </dependency>
+      <dependency>
+        <groupId>javax.units</groupId>
+        <artifactId>jsr108</artifactId>
+        <version>0.01</version>
+      </dependency>
+
       <dependency>
         <groupId>com.vividsolutions</groupId>
         <artifactId>jts</artifactId>
         <version>1.9</version>
       </dependency>
-      
+
       <!-- Apache -->
+      <!--
       <dependency>
         <groupId>commons-beanutils</groupId>
         <artifactId>commons-beanutils</artifactId>
         <version>1.7</version>
       </dependency>
+      -->
       <dependency>
         <groupId>commons-collections</groupId>
         <artifactId>commons-collections</artifactId>
@@ -138,7 +155,62 @@
         <artifactId>poi-contrib</artifactId>
         <version>3.0.1-FINAL</version>
       </dependency>
-      
+
+      <!-- geotools -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-api</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-main</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-sample-data</artifactId>
+        <version>${gt.version}</version>
+        <scope>test</scope>
+      </dependency>
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-data</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+
+      <!-- because main and sample-data depend on referencing we need a tie breaker -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-referencing</artifactId>
+        <version>${gt.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>jdom</groupId>
+        <artifactId>jdom</artifactId>
+        <version>1.0</version>
+      </dependency>
+
+      <dependency>
+        <groupId>velocity</groupId>
+        <artifactId>velocity</artifactId>
+        <version>1.4</version>
+      </dependency>
+
+      <!-- We need this to make the referencing module useful -->
+      <dependency>
+        <groupId>org.geotools</groupId>
+        <artifactId>gt2-epsg-hsql</artifactId>
+        <version>${gt.version}</version>
+        <scope>test</scope>
+      </dependency>
+
       <!-- ORACLE -->
       <!-- Download and install into your own repo -->
       <dependency>
@@ -146,35 +218,137 @@
         <groupId>com.oracle</groupId>
         <version>11.1.0</version>
       </dependency>
-      
+
       <!-- opensymphony -->
       <dependency>
         <groupId>opensymphony</groupId>
         <artifactId>quartz</artifactId>
         <version>1.6.0</version>
       </dependency>
-      
+
       <!-- Ximple Library -->
       <dependency>
         <artifactId>ximple-dgnio</artifactId>
         <groupId>com.ximple</groupId>
-        <version>{$project.version}</version>
+        <version>${xdgnio.version}</version>
       </dependency>
-      
+
+      <dependency>
+        <artifactId>ximple-spatialjob</artifactId>
+        <groupId>com.ximple.eofms</groupId>
+        <version>${xdgnsj.version}</version>
+      </dependency>
+
       <!-- Tests or legacy -->
       <dependency>
         <groupId>org.testng</groupId>
         <artifactId>testng</artifactId>
-        <!--
-          <classifier>jdk15</classifier>
-          <version>5.7</version>
-        -->
-        <version>5.5</version>
+        <version>5.7</version>
         <scope>test</scope>
       </dependency>
     </dependencies>
   </dependencyManagement>
-  
+
+  <!-- =========================================================== -->
+  <!--     Dependencies to be inherited by all modules.            -->
+  <!-- =========================================================== -->
+  <dependencies>
+    <dependency>
+      <artifactId>geoapi-nogenerics</artifactId>
+      <groupId>org.opengis</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>jsr108</artifactId>
+      <groupId>javax.units</groupId>
+    </dependency>
+
+    <dependency>
+      <groupId>com.vividsolutions</groupId>
+      <artifactId>jts</artifactId>
+    </dependency>
+
+    <!-- Apache -->
+    <dependency>
+      <artifactId>commons-collections</artifactId>
+      <groupId>commons-collections</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>log4j</artifactId>
+      <groupId>log4j</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>gt2-api</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-main</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-sample-data</artifactId>
+      <groupId>org.geotools</groupId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <artifactId>gt2-data</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+
+    <!-- because main and sample-data depend on referencing we need a tie breaker -->
+    <dependency>
+      <artifactId>gt2-referencing</artifactId>
+      <groupId>org.geotools</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>jdom</artifactId>
+      <groupId>jdom</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>velocity</artifactId>
+      <groupId>velocity</groupId>
+    </dependency>
+
+    <!-- We need this to make the referencing module useful -->
+    <dependency>
+      <artifactId>gt2-epsg-hsql</artifactId>
+      <groupId>org.geotools</groupId>
+      <scope>test</scope>
+    </dependency>
+
+    <!-- ORACLE -->
+    <dependency>
+      <artifactId>ojdbc5</artifactId>
+      <groupId>com.oracle</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>quartz</artifactId>
+      <groupId>opensymphony</groupId>
+    </dependency>
+
+    <!-- Ximple Library -->
+    <dependency>
+      <artifactId>ximple-dgnio</artifactId>
+      <groupId>com.ximple</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>ximple-spatialjob</artifactId>
+      <groupId>com.ximple.eofms</groupId>
+    </dependency>
+
+    <dependency>
+      <artifactId>testng</artifactId>
+      <groupId>org.testng</groupId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
   <!-- =========================================================== -->
   <!--     Build Configuration                                     -->
   <!-- =========================================================== -->
diff --git a/ximple-jobcarrier/src/test/java/com/ximple/eofms/AppTest.java b/ximple-jobcarrier/src/test/java/com/ximple/eofms/AppTest.java
index 7797ca0..79474da 100644
--- a/ximple-jobcarrier/src/test/java/com/ximple/eofms/AppTest.java
+++ b/ximple-jobcarrier/src/test/java/com/ximple/eofms/AppTest.java
@@ -1,38 +1,19 @@
 package com.ximple.eofms;
 
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
+import org.testng.Assert;
+import org.testng.annotations.Test;
 
 /**
  * Unit test for simple App.
  */
-public class AppTest 
-    extends TestCase
+public class AppTest
 {
-    /**
-     * Create the test case
-     *
-     * @param testName name of the test case
-     */
-    public AppTest( String testName )
-    {
-        super( testName );
-    }
-
-    /**
-     * @return the suite of tests being tested
-     */
-    public static Test suite()
-    {
-        return new TestSuite( AppTest.class );
-    }
-
     /**
      * Rigourous Test :-)
      */
+    @Test
     public void testApp()
     {
-        assertTrue( true );
+        Assert.assertTrue(true);
     }
 }

--
Gitblit v0.0.0-SNAPSHOT