PR: MPDIST-15

Submitted by: Fabrizio Giustina
New maven.dist.src.include property


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@368477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl committed 2006-01-12 21:32:21 +00:00
1 parent 8fa698d01d
commit dd22ab9f22
7 files changed
+27 -2

No files matched your search

+5
View File
@@ -92,6 +92,8 @@
+-------------------------------------------------------+
</ant:echo>
<util:tokenize var="includelist" delim=",">${maven.dist.src.include}</util:tokenize>
<ant:copy todir="${maven.dist.src.assembly.dir}">
<ant:fileset dir=".">
<ant:include name="README.txt"/>
@@ -100,6 +102,9 @@
<ant:include name="project.properties"/>
<ant:include name="maven.xml"/>
<ant:include name="project.xml"/>
<j:forEach items="${includelist}" var="includeitem">
<ant:include name="${includeitem}" />
</j:forEach>
</ant:fileset>
</ant:copy>
+1
View File
@@ -0,0 +1 @@
custom file included in source distribution build
+7 -1
View File
@@ -19,7 +19,7 @@
xmlns:util="jelly:util"
xmlns:j="jelly:core">
<goal name="testPlugin" prereqs="test-dist">
<goal name="testPlugin" prereqs="test-dist,test-maven-dist-src-include">
</goal>
<goal name="test-dist">
@@ -29,4 +29,10 @@
<assert:assertFileExists file="${maven.dist.dir}/${pom.artifactId}-${pom.currentVersion}${file}"/>
</j:forEach>
</goal>
<goal name="test-maven-dist-src-include">
<attainGoal name="dist:prepare-src-filesystem"/>
<assert:assertFileExists file="${maven.dist.src.assembly.dir}/custom.txt"/>
</goal>
</project>
+1
View File
@@ -0,0 +1 @@
maven.dist.src.include=custom.txt,doesntexists.txt
+6
View File
@@ -55,4 +55,10 @@
<build>
<sourceDirectory>src/main</sourceDirectory>
</build>
<!-- avoid running all reports during test -->
<reports>
<report>maven-license-plugin</report>
</reports>
</project>
+1
View File
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="in SVN">
<action dev="ltheussl" type="update" issue="MPDIST-15" due-to="Fabrizio Giustina">New <code>maven.dist.src.include</code> property.</action>
<action dev="aheritier" type="add" issue="MPDIST-27,MPDIST-28" due-to="Phil Steitz">Allow to configure to which files should use CRLF/LF line endings in archives.</action>
<action dev="ltheussl" type="fix" issue="MPDIST-24"><code>dist:prepare-src-filesystem</code> doesn't recognize <code>maven.ant.generatebuild.file</code>.</action>
<action dev="aheritier" type="update" issue="MAVEN-1712">Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :
+6 -1
View File
@@ -51,7 +51,12 @@
<td>maven.dist.src.assembly.dir</td>
<td>yes - default is ${maven.dist.assembly.dir}/src/${maven.final.name}</td>
<td>The directory where the sources are copied to so that it can be archived</td>
</tr>
</tr>
<tr>
<td>maven.dist.src.include</td>
<td>yes</td>
<td>Comma delimited list of additional files which should be included in the source distribution</td>
</tr>
<tr>
<td>maven.dist.dir</td>
<td>yes - default is ${maven.build.dir}/distributions</td>