Skip to content

Commit 03d3094

Browse files
committed
Add an antrun execution that ensures that the LICENCE.txt and NOTICE.txt are included in the -javadoc.jar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@610444 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3f0598e commit 03d3094

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,36 @@
214214
<sourceDirectory>src/java</sourceDirectory>
215215
<testSourceDirectory>src/test</testSourceDirectory>
216216
<plugins>
217+
<plugin>
218+
<!--
219+
- Copy LICENSE.txt and NOTICE.txt so that they are included in file
220+
- commons-io-X.Y-javadoc.jar.
221+
- If/when commons-io starts to use maven-remote-reources-plugin this
222+
- antrun should be removed.
223+
-->
224+
<groupId>org.apache.maven.plugins</groupId>
225+
<artifactId>maven-antrun-plugin</artifactId>
226+
<version>1.1</version>
227+
<executions>
228+
<execution>
229+
<id>javadoc.resources</id>
230+
<phase>generate-sources</phase>
231+
<configuration>
232+
<tasks>
233+
<copy todir="${project.build.directory}/apidocs">
234+
<fileset dir="${basedir}">
235+
<include name="LICENSE.txt" />
236+
<include name="NOTICE.txt" />
237+
</fileset>
238+
</copy>
239+
</tasks>
240+
</configuration>
241+
<goals>
242+
<goal>run</goal>
243+
</goals>
244+
</execution>
245+
</executions>
246+
</plugin>
217247
<plugin>
218248
<groupId>org.apache.maven.plugins</groupId>
219249
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)