add SNIPPET for documentation purpose

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1338293 13f79535-47bb-0310-9956-ffa450edef68
master
Olivier Lamy 2012-05-14 17:07:37 +00:00
parent dd9b113101
commit c31075dd21
3 changed files with 8 additions and 4 deletions

View File

@ -18,9 +18,10 @@
~ specific language governing permissions and limitations ~ specific language governing permissions and limitations
~ under the License. ~ under the License.
--> -->
<!-- START SNIPPET: ant-build -->
<project> <project>
<target name="touch"> <target name="touch">
<touch mkdirs="true" file="target/${name}"/> <touch mkdirs="true" file="target/${name}"/>
</target> </target>
</project> </project>
<!-- END SNIPPET: ant-build -->

View File

@ -18,7 +18,7 @@
~ specific language governing permissions and limitations ~ specific language governing permissions and limitations
~ under the License. ~ under the License.
--> -->
<!-- START SNIPPET: ant-mojo -->
<pluginMetadata xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd "> <pluginMetadata xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 ../../../../../../maven-plugin-tools-model/target/generated-site/xsd/plugin-metadata-1.0.0.xsd ">
<mojos> <mojos>
<mojo> <mojo>
@ -36,3 +36,4 @@
</mojo> </mojo>
</mojos> </mojos>
</pluginMetadata> </pluginMetadata>
<!-- END SNIPPET: ant-mojo -->

View File

@ -1,3 +1,4 @@
// START SNIPPET: beanshell-mojo
/** /**
* Touches a test file. * Touches a test file.
* *
@ -42,3 +43,4 @@ setName( name )
} }
return new BeanshellMojoAdapter( (Mojo) this, this.interpreter ); return new BeanshellMojoAdapter( (Mojo) this, this.interpreter );
// END SNIPPET: beanshell-mojo