File tree Expand file tree Collapse file tree
lbjava/src/test/java/edu/illinois/cs/cogcomp/lbjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ generateLBJFiles() {
1515 SWITCHES=" -ea -XX:MaxPermSize=1g -Xmx8g"
1616
1717 BIN=target
18- LBJBIN=target
18+ LBJBIN=target/classes
1919 SRC=src/main/java
2020 GSP=src/main/java
2121
22+ if [ ! -d $LBJBIN ]; then mkdir -p $LBJBIN ; fi
2223 CP=$BIN :$LBJBIN :lib/* :lib/illinois-core-utilities-3.0.15.jar:lib/liblinear.jar:../lbjava/target/lbjavaCore.jar
2324
2425 echo $CP
2526
26- $JAVA $SWITCHES -cp $CP edu.illinois.cs.cogcomp.lbjava.Main -d $LBJBIN -gsp $GSP -x -sourcepath $SRC $FILE
27- $JAVA $SWITCHES -cp $CP edu.illinois.cs.cogcomp.lbjava.Main -d $LBJBIN -gsp $GSP -sourcepath $SRC $FILE
27+ $JAVA $SWITCHES -cp $CP edu.illinois.cs.cogcomp.lbjava.Main -x - d $LBJBIN -gsp $GSP -sourcepath $SRC $FILE
28+ $JAVA $SWITCHES -cp $CP edu.illinois.cs.cogcomp.lbjava.Main -c - d $LBJBIN -gsp $GSP -sourcepath $SRC $FILE
2829}
2930
3031# generate all .lbj files
5152
5253case $1 in
5354 " all" )
54- echo " ===== Generating output for all =====\n " ;
55+ echo " ===== Generating output for all =====" ;
5556 generateAllLBJFiles
5657 exit ;;
5758 " badges" )
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public void cleanup() {
165165 File [] dirFiles = lbjDir .listFiles (new FilenameFilter () {
166166
167167 public boolean accept (File dir , String name ) {
168- return !name .endsWith (".lbj" );
168+ return !name .endsWith (".lbj" ) && ! name . startsWith ( ".nfs" ) ;
169169 }
170170 });
171171 for (File file : dirFiles ) assert file .delete () : "Could not delete file " + file ;
Original file line number Diff line number Diff line change 104104 <exclude >**/*.md</exclude >
105105 <exclude >src/test/resources/**</exclude >
106106 <exclude >src/main/resources/**</exclude >
107+ <exclude >src/main/java/edu/illinois/cs/cogcomp/lbjava/frontend/sym.java</exclude >
108+ <exclude >src/main/java/edu/illinois/cs/cogcomp/lbjava/frontend/parser.java</exclude >
109+ <exclude >../lbjava-examples/**</exclude >
107110 </excludes >
108111 </configuration >
109112 <executions >
You can’t perform that action at this time.
0 commit comments