# HG changeset patch # User David Barts # Date 1595007288 25200 # Node ID a6f9b51d5e8da8461599b5214b80277f1ee84dcb # Parent 0bded24f746e9b4cd8c0d9000e0f26d893294cc9 Got jar building. diff -r 0bded24f746e -r a6f9b51d5e8d build.xml --- a/build.xml Thu Jul 16 21:51:08 2020 -0700 +++ b/build.xml Fri Jul 17 10:34:48 2020 -0700 @@ -31,19 +31,16 @@ + - + - - - - @@ -74,7 +71,6 @@ - @@ -82,7 +78,6 @@ - @@ -116,9 +111,7 @@ - - + diff -r 0bded24f746e -r a6f9b51d5e8d src/name/blackcap/imageprep/Settings.kt --- a/src/name/blackcap/imageprep/Settings.kt Thu Jul 16 21:51:08 2020 -0700 +++ b/src/name/blackcap/imageprep/Settings.kt Fri Jul 17 10:34:48 2020 -0700 @@ -9,14 +9,14 @@ private val _PROPS = PROPERTIES object Settings { - private var homeDir = System.getProperty("user.home") + private val homeDir = System.getProperty("user.home") val maxDimension = _PROPS.getProperty("maxDimension").toInt() val outputQuality = _PROPS.getProperty("outputQuality").toInt() - val outputSuffix = tilde(_PROPS.getProperty("outputSuffix")) + val outputSuffix = _PROPS.getProperty("outputSuffix") val outputTo = tilde(_PROPS.getProperty("outputTo")) val outputToInputDir = strToBool(_PROPS.getProperty("outputToInputDir")) - private fun tilde(s: String): String { + private fun tilde(s: String?): String { if (s.isNullOrEmpty()) return homeDir if (s.startsWith("~/") || s.startsWith("~\\"))