Ensure the new designer can find the properties

- JavaFX 17 at least has the properties file laying bare
This commit is contained in:
Juan Martín Sotuyo Dodero
2022-09-21 12:21:40 -03:00
parent 3b42cf6ea3
commit 0b7a4274b8

View File

@ -167,10 +167,12 @@ function add_openjfx_classpath() {
then
script_exit "The environment variable JAVAFX_HOME is missing."
else
# The wildcard will include only jar files, but we need to access also
# property files such as javafx.properties that lay bare in the dir
if [ -n "$classpath" ]; then
classpath="$classpath:${JAVAFX_HOME}/lib/*"
classpath="$classpath:${JAVAFX_HOME}/lib/*:${JAVAFX_HOME}/lib/"
else
classpath="${JAVAFX_HOME}/lib/*"
classpath="${JAVAFX_HOME}/lib/*:${JAVAFX_HOME}/lib/"
fi
fi
fi