Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
dc067b0f
Commit
dc067b0f
authored
Oct 03, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Ant sample’s spring-boot-antlib dependency during prepare
Closes gh-6978
parent
8c1b736b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
pom.xml
pom.xml
+38
-0
No files found.
pom.xml
View file @
dc067b0f
...
...
@@ -237,6 +237,44 @@
match=
"m:build/m:pluginManagement/m:plugins/m:plugin[m:artifactId/text() = 'maven-shade-plugin']/m:dependencies/m:dependency[m:artifactId/text() = 'spring-boot-maven-plugin']/m:version/text()"
>
<xsl:value-of
select=
"/m:project/m:parent/m:version/text()"
/>
</xsl:template>
</xsl:stylesheet>
]]>
</string>
</style>
</xslt>
<move
file=
"${sourceFile}"
tofile=
"${sourceFile}.old"
/>
<move
file=
"${sourceFile}.new"
tofile=
"${sourceFile}"
/>
<delete
file=
"${sourceFile}.old"
/>
</target>
</configuration>
</execution>
<execution>
<id>
fixup-sample-ant
</id>
<phase>
verify
</phase>
<goals>
<goal>
run
</goal>
</goals>
<inherited>
false
</inherited>
<configuration>
<target>
<property
name=
"sourceFile"
value=
"spring-boot-samples/spring-boot-sample-ant/pom.xml"
/>
<xslt
in=
"${sourceFile}"
out=
"${sourceFile}.new"
force=
"true"
>
<style>
<string>
<![CDATA[
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="http://maven.apache.org/POM/4.0.0"
exclude-result-prefixes="m">
<xsl:template
match=
"node()|@*"
>
<xsl:copy>
<xsl:apply-templates
select=
"node()|@*"
/>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"m:build/m:plugins/m:plugin[m:artifactId/text() = 'maven-antrun-plugin']/m:dependencies/m:dependency[m:artifactId/text() = 'spring-boot-antlib']/m:version/text()"
>
<xsl:value-of
select=
"/m:project/m:parent/m:version/text()"
/>
</xsl:template>
</xsl:stylesheet>
]]>
</string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment