Browse Source
Refactor: Code Style Cleanup
Refactor: Code Style Cleanup
* Whitespace fixes (tabs vs spaces for portability) * EOF whitespace removalmaster
Drew Short
7 years ago
53 changed files with 3975 additions and 3956 deletions
-
226cli/pom.xml
-
144cli/src/includes/logback.xml
-
182cli/src/main/java/com/sothr/imagetools/cli/AppCLI.java
-
430engine/pom.xml
-
254engine/src/main/java/com/sothr/imagetools/engine/AppConfig.java
-
26engine/src/main/java/com/sothr/imagetools/engine/errors/ImageToolsException.java
-
4engine/src/main/java/com/sothr/imagetools/engine/image/ImageType.java
-
34engine/src/main/java/com/sothr/imagetools/engine/util/ResourceLoader.java
-
14engine/src/main/resources/ehcache.xml
-
80engine/src/main/resources/hibernate.cfg.xml
-
26engine/src/main/resources/hibernate/Image.hbm.xml
-
28engine/src/main/resources/hibernate/ImageHash.hbm.xml
-
40engine/src/main/resources/logback-minimum-config.xml
-
762engine/src/main/scala/com/sothr/imagetools/engine/ConcurrentEngine.scala
-
348engine/src/main/scala/com/sothr/imagetools/engine/Engine.scala
-
150engine/src/main/scala/com/sothr/imagetools/engine/SequentialEngine.scala
-
54engine/src/main/scala/com/sothr/imagetools/engine/dao/HibernateUtil.scala
-
71engine/src/main/scala/com/sothr/imagetools/engine/dao/ImageDAO.scala
-
195engine/src/main/scala/com/sothr/imagetools/engine/image/Image.scala
-
26engine/src/main/scala/com/sothr/imagetools/engine/image/ImageFilter.scala
-
256engine/src/main/scala/com/sothr/imagetools/engine/image/ImageService.scala
-
58engine/src/main/scala/com/sothr/imagetools/engine/image/SimilarImages.scala
-
16engine/src/main/scala/com/sothr/imagetools/engine/util/DirectoryFilter.scala
-
24engine/src/main/scala/com/sothr/imagetools/engine/util/Hamming.scala
-
226engine/src/main/scala/com/sothr/imagetools/engine/util/PropertiesService.scala
-
56engine/src/main/scala/com/sothr/imagetools/engine/util/PropertyEnum.scala
-
49engine/src/main/scala/com/sothr/imagetools/engine/util/Timing.scala
-
164engine/src/main/scala/com/sothr/imagetools/engine/util/Version.scala
-
76engine/src/main/scala/com/sothr/imagetools/engine/vo/ImageHashVO.scala
-
42engine/src/test/java/com/sothr/imagetools/engine/AppTest.java
-
12engine/src/test/resources/ehcache.xml
-
74engine/src/test/resources/hibernate.cfg.xml
-
26engine/src/test/resources/hibernate/Image.hbm.xml
-
28engine/src/test/resources/hibernate/ImageHash.hbm.xml
-
112engine/src/test/resources/logback-minimum-config.xml
-
8engine/src/test/scala/com/sothr/imagetools/engine/BaseTest.scala
-
74engine/src/test/scala/com/sothr/imagetools/engine/EngineTest.scala
-
8engine/src/test/scala/com/sothr/imagetools/engine/ScalaAppTest.scala
-
6engine/src/test/scala/com/sothr/imagetools/engine/TestParams.scala
-
62engine/src/test/scala/com/sothr/imagetools/engine/image/ImageFilterTest.scala
-
234gui/pom.xml
-
144gui/src/includes/logback.xml
-
138gui/src/main/java/com/sothr/imagetools/ui/App.java
-
395gui/src/main/resources/fxml/mainapp/MainApp.fxml
-
186gui/src/main/scala/com/sothr/imagetools/ui/component/ImageTile.scala
-
25gui/src/main/scala/com/sothr/imagetools/ui/component/ImageTileFactory.scala
-
491gui/src/main/scala/com/sothr/imagetools/ui/component/ImageTilePane.scala
-
843gui/src/main/scala/com/sothr/imagetools/ui/controller/AppController.scala
-
34gui/src/main/scala/com/sothr/imagetools/ui/util/FileUtil.scala
-
4hash/pom.xml
-
32hash/src/main/scala/com/sothr/imagetools/hash/HashService.scala
-
892parent/pom.xml
-
42pom.xml
@ -1,122 +1,122 @@ |
|||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
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> |
|
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
<parent> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>parent</artifactId> |
|
||||
<version>1.0.1</version> |
|
||||
<relativePath>../parent</relativePath> |
|
||||
</parent> |
|
||||
|
<parent> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>parent</artifactId> |
||||
|
<version>1.0.1</version> |
||||
|
<relativePath>../parent</relativePath> |
||||
|
</parent> |
||||
|
|
||||
<artifactId>cli</artifactId> |
|
||||
<version>0.1.1</version> |
|
||||
<packaging>jar</packaging> |
|
||||
|
<artifactId>cli</artifactId> |
||||
|
<version>0.1.1</version> |
||||
|
<packaging>jar</packaging> |
||||
|
|
||||
<name>ImageTools-CLI</name> |
|
||||
<description>The Command Line Interface for Image-Tools</description> |
|
||||
<url>http://imagetools.sothr.com</url> |
|
||||
<organization> |
|
||||
<name>Sothr Software</name> |
|
||||
</organization> |
|
||||
|
<name>ImageTools-CLI</name> |
||||
|
<description>The Command Line Interface for Image-Tools</description> |
||||
|
<url>http://imagetools.sothr.com</url> |
||||
|
<organization> |
||||
|
<name>Sothr Software</name> |
||||
|
</organization> |
||||
|
|
||||
<dependencies> |
|
||||
<dependency> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>engine</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-core</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-classic</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-access</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.slf4j</groupId> |
|
||||
<artifactId>slf4j-api</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.clapper</groupId> |
|
||||
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scala-lang</groupId> |
|
||||
<artifactId>scala-library</artifactId> |
|
||||
</dependency> |
|
||||
</dependencies> |
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>engine</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-core</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-classic</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-access</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-api</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.clapper</groupId> |
||||
|
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scala-lang</groupId> |
||||
|
<artifactId>scala-library</artifactId> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
|
||||
<build> |
|
||||
<plugins> |
|
||||
<!-- Packaging Configuration --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-jar-plugin</artifactId> |
|
||||
<version>2.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<phase>package</phase> |
|
||||
<goals> |
|
||||
<goal>jar</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<archive> |
|
||||
<manifest> |
|
||||
<addClasspath>true</addClasspath> |
|
||||
<classpathPrefix>lib/</classpathPrefix> |
|
||||
<mainClass>com.sothr.imagetools.cli.AppCLI</mainClass> |
|
||||
</manifest> |
|
||||
</archive> |
|
||||
<outputDirectory> |
|
||||
${project.build.directory}/release |
|
||||
</outputDirectory> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<plugin> |
|
||||
<artifactId>maven-antrun-plugin</artifactId> |
|
||||
<version>1.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>prepare</id> |
|
||||
<phase>process-resources</phase> |
|
||||
<configuration> |
|
||||
<tasks> |
|
||||
<copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
|
||||
overwrite="true"/> |
|
||||
<chmod file="${project.build.directory}/startCLI.sh" perm="755"/> |
|
||||
</tasks> |
|
||||
</configuration> |
|
||||
<goals> |
|
||||
<goal>run</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
<execution> |
|
||||
<id>package</id> |
|
||||
<phase>package</phase> |
|
||||
<configuration> |
|
||||
<tasks> |
|
||||
<!-- set permissions on run files --> |
|
||||
<chmod file="${project.build.directory}/release/startCLI.sh" perm="755"/> |
|
||||
</tasks> |
|
||||
</configuration> |
|
||||
<goals> |
|
||||
<goal>run</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
</plugins> |
|
||||
</build> |
|
||||
|
<build> |
||||
|
<plugins> |
||||
|
<!-- Packaging Configuration --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-jar-plugin</artifactId> |
||||
|
<version>2.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>jar</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<archive> |
||||
|
<manifest> |
||||
|
<addClasspath>true</addClasspath> |
||||
|
<classpathPrefix>lib/</classpathPrefix> |
||||
|
<mainClass>com.sothr.imagetools.cli.AppCLI</mainClass> |
||||
|
</manifest> |
||||
|
</archive> |
||||
|
<outputDirectory> |
||||
|
${project.build.directory}/release |
||||
|
</outputDirectory> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<artifactId>maven-antrun-plugin</artifactId> |
||||
|
<version>1.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>prepare</id> |
||||
|
<phase>process-resources</phase> |
||||
|
<configuration> |
||||
|
<tasks> |
||||
|
<copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
||||
|
overwrite="true"/> |
||||
|
<chmod file="${project.build.directory}/startCLI.sh" perm="755"/> |
||||
|
</tasks> |
||||
|
</configuration> |
||||
|
<goals> |
||||
|
<goal>run</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
<execution> |
||||
|
<id>package</id> |
||||
|
<phase>package</phase> |
||||
|
<configuration> |
||||
|
<tasks> |
||||
|
<!-- set permissions on run files --> |
||||
|
<chmod file="${project.build.directory}/release/startCLI.sh" perm="755"/> |
||||
|
</tasks> |
||||
|
</configuration> |
||||
|
<goals> |
||||
|
<goal>run</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</build> |
||||
|
|
||||
</project> |
</project> |
@ -1,75 +1,75 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<configuration> |
<configuration> |
||||
<logger name="org.hibernate" level="WARN"/> |
|
||||
<logger name="net.sf.ehcache" level="WARN"/> |
|
||||
<appender name="C" class="ch.qos.logback.core.ConsoleAppender"> |
|
||||
<encoder> |
|
||||
<!-- Sorry Windows Users --> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>INFO</level> |
|
||||
</filter> |
|
||||
</appender> |
|
||||
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.debug</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>DEBUG</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>5MB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.info</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>INFO</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.err</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>ERROR</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<root level="DEBUG"> |
|
||||
<appender-ref ref="C"/> |
|
||||
<appender-ref ref="DL"/> |
|
||||
<appender-ref ref="IL"/> |
|
||||
<appender-ref ref="EL"/> |
|
||||
</root> |
|
||||
|
<logger name="org.hibernate" level="WARN"/> |
||||
|
<logger name="net.sf.ehcache" level="WARN"/> |
||||
|
<appender name="C" class="ch.qos.logback.core.ConsoleAppender"> |
||||
|
<encoder> |
||||
|
<!-- Sorry Windows Users --> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>INFO</level> |
||||
|
</filter> |
||||
|
</appender> |
||||
|
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.debug</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>DEBUG</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>5MB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.info</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>INFO</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.err</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>ERROR</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<root level="DEBUG"> |
||||
|
<appender-ref ref="C"/> |
||||
|
<appender-ref ref="DL"/> |
||||
|
<appender-ref ref="IL"/> |
||||
|
<appender-ref ref="EL"/> |
||||
|
</root> |
||||
</configuration> |
</configuration> |
@ -1,223 +1,223 @@ |
|||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
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> |
|
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
<parent> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>parent</artifactId> |
|
||||
<version>1.0.1</version> |
|
||||
<relativePath>../parent</relativePath> |
|
||||
</parent> |
|
||||
|
<parent> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>parent</artifactId> |
||||
|
<version>1.0.1</version> |
||||
|
<relativePath>../parent</relativePath> |
||||
|
</parent> |
||||
|
|
||||
<artifactId>engine</artifactId> |
|
||||
<version>0.1.3</version> |
|
||||
<packaging>jar</packaging> |
|
||||
<name>ImageTools-Engine</name> |
|
||||
<description>An image collection management utility</description> |
|
||||
<url>http://imagetools.sothr.com</url> |
|
||||
<organization> |
|
||||
<name>Sothr Software</name> |
|
||||
</organization> |
|
||||
|
<artifactId>engine</artifactId> |
||||
|
<version>0.1.3</version> |
||||
|
<packaging>jar</packaging> |
||||
|
<name>ImageTools-Engine</name> |
||||
|
<description>An image collection management utility</description> |
||||
|
<url>http://imagetools.sothr.com</url> |
||||
|
<organization> |
||||
|
<name>Sothr Software</name> |
||||
|
</organization> |
||||
|
|
||||
<dependencies> |
|
||||
<dependency> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>hash</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>junit</groupId> |
|
||||
<artifactId>junit</artifactId> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scalatest</groupId> |
|
||||
<artifactId>scalatest_${scala.binary.version}</artifactId> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-core</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-classic</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-access</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.slf4j</groupId> |
|
||||
<artifactId>slf4j-api</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.clapper</groupId> |
|
||||
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scala-lang</groupId> |
|
||||
<artifactId>scala-library</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.jsuereth</groupId> |
|
||||
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.coobird</groupId> |
|
||||
<artifactId>thumbnailator</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe</groupId> |
|
||||
<artifactId>config</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sourceforge.jtransforms</groupId> |
|
||||
<artifactId>jtransforms</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>commons-cli</groupId> |
|
||||
<artifactId>commons-cli</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>commons-codec</groupId> |
|
||||
<artifactId>commons-codec</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>javax.transaction</groupId> |
|
||||
<artifactId>jta</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sf.ehcache</groupId> |
|
||||
<artifactId>ehcache</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe.akka</groupId> |
|
||||
<artifactId>akka-actor_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe.akka</groupId> |
|
||||
<artifactId>akka-slf4j_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.h2database</groupId> |
|
||||
<artifactId>h2</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-core</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-ehcache</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sf.ehcache</groupId> |
|
||||
<artifactId>ehcache-core</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-c3p0</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
|
||||
<artifactId>markdown4j</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.jsuereth</groupId> |
|
||||
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.twelvemonkeys.imageio</groupId> |
|
||||
<artifactId>imageio-jpeg</artifactId> |
|
||||
</dependency> |
|
||||
</dependencies> |
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>hash</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scalatest</groupId> |
||||
|
<artifactId>scalatest_${scala.binary.version}</artifactId> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-core</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-classic</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-access</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-api</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.clapper</groupId> |
||||
|
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scala-lang</groupId> |
||||
|
<artifactId>scala-library</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.jsuereth</groupId> |
||||
|
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.coobird</groupId> |
||||
|
<artifactId>thumbnailator</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe</groupId> |
||||
|
<artifactId>config</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sourceforge.jtransforms</groupId> |
||||
|
<artifactId>jtransforms</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>commons-cli</groupId> |
||||
|
<artifactId>commons-cli</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>commons-codec</groupId> |
||||
|
<artifactId>commons-codec</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>javax.transaction</groupId> |
||||
|
<artifactId>jta</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sf.ehcache</groupId> |
||||
|
<artifactId>ehcache</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe.akka</groupId> |
||||
|
<artifactId>akka-actor_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe.akka</groupId> |
||||
|
<artifactId>akka-slf4j_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.h2database</groupId> |
||||
|
<artifactId>h2</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-core</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-ehcache</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sf.ehcache</groupId> |
||||
|
<artifactId>ehcache-core</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-c3p0</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
||||
|
<artifactId>markdown4j</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.jsuereth</groupId> |
||||
|
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.twelvemonkeys.imageio</groupId> |
||||
|
<artifactId>imageio-jpeg</artifactId> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
|
||||
<build> |
|
||||
<plugins> |
|
||||
<!-- enable surefire for java tests--> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-surefire-plugin</artifactId> |
|
||||
<version>2.7</version> |
|
||||
<configuration> |
|
||||
<skipTests>false</skipTests> |
|
||||
</configuration> |
|
||||
</plugin> |
|
||||
<!-- enable scalatest for scala tests--> |
|
||||
<plugin> |
|
||||
<groupId>org.scalatest</groupId> |
|
||||
<artifactId>scalatest-maven-plugin</artifactId> |
|
||||
<version>1.0-RC2</version> |
|
||||
<configuration> |
|
||||
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
|
||||
<junitxml>.</junitxml> |
|
||||
<filereports>WDF TestSuite.txt</filereports> |
|
||||
<argLine>-Xmx128m</argLine> |
|
||||
</configuration> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>test</id> |
|
||||
<goals> |
|
||||
<goal>test</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<!-- Packaging Configuration --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-jar-plugin</artifactId> |
|
||||
<version>2.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<phase>package</phase> |
|
||||
<goals> |
|
||||
<goal>jar</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<archive> |
|
||||
<manifest> |
|
||||
<addClasspath>true</addClasspath> |
|
||||
<classpathPrefix>lib/</classpathPrefix> |
|
||||
</manifest> |
|
||||
</archive> |
|
||||
<outputDirectory> |
|
||||
${project.build.directory}/release |
|
||||
</outputDirectory> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<!-- General Ant Tasks |
|
||||
Mostly Moving Files --> |
|
||||
<plugin> |
|
||||
<artifactId>maven-antrun-plugin</artifactId> |
|
||||
<version>1.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>prepare</id> |
|
||||
<phase>process-resources</phase> |
|
||||
<configuration> |
|
||||
<tasks> |
|
||||
<!-- Copy hibernate configuration files --> |
|
||||
<copy todir="${basedir}/src/test/resources/hibernate"> |
|
||||
<fileset dir="${basedir}/src/main/resources/hibernate" includes="**/*"/> |
|
||||
</copy> |
|
||||
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/version.info" toFile="${basedir}/../version.info" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/README.md" toFile="${basedir}/../README.md" |
|
||||
overwrite="true"/> |
|
||||
</tasks> |
|
||||
</configuration> |
|
||||
<goals> |
|
||||
<goal>run</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
</plugins> |
|
||||
</build> |
|
||||
|
<build> |
||||
|
<plugins> |
||||
|
<!-- enable surefire for java tests--> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-surefire-plugin</artifactId> |
||||
|
<version>2.7</version> |
||||
|
<configuration> |
||||
|
<skipTests>false</skipTests> |
||||
|
</configuration> |
||||
|
</plugin> |
||||
|
<!-- enable scalatest for scala tests--> |
||||
|
<plugin> |
||||
|
<groupId>org.scalatest</groupId> |
||||
|
<artifactId>scalatest-maven-plugin</artifactId> |
||||
|
<version>1.0-RC2</version> |
||||
|
<configuration> |
||||
|
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
||||
|
<junitxml>.</junitxml> |
||||
|
<filereports>WDF TestSuite.txt</filereports> |
||||
|
<argLine>-Xmx128m</argLine> |
||||
|
</configuration> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>test</id> |
||||
|
<goals> |
||||
|
<goal>test</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<!-- Packaging Configuration --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-jar-plugin</artifactId> |
||||
|
<version>2.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>jar</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<archive> |
||||
|
<manifest> |
||||
|
<addClasspath>true</addClasspath> |
||||
|
<classpathPrefix>lib/</classpathPrefix> |
||||
|
</manifest> |
||||
|
</archive> |
||||
|
<outputDirectory> |
||||
|
${project.build.directory}/release |
||||
|
</outputDirectory> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<!-- General Ant Tasks |
||||
|
Mostly Moving Files --> |
||||
|
<plugin> |
||||
|
<artifactId>maven-antrun-plugin</artifactId> |
||||
|
<version>1.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>prepare</id> |
||||
|
<phase>process-resources</phase> |
||||
|
<configuration> |
||||
|
<tasks> |
||||
|
<!-- Copy hibernate configuration files --> |
||||
|
<copy todir="${basedir}/src/test/resources/hibernate"> |
||||
|
<fileset dir="${basedir}/src/main/resources/hibernate" includes="**/*"/> |
||||
|
</copy> |
||||
|
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/version.info" toFile="${basedir}/../version.info" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/README.md" toFile="${basedir}/../README.md" |
||||
|
overwrite="true"/> |
||||
|
</tasks> |
||||
|
</configuration> |
||||
|
<goals> |
||||
|
<goal>run</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</build> |
||||
|
|
||||
</project> |
</project> |
@ -1,5 +1,5 @@ |
|||||
package com.sothr.imagetools.engine.image; |
package com.sothr.imagetools.engine.image; |
||||
|
|
||||
public enum ImageType { |
public enum ImageType { |
||||
SingleFrameImage, MultiFrameImage |
|
||||
} |
|
||||
|
SingleFrameImage, MultiFrameImage |
||||
|
} |
@ -1,9 +1,9 @@ |
|||||
<ehcache maxBytesLocalHeap="512M" maxBytesLocalDisk="5g"> |
<ehcache maxBytesLocalHeap="512M" maxBytesLocalDisk="5g"> |
||||
<diskStore path=".cache/ehcache"/> |
|
||||
<cache name="images" |
|
||||
timeToLiveSeconds="100"> |
|
||||
</cache> |
|
||||
<cache name="thumbnails" |
|
||||
timeToLiveSeconds="100"> |
|
||||
</cache> |
|
||||
|
<diskStore path=".cache/ehcache"/> |
||||
|
<cache name="images" |
||||
|
timeToLiveSeconds="100"> |
||||
|
</cache> |
||||
|
<cache name="thumbnails" |
||||
|
timeToLiveSeconds="100"> |
||||
|
</cache> |
||||
</ehcache> |
</ehcache> |
@ -1,51 +1,51 @@ |
|||||
<?xml version='1.0' encoding='utf-8'?> |
<?xml version='1.0' encoding='utf-8'?> |
||||
<!DOCTYPE hibernate-configuration PUBLIC |
<!DOCTYPE hibernate-configuration PUBLIC |
||||
"-//Hibernate/Hibernate Configuration DTD//EN" |
|
||||
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Configuration DTD//EN" |
||||
|
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
||||
<hibernate-configuration> |
<hibernate-configuration> |
||||
<!-- a SessionFactory instance listed as /jndi/name --> |
|
||||
<session-factory> |
|
||||
|
<!-- a SessionFactory instance listed as /jndi/name --> |
||||
|
<session-factory> |
||||
|
|
||||
<!-- properties --> |
|
||||
<property name="hibernate.connection.driver_class">org.h2.Driver</property> |
|
||||
<!--<property name="hibernate.connection.connection.url">jdbc:h2:imageTools.db</property>--> |
|
||||
<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> |
|
||||
<property name="hibernate.show_sql">false</property> |
|
||||
<property name="hibernate.generate_statistics"></property> |
|
||||
<property name="hibernate.use_sql_comments"></property> |
|
||||
<!--<property name="transaction.factory_class"> |
|
||||
org.hibernate.transaction.JTATransactionFactory |
|
||||
</property>--> |
|
||||
<property name="jta.UserTransaction">java:comp/UserTransaction</property> |
|
||||
|
<!-- properties --> |
||||
|
<property name="hibernate.connection.driver_class">org.h2.Driver</property> |
||||
|
<!--<property name="hibernate.connection.connection.url">jdbc:h2:imageTools.db</property>--> |
||||
|
<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> |
||||
|
<property name="hibernate.show_sql">false</property> |
||||
|
<property name="hibernate.generate_statistics"></property> |
||||
|
<property name="hibernate.use_sql_comments"></property> |
||||
|
<!--<property name="transaction.factory_class"> |
||||
|
org.hibernate.transaction.JTATransactionFactory |
||||
|
</property>--> |
||||
|
<property name="jta.UserTransaction">java:comp/UserTransaction</property> |
||||
|
|
||||
<property name="hibernate.hbm2ddl.auto">update</property> |
|
||||
|
<property name="hibernate.hbm2ddl.auto">update</property> |
||||
|
|
||||
<!-- Enable Hibernate's automatic session context management --> |
|
||||
<property name="hibernate.current_session_context_class">thread</property> |
|
||||
|
<!-- Enable Hibernate's automatic session context management --> |
||||
|
<property name="hibernate.current_session_context_class">thread</property> |
||||
|
|
||||
<!-- Enable the second-level cache --> |
|
||||
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory |
|
||||
</property> |
|
||||
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory |
|
||||
</property> |
|
||||
<property name="hibernate.cache.use_second_level_cache">true</property> |
|
||||
|
<!-- Enable the second-level cache --> |
||||
|
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory |
||||
|
</property> |
||||
|
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory |
||||
|
</property> |
||||
|
<property name="hibernate.cache.use_second_level_cache">true</property> |
||||
|
|
||||
<property name="c3p0.acquire_increment">1</property> |
|
||||
<property name="c3p0.idle_test_period">100</property> |
|
||||
<!-- seconds --> |
|
||||
<property name="c3p0.max_size">50</property> |
|
||||
<property name="c3p0.max_statements">0</property> |
|
||||
<property name="c3p0.min_size">5</property> |
|
||||
<property name="c3p0.timeout">100</property> |
|
||||
<!-- seconds --> |
|
||||
|
<property name="c3p0.acquire_increment">1</property> |
||||
|
<property name="c3p0.idle_test_period">100</property> |
||||
|
<!-- seconds --> |
||||
|
<property name="c3p0.max_size">50</property> |
||||
|
<property name="c3p0.max_statements">0</property> |
||||
|
<property name="c3p0.min_size">5</property> |
||||
|
<property name="c3p0.timeout">100</property> |
||||
|
<!-- seconds --> |
||||
|
|
||||
<!-- mapping files --> |
|
||||
<mapping resource="hibernate/Image.hbm.xml"/> |
|
||||
<mapping resource="hibernate/ImageHash.hbm.xml"/> |
|
||||
|
<!-- mapping files --> |
||||
|
<mapping resource="hibernate/Image.hbm.xml"/> |
||||
|
<mapping resource="hibernate/ImageHash.hbm.xml"/> |
||||
|
|
||||
<!-- cache settings --> |
|
||||
<!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/> |
|
||||
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> |
|
||||
<collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> |
|
||||
</session-factory> |
|
||||
|
<!-- cache settings --> |
||||
|
<!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/> |
||||
|
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> |
||||
|
<collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> |
||||
|
</session-factory> |
||||
</hibernate-configuration> |
</hibernate-configuration> |
@ -1,17 +1,17 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<!DOCTYPE hibernate-mapping PUBLIC |
<!DOCTYPE hibernate-mapping PUBLIC |
||||
"-//Hibernate/Hibernate Mapping DTD//EN" |
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Mapping DTD//EN" |
||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
||||
<hibernate-mapping> |
<hibernate-mapping> |
||||
<class name="com.sothr.imagetools.engine.image.Image" table="Image"> |
|
||||
<meta attribute="class-description"> |
|
||||
This class contains the image hashes and meta data |
|
||||
</meta> |
|
||||
<id name="imagePath" type="string" column="path"/> |
|
||||
<property name="thumbnailPath" column="thumbnail_path" type="string" not-null="true"/> |
|
||||
<property name="width" column="width" type="int" not-null="true"/> |
|
||||
<property name="height" column="height" type="int" not-null="true"/> |
|
||||
<many-to-one name="hashes" column="hashes" unique="true" class="com.sothr.imagetools.engine.vo.ImageHashVO" |
|
||||
cascade="save-update, delete" not-null="true" lazy="false"/> |
|
||||
</class> |
|
||||
|
<class name="com.sothr.imagetools.engine.image.Image" table="Image"> |
||||
|
<meta attribute="class-description"> |
||||
|
This class contains the image hashes and meta data |
||||
|
</meta> |
||||
|
<id name="imagePath" type="string" column="path"/> |
||||
|
<property name="thumbnailPath" column="thumbnail_path" type="string" not-null="true"/> |
||||
|
<property name="width" column="width" type="int" not-null="true"/> |
||||
|
<property name="height" column="height" type="int" not-null="true"/> |
||||
|
<many-to-one name="hashes" column="hashes" unique="true" class="com.sothr.imagetools.engine.vo.ImageHashVO" |
||||
|
cascade="save-update, delete" not-null="true" lazy="false"/> |
||||
|
</class> |
||||
</hibernate-mapping> |
</hibernate-mapping> |
@ -1,18 +1,18 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<!DOCTYPE hibernate-mapping PUBLIC |
<!DOCTYPE hibernate-mapping PUBLIC |
||||
"-//Hibernate/Hibernate Mapping DTD//EN" |
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Mapping DTD//EN" |
||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
||||
<hibernate-mapping> |
<hibernate-mapping> |
||||
<class name="com.sothr.imagetools.engine.vo.ImageHashVO" table="ImageHash"> |
|
||||
<meta attribute="class-description"> |
|
||||
This class contains the image hashes |
|
||||
</meta> |
|
||||
<id name="id" type="int" column="id"> |
|
||||
<generator class="native"/> |
|
||||
</id> |
|
||||
<property name="ahash" column="ahash" type="long"/> |
|
||||
<property name="dhash" column="dhash" type="long"/> |
|
||||
<property name="phash" column="phash" type="long"/> |
|
||||
<property name="fileHash" column="fileHash" type="string"/> |
|
||||
</class> |
|
||||
|
<class name="com.sothr.imagetools.engine.vo.ImageHashVO" table="ImageHash"> |
||||
|
<meta attribute="class-description"> |
||||
|
This class contains the image hashes |
||||
|
</meta> |
||||
|
<id name="id" type="int" column="id"> |
||||
|
<generator class="native"/> |
||||
|
</id> |
||||
|
<property name="ahash" column="ahash" type="long"/> |
||||
|
<property name="dhash" column="dhash" type="long"/> |
||||
|
<property name="phash" column="phash" type="long"/> |
||||
|
<property name="fileHash" column="fileHash" type="string"/> |
||||
|
</class> |
||||
</hibernate-mapping> |
</hibernate-mapping> |
@ -1,23 +1,23 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<configuration> |
<configuration> |
||||
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<File>ImageTools.err</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>ERROR</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>5</maxIndex> |
|
||||
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<root level="ERROR"> |
|
||||
<appender-ref ref="EL"/> |
|
||||
</root> |
|
||||
|
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<File>ImageTools.err</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>ERROR</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>5</maxIndex> |
||||
|
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<root level="ERROR"> |
||||
|
<appender-ref ref="EL"/> |
||||
|
</root> |
||||
</configuration> |
</configuration> |
@ -1,32 +1,32 @@ |
|||||
package com.sothr.imagetools.engine.util |
package com.sothr.imagetools.engine.util |
||||
|
|
||||
object PropertyEnum extends Enumeration { |
object PropertyEnum extends Enumeration { |
||||
type PropertiesEnum = Value |
|
||||
val Version = Value("app.version.current") |
|
||||
val PreviousVersion = Value("app.version.previous") |
|
||||
//default app settings |
|
||||
val Timed = Value("app.timed") |
|
||||
//default engine concurrency settings |
|
||||
val ConcurrentSimilarityLimit = Value("app.engine.concurrent.similarity.limit") |
|
||||
val ConcurrentProcessingLimit = Value("app.engine.concurrent.processing.limit") |
|
||||
//default image settings |
|
||||
val ImageDifferenceThreshold = Value("app.image.differenceThreshold") |
|
||||
val HashPrecision = Value("app.image.hash.precision") |
|
||||
val UseAhash = Value("app.image.ahash.use") |
|
||||
val AhashWeight = Value("app.image.ahash.weight") |
|
||||
val AhashPrecision = Value("app.image.ahash.precision") |
|
||||
val AhashTolerance = Value("app.image.ahash.tolerance") |
|
||||
val UseDhash = Value("app.image.dhash.use") |
|
||||
val DhashWeight = Value("app.image.dhash.weight") |
|
||||
val DhashPrecision = Value("app.image.dhash.precision") |
|
||||
val DhashTolerance = Value("app.image.dhash.tolerance") |
|
||||
val UsePhash = Value("app.image.phash.use") |
|
||||
val PhashWeight = Value("app.image.phash.weight") |
|
||||
val PhashPrecision = Value("app.image.phash.precision") |
|
||||
val PhashTolerance = Value("app.image.phash.tolerance") |
|
||||
//Default Thumbnail Settings |
|
||||
val ThumbnailDirectory = Value("app.thumbnail.directory") |
|
||||
val ThumbnailSize = Value("app.thumbnail.size") |
|
||||
//Default Database Settings |
|
||||
val DatabaseConnectionURL = Value("app.database.connectionURL") |
|
||||
|
type PropertiesEnum = Value |
||||
|
val Version = Value("app.version.current") |
||||
|
val PreviousVersion = Value("app.version.previous") |
||||
|
//default app settings |
||||
|
val Timed = Value("app.timed") |
||||
|
//default engine concurrency settings |
||||
|
val ConcurrentSimilarityLimit = Value("app.engine.concurrent.similarity.limit") |
||||
|
val ConcurrentProcessingLimit = Value("app.engine.concurrent.processing.limit") |
||||
|
//default image settings |
||||
|
val ImageDifferenceThreshold = Value("app.image.differenceThreshold") |
||||
|
val HashPrecision = Value("app.image.hash.precision") |
||||
|
val UseAhash = Value("app.image.ahash.use") |
||||
|
val AhashWeight = Value("app.image.ahash.weight") |
||||
|
val AhashPrecision = Value("app.image.ahash.precision") |
||||
|
val AhashTolerance = Value("app.image.ahash.tolerance") |
||||
|
val UseDhash = Value("app.image.dhash.use") |
||||
|
val DhashWeight = Value("app.image.dhash.weight") |
||||
|
val DhashPrecision = Value("app.image.dhash.precision") |
||||
|
val DhashTolerance = Value("app.image.dhash.tolerance") |
||||
|
val UsePhash = Value("app.image.phash.use") |
||||
|
val PhashWeight = Value("app.image.phash.weight") |
||||
|
val PhashPrecision = Value("app.image.phash.precision") |
||||
|
val PhashTolerance = Value("app.image.phash.tolerance") |
||||
|
//Default Thumbnail Settings |
||||
|
val ThumbnailDirectory = Value("app.thumbnail.directory") |
||||
|
val ThumbnailSize = Value("app.thumbnail.size") |
||||
|
//Default Database Settings |
||||
|
val DatabaseConnectionURL = Value("app.database.connectionURL") |
||||
} |
} |
@ -1,8 +1,8 @@ |
|||||
<ehcache maxBytesLocalHeap="32M"> |
<ehcache maxBytesLocalHeap="32M"> |
||||
<cache name="images" |
|
||||
timeToLiveSeconds="100"> |
|
||||
</cache> |
|
||||
<cache name="thumbnails" |
|
||||
timeToLiveSeconds="100"> |
|
||||
</cache> |
|
||||
|
<cache name="images" |
||||
|
timeToLiveSeconds="100"> |
||||
|
</cache> |
||||
|
<cache name="thumbnails" |
||||
|
timeToLiveSeconds="100"> |
||||
|
</cache> |
||||
</ehcache> |
</ehcache> |
@ -1,48 +1,48 @@ |
|||||
<?xml version='1.0' encoding='utf-8'?> |
<?xml version='1.0' encoding='utf-8'?> |
||||
<!DOCTYPE hibernate-configuration PUBLIC |
<!DOCTYPE hibernate-configuration PUBLIC |
||||
"-//Hibernate/Hibernate Configuration DTD//EN" |
|
||||
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Configuration DTD//EN" |
||||
|
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
||||
<hibernate-configuration> |
<hibernate-configuration> |
||||
<!-- a SessionFactory instance listed as /jndi/name --> |
|
||||
<session-factory> |
|
||||
|
<!-- a SessionFactory instance listed as /jndi/name --> |
||||
|
<session-factory> |
||||
|
|
||||
<!-- properties --> |
|
||||
<property name="hibernate.connection.driver_class">org.h2.Driver</property> |
|
||||
<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> |
|
||||
<property name="hibernate.show_sql">true</property> |
|
||||
<!--<property name="transaction.factory_class"> |
|
||||
org.hibernate.transaction.JTATransactionFactory |
|
||||
</property>--> |
|
||||
<property name="jta.UserTransaction">java:comp/UserTransaction</property> |
|
||||
|
<!-- properties --> |
||||
|
<property name="hibernate.connection.driver_class">org.h2.Driver</property> |
||||
|
<property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> |
||||
|
<property name="hibernate.show_sql">true</property> |
||||
|
<!--<property name="transaction.factory_class"> |
||||
|
org.hibernate.transaction.JTATransactionFactory |
||||
|
</property>--> |
||||
|
<property name="jta.UserTransaction">java:comp/UserTransaction</property> |
||||
|
|
||||
<property name="hibernate.hbm2ddl.auto">create</property> |
|
||||
|
<property name="hibernate.hbm2ddl.auto">create</property> |
||||
|
|
||||
<!-- Enable Hibernate's automatic session context management --> |
|
||||
<property name="current_session_context_class">thread</property> |
|
||||
|
<!-- Enable Hibernate's automatic session context management --> |
||||
|
<property name="current_session_context_class">thread</property> |
||||
|
|
||||
<!-- Enable the second-level cache --> |
|
||||
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory |
|
||||
</property> |
|
||||
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory |
|
||||
</property> |
|
||||
<property name="hibernate.cache.use_second_level_cache">true</property> |
|
||||
|
<!-- Enable the second-level cache --> |
||||
|
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory |
||||
|
</property> |
||||
|
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory |
||||
|
</property> |
||||
|
<property name="hibernate.cache.use_second_level_cache">true</property> |
||||
|
|
||||
<property name="c3p0.acquire_increment">1</property> |
|
||||
<property name="c3p0.idle_test_period">100</property> |
|
||||
<!-- seconds --> |
|
||||
<property name="c3p0.max_size">50</property> |
|
||||
<property name="c3p0.max_statements">0</property> |
|
||||
<property name="c3p0.min_size">5</property> |
|
||||
<property name="c3p0.timeout">100</property> |
|
||||
<!-- seconds --> |
|
||||
|
<property name="c3p0.acquire_increment">1</property> |
||||
|
<property name="c3p0.idle_test_period">100</property> |
||||
|
<!-- seconds --> |
||||
|
<property name="c3p0.max_size">50</property> |
||||
|
<property name="c3p0.max_statements">0</property> |
||||
|
<property name="c3p0.min_size">5</property> |
||||
|
<property name="c3p0.timeout">100</property> |
||||
|
<!-- seconds --> |
||||
|
|
||||
<!-- mapping files --> |
|
||||
<mapping resource="hibernate/Image.hbm.xml"/> |
|
||||
<mapping resource="hibernate/ImageHash.hbm.xml"/> |
|
||||
|
<!-- mapping files --> |
||||
|
<mapping resource="hibernate/Image.hbm.xml"/> |
||||
|
<mapping resource="hibernate/ImageHash.hbm.xml"/> |
||||
|
|
||||
<!-- cache settings --> |
|
||||
<!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/> |
|
||||
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> |
|
||||
<collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> |
|
||||
</session-factory> |
|
||||
|
<!-- cache settings --> |
||||
|
<!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/> |
||||
|
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> |
||||
|
<collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> |
||||
|
</session-factory> |
||||
</hibernate-configuration> |
</hibernate-configuration> |
@ -1,17 +1,17 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<!DOCTYPE hibernate-mapping PUBLIC |
<!DOCTYPE hibernate-mapping PUBLIC |
||||
"-//Hibernate/Hibernate Mapping DTD//EN" |
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Mapping DTD//EN" |
||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
||||
<hibernate-mapping> |
<hibernate-mapping> |
||||
<class name="com.sothr.imagetools.engine.image.Image" table="Image"> |
|
||||
<meta attribute="class-description"> |
|
||||
This class contains the image hashes and meta data |
|
||||
</meta> |
|
||||
<id name="imagePath" type="string" column="path"/> |
|
||||
<property name="thumbnailPath" column="thumbnail_path" type="string" not-null="true"/> |
|
||||
<property name="width" column="width" type="int" not-null="true"/> |
|
||||
<property name="height" column="height" type="int" not-null="true"/> |
|
||||
<many-to-one name="hashes" column="hashes" unique="true" class="com.sothr.imagetools.engine.vo.ImageHashVO" |
|
||||
cascade="save-update, delete" not-null="true" lazy="false"/> |
|
||||
</class> |
|
||||
|
<class name="com.sothr.imagetools.engine.image.Image" table="Image"> |
||||
|
<meta attribute="class-description"> |
||||
|
This class contains the image hashes and meta data |
||||
|
</meta> |
||||
|
<id name="imagePath" type="string" column="path"/> |
||||
|
<property name="thumbnailPath" column="thumbnail_path" type="string" not-null="true"/> |
||||
|
<property name="width" column="width" type="int" not-null="true"/> |
||||
|
<property name="height" column="height" type="int" not-null="true"/> |
||||
|
<many-to-one name="hashes" column="hashes" unique="true" class="com.sothr.imagetools.engine.vo.ImageHashVO" |
||||
|
cascade="save-update, delete" not-null="true" lazy="false"/> |
||||
|
</class> |
||||
</hibernate-mapping> |
</hibernate-mapping> |
@ -1,18 +1,18 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<!DOCTYPE hibernate-mapping PUBLIC |
<!DOCTYPE hibernate-mapping PUBLIC |
||||
"-//Hibernate/Hibernate Mapping DTD//EN" |
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
|
||||
|
"-//Hibernate/Hibernate Mapping DTD//EN" |
||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
||||
<hibernate-mapping> |
<hibernate-mapping> |
||||
<class name="com.sothr.imagetools.engine.vo.ImageHashVO" table="ImageHash"> |
|
||||
<meta attribute="class-description"> |
|
||||
This class contains the image hashes |
|
||||
</meta> |
|
||||
<id name="id" type="int" column="id"> |
|
||||
<generator class="native"/> |
|
||||
</id> |
|
||||
<property name="ahash" column="ahash" type="long"/> |
|
||||
<property name="dhash" column="dhash" type="long"/> |
|
||||
<property name="phash" column="phash" type="long"/> |
|
||||
<property name="fileHash" column="fileHash" type="string"/> |
|
||||
</class> |
|
||||
|
<class name="com.sothr.imagetools.engine.vo.ImageHashVO" table="ImageHash"> |
||||
|
<meta attribute="class-description"> |
||||
|
This class contains the image hashes |
||||
|
</meta> |
||||
|
<id name="id" type="int" column="id"> |
||||
|
<generator class="native"/> |
||||
|
</id> |
||||
|
<property name="ahash" column="ahash" type="long"/> |
||||
|
<property name="dhash" column="dhash" type="long"/> |
||||
|
<property name="phash" column="phash" type="long"/> |
||||
|
<property name="fileHash" column="fileHash" type="string"/> |
||||
|
</class> |
||||
</hibernate-mapping> |
</hibernate-mapping> |
@ -1,59 +1,59 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<configuration> |
<configuration> |
||||
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<File>ImageTools.debug</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>DEBUG</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>5MB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<File>ImageTools.info</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>INFO</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<File>ImageTools.err</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>ERROR</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<root level="INFO"> |
|
||||
<appender-ref ref="DL"/> |
|
||||
<appender-ref ref="IL"/> |
|
||||
<appender-ref ref="EL"/> |
|
||||
</root> |
|
||||
|
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<File>ImageTools.debug</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>DEBUG</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>5MB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<File>ImageTools.info</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>INFO</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<File>ImageTools.err</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>ERROR</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<root level="INFO"> |
||||
|
<appender-ref ref="DL"/> |
||||
|
<appender-ref ref="IL"/> |
||||
|
<appender-ref ref="EL"/> |
||||
|
</root> |
||||
</configuration> |
</configuration> |
@ -1,44 +1,44 @@ |
|||||
package com.sothr.imagetools.engine |
package com.sothr.imagetools.engine |
||||
|
|
||||
/** |
/** |
||||
* Basic Test of the engines |
|
||||
* |
|
||||
* Created by drew on 1/26/14. |
|
||||
*/ |
|
||||
|
* Basic Test of the engines |
||||
|
* |
||||
|
* Created by drew on 1/26/14. |
||||
|
*/ |
||||
class EngineTest extends BaseTest { |
class EngineTest extends BaseTest { |
||||
test("SequentialEngine Test getImagesForDirectory for sample directory") { |
|
||||
val engine: Engine = new SequentialEngine() |
|
||||
assertResult(3) { |
|
||||
engine.getImagesForDirectory("sample").length |
|
||||
} |
|
||||
} |
|
||||
|
test("SequentialEngine Test getImagesForDirectory for sample directory") { |
||||
|
val engine: Engine = new SequentialEngine() |
||||
|
assertResult(3) { |
||||
|
engine.getImagesForDirectory("sample").length |
||||
|
} |
||||
|
} |
||||
|
|
||||
test("SequentialEngine Test getSimilarImagesForDirectory for sample directory") { |
|
||||
val engine = new SequentialEngine() |
|
||||
val similarImages = engine.getSimilarImagesForDirectory("sample") |
|
||||
assertResult(1) { |
|
||||
similarImages.length |
|
||||
} |
|
||||
assertResult(3) { |
|
||||
similarImages(0).similarImages.size |
|
||||
} |
|
||||
} |
|
||||
|
test("SequentialEngine Test getSimilarImagesForDirectory for sample directory") { |
||||
|
val engine = new SequentialEngine() |
||||
|
val similarImages = engine.getSimilarImagesForDirectory("sample") |
||||
|
assertResult(1) { |
||||
|
similarImages.length |
||||
|
} |
||||
|
assertResult(3) { |
||||
|
similarImages(0).similarImages.size |
||||
|
} |
||||
|
} |
||||
|
|
||||
test("ConcurrentEngine Test getImagesForDirectory for sample directory") { |
|
||||
val engine: Engine = new ConcurrentEngine() |
|
||||
assertResult(3) { |
|
||||
engine.getImagesForDirectory("sample").length |
|
||||
} |
|
||||
} |
|
||||
|
test("ConcurrentEngine Test getImagesForDirectory for sample directory") { |
||||
|
val engine: Engine = new ConcurrentEngine() |
||||
|
assertResult(3) { |
||||
|
engine.getImagesForDirectory("sample").length |
||||
|
} |
||||
|
} |
||||
|
|
||||
test("ConcurrentEngine Test getSimilarImagesForDirectory for sample directory") { |
|
||||
val engine = new ConcurrentEngine() |
|
||||
val similarImages = engine.getSimilarImagesForDirectory("sample") |
|
||||
assertResult(1) { |
|
||||
similarImages.length |
|
||||
} |
|
||||
assertResult(3) { |
|
||||
similarImages(0).similarImages.size |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
test("ConcurrentEngine Test getSimilarImagesForDirectory for sample directory") { |
||||
|
val engine = new ConcurrentEngine() |
||||
|
val similarImages = engine.getSimilarImagesForDirectory("sample") |
||||
|
assertResult(1) { |
||||
|
similarImages.length |
||||
|
} |
||||
|
assertResult(3) { |
||||
|
similarImages(0).similarImages.size |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,7 +1,7 @@ |
|||||
package com.sothr.imagetools.engine |
package com.sothr.imagetools.engine |
||||
|
|
||||
object TestParams { |
object TestParams { |
||||
val LargeSampleImage1 = "sample/sample_01_large.jpg" |
|
||||
val MediumSampleImage1 = "sample/sample_01_medium.jpg" |
|
||||
val SmallSampleImage1 = "sample/sample_01_small.jpg" |
|
||||
|
val LargeSampleImage1 = "sample/sample_01_large.jpg" |
||||
|
val MediumSampleImage1 = "sample/sample_01_medium.jpg" |
||||
|
val SmallSampleImage1 = "sample/sample_01_small.jpg" |
||||
} |
} |
@ -1,126 +1,126 @@ |
|||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
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> |
|
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
<parent> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>parent</artifactId> |
|
||||
<version>1.0.1</version> |
|
||||
<relativePath>../parent</relativePath> |
|
||||
</parent> |
|
||||
|
<parent> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>parent</artifactId> |
||||
|
<version>1.0.1</version> |
||||
|
<relativePath>../parent</relativePath> |
||||
|
</parent> |
||||
|
|
||||
<artifactId>gui</artifactId> |
|
||||
<version>0.1.1</version> |
|
||||
<packaging>jar</packaging> |
|
||||
|
<artifactId>gui</artifactId> |
||||
|
<version>0.1.1</version> |
||||
|
<packaging>jar</packaging> |
||||
|
|
||||
<name>ImageTools-GUI</name> |
|
||||
<description>The Graphical User Interface for Image-Tools</description> |
|
||||
<url>http://imagetools.sothr.com</url> |
|
||||
<organization> |
|
||||
<name>Sothr Software</name> |
|
||||
</organization> |
|
||||
|
<name>ImageTools-GUI</name> |
||||
|
<description>The Graphical User Interface for Image-Tools</description> |
||||
|
<url>http://imagetools.sothr.com</url> |
||||
|
<organization> |
||||
|
<name>Sothr Software</name> |
||||
|
</organization> |
||||
|
|
||||
<dependencies> |
|
||||
<dependency> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>engine</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-core</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-classic</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-access</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.slf4j</groupId> |
|
||||
<artifactId>slf4j-api</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.clapper</groupId> |
|
||||
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scala-lang</groupId> |
|
||||
<artifactId>scala-library</artifactId> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
|
||||
<artifactId>markdown4j</artifactId> |
|
||||
</dependency> |
|
||||
</dependencies> |
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>engine</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-core</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-classic</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-access</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-api</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.clapper</groupId> |
||||
|
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scala-lang</groupId> |
||||
|
<artifactId>scala-library</artifactId> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
||||
|
<artifactId>markdown4j</artifactId> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
|
||||
<build> |
|
||||
<plugins> |
|
||||
<!-- Packaging Configuration --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-jar-plugin</artifactId> |
|
||||
<version>2.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<phase>package</phase> |
|
||||
<goals> |
|
||||
<goal>jar</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<archive> |
|
||||
<manifest> |
|
||||
<addClasspath>true</addClasspath> |
|
||||
<classpathPrefix>lib/</classpathPrefix> |
|
||||
<mainClass>com.sothr.imagetools.ui.App</mainClass> |
|
||||
</manifest> |
|
||||
</archive> |
|
||||
<outputDirectory> |
|
||||
${project.build.directory}/release |
|
||||
</outputDirectory> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<plugin> |
|
||||
<artifactId>maven-antrun-plugin</artifactId> |
|
||||
<version>1.4</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>prepare</id> |
|
||||
<phase>process-resources</phase> |
|
||||
<configuration> |
|
||||
<tasks> |
|
||||
<copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" |
|
||||
overwrite="true"/> |
|
||||
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
|
||||
overwrite="true"/> |
|
||||
<chmod file="${project.build.directory}/startGUI.sh" perm="755"/> |
|
||||
</tasks> |
|
||||
</configuration> |
|
||||
<goals> |
|
||||
<goal>run</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
<execution> |
|
||||
<id>package</id> |
|
||||
<phase>package</phase> |
|
||||
<configuration> |
|
||||
<tasks> |
|
||||
<!-- set permissions on run files --> |
|
||||
<chmod file="${project.build.directory}/release/startGUI.sh" perm="755"/> |
|
||||
</tasks> |
|
||||
</configuration> |
|
||||
<goals> |
|
||||
<goal>run</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
</plugins> |
|
||||
</build> |
|
||||
|
<build> |
||||
|
<plugins> |
||||
|
<!-- Packaging Configuration --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-jar-plugin</artifactId> |
||||
|
<version>2.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>jar</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<archive> |
||||
|
<manifest> |
||||
|
<addClasspath>true</addClasspath> |
||||
|
<classpathPrefix>lib/</classpathPrefix> |
||||
|
<mainClass>com.sothr.imagetools.ui.App</mainClass> |
||||
|
</manifest> |
||||
|
</archive> |
||||
|
<outputDirectory> |
||||
|
${project.build.directory}/release |
||||
|
</outputDirectory> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<plugin> |
||||
|
<artifactId>maven-antrun-plugin</artifactId> |
||||
|
<version>1.4</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>prepare</id> |
||||
|
<phase>process-resources</phase> |
||||
|
<configuration> |
||||
|
<tasks> |
||||
|
<copy file="${project.build.directory}/version.info" toFile="${basedir}/version.info" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/name.info" toFile="${basedir}/name.info" |
||||
|
overwrite="true"/> |
||||
|
<copy file="${project.build.directory}/LICENSE" toFile="${basedir}/LICENSE" |
||||
|
overwrite="true"/> |
||||
|
<chmod file="${project.build.directory}/startGUI.sh" perm="755"/> |
||||
|
</tasks> |
||||
|
</configuration> |
||||
|
<goals> |
||||
|
<goal>run</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
<execution> |
||||
|
<id>package</id> |
||||
|
<phase>package</phase> |
||||
|
<configuration> |
||||
|
<tasks> |
||||
|
<!-- set permissions on run files --> |
||||
|
<chmod file="${project.build.directory}/release/startGUI.sh" perm="755"/> |
||||
|
</tasks> |
||||
|
</configuration> |
||||
|
<goals> |
||||
|
<goal>run</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</build> |
||||
|
|
||||
</project> |
</project> |
@ -1,75 +1,75 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<configuration> |
<configuration> |
||||
<logger name="org.hibernate" level="WARN"/> |
|
||||
<logger name="net.sf.ehcache" level="WARN"/> |
|
||||
<appender name="C" class="ch.qos.logback.core.ConsoleAppender"> |
|
||||
<encoder> |
|
||||
<!-- Sorry Windows Users --> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>INFO</level> |
|
||||
</filter> |
|
||||
</appender> |
|
||||
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.debug</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>DEBUG</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>5MB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.info</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>INFO</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|
||||
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
|
||||
<File>ImageTools.err</File> |
|
||||
<encoder> |
|
||||
<withJansi>false</withJansi> |
|
||||
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
|
||||
</encoder> |
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|
||||
<level>ERROR</level> |
|
||||
</filter> |
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
|
||||
<maxIndex>1</maxIndex> |
|
||||
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
|
||||
</rollingPolicy> |
|
||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
|
||||
<MaxFileSize>500KB</MaxFileSize> |
|
||||
</triggeringPolicy> |
|
||||
</appender> |
|
||||
<root level="DEBUG"> |
|
||||
<appender-ref ref="C"/> |
|
||||
<appender-ref ref="DL"/> |
|
||||
<appender-ref ref="IL"/> |
|
||||
<appender-ref ref="EL"/> |
|
||||
</root> |
|
||||
|
<logger name="org.hibernate" level="WARN"/> |
||||
|
<logger name="net.sf.ehcache" level="WARN"/> |
||||
|
<appender name="C" class="ch.qos.logback.core.ConsoleAppender"> |
||||
|
<encoder> |
||||
|
<!-- Sorry Windows Users --> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>INFO</level> |
||||
|
</filter> |
||||
|
</appender> |
||||
|
<appender name="DL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.debug</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>DEBUG</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.debug.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>5MB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="IL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.info</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>INFO</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.info.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<appender name="EL" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender--> |
||||
|
<File>ImageTools.err</File> |
||||
|
<encoder> |
||||
|
<withJansi>false</withJansi> |
||||
|
<pattern>[%.16thread] [%date{yy-MM-dd HH:mm:ss}] %-5level [%c{16}] - %message%n</pattern> |
||||
|
</encoder> |
||||
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
||||
|
<level>ERROR</level> |
||||
|
</filter> |
||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> |
||||
|
<maxIndex>1</maxIndex> |
||||
|
<FileNamePattern>ImageTools.err.%i</FileNamePattern> |
||||
|
</rollingPolicy> |
||||
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> |
||||
|
<MaxFileSize>500KB</MaxFileSize> |
||||
|
</triggeringPolicy> |
||||
|
</appender> |
||||
|
<root level="DEBUG"> |
||||
|
<appender-ref ref="C"/> |
||||
|
<appender-ref ref="DL"/> |
||||
|
<appender-ref ref="IL"/> |
||||
|
<appender-ref ref="EL"/> |
||||
|
</root> |
||||
</configuration> |
</configuration> |
@ -1,460 +1,460 @@ |
|||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
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> |
|
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>parent</artifactId> |
|
||||
<version>1.0.1</version> |
|
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>parent</artifactId> |
||||
|
<version>1.0.1</version> |
||||
|
|
||||
<packaging>pom</packaging> |
|
||||
<name>Image-Tools-Parent</name> |
|
||||
|
<packaging>pom</packaging> |
||||
|
<name>Image-Tools-Parent</name> |
||||
|
|
||||
<repositories> |
|
||||
<repository> |
|
||||
<name>Sothr Maven Public Proxy</name> |
|
||||
<id>mvn-public-sothr-proxy</id> |
|
||||
<url>https://nexus.sothr.com/repository/maven-public/</url> |
|
||||
</repository> |
|
||||
<repository> |
|
||||
<name>Sothr Releases</name> |
|
||||
<id>sothr-nexus-releases</id> |
|
||||
<url>https://nexus.sothr.com/repository/maven-releases/</url> |
|
||||
<releases> |
|
||||
<enabled>true</enabled> |
|
||||
<updatePolicy>always</updatePolicy> |
|
||||
<checksumPolicy>fail</checksumPolicy> |
|
||||
</releases> |
|
||||
<snapshots> |
|
||||
<enabled>false</enabled> |
|
||||
<updatePolicy>never</updatePolicy> |
|
||||
<checksumPolicy>warn</checksumPolicy> |
|
||||
</snapshots> |
|
||||
</repository> |
|
||||
<repository> |
|
||||
<name>Sothr Snapshots</name> |
|
||||
<id>sothr-nexus-snapshots</id> |
|
||||
<url>https://nexus.sothr.com/repository/maven-snapshots/</url> |
|
||||
<releases> |
|
||||
<enabled>false</enabled> |
|
||||
<updatePolicy>never</updatePolicy> |
|
||||
<checksumPolicy>warn</checksumPolicy> |
|
||||
</releases> |
|
||||
<snapshots> |
|
||||
<enabled>true</enabled> |
|
||||
<updatePolicy>daily</updatePolicy> |
|
||||
<checksumPolicy>fail</checksumPolicy> |
|
||||
</snapshots> |
|
||||
</repository> |
|
||||
</repositories> |
|
||||
|
<repositories> |
||||
|
<repository> |
||||
|
<name>Sothr Maven Public Proxy</name> |
||||
|
<id>mvn-public-sothr-proxy</id> |
||||
|
<url>https://nexus.sothr.com/repository/maven-public/</url> |
||||
|
</repository> |
||||
|
<repository> |
||||
|
<name>Sothr Releases</name> |
||||
|
<id>sothr-nexus-releases</id> |
||||
|
<url>https://nexus.sothr.com/repository/maven-releases/</url> |
||||
|
<releases> |
||||
|
<enabled>true</enabled> |
||||
|
<updatePolicy>always</updatePolicy> |
||||
|
<checksumPolicy>fail</checksumPolicy> |
||||
|
</releases> |
||||
|
<snapshots> |
||||
|
<enabled>false</enabled> |
||||
|
<updatePolicy>never</updatePolicy> |
||||
|
<checksumPolicy>warn</checksumPolicy> |
||||
|
</snapshots> |
||||
|
</repository> |
||||
|
<repository> |
||||
|
<name>Sothr Snapshots</name> |
||||
|
<id>sothr-nexus-snapshots</id> |
||||
|
<url>https://nexus.sothr.com/repository/maven-snapshots/</url> |
||||
|
<releases> |
||||
|
<enabled>false</enabled> |
||||
|
<updatePolicy>never</updatePolicy> |
||||
|
<checksumPolicy>warn</checksumPolicy> |
||||
|
</releases> |
||||
|
<snapshots> |
||||
|
<enabled>true</enabled> |
||||
|
<updatePolicy>daily</updatePolicy> |
||||
|
<checksumPolicy>fail</checksumPolicy> |
||||
|
</snapshots> |
||||
|
</repository> |
||||
|
</repositories> |
||||
|
|
||||
<distributionManagement> |
|
||||
<repository> |
|
||||
<id>sothr-nexus-releases</id> |
|
||||
<url>https://nexus.sothr.com/repository/maven-releases/</url> |
|
||||
</repository> |
|
||||
<snapshotRepository> |
|
||||
<id>sothr-nexus-snapshots</id> |
|
||||
<url>https://nexus.sothr.com/repository/maven-snapshots/</url> |
|
||||
</snapshotRepository> |
|
||||
</distributionManagement> |
|
||||
|
<distributionManagement> |
||||
|
<repository> |
||||
|
<id>sothr-nexus-releases</id> |
||||
|
<url>https://nexus.sothr.com/repository/maven-releases/</url> |
||||
|
</repository> |
||||
|
<snapshotRepository> |
||||
|
<id>sothr-nexus-snapshots</id> |
||||
|
<url>https://nexus.sothr.com/repository/maven-snapshots/</url> |
||||
|
</snapshotRepository> |
||||
|
</distributionManagement> |
||||
|
|
||||
<pluginRepositories> |
|
||||
<pluginRepository> |
|
||||
<id>sonatype-releases</id> |
|
||||
<url>http://oss.sonatype.org/content/repositories/releases</url> |
|
||||
</pluginRepository> |
|
||||
<pluginRepository> |
|
||||
<id>clojars.org</id> |
|
||||
<url>http://clojars.org/repo</url> |
|
||||
</pluginRepository> |
|
||||
</pluginRepositories> |
|
||||
|
<pluginRepositories> |
||||
|
<pluginRepository> |
||||
|
<id>sonatype-releases</id> |
||||
|
<url>http://oss.sonatype.org/content/repositories/releases</url> |
||||
|
</pluginRepository> |
||||
|
<pluginRepository> |
||||
|
<id>clojars.org</id> |
||||
|
<url>http://clojars.org/repo</url> |
||||
|
</pluginRepository> |
||||
|
</pluginRepositories> |
||||
|
|
||||
<properties> |
|
||||
<!-- Image Tools Library Versions --> |
|
||||
<imagetools.hash.version>0.2.0</imagetools.hash.version> |
|
||||
<imagetools.engine.version>0.1.3</imagetools.engine.version> |
|
||||
<!-- Other Dependency Versions --> |
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
||||
<jdk.version>1.8</jdk.version> |
|
||||
<scala.binary.version>2.12</scala.binary.version> |
|
||||
<lib.scala-library.version>2.12.4</lib.scala-library.version> |
|
||||
<lib.junit.version>4.12</lib.junit.version> |
|
||||
<lib.scalatest.version>3.0.4</lib.scalatest.version> |
|
||||
<lib.logback.version>1.2.3</lib.logback.version> |
|
||||
<lib.slf4j.version>1.7.25</lib.slf4j.version> |
|
||||
<lib.grizzled-slf4j.version>1.3.2</lib.grizzled-slf4j.version> |
|
||||
<lib.akka.version>2.5.8</lib.akka.version> |
|
||||
<lib.jta.version>1.1</lib.jta.version> |
|
||||
<lib.ehcache.version>2.10.4</lib.ehcache.version> |
|
||||
<lib.commons-cli.version>1.4</lib.commons-cli.version> |
|
||||
<lib.commons-codec.version>1.11</lib.commons-codec.version> |
|
||||
<lib.jtransforms.version>2.4.0</lib.jtransforms.version> |
|
||||
<lib.typesafe-config.version>1.3.2</lib.typesafe-config.version> |
|
||||
<lib.thumbnailator.version>[0.4, 0.5)</lib.thumbnailator.version> |
|
||||
<lib.h2database.version>1.4.196</lib.h2database.version> |
|
||||
<lib.hibernate.version>4.3.11.Final</lib.hibernate.version><!-- Upgrade to 5.2.12.Final --> |
|
||||
<lib.hibernate.ehcache.version>2.6.11</lib.hibernate.ehcache.version> |
|
||||
<lib.markdown4j.version>2.2-cj-1.1</lib.markdown4j.version> |
|
||||
<lib.scala-arm.version>2.0</lib.scala-arm.version> |
|
||||
<lib.twelvemonkeys.imageio.version>3.3.2</lib.twelvemonkeys.imageio.version> |
|
||||
</properties> |
|
||||
|
<properties> |
||||
|
<!-- Image Tools Library Versions --> |
||||
|
<imagetools.hash.version>0.2.0</imagetools.hash.version> |
||||
|
<imagetools.engine.version>0.1.3</imagetools.engine.version> |
||||
|
<!-- Other Dependency Versions --> |
||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
|
<jdk.version>1.8</jdk.version> |
||||
|
<scala.binary.version>2.12</scala.binary.version> |
||||
|
<lib.scala-library.version>2.12.4</lib.scala-library.version> |
||||
|
<lib.junit.version>4.12</lib.junit.version> |
||||
|
<lib.scalatest.version>3.0.4</lib.scalatest.version> |
||||
|
<lib.logback.version>1.2.3</lib.logback.version> |
||||
|
<lib.slf4j.version>1.7.25</lib.slf4j.version> |
||||
|
<lib.grizzled-slf4j.version>1.3.2</lib.grizzled-slf4j.version> |
||||
|
<lib.akka.version>2.5.8</lib.akka.version> |
||||
|
<lib.jta.version>1.1</lib.jta.version> |
||||
|
<lib.ehcache.version>2.10.4</lib.ehcache.version> |
||||
|
<lib.commons-cli.version>1.4</lib.commons-cli.version> |
||||
|
<lib.commons-codec.version>1.11</lib.commons-codec.version> |
||||
|
<lib.jtransforms.version>2.4.0</lib.jtransforms.version> |
||||
|
<lib.typesafe-config.version>1.3.2</lib.typesafe-config.version> |
||||
|
<lib.thumbnailator.version>[0.4, 0.5)</lib.thumbnailator.version> |
||||
|
<lib.h2database.version>1.4.196</lib.h2database.version> |
||||
|
<lib.hibernate.version>4.3.11.Final</lib.hibernate.version><!-- Upgrade to 5.2.12.Final --> |
||||
|
<lib.hibernate.ehcache.version>2.6.11</lib.hibernate.ehcache.version> |
||||
|
<lib.markdown4j.version>2.2-cj-1.1</lib.markdown4j.version> |
||||
|
<lib.scala-arm.version>2.0</lib.scala-arm.version> |
||||
|
<lib.twelvemonkeys.imageio.version>3.3.2</lib.twelvemonkeys.imageio.version> |
||||
|
</properties> |
||||
|
|
||||
<dependencyManagement> |
|
||||
<dependencies> |
|
||||
<dependency> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>hash</artifactId> |
|
||||
<version>${imagetools.hash.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>engine</artifactId> |
|
||||
<version>${imagetools.engine.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>junit</groupId> |
|
||||
<artifactId>junit</artifactId> |
|
||||
<version>${lib.junit.version}</version> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scalatest</groupId> |
|
||||
<artifactId>scalatest_${scala.binary.version}</artifactId> |
|
||||
<version>${lib.scalatest.version}</version> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-core</artifactId> |
|
||||
<version>${lib.logback.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-classic</artifactId> |
|
||||
<version>${lib.logback.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>ch.qos.logback</groupId> |
|
||||
<artifactId>logback-access</artifactId> |
|
||||
<version>${lib.logback.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.slf4j</groupId> |
|
||||
<artifactId>slf4j-api</artifactId> |
|
||||
<version>${lib.slf4j.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.clapper</groupId> |
|
||||
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
|
||||
<version>${lib.grizzled-slf4j.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.scala-lang</groupId> |
|
||||
<artifactId>scala-library</artifactId> |
|
||||
<version>${lib.scala-library.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.coobird</groupId> |
|
||||
<artifactId>thumbnailator</artifactId> |
|
||||
<version>${lib.thumbnailator.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe</groupId> |
|
||||
<artifactId>config</artifactId> |
|
||||
<version>${lib.typesafe-config.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sourceforge.jtransforms</groupId> |
|
||||
<artifactId>jtransforms</artifactId> |
|
||||
<version>${lib.jtransforms.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>commons-cli</groupId> |
|
||||
<artifactId>commons-cli</artifactId> |
|
||||
<version>${lib.commons-cli.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>commons-codec</groupId> |
|
||||
<artifactId>commons-codec</artifactId> |
|
||||
<version>${lib.commons-codec.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>javax.transaction</groupId> |
|
||||
<artifactId>jta</artifactId> |
|
||||
<version>${lib.jta.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sf.ehcache</groupId> |
|
||||
<artifactId>ehcache</artifactId> |
|
||||
<version>${lib.ehcache.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe.akka</groupId> |
|
||||
<artifactId>akka-actor_${scala.binary.version}</artifactId> |
|
||||
<version>${lib.akka.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.typesafe.akka</groupId> |
|
||||
<artifactId>akka-slf4j_${scala.binary.version}</artifactId> |
|
||||
<version>${lib.akka.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.h2database</groupId> |
|
||||
<artifactId>h2</artifactId> |
|
||||
<version>${lib.h2database.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-core</artifactId> |
|
||||
<version>${lib.hibernate.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-ehcache</artifactId> |
|
||||
<version>${lib.hibernate.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>net.sf.ehcache</groupId> |
|
||||
<artifactId>ehcache-core</artifactId> |
|
||||
<version>${lib.hibernate.ehcache.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.hibernate</groupId> |
|
||||
<artifactId>hibernate-c3p0</artifactId> |
|
||||
<version>${lib.hibernate.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
|
||||
<artifactId>markdown4j</artifactId> |
|
||||
<version>${lib.markdown4j.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.jsuereth</groupId> |
|
||||
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
|
||||
<version>${lib.scala-arm.version}</version> |
|
||||
</dependency> |
|
||||
<dependency> |
|
||||
<groupId>com.twelvemonkeys.imageio</groupId> |
|
||||
<artifactId>imageio-jpeg</artifactId> |
|
||||
<version>${lib.twelvemonkeys.imageio.version}</version> |
|
||||
</dependency> |
|
||||
</dependencies> |
|
||||
</dependencyManagement> |
|
||||
|
<dependencyManagement> |
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>hash</artifactId> |
||||
|
<version>${imagetools.hash.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>engine</artifactId> |
||||
|
<version>${imagetools.engine.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<version>${lib.junit.version}</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scalatest</groupId> |
||||
|
<artifactId>scalatest_${scala.binary.version}</artifactId> |
||||
|
<version>${lib.scalatest.version}</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-core</artifactId> |
||||
|
<version>${lib.logback.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-classic</artifactId> |
||||
|
<version>${lib.logback.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>ch.qos.logback</groupId> |
||||
|
<artifactId>logback-access</artifactId> |
||||
|
<version>${lib.logback.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.slf4j</groupId> |
||||
|
<artifactId>slf4j-api</artifactId> |
||||
|
<version>${lib.slf4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.clapper</groupId> |
||||
|
<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId> |
||||
|
<version>${lib.grizzled-slf4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.scala-lang</groupId> |
||||
|
<artifactId>scala-library</artifactId> |
||||
|
<version>${lib.scala-library.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.coobird</groupId> |
||||
|
<artifactId>thumbnailator</artifactId> |
||||
|
<version>${lib.thumbnailator.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe</groupId> |
||||
|
<artifactId>config</artifactId> |
||||
|
<version>${lib.typesafe-config.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sourceforge.jtransforms</groupId> |
||||
|
<artifactId>jtransforms</artifactId> |
||||
|
<version>${lib.jtransforms.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>commons-cli</groupId> |
||||
|
<artifactId>commons-cli</artifactId> |
||||
|
<version>${lib.commons-cli.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>commons-codec</groupId> |
||||
|
<artifactId>commons-codec</artifactId> |
||||
|
<version>${lib.commons-codec.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>javax.transaction</groupId> |
||||
|
<artifactId>jta</artifactId> |
||||
|
<version>${lib.jta.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sf.ehcache</groupId> |
||||
|
<artifactId>ehcache</artifactId> |
||||
|
<version>${lib.ehcache.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe.akka</groupId> |
||||
|
<artifactId>akka-actor_${scala.binary.version}</artifactId> |
||||
|
<version>${lib.akka.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.typesafe.akka</groupId> |
||||
|
<artifactId>akka-slf4j_${scala.binary.version}</artifactId> |
||||
|
<version>${lib.akka.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.h2database</groupId> |
||||
|
<artifactId>h2</artifactId> |
||||
|
<version>${lib.h2database.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-core</artifactId> |
||||
|
<version>${lib.hibernate.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-ehcache</artifactId> |
||||
|
<version>${lib.hibernate.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>net.sf.ehcache</groupId> |
||||
|
<artifactId>ehcache-core</artifactId> |
||||
|
<version>${lib.hibernate.ehcache.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.hibernate</groupId> |
||||
|
<artifactId>hibernate-c3p0</artifactId> |
||||
|
<version>${lib.hibernate.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.commonjava.googlecode.markdown4j</groupId> |
||||
|
<artifactId>markdown4j</artifactId> |
||||
|
<version>${lib.markdown4j.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.jsuereth</groupId> |
||||
|
<artifactId>scala-arm_${scala.binary.version}</artifactId> |
||||
|
<version>${lib.scala-arm.version}</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>com.twelvemonkeys.imageio</groupId> |
||||
|
<artifactId>imageio-jpeg</artifactId> |
||||
|
<version>${lib.twelvemonkeys.imageio.version}</version> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
</dependencyManagement> |
||||
|
|
||||
<build> |
|
||||
<resources> |
|
||||
<resource> |
|
||||
<directory>src/main/resources</directory> |
|
||||
<filtering>true</filtering> |
|
||||
<includes> |
|
||||
<include>**/*.conf</include> |
|
||||
<include>**/*.properties</include> |
|
||||
<include>**/*.info</include> |
|
||||
<include>**/*.md</include> |
|
||||
</includes> |
|
||||
</resource> |
|
||||
<resource> |
|
||||
<directory>src/main/resources</directory> |
|
||||
<filtering>false</filtering> |
|
||||
<excludes> |
|
||||
<exclude>**/*.conf</exclude> |
|
||||
<exclude>**/*.properties</exclude> |
|
||||
<exclude>**/*.info</exclude> |
|
||||
<exclude>**/*.md</exclude> |
|
||||
</excludes> |
|
||||
</resource> |
|
||||
</resources> |
|
||||
|
<build> |
||||
|
<resources> |
||||
|
<resource> |
||||
|
<directory>src/main/resources</directory> |
||||
|
<filtering>true</filtering> |
||||
|
<includes> |
||||
|
<include>**/*.conf</include> |
||||
|
<include>**/*.properties</include> |
||||
|
<include>**/*.info</include> |
||||
|
<include>**/*.md</include> |
||||
|
</includes> |
||||
|
</resource> |
||||
|
<resource> |
||||
|
<directory>src/main/resources</directory> |
||||
|
<filtering>false</filtering> |
||||
|
<excludes> |
||||
|
<exclude>**/*.conf</exclude> |
||||
|
<exclude>**/*.properties</exclude> |
||||
|
<exclude>**/*.info</exclude> |
||||
|
<exclude>**/*.md</exclude> |
||||
|
</excludes> |
||||
|
</resource> |
||||
|
</resources> |
||||
|
|
||||
<testResources> |
|
||||
<testResource> |
|
||||
<directory>src/test/resources</directory> |
|
||||
<filtering>true</filtering> |
|
||||
<includes> |
|
||||
<include>**/*.conf</include> |
|
||||
<include>**/*.properties</include> |
|
||||
<include>**/*.info</include> |
|
||||
<include>**/*.md</include> |
|
||||
</includes> |
|
||||
</testResource> |
|
||||
<testResource> |
|
||||
<directory>src/test/resources</directory> |
|
||||
<filtering>false</filtering> |
|
||||
<excludes> |
|
||||
<exclude>**/*.conf</exclude> |
|
||||
<exclude>**/*.properties</exclude> |
|
||||
<exclude>**/*.info</exclude> |
|
||||
<exclude>**/*.md</exclude> |
|
||||
</excludes> |
|
||||
</testResource> |
|
||||
</testResources> |
|
||||
|
<testResources> |
||||
|
<testResource> |
||||
|
<directory>src/test/resources</directory> |
||||
|
<filtering>true</filtering> |
||||
|
<includes> |
||||
|
<include>**/*.conf</include> |
||||
|
<include>**/*.properties</include> |
||||
|
<include>**/*.info</include> |
||||
|
<include>**/*.md</include> |
||||
|
</includes> |
||||
|
</testResource> |
||||
|
<testResource> |
||||
|
<directory>src/test/resources</directory> |
||||
|
<filtering>false</filtering> |
||||
|
<excludes> |
||||
|
<exclude>**/*.conf</exclude> |
||||
|
<exclude>**/*.properties</exclude> |
||||
|
<exclude>**/*.info</exclude> |
||||
|
<exclude>**/*.md</exclude> |
||||
|
</excludes> |
||||
|
</testResource> |
||||
|
</testResources> |
||||
|
|
||||
<pluginManagement> |
|
||||
<plugins> |
|
||||
<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> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-source-plugin</artifactId> |
|
||||
<version>3.0.1</version> |
|
||||
</plugin> |
|
||||
</plugins> |
|
||||
</pluginManagement> |
|
||||
|
<pluginManagement> |
||||
|
<plugins> |
||||
|
<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> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-source-plugin</artifactId> |
||||
|
<version>3.0.1</version> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</pluginManagement> |
||||
|
|
||||
<plugins> |
|
||||
<!-- disable surefire for java tests--> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-surefire-plugin</artifactId> |
|
||||
<version>2.7</version> |
|
||||
<configuration> |
|
||||
<skipTests>true</skipTests> |
|
||||
</configuration> |
|
||||
</plugin> |
|
||||
<!-- Version Management --> |
|
||||
<plugin> |
|
||||
<groupId>com.code54.mojo</groupId> |
|
||||
<artifactId>buildversion-plugin</artifactId> |
|
||||
<version>1.0.3</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<goals> |
|
||||
<goal>set-properties</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<!-- Override Compilation Settings --> |
|
||||
<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> |
|
||||
<!-- Handle Polygot Scala --> |
|
||||
<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> |
|
||||
<!--<configuration> |
|
||||
<jvmArgs> |
|
||||
<jvmArg>-Xms64m</jvmArg> |
|
||||
<jvmArg>-Xmx1024m</jvmArg> |
|
||||
</jvmArgs> |
|
||||
</configuration>--> |
|
||||
</plugin> |
|
||||
<!-- Build Management --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-dependency-plugin</artifactId> |
|
||||
<version>2.6</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>copy-dependencies</id> |
|
||||
<phase>package</phase> |
|
||||
<goals> |
|
||||
<goal>copy-dependencies</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<includeScope>runtime</includeScope> |
|
||||
<outputDirectory> |
|
||||
${project.build.directory}/release/lib |
|
||||
</outputDirectory> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<!-- Source Management --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-source-plugin</artifactId> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>attach-sources</id> |
|
||||
<goals> |
|
||||
<goal>jar</goal> |
|
||||
</goals> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
<!-- Resource Management --> |
|
||||
<plugin> |
|
||||
<groupId>org.apache.maven.plugins</groupId> |
|
||||
<artifactId>maven-resources-plugin</artifactId> |
|
||||
<version>2.6</version> |
|
||||
<executions> |
|
||||
<execution> |
|
||||
<id>copy-resources</id> |
|
||||
<phase>initialize</phase> |
|
||||
<goals> |
|
||||
<goal>copy-resources</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<outputDirectory>${project.build.directory}</outputDirectory> |
|
||||
<resources> |
|
||||
<resource> |
|
||||
<directory>src/includes</directory> |
|
||||
<filtering>true</filtering> |
|
||||
</resource> |
|
||||
</resources> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
<execution> |
|
||||
<id>copy-resources-package</id> |
|
||||
<phase>package</phase> |
|
||||
<goals> |
|
||||
<goal>copy-resources</goal> |
|
||||
</goals> |
|
||||
<configuration> |
|
||||
<outputDirectory>${project.build.directory}/release</outputDirectory> |
|
||||
<resources> |
|
||||
<resource> |
|
||||
<directory>src/includes</directory> |
|
||||
<filtering>true</filtering> |
|
||||
<excludes> |
|
||||
<exclude>version.info</exclude> |
|
||||
<exclude>name.info</exclude> |
|
||||
</excludes> |
|
||||
</resource> |
|
||||
</resources> |
|
||||
</configuration> |
|
||||
</execution> |
|
||||
</executions> |
|
||||
</plugin> |
|
||||
</plugins> |
|
||||
</build> |
|
||||
|
<plugins> |
||||
|
<!-- disable surefire for java tests--> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-surefire-plugin</artifactId> |
||||
|
<version>2.7</version> |
||||
|
<configuration> |
||||
|
<skipTests>true</skipTests> |
||||
|
</configuration> |
||||
|
</plugin> |
||||
|
<!-- Version Management --> |
||||
|
<plugin> |
||||
|
<groupId>com.code54.mojo</groupId> |
||||
|
<artifactId>buildversion-plugin</artifactId> |
||||
|
<version>1.0.3</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<goals> |
||||
|
<goal>set-properties</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<!-- Override Compilation Settings --> |
||||
|
<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> |
||||
|
<!-- Handle Polygot Scala --> |
||||
|
<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> |
||||
|
<!--<configuration> |
||||
|
<jvmArgs> |
||||
|
<jvmArg>-Xms64m</jvmArg> |
||||
|
<jvmArg>-Xmx1024m</jvmArg> |
||||
|
</jvmArgs> |
||||
|
</configuration>--> |
||||
|
</plugin> |
||||
|
<!-- Build Management --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-dependency-plugin</artifactId> |
||||
|
<version>2.6</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>copy-dependencies</id> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>copy-dependencies</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<includeScope>runtime</includeScope> |
||||
|
<outputDirectory> |
||||
|
${project.build.directory}/release/lib |
||||
|
</outputDirectory> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<!-- Source Management --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-source-plugin</artifactId> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>attach-sources</id> |
||||
|
<goals> |
||||
|
<goal>jar</goal> |
||||
|
</goals> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
<!-- Resource Management --> |
||||
|
<plugin> |
||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||
|
<artifactId>maven-resources-plugin</artifactId> |
||||
|
<version>2.6</version> |
||||
|
<executions> |
||||
|
<execution> |
||||
|
<id>copy-resources</id> |
||||
|
<phase>initialize</phase> |
||||
|
<goals> |
||||
|
<goal>copy-resources</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<outputDirectory>${project.build.directory}</outputDirectory> |
||||
|
<resources> |
||||
|
<resource> |
||||
|
<directory>src/includes</directory> |
||||
|
<filtering>true</filtering> |
||||
|
</resource> |
||||
|
</resources> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
<execution> |
||||
|
<id>copy-resources-package</id> |
||||
|
<phase>package</phase> |
||||
|
<goals> |
||||
|
<goal>copy-resources</goal> |
||||
|
</goals> |
||||
|
<configuration> |
||||
|
<outputDirectory>${project.build.directory}/release</outputDirectory> |
||||
|
<resources> |
||||
|
<resource> |
||||
|
<directory>src/includes</directory> |
||||
|
<filtering>true</filtering> |
||||
|
<excludes> |
||||
|
<exclude>version.info</exclude> |
||||
|
<exclude>name.info</exclude> |
||||
|
</excludes> |
||||
|
</resource> |
||||
|
</resources> |
||||
|
</configuration> |
||||
|
</execution> |
||||
|
</executions> |
||||
|
</plugin> |
||||
|
</plugins> |
||||
|
</build> |
||||
</project> |
</project> |
@ -1,29 +1,29 @@ |
|||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
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> |
|
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
<groupId>com.sothr.imagetools</groupId> |
|
||||
<artifactId>build</artifactId> |
|
||||
<version>0.1.3-DEV</version> |
|
||||
<packaging>pom</packaging> |
|
||||
|
<groupId>com.sothr.imagetools</groupId> |
||||
|
<artifactId>build</artifactId> |
||||
|
<version>0.1.3-DEV</version> |
||||
|
<packaging>pom</packaging> |
||||
|
|
||||
<name>Image-Tools</name> |
|
||||
<description>An image collection management utility</description> |
|
||||
<url>http://imagetools.sothr.com</url> |
|
||||
<organization> |
|
||||
<name>Sothr Software</name> |
|
||||
</organization> |
|
||||
|
<name>Image-Tools</name> |
||||
|
<description>An image collection management utility</description> |
||||
|
<url>http://imagetools.sothr.com</url> |
||||
|
<organization> |
||||
|
<name>Sothr Software</name> |
||||
|
</organization> |
||||
|
|
||||
<properties> |
|
||||
<maven.deploy.skip>true</maven.deploy.skip> |
|
||||
</properties> |
|
||||
|
<properties> |
||||
|
<maven.deploy.skip>true</maven.deploy.skip> |
||||
|
</properties> |
||||
|
|
||||
<modules> |
|
||||
<module>parent</module> |
|
||||
<module>hash</module> |
|
||||
<module>engine</module> |
|
||||
<module>cli</module> |
|
||||
<module>gui</module> |
|
||||
</modules> |
|
||||
|
<modules> |
||||
|
<module>parent</module> |
||||
|
<module>hash</module> |
||||
|
<module>engine</module> |
||||
|
<module>cli</module> |
||||
|
<module>gui</module> |
||||
|
</modules> |
||||
|
|
||||
</project> |
</project> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue