Initial revision

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl
2003-01-24 03:44:26 +00:00
parent 66e44f2734
commit 530c640d4f
821 changed files with 55754 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
target
maven.log

View File

@@ -0,0 +1,52 @@
<project default="plugin">
<goal name="plugin">
<!-- set up the directory the jar will be assembled to -->
<property name="assemblyDir" value="target/assemblyDir"/>
<mkdir dir="${assemblyDir}"/>
<!-- copy the plugin files to the assembly directory -->
<copy todir="${assemblyDir}">
<fileset dir=".">
<exclude name="**/target/**"/>
<exclude name="src/**"/>
<exclude name="maven.xml"/>
<exclude name="maven.log"/>
<exclude name="**/velocity.log"/>
<exclude name="**/.cvsignore"/>
</fileset>
</copy>
<!-- jar the files up -->
<jar jarfile="${maven.build.dir}/${maven.final.name}.jar">
<fileset dir="${assemblyDir}"/>
</jar>
<!-- copy the jar to the local repository as a maven jar -->
<copy
file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.repo.local}/maven/jars"/>
</goal>
<!-- install the plugin in the maven home directory -->
<goal name="plugin:install" prereqs="plugin"
description="Install the plugin in Maven's plugins dir">
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.home}/plugins"/>
</goal>
<!-- unzip the jar file into a plugin directory -->
<goal name="plugin:deploy" prereqs="plugin"
description="Install an unpacked version of the plugin">
<mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
<unzip src="${maven.build.dir}/${maven.final.name}.jar"
dest="${maven.home}/plugins/${maven.final.name}"/>
</goal>
</project>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:bsh="jelly:beanshell">
<goal name="plugin-script:script" description="Run a script">
<bsh:script>
Properties sysprops = System.getProperties();
System.out.println("-testsysprop = " + sysprops.get("testsysprop"));
</bsh:script>
</goal>
</project>

View File

@@ -0,0 +1,3 @@
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------

View File

@@ -0,0 +1,2 @@
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-plugin-script</id>
<!-- a short but descriptive name for the project -->
<name>A plugin using the script tag</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0-SNAPSHOT</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<!-- the top level of java packages that this project defines
e.g. if your project contains the packages
com.mycompany.accounts.reports, com.mycompany.accounts.reports
and com.mycompany.accounts.utils, the package would be
'com.mycompany.accounts' -->
<package>org.apache.maven.examples.pluginscript</package>
<!-- a short description of what the project does -->
<shortDescription>
A plugin that does it's processing in a script tag
</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/</url>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/examples/plugin-script</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/examples/plugin-script/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers />
<!-- jar files the project is dependent on -->
<dependencies>
<dependency>
<id>bsh</id>
<version>1.2-b3</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
</dependencies>
<!-- build information for the project -->
<build />
</project>