You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Walid \"jo\" Gedeon" <wg...@gmail.com> on 2008/11/28 02:19:57 UTC
Manifest report?
Hello all,
Anyone knows of a 'manifest report' or plugin? Which basically shows the
contents of the Manifest.mf of an artifact in a somewhat formatted way...
Thanks!
w
PS: I'm currently using antrun for that, the outcome is okay but not well
integrated with the rest of the site :-|
<plugin>
<!--
The following ant task will check if a Manifest is
available, and copy it to the site location
wrapping it with html for browsing, and appending
".html" to the filename
-->
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<taskdef name="if"
classname="ise.antelope.tasks.IfTask" />
<if>
<bool>
<available
file="${project.build.outputDirectory}/META-INF/MANIFEST.MF" />
</bool>
<echo level="info">Creating Manifest
html. . .</echo>
<concat
destfile="${project.reporting.outputDirectory}/MANIFEST.MF.html">
<header filtering="no"
trimleading="yes"><pre></header>
<fileset
file="${project.build.outputDirectory}/META-INF/MANIFEST.MF" />
<footer filtering="no"
trimleading="yes"></pre></footer>
</concat>
<else>
<echo level="info">Skipping Manifest
processing for ${project.artifactId} (not found)</echo>
</else>
</if>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>