Skip to content

Commit

Permalink
Switching to maven for building katalyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
SteinNorheim committed Nov 24, 2017
1 parent 775f53b commit de68dd3
Show file tree
Hide file tree
Showing 139 changed files with 417 additions and 149 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/config.yaml
/katalyze/bin
/output
/katalyze/target
.metadata
*.class
*~
Expand Down
18 changes: 0 additions & 18 deletions katalyze/Makefile

This file was deleted.

85 changes: 0 additions & 85 deletions katalyze/build.xml

This file was deleted.

30 changes: 0 additions & 30 deletions katalyze/build_jar.xml

This file was deleted.

Binary file removed katalyze/lib/commons-beanutils-1.8.3.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-beanutils-core-1.8.3.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-collections-3.2.1.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-configuration-1.9.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-lang-2.6.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-logging-1.1.1.jar
Binary file not shown.
Binary file removed katalyze/lib/commons-logging-adapters-1.1.1.jar
Binary file not shown.
Binary file removed katalyze/lib/configurations-yaml-0.5.jar
Binary file not shown.
Binary file removed katalyze/lib/ezmorph-1.0.6.jar
Binary file not shown.
Binary file removed katalyze/lib/jcommon-1.0.16.jar
Binary file not shown.
Binary file removed katalyze/lib/jfreechart-1.0.13-swt.jar
Binary file not shown.
Binary file removed katalyze/lib/jfreechart-1.0.13.jar
Binary file not shown.
Binary file removed katalyze/lib/json-lib-2.4-jdk15.jar
Binary file not shown.
Binary file removed katalyze/lib/junit-4.11.jar
Binary file not shown.
Binary file removed katalyze/lib/log4j-1.2.16.jar
Binary file not shown.
Binary file removed katalyze/lib/mysql-connector-java-5.0.8-bin.jar
Binary file not shown.
Binary file removed katalyze/lib/snakeyaml-1.16.jar
Binary file not shown.
Binary file removed katalyze/lib/twitter4j-core-4.0.6.jar
Binary file not shown.
112 changes: 112 additions & 0 deletions katalyze/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>autoanalyst</groupId>
<artifactId>katalyzer</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>autoanalyst Katalyzer</name>
<url>http://maven.apache.org</url>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<!-- or whatever version you use -->
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/libs
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
<mainClass>
katalyzeapp.Katalyze
</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>

<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.19</version>
</dependency>

<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.10</version>
</dependency>

<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
<version>4.0.6</version>
</dependency>
</dependencies>
</project>
6 changes: 1 addition & 5 deletions katalyze/run_katalyze.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#!/bin/bash
# This script assumes it is run from its own directory.

# construct the colon-separated classpath of jar files in the lib directory,
# plus the src directory
CP=`find lib/*.jar | tr '\n' ':'`src

echo $CP

# Read CDS connection data from global config file, using
# some hackish YAML parsing.
eval `cat ../config.yaml | sed -n '/^CDS:/,/^[[:space:]]*$/{/^[[:space:]]*\(baseurl\|user\|pass\):/{s/^[[:space:]]*\([a-z]*\):[[:space:]]*\(.*\)/\1=\2/;p}}'`

# run!
echo "<contest></contest>" | java -classpath $CP katalyzeapp.Katalyze $@
echo "<contest></contest>" | java -jar target/katalyzer-1.0-SNAPSHOT.jar $@
#cat data/kattislog_rehearsal_2011.txt | java -classpath $CP katalyzeapp.Katalyze $@
#netcat 192.168.1.141 4714 | java -classpath $CP katalyzeapp.Katalyze $@
#curl --user $user:$pass --no-buffer --netrc --insecure --max-time 360000 \
Expand Down
8 changes: 1 addition & 7 deletions katalyze/run_local.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#!/bin/bash

# construct the colon-separated classpath of jar files in the lib directory,
# plus the src directory
#CP=`find lib/*.jar -printf "lib/%f:"`src:bin
CP=`find lib/*.jar | tr '\n' ':'`src

# run!
#cat data/kattislog_rehearsal_2011.txt | java -classpath $CP katalyzeapp.Katalyze $@
java -classpath $CP katalyzeapp.Katalyze $@
java -jar target/katalyzer-1.0-SNAPSHOT.jar $@

# wait until input
read x
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit de68dd3

Please sign in to comment.