-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build script to include post processing for the cxf codegen p…
…lugin
- Loading branch information
1 parent
9eb615f
commit 4805014
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
JAR_NAME=$1 | ||
|
||
UNZIP_DIR="target/unzipped" | ||
mkdir -p $UNZIP_DIR | ||
jar -xf $JAR_NAME -C $UNZIP_DIR | ||
|
||
# Modify the specific file | ||
FILE_TO_MODIFY="$UNZIP_DIR/trdm/returntableservice/ReturnTable.java" # This holds the hard coded circleci values from codegen | ||
ORIG_PATH="file:/home/circleci/project/src/main/resources/ReturnTableV7.wsdl" # This is the hard coded circleci value from codegen | ||
NEW_PATH="classpath:ReturnTableV7.wsdl" # Replacing it with classpath | ||
sed -i "s|$ORIG_PATH|$NEW_PATH|g" $FILE_TO_MODIFY # Update the values within the file. (There are 3) | ||
|
||
# Re-zip into a JAR | ||
jar -cf $JAR_NAME -C $UNZIP_DIR . |