Affects Version/s: Release 3.2.0
Titanium CLI 3.2.0 (master)
Titanium CLI 3.2.0.v20131125103938
When building for device in Linux (Ubuntu in this case), the build fails if JAVA_HOME is incorrect.
JAVA_HOME is required for titanium_prep to run. If it's not set, then the CLI will try to autodetect the JAVA_HOME and pass that into titanium_prep. If JAVA_HOME is set and is invalid, titanium_prep will error.
This will require changes to both the Titanium SDK and node-appc.
node-appc's jdk detection library needs to improve JAVA_HOME detection, specifically looking for JAVA_HOME/lib/<i386|amd64>/<client|server>/libjvm.so or JAVA_HOME/jre/lib/<i386|amd64>/<client|server>/libjvm.so. If these are not found, then it needs to add an issue JDK_INVALID_JAVA_HOME with description.
Android build needs to check if JDK_INVALID_JAVA_HOME is set and if so, fail.