Skip to content

Commit aaa366d

Browse files
committed
adding parameter notypecheck to abssyntaxchecker
1 parent 67fe55a commit aaa366d

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

server/bin/envisage/abssyntaxchecker/abssyntaxchecker.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ echo "<eicommands>"
1111

1212
java -jar $ABSFRONTEND $root ${@:2} 2> $tmpdir/abssyntaxchecker.stderr
1313

14-
if [ $? == 0 ]; then
15-
echo "<printonconsole>"
16-
echo "<content format='text'>Your program compiles correctly!!</content>"
17-
echo "</printonconsole>"
18-
else
14+
if [ -s $tmpdir/abssyntaxchecker.stderr ] ; then
1915
echo "<printonconsole>"
2016
echo "<content format='text'>There are some compilation errors! See markers in the code area!!</content>"
2117
echo "</printonconsole>"
@@ -29,6 +25,10 @@ else
2925
}
3026
}
3127
'
28+
else
29+
echo "<printonconsole>"
30+
echo "<content format='text'>Your program compiles correctly!!</content>"
31+
echo "</printonconsole>"
3232
fi
3333

3434
echo "</eicommands>"

server/config/envisage/abssyntaxchecker/abssyntaxchecker.cfg

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88
</desc>
99
</appinfo>
1010
<execinfo method="cmdline">
11-
<cmdlineapp>./envisage/abssyntaxchecker/abssyntaxchecker.sh _ei_root _ei_files</cmdlineapp>
11+
<cmdlineapp>./envisage/abssyntaxchecker/abssyntaxchecker.sh _ei_root _ei_files _ei_parameters</cmdlineapp>
1212
</execinfo>
1313
<parameters prefix="-">
14+
<flag name="notypecheck" explicit="false">
15+
<desc>
16+
<short>Disable typechecking</short>
17+
<long>Disable typechecking</long>
18+
</desc>
19+
<default value="false"/>
20+
</flag>
1421
</parameters>
1522
</app>

0 commit comments

Comments
 (0)