Correct check to compile the java

Note that it is really slow compared to something like :

javac -cp ../../../lib/java */*.java

which compiles everything together instead of relaunching the compiler by hand in each subdir.
This commit is contained in:
Léonard Gérard 2011-11-02 16:01:24 +01:00
parent 919eaa72e1
commit fd40bcefcf
1 changed files with 2 additions and 4 deletions

View File

@ -119,15 +119,13 @@ launch_check () {
fi
# Compil. java ?
if [[ ($echec == 0) && ($java == 1) ]]; then
pushd "${base_f}" > /dev/null
for java_file in *.java ; do
if $JAVAC -warn:-unused -sourcepath .:..:../t1 ${java_file} > /dev/null
pushd "java/$(echo ${base_f} | sed 's/^./\u&/')" > /dev/null
if $JAVAC -cp ../../../../lib/java:../ *.java > /dev/null
then
echec=0
else
echec=3
fi
done
popd > /dev/null
fi
# Compil. caml ?