Skip to content

Commit

Permalink
Exclude LedgerStateDelta.java from being deleted prior to codegen run…
Browse files Browse the repository at this point in the history
…ning for the Java SDK (it is currently manual). (#77)
  • Loading branch information
gmalouf authored May 29, 2024
1 parent a7d0de1 commit b6483ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/sdk-codegen/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ function generate_java {
# Clean previously (stale) generated files before regenerating them.
# Hand-written files are confined to algosdk/v2/client/common,
# except AlgodClient, which will be re-generated according to the specs.
# LedgerStateDelta is a second exception to this, should be revisited.
find $JAVA_SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/model/* \
$JAVA_SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/algod/* \
$JAVA_SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/indexer/* \
\! -name 'LedgerStateDelta.java' \
-delete

$GENERATOR \
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ fi
# Clean previously (stale) generated files before regenerating them.
# Hand-written files are confined to algosdk/v2/client/common,
# except AlgodClient, which will be re-generated according to the specs.
# LedgerStateDelta is a second exception to this, should be revisited.
find $SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/model/* \
$SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/algod/* \
$SDK_DIR/src/main/java/com/algorand/algosdk/v2/client/indexer/* \
\! -name 'LedgerStateDelta.java' \
-delete

java -jar target/generator-*-jar-with-dependencies.jar \
Expand Down

0 comments on commit b6483ce

Please sign in to comment.