Commit 44b06f25 authored by claes's avatar claes

Java frames inserted in web jarfile also

parent 4d6ae854
......@@ -43,6 +43,7 @@ fi
if [ $function == "java" ]; then
jarfile="$pwrp_lib/pwrp_"$systemname".jar"
jarfileweb="$pwrp_web/pwrp_"$systemname"_web.jar"
if javac -d $pwrp_web -classpath $pwr_lib/pwr_rt.jar:$pwr_lib/pwr_jop.jar $pwrp_pop/$src_file
then
......@@ -50,27 +51,36 @@ if [ $function == "java" ]; then
if [ ! -e $jarfile ]; then
cd $pwrp_web
jar -cf $jarfile ${src_file%.java}.class
rm ${src_file%.java}.class
else
cd $pwrp_web
jar -uf $jarfile ${src_file%.java}.class
rm ${src_file%.java}.class
fi
if [ ! -e $jarfileweb ]; then
cd $pwrp_web
jar -cf $jarfileweb ${src_file%.java}.class
else
cd $pwrp_web
jar -uf $jarfileweb ${src_file%.java}.class
fi
rm ${src_file%.java}.class
files=`ls $pwrp_web/${src_file%.java}\\$*.class 2>&-`
if [ ! -z "$files" ]; then
# echo "Insert in archive $jarfile"
jar -uf $jarfile ${src_file%.java}\$*.class
jar -uf $jarfileweb ${src_file%.java}\$*.class
rm ${src_file%.java}\$*.class
fi
files=`ls $pwrp_pop/*.gif 2>&-`
if [ ! -z "$files" ]; then
cd $pwrp_pop
jar -uf $jarfile *.gif
jar -uf $jarfileweb *.gif
fi
files=`ls $pwrp_pop/*.jpg 2>&-`
if [ ! -z "$files" ]; then
cd $pwrp_pop
jar -uf $jarfile *.jpg
jar -uf $jarfileweb *.jpg
fi
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment