SAMOA-29: Excluding the samoa-storm.properties at compile time and including at test
diff --git a/bin/samoa b/bin/samoa
index 1a0ff15..1a26caa 100755
--- a/bin/samoa
+++ b/bin/samoa
@@ -201,7 +201,7 @@
if [ "$MODE_ARG" = "cluster" ]; then
$STORM_EXEC jar $DEPLOYABLE org.apache.samoa.topology.impl.StormDoTask $COMPLETE_ARG $NUM_WORKER $MODE_ARG
elif [ "$MODE_ARG" = "local" ]; then
- CLASSPATH="$CLASSPATH:$STORM_HOME/lib/*:$DEPLOYABLE"
+ CLASSPATH="$CLASSPATH:$STORM_HOME/lib/*:$BASE_DIR/:$DEPLOYABLE"
java -cp $CLASSPATH org.apache.samoa.LocalStormDoTask $COMPLETE_ARG $NUM_WORKER
fi
diff --git a/bin/samoa-storm.properties b/bin/samoa-storm.properties
index 423b8b2..58a395d 100644
--- a/bin/samoa-storm.properties
+++ b/bin/samoa-storm.properties
@@ -34,4 +34,4 @@
samoa.storm.numworker=4
# samoa.storm.local.mode.execution.duration corresponds to the execution duration of the local topology in seconds.
-samoa.storm.local.mode.execution.duration=100
+samoa.storm.local.mode.execution.duration=200
diff --git a/samoa-storm/pom.xml b/samoa-storm/pom.xml
index fd4029c..4539261 100644
--- a/samoa-storm/pom.xml
+++ b/samoa-storm/pom.xml
@@ -121,13 +121,13 @@
</configuration>
</plugin>
</plugins>
- <resources>
- <resource>
+ <testResources>
+ <testResource>
<directory>${project.basedir}/../bin</directory>
<includes>
<include>*storm.properties</include>
</includes>
- </resource>
- </resources>
+ </testResource>
+ </testResources>
</build>
</project>
diff --git a/samoa-storm/src/main/java/org/apache/samoa/LocalStormDoTask.java b/samoa-storm/src/main/java/org/apache/samoa/LocalStormDoTask.java
index a31fa58..f77dbac 100644
--- a/samoa-storm/src/main/java/org/apache/samoa/LocalStormDoTask.java
+++ b/samoa-storm/src/main/java/org/apache/samoa/LocalStormDoTask.java
@@ -43,7 +43,6 @@
private static final Logger logger = LoggerFactory.getLogger(LocalStormDoTask.class);
private static final String EXECUTION_DURATION_KEY ="samoa.storm.local.mode.execution.duration";
private static final String SAMOA_STORM_PROPERTY_FILE_LOC ="samoa-storm.properties";
-
/**
* The main method.
*