Commit 5592e702 authored by Christian Wulf's avatar Christian Wulf

pom copies all dependencies now;

Dir2RecordsFilter extends CompositeStage now
parent 7cde21d7
#FindBugs User Preferences
#Wed Jan 28 14:32:29 CET 2015
#Mon Feb 02 15:11:17 CET 2015
detector_threshold=3
effort=max
excludefilter0=.fbExcludeFilterFile|true
......
......@@ -143,6 +143,29 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- copies all dependencies as separate jars into the target folder -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
......@@ -186,28 +209,28 @@
</plugin>
<!-- Checkstyle -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-checkstyle-plugin</artifactId> -->
<!-- <version>2.12</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>test</phase> -->
<!-- <goals> -->
<!-- <goal>check</goal> -->
<!-- </goals> -->
<!-- <configuration> -->
<!-- <configLocation>${project.basedir}/conf/quality-config/cs-conf.xml</configLocation> -->
<!-- <includeTestSourceDirectory>true</includeTestSourceDirectory> -->
<!-- <encoding>UTF-8</encoding> -->
<!-- <consoleOutput>true</consoleOutput> -->
<!-- <failsOnError>false</failsOnError> -->
<!-- <failOnViolation>false</failOnViolation> -->
<!-- <linkXRef>false</linkXRef> -->
<!-- </configuration> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-checkstyle-plugin</artifactId> -->
<!-- <version>2.12</version> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <phase>test</phase> -->
<!-- <goals> -->
<!-- <goal>check</goal> -->
<!-- </goals> -->
<!-- <configuration> -->
<!-- <configLocation>${project.basedir}/conf/quality-config/cs-conf.xml</configLocation> -->
<!-- <includeTestSourceDirectory>true</includeTestSourceDirectory> -->
<!-- <encoding>UTF-8</encoding> -->
<!-- <consoleOutput>true</consoleOutput> -->
<!-- <failsOnError>false</failsOnError> -->
<!-- <failOnViolation>false</failOnViolation> -->
<!-- <linkXRef>false</linkXRef> -->
<!-- </configuration> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<!-- Findbugs -->
<plugin>
......
......@@ -16,10 +16,13 @@
package teetime.stage.io.filesystem;
import java.io.File;
import java.util.Arrays;
import java.util.Collection;
import teetime.framework.AbstractStage;
import teetime.framework.CompositeStage;
import teetime.framework.InputPort;
import teetime.framework.OutputPort;
import teetime.framework.Stage;
import teetime.framework.pipe.IPipeFactory;
import teetime.framework.pipe.PipeFactoryRegistry;
import teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering;
......@@ -41,7 +44,7 @@ import kieker.common.util.filesystem.FSUtil;
*
* @since 1.0
*/
public final class Dir2RecordsFilter extends AbstractStage {
public final class Dir2RecordsFilter extends CompositeStage {
private final PipeFactoryRegistry pipeFactoryRegistry = PipeFactoryRegistry.INSTANCE;
private ClassNameRegistryRepository classNameRegistryRepository;
......@@ -83,12 +86,14 @@ public final class Dir2RecordsFilter extends AbstractStage {
this.recordMerger = recordMerger;
}
public ClassNameRegistryRepository getClassNameRegistryRepository() {
return this.classNameRegistryRepository;
@Override
protected Stage getFirstStage() {
return classNameRegistryCreationFilter;
}
public void setClassNameRegistryRepository(final ClassNameRegistryRepository classNameRegistryRepository) {
this.classNameRegistryRepository = classNameRegistryRepository;
@Override
protected Collection<? extends Stage> getLastStages() {
return Arrays.asList((Stage) recordMerger);
}
public InputPort<File> getInputPort() {
......@@ -99,9 +104,12 @@ public final class Dir2RecordsFilter extends AbstractStage {
return recordMerger.getOutputPort();
}
@Override
public void executeWithPorts() {
classNameRegistryCreationFilter.executeWithPorts();
public ClassNameRegistryRepository getClassNameRegistryRepository() {
return this.classNameRegistryRepository;
}
public void setClassNameRegistryRepository(final ClassNameRegistryRepository classNameRegistryRepository) {
this.classNameRegistryRepository = classNameRegistryRepository;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment