Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[maven] disable JAVA_HOME during capture
Summary: The maven script now checks for a java command in `JAVA_HOME` ``` if [ -z "$JAVA_HOME" ] ; then JAVACMD=`which java` else JAVACMD="$JAVA_HOME/bin/java" fi ``` when running under infer (where we specify infer as a compiler) and a valid `JAVA_HOME`, this check fails with ``` The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE ``` We unset `JAVA_HOME` when running under infer, bypassing this check (it still requires a java executable in the path). Reviewed By: geralt-encore Differential Revision: D68148333 Privacy Context Container: L1208441 fbshipit-source-id: 1d6bf0994f58f9c225f2a889c8145754eb6f6ea8
- Loading branch information