Skip to content

Commit

Permalink
Update PATH again
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgodard committed Apr 19, 2019
1 parent cc5dd6e commit 475d6c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gradle/cplex_plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,18 @@ println("Using native cplex path: $ext.nativeCplexPath")
println("LD_LIBRARY_PATH: $ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath")

test {
environment "PATH", "$ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath" // For Windows dynamic library loading
environment "LD_LIBRARY_PATH", "$ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath" // For Linux dynamic library loading
environment "DYLD_LIBRARY_PATH", "$ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath"
println("PATH: $nativeCpoPath$pathSeparator$nativeCplexPath")
environment "PATH", "$nativeCpoPath$pathSeparator$nativeCplexPath" // For Windows dynamic library loading
environment "LD_LIBRARY_PATH", "$nativeCpoPath$pathSeparator$nativeCplexPath" // For Linux dynamic library loading
environment "DYLD_LIBRARY_PATH", "$nativeCpoPath$pathSeparator$nativeCplexPath"
// For Mac OS dynamic library loading (CPO)
systemProperty "java.library.path", "$ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath"
systemProperty "java.library.path", "$nativeCpoPath$pathSeparator$nativeCplexPath"
// For Mac OS dynamic library loading (Cplex)
enableAssertions = true
}

tasks.withType(JavaExec) {
environment('LD_LIBRARY_PATH', "$ext.nativeCpoPath$ext.pathSeparator$ext.nativeCplexPath")
environment('LD_LIBRARY_PATH', "$nativeCpoPath$pathSeparator$nativeCplexPath")
}

dependencies {
Expand Down

0 comments on commit 475d6c0

Please sign in to comment.