-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have ANT script to bump ladybug referenced in FF locally (#104)
* Have ANT script to bump ladybug referenced in FF locally * Fix typo * Rename to build.xml --------- Co-authored-by: Martijn Dirkse <martijn@integrationpartners.nl>
- Loading branch information
Showing
2 changed files
with
38 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,23 @@ | ||
<project name="syncPomVersions" | ||
basedir="../../../.."> | ||
<target name="bump-ladybug-in-ff" depends="ladybug-backend-takes-frontend,ff-takes-ladybug-backend" /> | ||
<!-- It was tried to do this with xmltask. That had two drawbacks: | ||
1. It changes something with surrounding spaces and tabs, causing every line to be changed according to git diff. | ||
2. This requires the xmltask.jar task to be present, and we have to take care of its license | ||
These drawbacks explain why xmltask is not used here. | ||
--> | ||
<target name="ladybug-backend-takes-frontend"> | ||
<xmlproperty file="ladybug-frontend/pom.xml" prefix="ladybug.frontend" /> | ||
<xmlproperty file="ladybug/pom.xml" prefix="ladybug.backend" /> | ||
<replace file="ladybug/pom.xml" | ||
token="<frontend.version>${ladybug.backend.project.properties.frontend.version}</frontend.version>" | ||
value="<frontend.version>${ladybug.frontend.project.properties.revision}</frontend.version>" /> | ||
</target> | ||
<target name="ff-takes-ladybug-backend"> | ||
<xmlproperty file="ladybug/pom.xml" prefix="ladybug.backend" /> | ||
<xmlproperty file="frankframework/ladybug/pom.xml" prefix="ff.ladybug" /> | ||
<replace file="frankframework/ladybug/pom.xml" | ||
token="<ladybug.version>${ff.ladybug.project.properties.ladybug.version}</ladybug.version>" | ||
value="<ladybug.version>${ladybug.backend.project.properties.revision}</ladybug.version>" /> | ||
</target> | ||
</project> |