java/trunk/evio
--- java/trunk/evio/pom.xml 2014-03-31 23:16:31 UTC (rev 425)
+++ java/trunk/evio/pom.xml 2014-04-01 18:36:26 UTC (rev 426)
@@ -34,4 +34,85 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <phase>install</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/scripts</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/scripts/</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>chmod-scripts</id>
+ <phase>install</phase>
+ <configuration>
+ <target>
+ <chmod file="${project.build.directory}/scripts/*.sh" perm="755" />
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <shadedArtifactAttached>true</shadedArtifactAttached>
+ <shadedClassifierName>bin</shadedClassifierName>
+ <transformers>
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
+ <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>org.lcsim.job.JobControlManager</mainClass>
+ </transformer>
+ </transformers>
+ <artifactSet>
+ <excludes>
+ <exclude>hep.testdata.aida:*</exclude>
+ </excludes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
java/trunk/evio/src/main/scripts
--- java/trunk/evio/src/main/scripts/et_evio_file_producer_test.sh (rev 0)
+++ java/trunk/evio/src/main/scripts/et_evio_file_producer_test.sh 2014-04-01 18:36:26 UTC (rev 426)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Script to stream an EVIO file onto an ET ring.
+# You need to setup the path to JNI libraries yourself which are in hps-et-java/lib/[arch]
+
+# Single argument is name of EVIO file.
+eviofile=$1
+shift
+
+# Classpath pointing to the hps-evio jar.
+classpath=${project.basedir}/target/${project.artifactId}-${project.version}-bin.jar
+
+# Run it.
+prod="java -classpath $classpath org.hps.evio.EvioFileProducer -e ${eviofile} -f ETBuffer -host localhost -s 10000 -d 100 $@"
+echo $prod
+exec $prod