From 421e9288b9cf951a094cd8586e1eb2ffd6540a90 Mon Sep 17 00:00:00 2001 From: ?? ? <ulysseskao@ximple.com.tw> Date: Wed, 12 Mar 2008 19:43:57 +0800 Subject: [PATCH] EOFM-14 --- ximple-spatialjob/src/test/java/com/ximple/eofms/jobs/AppTest.java | 38 +++ ximple-spatialjob/pom.xml | 553 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gitattributes | 3 ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/App.java | 13 + 4 files changed, 607 insertions(+), 0 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7715a78..a79ab39 100644 --- a/.gitattributes +++ b/.gitattributes @@ -26,3 +26,6 @@ ximple-dgnio/src/main/java/com/ximple/io/dgn7/UserAttributeData.java svneol=native#text/plain ximple-dgnio/src/main/java/com/ximple/io/dgn7/Utility.java svneol=native#text/plain ximple-dgnio/src/main/java/com/ximple/util/PrintfFormat.java svneol=native#text/plain +ximple-spatialjob/pom.xml svneol=native#text/xml +ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/App.java svneol=native#text/plain +ximple-spatialjob/src/test/java/com/ximple/eofms/jobs/AppTest.java svneol=native#text/plain diff --git a/ximple-spatialjob/pom.xml b/ximple-spatialjob/pom.xml new file mode 100644 index 0000000..0a0dcc6 --- /dev/null +++ b/ximple-spatialjob/pom.xml @@ -0,0 +1,553 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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"> + <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> + </properties> + + <profiles> + <profile> + <id>java5</id> + <reporting> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <configuration> + <source>1.5</source> + </configuration> + </plugin> + </plugins> + </reporting> + </profile> + <profile> + <id>site.ximple.tw</id> + <distributionManagement> + <site> + <id>artifactorysite-ximple-tw</id> + <name>Artifactory Web site for Maven reports</name> + <url>scp://www.ximple.com.tw/home/www/artfactory/libs-releases@repo</url> + </site> + </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-spatialjob</artifactId> + <packaging>jar</packaging> + <version>0.0.1</version> + <name>ximple-spatialjob</name> + <url>http://www.ximple.com.tw</url> + + <description>Ximple Spatial Data Job for Quartz</description> + + <organization> + <name>Ximple</name> + <url>http://www.ximple.com.tw</url> + </organization> + + <inceptionYear>2008</inceptionYear> + + <!-- =========================================================== --> + <!-- Issue managements and mailing lists. --> + <!-- =========================================================== --> + <issueManagement> + <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 --> + <!-- will use the version specified here. Otherwise, those --> + <!-- dependencies are ignored. --> + <!-- =========================================================== --> + <dependencyManagement> + <dependencies> + <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> + <version>3.2</version> + </dependency> + <dependency> + <groupId>commons-digester</groupId> + <artifactId>commons-digester</artifactId> + <version>1.8</version> + </dependency> + <dependency> + <groupId>commons-pool</groupId> + <artifactId>commons-pool</artifactId> + <version>1.3</version> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1.1</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.15</version> + <!-- Same as the dependency in commons-logging --> + </dependency> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi-contrib</artifactId> + <version>3.0.1-FINAL</version> + </dependency> + + <!-- ORACLE --> + <!-- Download and install into your own repo --> + <dependency> + <artifactId>ojdbc5</artifactId> + <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> + </dependency> + + <!-- Tests or legacy --> + <dependency> + <groupId>org.testng</groupId> + <artifactId>testng</artifactId> + <!-- + <classifier>jdk15</classifier> + <version>5.7</version> + --> + <version>5.5</version> + <scope>test</scope> + </dependency> + </dependencies> + </dependencyManagement> + + <!-- =========================================================== --> + <!-- Build Configuration --> + <!-- =========================================================== --> + <build> + <!-- ========================================================= --> + <!-- Maven plugins dependencies management. --> + <!-- It should not be needed since Maven select by default --> + <!-- the latest plugins. Unfortunatly, experience shows that --> + <!-- new plugin releases sometime introduce new bugs that --> + <!-- break our build. So it is saferto specify plugin --> + <!-- versions that are known to work. This list is in --> + <!-- alphabetical order for easier comparaison with latest --> + <!-- plugins at --> + <!-- http://www.ibiblio.org/maven2/org/apache/maven/plugins/ --> + <!-- ========================================================= --> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.1</version> + <configuration> + <descriptors> + <descriptor>build/maven/assembly/binaryDist.xml</descriptor> + <descriptor>build/maven/assembly/sourceDist.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clean-plugin</artifactId> + <version>2.1.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clover-plugin</artifactId> + <version>2.3</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.0.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>2.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <version>2.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-plugin-plugin</artifactId> + <version>2.3</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-pmd-plugin</artifactId> + <version>2.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>2.0.1</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>2.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>2.0-beta-5</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.2</version> + <!-- Current version is 2.3, but it cause the following exception: + + Running org.geotools.gce.imagepyramid.ImagePyramidReaderTest + Error: Could not find mediaLib accelerator wrapper classes. Continuing in pure Java mode. + Occurs in: com.sun.media.jai.mlib.MediaLibAccessor + java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image + at com.sun.media.jai.mlib.MediaLibAccessor.setUseMlib(MediaLibAccessor.java:245) + at com.sun.media.jai.mlib.MlibAffineRIF.create(MlibAffineRIF.java:71) + --> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-report-plugin</artifactId> + <version>2.3</version> + </plugin> + + <!-- http://www.ibiblio.org/maven2/org/codehaus/mojo/ --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>changelog-maven-plugin</artifactId> + <version>2.0-beta-1</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>changes-maven-plugin</artifactId> + <version>2.0-beta-1</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jxr-maven-plugin</artifactId> + <version>2.0-beta-1</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>taglist-maven-plugin</artifactId> + <version>2.0</version> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jalopy-maven-plugin</artifactId> + <version>1.0-SNAPSHOT</version> + </plugin> + <!-- + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <configuration> + <outputDirectory>${src.output}</outputDirectory> + <attach>false</attach> + </configuration> + </plugin> + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-eclipse-plugin</artifactId> + <version>2.4</version> + </plugin> + </plugins> + </pluginManagement> + + <!-- http://www.ibiblio.org/maven2/org/apache/maven/wagon/ --> + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-webdav</artifactId> + <version>1.0-beta-2</version> + </extension> + </extensions> + + <plugins> + <!-- ======================================================= --> + <!-- Source reformat --> + <!-- (activated only on request, jalopy:format) --> + <!-- See developer's guide for automated activation --> + <!-- ======================================================= --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jalopy-maven-plugin</artifactId> + <configuration> + <convention>gt2/jalopygeotools.xml</convention> + <failOnError>false</failOnError> + </configuration> + <dependencies> + <dependency> + <groupId>org.geotools.maven</groupId> + <artifactId>gt2-build-configs</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + </plugin> + + + <!-- ======================================================= --> + <!-- Compilation. --> + <!-- ======================================================= --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <!-- The -source argument for the Java compiler. --> + <target>1.5</target> + <!-- The -target argument for the Java compiler. --> + <debug>true</debug> + <!-- Whether to include debugging information. --> + <encoding>ISO-8859-1</encoding> + <!-- The -encoding argument for the Java compiler. --> + </configuration> + </plugin> + + + <!-- ======================================================= --> + <!-- Tests. --> + <!-- ======================================================= --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <includes> + <include>**/*Test.java</include> + </includes> + <excludes> + <exclude>${online.skip.pattern}</exclude> + <exclude>${stress.skip.pattern}</exclude> + </excludes> + <argLine>-Xmx${test.maxHeapSize} -Dorg.geotools.test.extensive=${extensive.tests} + -Dorg.geotools.test.interactive=${interactive.tests} -Djava.awt.headless=${java.awt.headless} + </argLine> + <!-- Ignores test failure only if we are generating a --> + <!-- report for publication on the web site. See the --> + <!-- profiles section at the begining of this pom.xml file. --> + <testFailureIgnore> + ${allow.test.failure.ignore} + </testFailureIgnore> + + <!-- The two following options have the opposite value of what we would + like. They are that way because they don't seem to work as expected + with Surefire 2.3. TODO: Try again when Surefire 2.4 will be available. --> + + <!-- Option to print summary of test suites or just print the test cases that has errors. --> + <printSummary>true</printSummary> + <!-- Redirect the unit test standard output to a file. --> + <redirectTestOutputToFile>false</redirectTestOutputToFile> + </configuration> + </plugin> + + + <!-- ======================================================= --> + <!-- Code coverage --> + <!-- ======================================================= --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-clover-plugin</artifactId> + <configuration> + <jdk>1.5</jdk> + <licenseLocation> + http://svn.geotools.org/geotools/branches/2.4.x/build/maven/build-configs/src/main/resources/gt2/clover.license + </licenseLocation> + <flushPolicy>directed</flushPolicy> + </configuration> + <executions> + <execution> + <phase>pre-site</phase> + <goals> + <goal>instrument</goal> + <!-- aggregation is disabled due to the bug: --> + <!-- http://jira.codehaus.org/browse/MCLOVER-34 --> + </goals> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.geotools.maven</groupId> + <artifactId>gt2-build-configs</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + </plugin> + + + <!-- ======================================================= --> + <!-- JAR packaging. --> + <!-- ======================================================= --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <addClasspath>true</addClasspath> + </manifest> + </archive> + </configuration> + </plugin> + + <!-- ======================================================= --> + <!-- Source packaging. --> + <!-- ======================================================= --> + <plugin> + <inherited>true</inherited> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <configuration> + <attach>true</attach> + </configuration> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> + + <distributionManagement> + <repository> + <uniqueVersion>false</uniqueVersion> + <id>ximple</id> + <name>Ximple - Artifactory lib repo</name> + <url>dav:http://www.ximple.com.tw/artifactory/libs-releases</url> + </repository> + <snapshotRepository> + <uniqueVersion>false</uniqueVersion> + <id>ximple-snapshots</id> + <name>Ximple - Artifactory lib-snapshots repo</name> + <url>dav:http://www.ximple.com.tw/artifactory/libs-snapshots</url> + </snapshotRepository> + </distributionManagement> + + <!-- =========================================================== --> + <!-- Repositories (ibiblio, refractions...). --> + <!-- This is where Maven looks for dependencies. --> + <!-- =========================================================== --> + <repositories> + <repository> + <snapshots> + <enabled>false</enabled> + </snapshots> + <id>central</id> + <name>Ximple Artifactory Maven Repository Switchboard</name> + <url>http://www.ximple.com.tw/artifactory/repo</url> + </repository> + + <repository> + <releases> + <enabled>false</enabled> + </releases> + <id>snapshots</id> + <name>Ximple Artifactory Maven Repository Switchboard</name> + <url>http://www.ximple.com.tw/artifactory/repo</url> + </repository> + </repositories> + + + <!-- =========================================================== --> + <!-- Plugin repositories. --> + <!-- This is where Maven looks for plugin dependencies. --> + <!-- =========================================================== --> + <pluginRepositories> + <pluginRepository> + <id>ximple-snapshots</id> + <name>ximple-shapshots</name> + <url>http://www.ximple.com.tw/artifactory/vplugins-snapshots</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>false</enabled> + </releases> + </pluginRepository> + <pluginRepository> + <id>ximple</id> + <name>Ximple Maven 2 Repository</name> + <url>http://www.ximple.com.tw/artifactory/vplugins-releases</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> +</project> diff --git a/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/App.java b/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/App.java new file mode 100644 index 0000000..4e63ef3 --- /dev/null +++ b/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/App.java @@ -0,0 +1,13 @@ +package com.ximple.eofms.jobs; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/ximple-spatialjob/src/test/java/com/ximple/eofms/jobs/AppTest.java b/ximple-spatialjob/src/test/java/com/ximple/eofms/jobs/AppTest.java new file mode 100644 index 0000000..7f66df3 --- /dev/null +++ b/ximple-spatialjob/src/test/java/com/ximple/eofms/jobs/AppTest.java @@ -0,0 +1,38 @@ +package com.ximple.eofms.jobs; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * 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 :-) + */ + public void testApp() + { + assertTrue( true ); + } +} -- Gitblit v0.0.0-SNAPSHOT