You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/10/12 13:43:55 UTC
[incubator-plc4x] 02/02: - Added an option to run the POC via maven.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit ebc6604c4943268fbed348922fe90f86c275d949
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Oct 12 15:43:47 2018 +0200
- Added an option to run the POC via maven.
---
plc4j/protocols/delta-v/pom.xml | 46 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 45 insertions(+), 1 deletion(-)
diff --git a/plc4j/protocols/delta-v/pom.xml b/plc4j/protocols/delta-v/pom.xml
index bf114cb..e339d86 100644
--- a/plc4j/protocols/delta-v/pom.xml
+++ b/plc4j/protocols/delta-v/pom.xml
@@ -70,7 +70,51 @@
<version>6.2.4</version>
<scope>test</scope>
</dependency>
-
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.6.0</version>
+ <configuration>
+ <classpathScope>test</classpathScope>
+ <mainClass>org.apache.plc4x.java.deltav.PoC</mainClass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!--
+
+ This profile starts the application with a provided pcapng file instead of capturing real traffic.
+
+ Run With
+ mvn exec:java -P dummy -Dpcapng.file.path="/path/to/mycool.pcapng"
+
+ -->
+ <profiles>
+ <profile>
+ <id>dummy</id>
+
+ <properties>
+ <pcapng.file.path>hurz.pcapng</pcapng.file.path>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.6.0</version>
+ <configuration combine.children="append">
+ <arguments>${pcapng.file.path}</arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>
\ No newline at end of file