Drew Short
11 years ago
5 changed files with 246 additions and 0 deletions
-
10.gitignore
-
181pom.xml
-
4src/includes/log4j.properties
-
13src/main/java/com/sothr/imagetools/App.java
-
38src/test/java/com/sothr/imagetools/AppTest.java
@ -0,0 +1,181 @@ |
|||||
|
<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/xsd/maven-4.0.0.xsd"> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>Image-Tools</artifactId> |
||||
|
<version>0.1.0-SNAPSHOT</version> |
||||
|
<packaging>jar</packaging> |
||||
|
|
||||
|
<name>Image-Tools</name> |
||||
|
<description>An image collection management utility</description> |
||||
|
<url>http://imagetools.sothr.com</url> |
||||
|
<organization> |
||||
|
<name>Sothr Software</name> |
||||
|
</organization> |
||||
|
|
||||
|
<properties> |
||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
|
<jdk.version>1.7</jdk.version> |
||||
|
<lib.junit.version>3.8.1</lib.junit.version> |
||||
|
<lib.log4j.version>1.2.17</lib.log4j.version> |
||||
|
<lib.slf4j.version>1.7.5</lib.slf4j.version> |
||||
|
<lib.scala-library.version>2.10.2</lib.scala-library.version> |
||||
|
<lib.scalafx.version>8.0.0-M1</lib.scalafx.version> |
||||
|
</properties> |
||||
|
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<version>${lib.junit.version}</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>log4j</groupId> |
||||
|
<artifactId>log4j</artifactId> |
||||
|
<version>${lib.log4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-api</artifactId> |
||||
|
<version>${lib.slf4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-log4j12</artifactId> |
||||
|
<version>${lib.slf4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scala-lang</groupId> |
||||
|
<artifactId>scala-library</artifactId> |
||||
|
<version>${lib.scala-library.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scalafx</groupId> |
||||
|
<artifactId>scalafx_2.10</artifactId> |
||||
|
<version>${lib.scalafx.version}</version> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
|
||||
|
<build> |
||||
|
<resources> |
||||
|
</resources> |
||||
|
<pluginManagement> |
||||
|
<plugins> |
||||
|
<plugin> |
||||
|
<groupId>com.zenjava</groupId> |
||||
|
<artifactId>javafx-maven-plugin</artifactId> |
||||
|
<version>2.0</version> |
||||
|
<configuration> |
||||
|
<mainClass>com.sothr.imagetools.App</mainClass> |
||||
|
</configuration> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>net.alchim31.maven</groupId> |
||||
|
<artifactId>scala-maven-plugin</artifactId> |
||||
|
<version>3.1.6</version> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-resources-plugin</artifactId> |
||||
|
<version>2.6</version> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</pluginManagement> |
||||
|
<plugins> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-compiler-plugin</artifactId> |
||||
|
<version>3.1</version> |
||||
|
<configuration> |
||||
|
<source>${jdk.version}</source> |
||||
|
<target>${jdk.version}</target> |
||||
|
</configuration> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<phase>compile</phase> |
||||
|
<goals> |
||||
|
<goal>compile</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>net.alchim31.maven</groupId> |
||||
|
<artifactId>scala-maven-plugin</artifactId> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>scala-compile-first</id> |
||||
|
<phase>process-resources</phase> |
||||
|
<goals> |
||||
|
<goal>add-source</goal> |
||||
|
<goal>compile</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
<execution> |
||||
|
<id>scala-test-compile</id> |
||||
|
<phase>process-test-resources</phase> |
||||
|
<goals> |
||||
|
<goal>testCompile</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-jar-plugin</artifactId> |
||||
|
<version>2.4</version> |
||||
|
<configuration> |
||||
|
<archive> |
||||
|
<manifest> |
||||
|
<addClasspath>true</addClasspath> |
||||
|
<mainClass>com.sothr.imagetools.App</mainClass> |
||||
|
<classpathPrefix>lib</classpathPrefix> |
||||
|
</manifest> |
||||
|
</archive> |
||||
|
</configuration> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-dependency-plugin</artifactId> |
||||
|
<version>2.5.1</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>copy-dependencies</id> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>copy-dependencies</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<outputDirectory>${project.build.directory}/lib/</outputDirectory> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-resources-plugin</artifactId> |
||||
|
<version>2.6</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>copy-resources</id> |
||||
|
<phase>validate</phase> |
||||
|
<goals> |
||||
|
<goal>copy-resources</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<outputDirectory>${basedir}/target</outputDirectory> |
||||
|
<resources> |
||||
|
<resource> |
||||
|
<directory>src/includes</directory> |
||||
|
<filtering>true</filtering> |
||||
|
</resource> |
||||
|
</resources> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</build> |
||||
|
</project> |
@ -0,0 +1,4 @@ |
|||||
|
log4j.rootLogger=DEBUG, A1 |
||||
|
log4j.appender.A1=org.apache.log4j.ConsoleAppender |
||||
|
log4j.appender.A1.layout=org.apache.log4j.EnhancedPatternLayout |
||||
|
log4j.appender.A1.layout.ConversionPattern=%d{yy-MM-dd HH:mm:ss} %-5p [%c{3.}] - %m%n |
@ -0,0 +1,13 @@ |
|||||
|
package com.sothr.imagetools; |
||||
|
|
||||
|
/** |
||||
|
* Hello world! |
||||
|
* |
||||
|
*/ |
||||
|
public class App |
||||
|
{ |
||||
|
public static void main( String[] args ) |
||||
|
{ |
||||
|
System.out.println( "Hello World!" ); |
||||
|
} |
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.sothr.imagetools; |
||||
|
|
||||
|
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 ); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue