Configuring DashO Home
The DashO™ Gradle Plugin for Android needs to be able to locate DashO Home.
If PreEmptive Protection™ DashO for Android & Java is installed in a default location using an installer, then the DashO Gradle Plugin for Android should be able to automatically locate an appropriate version of DashO to use, so in most cases you should not need to configure a DashO Home at all.
If you want to target a specific version of DashO for the plugin to search for, you can use the searchVersion
property of the dasho
closure.
If you have installed DashO in a non-default location or want to otherwise control this behavior, you will need additional configuration. The plugin will look for a DashO home in the following ways, in order:
Use
home
if set in thedasho
closure.dasho { home "/Applications/PreEmptive Protection DashO X.y/Contents/Java" }
Use a
DASHO_HOME
Gradle project property if defined. This could be specified in yourgradle.properties
file, or provided on the command line like this:gradlew -PDASHO_HOME=/Applications/PreEmptive\ Protection\ DashO\ X.y/Contents/Java \ build
Please see the Gradle Project Documentation for more details about setting project properties.
Use
DASHO_HOME
Java system property for the Gradle process if defined. This could be specified at the command line like this:gradlew -DDASHO_HOME=/Applications/PreEmptive\ Protection\ DashO\ X.y/Contents/Java \ build
Use a
DASHO_HOME
environment variable if defined.Use
searchVersion
if set in thedasho
closure to look for an installed DashO.dasho { searchVersion "{major}[.{minor}]" }
When both
{major}
and{minor}
(e.g.10.2
) are provided, the plugin will look for that exact version. When only{major}
(e.g.10
) is provided, the plugin will find the latest installed{major}
version.Note: Only the default installation locations are searched.
Search the default installation locations for the latest 10.x installation of DashO.