Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmwells-amazon committed Sep 8, 2023
1 parent f11cb6f commit a198568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CedarJava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test {
//environment "CEDAR_INTEGRATION_TESTS_ROOT", ''set to absolute path of `cedar-integration-tests`'
//environment 'CEDAR_JAVA_FFI_LIB', 'set to absolute path of cedar_java_ffi native library (including file extension)'
testLogging {
showStandardStreams true
showStandardStreams false
exceptionFormat 'full'
}
}
4 changes: 2 additions & 2 deletions CedarJava/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ "$(uname)" == "Darwin" ]; then
else
ffi_lib_str=" environment 'CEDAR_JAVA_FFI_LIB', '"$parent_dir"/CedarJavaFFI/target/debug/libcedar_java_ffi.so'"
fi
sed "83s;.*;$ffi_lib_str;" "build.gradle" > new_build.gradle
sed "85s;.*;$ffi_lib_str;" "build.gradle" > new_build.gradle
mv new_build.gradle build.gradle

# In CI, we need to pull the latest cedar-policy to match the latest cedar-integration-tests
Expand All @@ -23,7 +23,7 @@ mv new_build.gradle build.gradle
# If you call this script with `run_int_tests`, we assume you have `cedar` checkout out in the `cedar-java` dir
if [ "$#" -ne 0 ] && [ "$1" == "run_int_tests" ]; then
integration_tests_str=" environment 'CEDAR_INTEGRATION_TESTS_ROOT', '"$parent_dir"/cedar/cedar-integration-tests'"
sed "82s;.*;$integration_tests_str;" "build.gradle" > new_build.gradle
sed "84s;.*;$integration_tests_str;" "build.gradle" > new_build.gradle
mv new_build.gradle build.gradle

export MUST_RUN_CEDAR_INTEGRATION_TESTS=1
Expand Down

0 comments on commit a198568

Please sign in to comment.