mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-28 20:20:00 +00:00
Undo compile Java classes into target folder.
This was causing class loader errors on Java 1.6. Change-Id: Id1d9e7e369aad639115664c43a867c4d3a82f9f1 Tested: on Linux.
This commit is contained in:
@@ -19,20 +19,11 @@ echo Compile then run the Java test.
|
|||||||
testdir=$(readlink -fn `dirname $0`)
|
testdir=$(readlink -fn `dirname $0`)
|
||||||
thisdir=$(readlink -fn `pwd`)
|
thisdir=$(readlink -fn `pwd`)
|
||||||
|
|
||||||
targetdir=${testdir}/target
|
|
||||||
|
|
||||||
if [[ "$testdir" != "$thisdir" ]]; then
|
if [[ "$testdir" != "$thisdir" ]]; then
|
||||||
echo error: must be run from inside the ${testdir} directory
|
echo error: must be run from inside the ${testdir} directory
|
||||||
echo you ran it from ${thisdir}
|
echo you ran it from ${thisdir}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e "${targetdir}" ]; then
|
javac -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest.java
|
||||||
echo "clean target"
|
java -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest
|
||||||
rm -fr ${targetdir}
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir ${targetdir}
|
|
||||||
|
|
||||||
javac -d ${targetdir} -classpath ${testdir}/../java:${testdir}:${testdir}/namespace_test JavaTest.java
|
|
||||||
java -classpath ${targetdir} JavaTest
|
|
||||||
|
|||||||
Reference in New Issue
Block a user