diff --git a/rar/.cvsignore b/rar/.cvsignore new file mode 100644 index 00000000..f7c90c3b --- /dev/null +++ b/rar/.cvsignore @@ -0,0 +1,6 @@ +target +maven.log +velocity.log +build.properties +.classpath +.project diff --git a/rar/plugin.jelly b/rar/plugin.jelly new file mode 100644 index 00000000..3659b8f5 --- /dev/null +++ b/rar/plugin.jelly @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Building rar ${maven.final.name} with ra.xml "${maven.rar.raxml}" + + + + + + + + + + + + trying to include ${maven.build.dir}/${maven.final.name}.jar + + + + + + + + + + + + + + Bundling: ${dep.type} - ${dep.id} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rar/plugin.properties b/rar/plugin.properties new file mode 100644 index 00000000..2d13e33d --- /dev/null +++ b/rar/plugin.properties @@ -0,0 +1,31 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed 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. +# ------------------------------------------------------------------- + +# ------------------------------------------------------------------- +# P L U G I N P R O P E R T I E S +# ------------------------------------------------------------------- +# rar plugin. +# ------------------------------------------------------------------- + +# Location of additional sources to include in the rar file +maven.rar.src=${maven.src.dir}/rar + +# Location of xml configs and manifest files +maven.rar.descriptordir=${maven.rar.src}/META-INF +maven.rar.raxml=${maven.rar.descriptordir}/ra.xml +maven.rar.manifest=${maven.rar.descriptordir}/MANIFEST.MF +maven.rar.displayname=${pom.id} +maven.rar.resources=${maven.build.dir}/rar \ No newline at end of file diff --git a/rar/project.properties b/rar/project.properties new file mode 100644 index 00000000..d66f96c3 --- /dev/null +++ b/rar/project.properties @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed 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. +# ------------------------------------------------------------------- + +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- diff --git a/rar/project.xml b/rar/project.xml new file mode 100644 index 00000000..390a2844 --- /dev/null +++ b/rar/project.xml @@ -0,0 +1,62 @@ + + + + + + ../plugin-parent/project.xml + 3 + maven-rar-plugin + Maven RAR Plugin + 1.0-SNAPSHOT + Rar Plugin for Maven + Rar Plugin for Maven + http://maven.apache.org/reference/plugins/rar/ + + + /www/maven.apache.org/reference/plugins/rar/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/rar/ + scm:cvs:ext:${maven.username}@cvs.apache.org:/home/cvs:maven-plugins/rar/ + http://cvs.apache.org/viewcvs/maven-plugins/rar/ + + + + David Jencks + djencks + djencks@apache.org + CDN + Java Developer + + + dIon Gillard + dion + dion@apache.org + ASF + Java Developer + + + + + commons-jelly + commons-jelly-tags-util + 20030211.141939 + http://jakarta.apache.org/commons/jelly/tags/util/ + + + diff --git a/rar/src/plugin-test/.cvsignore b/rar/src/plugin-test/.cvsignore new file mode 100644 index 00000000..5d1977ce --- /dev/null +++ b/rar/src/plugin-test/.cvsignore @@ -0,0 +1,2 @@ +target +*.log diff --git a/rar/src/plugin-test/LICENSE.txt b/rar/src/plugin-test/LICENSE.txt new file mode 100644 index 00000000..96b285ba --- /dev/null +++ b/rar/src/plugin-test/LICENSE.txt @@ -0,0 +1 @@ +The FOO license, version -2 \ No newline at end of file diff --git a/rar/src/plugin-test/maven.xml b/rar/src/plugin-test/maven.xml new file mode 100644 index 00000000..b33fa3b9 --- /dev/null +++ b/rar/src/plugin-test/maven.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rar/src/plugin-test/project.properties b/rar/src/plugin-test/project.properties new file mode 100644 index 00000000..df83552f --- /dev/null +++ b/rar/src/plugin-test/project.properties @@ -0,0 +1,20 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed 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. +# ------------------------------------------------------------------- + +maven.deployable.component=${maven.final.name}.rar +# note the override below is needed, as the ear plugin redefines the licenseFile in +# it's own project.properties, and running plugin:test would otherwise fail +#maven.license.licenseFile=${basedir}/LICENSE.txt \ No newline at end of file diff --git a/rar/src/plugin-test/project.xml b/rar/src/plugin-test/project.xml new file mode 100644 index 00000000..bfc2f085 --- /dev/null +++ b/rar/src/plugin-test/project.xml @@ -0,0 +1,70 @@ + + + + + + 3 + Test project for Maven Rar Plugin + test-maven-rar-plugin + 1.0-SNAPSHOT + + foo + http://www.foo.net + + 2004 + org.fooserver + test for rar plugin + test for rar plugin + + http://bugzilla + www.fooserver.org + + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven + http://cvs.apache.org/viewcvs/maven/ + + + + + + David Jencks + djencks + djencks at apache.org + none + Java Developer + + + + + commons-logging + commons-logging + 1.0.3 + http://jakarta.apache.org/commons/logging.html + + true + + + + + noone@nowhere + src/java + src/test + + diff --git a/rar/src/plugin-test/src/java/org/fooserver/NonManagedConnectionFactory.java b/rar/src/plugin-test/src/java/org/fooserver/NonManagedConnectionFactory.java new file mode 100644 index 00000000..96ba4a4b --- /dev/null +++ b/rar/src/plugin-test/src/java/org/fooserver/NonManagedConnectionFactory.java @@ -0,0 +1,27 @@ +package org.fooserver; + +/* ==================================================================== + * Copyright 2001-2004 The Apache Software Foundation. + * + * Licensed 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. + * ==================================================================== + */ + +/** + * + * + * @version $Revision: 1.1 $ $Date: 2004/06/17 02:51:53 $ + * + */ +public class NonManagedConnectionFactory { +} diff --git a/rar/src/plugin-test/src/rar/META-INF/fooserver-ra.xml b/rar/src/plugin-test/src/rar/META-INF/fooserver-ra.xml new file mode 100644 index 00000000..e69de29b diff --git a/rar/src/plugin-test/src/rar/META-INF/ra.xml b/rar/src/plugin-test/src/rar/META-INF/ra.xml new file mode 100644 index 00000000..e69de29b diff --git a/rar/xdocs/goals.xml b/rar/xdocs/goals.xml new file mode 100644 index 00000000..c1b0c3d2 --- /dev/null +++ b/rar/xdocs/goals.xml @@ -0,0 +1,44 @@ + + + + + Maven RAR Plugin Goals + + + + + rar + Build a rar file + + + rar:deploy + Deploys the rar to the remote repository + + + rar:deploy-snapshot + Deploys the snapshot version of the rar to remote repository + + + rar:init + Initialise filesystem and other resources for a rar + + + rar:install + Install the rar in the local repository + + + rar:install-snapshot + Install the snapshot version of the rar in the local repository + + + rar:load + + + + + rar:rar + Build a rar file + + + + \ No newline at end of file diff --git a/rar/xdocs/index.xml b/rar/xdocs/index.xml new file mode 100644 index 00000000..b133a1d7 --- /dev/null +++ b/rar/xdocs/index.xml @@ -0,0 +1,43 @@ + + + + + + + Maven Rar Plug-in + David Jencks + + + +
+

+ This plug-in provides basic facilities for constructing rar files. It is heavily copied from the ear plugin. +

+

+ For more information on the functionality provided by this plugin, + please see the Goals document. +

+

+ For more information on how to customise the functionality provided + by this plugin, please see the properties + document. +

+
+ +
diff --git a/rar/xdocs/navigation.xml b/rar/xdocs/navigation.xml new file mode 100644 index 00000000..e2710983 --- /dev/null +++ b/rar/xdocs/navigation.xml @@ -0,0 +1,17 @@ + + + + Maven RAR Plugin + + + + + + + + + + + + + \ No newline at end of file diff --git a/rar/xdocs/properties.xml b/rar/xdocs/properties.xml new file mode 100644 index 00000000..4ea4eb6c --- /dev/null +++ b/rar/xdocs/properties.xml @@ -0,0 +1,66 @@ + + + + + Maven RAR Plugin Properties + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyOptional?Description
maven.rar.manifestYes +

Default value is + ${maven.rar.descriptordir}/MANIFEST.MF.

+
maven.rar.displaynameYes +

Default value is + ${pom.id}.

+
maven.rar.raxmlYes +

Default value is + ${maven.rar.descriptordir}/ra.xml.

+
maven.rar.resourcesYes +

Default value is + ${maven.build.dir}/rar.

+
maven.rar.descriptordirYes +

Default value is + ${maven.rar.src}/META-INF.

+
maven.rar.srcYes +

Default value is + ${maven.src.dir}/rar.

+
+
+ +
\ No newline at end of file