- Prefix basedir on copied ant build file
- Only create ant build file if the project has source - Only copy maven.src.dir if it exists git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
e91e5c55f6
commit
8b15fec7a1
1 file changed
+14
-9
Vendored
+14
-9
@@ -4,7 +4,8 @@
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns:deploy="deploy">
|
||||
xmlns:deploy="deploy"
|
||||
xmlns:util="jelly:util">
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- D I S T R I B U T I O N S -->
|
||||
@@ -84,20 +85,24 @@
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${maven.dist.build.xml.avail}">
|
||||
<ant:copy todir="${maven.dist.src.assembly.dir}" file="build.xml"/>
|
||||
<ant:copy todir="${maven.dist.src.assembly.dir}" file="${basedir}/build.xml"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<attainGoal name="ant:generate-build"/>
|
||||
<ant:move
|
||||
file="${basedir}/build.xml"
|
||||
tofile="${maven.dist.src.assembly.dir}/build.xml"/>
|
||||
<j:if test="${sourcesPresent == 'true'}">
|
||||
<attainGoal name="ant:generate-build"/>
|
||||
<ant:move
|
||||
file="${basedir}/build.xml"
|
||||
tofile="${maven.dist.src.assembly.dir}/build.xml"/>
|
||||
</j:if>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
|
||||
<!-- Copy Source -->
|
||||
<ant:copy todir="${maven.dist.src.assembly.dir}/src">
|
||||
<ant:fileset dir="${maven.src.dir}" />
|
||||
</ant:copy>
|
||||
<util:available file="${maven.src.dir}">
|
||||
<ant:copy todir="${maven.dist.src.assembly.dir}/src">
|
||||
<ant:fileset dir="${maven.src.dir}" />
|
||||
</ant:copy>
|
||||
</util:available>
|
||||
</goal>
|
||||
|
||||
<goal name="dist"
|
||||
|
||||
Reference in new issue
Block a user