Skip to content

Commit

Permalink
Remove DAFFODIL_HOME since IDEs don't need it
Browse files Browse the repository at this point in the history
- remove daffodilRoot, which uses DAFFODIL_HOME, as replacing it with "." is essentially a no-op in the Paths.get function

DAFFODIL-2836
  • Loading branch information
olabusayoT committed Mar 22, 2024
1 parent 7db9e4e commit f55b588
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ object Util {

private val isWindows = System.getProperty("os.name").toLowerCase().startsWith("windows")

private val daffodilRoot = sys.env.getOrElse("DAFFODIL_HOME", ".")

private val daffodilBinPath = {
val ext = if (isWindows) ".bat" else ""
Paths.get(daffodilRoot, s"daffodil-cli/target/universal/stage/bin/daffodil$ext")
Paths.get(s"daffodil-cli/target/universal/stage/bin/daffodil$ext")
}

/**
Expand All @@ -67,7 +65,7 @@ object Util {
* operating system
*/
def path(string: String): Path = {
Paths.get(daffodilRoot, string)
Paths.get(string)
}

def devNull(): String = if (isWindows) "NUL" else "/dev/null"
Expand Down

0 comments on commit f55b588

Please sign in to comment.