File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
common-tools/clas-io/src/main/java/org/jlab/io/hipo Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ export MALLOC_ARENA_MAX=1
88
99java -Xmx2048m -Xms1024m -XX:+UseSerialGC ${jvm_options[@]} \
1010 -cp ${COATJAVA_CLASSPATH:- ' ' } \
11- org.jlab.jnp.hipo4.utils .HipoUtilities \
11+ org.jlab.io.hipo .HipoUtilities \
1212 ${class_options[@]}
1313
Original file line number Diff line number Diff line change 1+ package org .jlab .io .hipo ;
2+
3+ import java .util .ArrayList ;
4+ import java .util .Arrays ;
5+ import org .jlab .utils .system .ClasUtilsFile ;
6+
7+ /**
8+ * Wrapper to add a default schema directory for "hipo-utils -update".
9+ *
10+ */
11+ public class HipoUtilities extends org .jlab .jnp .hipo4 .utils .HipoUtilities {
12+
13+ public static void main (String [] args ) {
14+
15+ ArrayList <String > s = new ArrayList <>(Arrays .asList (args ));
16+
17+ if (s .get (0 ).equals ("-update" ) && !s .contains ("-d" )) {
18+ s .add (1 ,"-d" );
19+ s .add (2 ,ClasUtilsFile .getResourceDir ("CLAS12DIR" , "etc/bankdefs/hipo4" ));
20+ }
21+
22+ org .jlab .jnp .hipo4 .utils .HipoUtilities .main (s .toArray (String []::new ));
23+ }
24+
25+ }
You can’t perform that action at this time.
0 commit comments