Skip to content

Commit cff4a2d

Browse files
committed
Attempted to fix all the deployment errors
1 parent 695dccb commit cff4a2d

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

lbjava-examples/compileLBJ.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -51,7 +52,7 @@ fi
5152

5253
case $1 in
5354
"all")
54-
echo "===== Generating output for all =====\n";
55+
echo "===== Generating output for all =====";
5556
generateAllLBJFiles
5657
exit;;
5758
"badges")

lbjava/src/test/java/edu/illinois/cs/cogcomp/lbjava/MainTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
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>

0 commit comments

Comments
 (0)