-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add smithy->Java codegen to CryptoPrimitives and KMS (#56)
- Loading branch information
1 parent
6f61e4e
commit 6a5ef00
Showing
58 changed files
with
8,405 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
AwsCryptographyPrimitives/runtimes/java/makefile_helper.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$1" == "implementation" ]]; then | ||
mkdir -p runtimes/java/src/main/dafny-generated | ||
mkdir -p runtimes/java/src/main/dafny-generated | ||
for directory in runtimes/java/temp/AwsCryptographyPrimitives-java/*; do | ||
mv "$directory" "runtimes/java/src/main/dafny-generated/" | ||
done | ||
exit 0 | ||
exit 0 | ||
elif [[ "$1" == "test" ]]; then | ||
# With the runAllTests flag, dafny generates an entry point for the tests that we want, | ||
# so we copy all files to the test destination. | ||
mkdir -p runtimes/java/src/test/dafny-generated | ||
for allFiles in runtimes/java/temp-tests/AwsCryptographyPrimitivesTests-java/*; do | ||
# With the runAllTests flag, dafny generates an entry point for the tests that we want, | ||
# so we copy all files to the test destination. | ||
mkdir -p runtimes/java/src/test/dafny-generated | ||
for allFiles in runtimes/java/temp-tests/AwsCryptographyPrimitivesTests-java/*; do | ||
mv "$allFiles" "runtimes/java/src/test/dafny-generated/" | ||
done | ||
exit 0 | ||
exit 0 | ||
else | ||
echo "makefile_helper needs either implementation or test argument" | ||
echo "i.e: ./runtimes/java/makefile_helper.sh test" | ||
exit 1 | ||
echo "makefile_helper needs either implementation or test argument" | ||
echo "i.e: ./runtimes/java/makefile_helper.sh test" | ||
exit 1 | ||
fi |
Oops, something went wrong.