aboutsummaryrefslogtreecommitdiff
path: root/doc/problemexamples/bits
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-08-29 14:54:32 +0000
committercassiopc <cassiopc@gmail.com>2013-08-29 14:54:32 +0000
commitbc3df342f06c6f61e0daf9ae29d435f9299b8733 (patch)
treea2188e5ddfa0d6564598c6b8b5a1bc63b9e38d94 /doc/problemexamples/bits
parent0923c7df2ac33b451b1a64983fb1f77f0b16db43 (diff)
downloadboca-bc3df342f06c6f61e0daf9ae29d435f9299b8733.tar.gz
boca-bc3df342f06c6f61e0daf9ae29d435f9299b8733.zip
changed jar command-line to include the name of main class; users by default now cant change password
Diffstat (limited to 'doc/problemexamples/bits')
-rw-r--r--doc/problemexamples/bits/compile/java6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/problemexamples/bits/compile/java b/doc/problemexamples/bits/compile/java
index f62215b..bab8a88 100644
--- a/doc/problemexamples/bits/compile/java
+++ b/doc/problemexamples/bits/compile/java
@@ -108,6 +108,10 @@ fi
cdir=`pwd`
echo "Current directory is $cdir" >&2
+mainname=`echo $name | cut -d'.' -f1`
+if [ "$mainname" == "" ]; then
+ mainname=Main
+fi
cat <<EOF > compileit.sh
#!/bin/bash
@@ -134,7 +138,7 @@ find . -name "*.java" | while read lin; do
echo \$? > ../compileit.retcode
done
rm -f ../$jarfile
-\$jar cvf ../$jarfile *
+\$jar cvfe ../$jarfile $mainname *
exit 0
EOF
chmod 755 compileit.sh