Author: dennisl Date: Wed Jan 9 08:37:20 2008 New Revision: 610444 URL: http://svn.apache.org/viewvc?rev=610444&view=rev Log: Add an antrun execution that ensures that the LICENCE.txt and NOTICE.txt are included in the -javadoc.jar.
Modified: commons/proper/io/trunk/pom.xml Modified: commons/proper/io/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/pom.xml?rev=610444&r1=610443&r2=610444&view=diff ============================================================================== --- commons/proper/io/trunk/pom.xml (original) +++ commons/proper/io/trunk/pom.xml Wed Jan 9 08:37:20 2008 @@ -215,6 +215,36 @@ <testSourceDirectory>src/test</testSourceDirectory> <plugins> <plugin> + <!-- + - Copy LICENSE.txt and NOTICE.txt so that they are included in file + - commons-io-X.Y-javadoc.jar. + - If/when commons-io starts to use maven-remote-reources-plugin this + - antrun should be removed. + --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <id>javadoc.resources</id> + <phase>generate-sources</phase> + <configuration> + <tasks> + <copy todir="${project.build.directory}/apidocs"> + <fileset dir="${basedir}"> + <include name="LICENSE.txt" /> + <include name="NOTICE.txt" /> + </fileset> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration>