Skip to content

Commit

Permalink
allow engine dir config via properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JuicyDragon committed Jun 19, 2024
1 parent 6c65ee2 commit 2b4359c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Nx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ val sourceCompatibility = findProperty("targetJreVersion") ?: 11
val targetCompatibility = findProperty("targetJreVersion") ?: 11

// Directory containing Nuix Engine release. We first attempt to pull from ENV
var nuixEngineDirectory: String = System.getenv("NUIX_ENGINE_DIR")
var nuixEngineDirectory: String = (findProperty("NUIX_ENGINE_DIR") ?: System.getenv("NUIX_ENGINE_DIR")).toString()
// If we have it provided externally via a property, use that instead
if (properties.containsKey("nuixEngineDir")) {
nuixEngineDirectory = findProperty("nuixEngineDir").toString()
Expand Down
1 change: 1 addition & 0 deletions Nx/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NUIX_ENGINE_DIR=C:\\EngineRelease\\9.10

0 comments on commit 2b4359c

Please sign in to comment.