You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2008/01/01 14:07:52 UTC
svn commit: r607836 - in /maven/shared/trunk/maven-archiver/src/site: apt/
apt/examples/ apt/examples/manifestSections.apt xdoc/examples/
Author: dennisl
Date: Tue Jan 1 05:07:51 2008
New Revision: 607836
URL: http://svn.apache.org/viewvc?rev=607836&view=rev
Log:
o Transform document from xdoc to apt.
Added:
maven/shared/trunk/maven-archiver/src/site/apt/
maven/shared/trunk/maven-archiver/src/site/apt/examples/
maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt (contents, props changed)
- copied, changed from r607827, maven/shared/trunk/maven-archiver/src/site/xdoc/examples/manifestSections.xml
Removed:
maven/shared/trunk/maven-archiver/src/site/xdoc/examples/
Copied: maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt (from r607827, maven/shared/trunk/maven-archiver/src/site/xdoc/examples/manifestSections.xml)
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt?p2=maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt&p1=maven/shared/trunk/maven-archiver/src/site/xdoc/examples/manifestSections.xml&r1=607827&r2=607836&rev=607836&view=diff
==============================================================================
--- maven/shared/trunk/maven-archiver/src/site/xdoc/examples/manifestSections.xml (original)
+++ maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt Tue Jan 1 05:07:51 2008
@@ -1,61 +1,89 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<document>
- <properties>
- <title>Manifest Sections</title>
- <author email="olamy@apache.org">Olivier Lamy</author>
- <author email="dennisl@apache.org">Dennis Lundberg</author>
- </properties>
- <body>
- <section name="Manifest Sections">
- <p>
- The <code><manifestSections></code> element provides a way to
- add custom manifest sections. It contains a list of
- <code><<a href="../index.html#class_manifestSection">manifestSection</a>></code>
- elements.
- </p>
- <p>Given this configuration:</p>
- <source>
-<![CDATA[<manifestSections>
- <manifestSection>
- <name>foo</name>
- <manifestEntries>
- <id>nice foo</id>
- </manifestEntries>
- </manifestSection>
- <manifestSection>
- <name>bar</name>
- <manifestEntries>
- <id>nice bar</id>
- </manifestEntries>
- </manifestSection>
-</manifestSections>]]>
- </source>
- <p>The following content will end up in the manifest:</p>
- <source>
+ ------
+ Manifest Sections
+ ------
+ Olivier Lamy
+ Dennis Lundberg
+ ------
+ 2008-01-01
+ ------
+
+ ~~ Licensed to the Apache Software Foundation (ASF) under one
+ ~~ or more contributor license agreements. See the NOTICE file
+ ~~ distributed with this work for additional information
+ ~~ regarding copyright ownership. The ASF licenses this file
+ ~~ to you under the Apache License, Version 2.0 (the
+ ~~ "License"); you may not use this file except in compliance
+ ~~ with the License. You may obtain a copy of the License at
+ ~~
+ ~~ http://www.apache.org/licenses/LICENSE-2.0
+ ~~
+ ~~ Unless required by applicable law or agreed to in writing,
+ ~~ software distributed under the License is distributed on an
+ ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~~ KIND, either express or implied. See the License for the
+ ~~ specific language governing permissions and limitations
+ ~~ under the License.
+
+Manifest Sections
+
+ The <<<\<manifestSections\>>>> element provides a way to add custom manifest
+ sections. It contains a list of
+ <<<\<{{{../index.html#class_manifestSection}manifestSection}}\>>>> elements.
+
+ <<Note:>> As with all the examples here, this configuration can be used in all
+ plugins that use Maven Archiver, not just maven-jar-plugin as in this example.
+
+ Given this configuration:
+
++-----+
+<project>
+ ...
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ ...
+ <configuration>
+ <archive>
+ <manifestSections>
+ <manifestSection>
+ <name>foo</name>
+ <manifestEntries>
+ <id>nice foo</id>
+ </manifestEntries>
+ </manifestSection>
+ <manifestSection>
+ <name>bar</name>
+ <manifestEntries>
+ <id>nice bar</id>
+ </manifestEntries>
+ </manifestSection>
+ </manifestSections>
+ </archive>
+ </configuration>
+ ...
+ </plugin>
+ </plugins>
+ </build>
+ ...
+</project>
++-----+
+
+ The following content will end up in the manifest:
+
+~~ TODO: Make this a full manifest!
+
++-----+
+Manifest-Version: 1.0
+Archiver-Version: Plexus Archiver
+Created-By: Apache Maven
+Built-By: ${user.name}
+Build-Jdk: ${java.version}
+
Name: foo
id: nice foo
Name: bar
id: nice bar
- </source>
- </section>
- </body>
-</document>
\ No newline at end of file
++-----+
Propchange: maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/shared/trunk/maven-archiver/src/site/apt/examples/manifestSections.apt
------------------------------------------------------------------------------
svn:keywords = Date Revision Author Id