[CVS jcontainer] Renamed plugin: maven-sar -> maven-loom
mauro-yCVjj/[email protected] Wed, 24 Mar 2004 18:46:58 -0600
| Newsgroups | gmane.comp.java.jcontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>jcontainer/loom/plugins</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt>maven-loom/src/test/org/jcontainer/loom/info/<a href="#file1"><span id="added">PhoenixAttributeInterceptorTestCase.java</span></a></tt></td><td align="right" id="added">+572</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test/org/jcontainer/loom/info/PhoenixAttributeInterceptorTestCase.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>maven-sar/xdocs/<a href="#file2"><span id="removed">tips.xml</span></a></tt></td><td></td><td align="right" id="removed">-24</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/tips.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr><td><tt> /<a href="#file3"><span id="removed">goals.xml</span></a></tt></td><td></td><td align="right" id="removed">-48</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/goals.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file4"><span id="removed">properties.xml</span></a></tt></td><td></td><td align="right" id="removed">-140</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/properties.xml?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a> removed</td></tr>
<tr><td><tt> /<a href="#file5"><span id="removed">index.xml</span></a></tt></td><td></td><td align="right" id="removed">-17</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/index.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file6"><span id="removed">navigation.xml</span></a></tt></td><td></td><td align="right" id="removed">-16</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/navigation.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr><td><tt>maven-loom/src/plugin-test/src/conf/<a href="#file7"><span id="added">config.xml</span></a></tt></td><td align="right" id="added">+4</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/config.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file8"><span id="added">logging.properties</span></a></tt></td><td align="right" id="added">+22</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/logging.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file9"><span id="added">environment.xml</span></a></tt></td><td align="right" id="added">+9</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/environment.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file10"><span id="added">assembly.xml</span></a></tt></td><td align="right" id="added">+6</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/assembly.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>maven-sar/src/test/org/jcontainer/loom/info/<a href="#file11"><span id="removed">PhoenixAttributeInterceptorTestCase.java</span></a></tt></td><td></td><td align="right" id="removed">-572</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test/org/jcontainer/loom/info/PhoenixAttributeInterceptorTestCase.java?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr class="alt"><td><tt>maven-loom/<a href="#file12"><span id="added">project.xml</span></a></tt></td><td align="right" id="added">+57</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/project.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file13"><span id="added">plugin.jelly</span></a></tt></td><td align="right" id="added">+161</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/plugin.jelly?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file14"><span id="added">project.properties</span></a></tt></td><td align="right" id="added">+8</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file15"><span id="added">maven.xml</span></a></tt></td><td align="right" id="added">+36</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/maven.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file16"><span id="added">.cvsignore</span></a></tt></td><td align="right" id="added">+4</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file17"><span id="added">plugin.properties</span></a></tt></td><td align="right" id="added">+23</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/plugin.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>maven-sar/<a href="#file18"><span id="removed">maven.xml</span></a></tt></td><td></td><td align="right" id="removed">-36</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/maven.xml?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr><td><tt> /<a href="#file19"><span id="removed">project.xml</span></a></tt></td><td></td><td align="right" id="removed">-57</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/project.xml?rev=1.12&content-type=text/vnd.viewcvs-markup">1.12</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file20"><span id="removed">plugin.jelly</span></a></tt></td><td></td><td align="right" id="removed">-161</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/plugin.jelly?rev=1.15&content-type=text/vnd.viewcvs-markup">1.15</a> removed</td></tr>
<tr><td><tt> /<a href="#file21"><span id="removed">plugin.properties</span></a></tt></td><td></td><td align="right" id="removed">-23</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/plugin.properties?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file22"><span id="removed">project.properties</span></a></tt></td><td></td><td align="right" id="removed">-8</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/project.properties?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr><td><tt> /<a href="#file23"><span id="removed">.cvsignore</span></a></tt></td><td></td><td align="right" id="removed">-4</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/.cvsignore?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt>maven-sar/src/plugin-test/src/java/<a href="#file24"><span id="removed">Test.java</span></a></tt></td><td></td><td align="right" id="removed">-15</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/java/Test.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a> removed</td></tr>
<tr><td><tt>maven-sar/src/java/org/jcontainer/loom/info/<a href="#file25"><span id="removed">PhoenixAttributeInterceptor.java</span></a></tt></td><td></td><td align="right" id="removed">-243</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java/org/jcontainer/loom/info/PhoenixAttributeInterceptor.java?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr class="alt"><td><tt>maven-sar/src/plugin-test/<a href="#file26"><span id="removed">project.xml</span></a></tt></td><td></td><td align="right" id="removed">-36</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/project.xml?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a> removed</td></tr>
<tr><td><tt> /<a href="#file27"><span id="removed">maven.xml</span></a></tt></td><td></td><td align="right" id="removed">-14</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/maven.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file28"><span id="removed">project.properties</span></a></tt></td><td></td><td align="right" id="removed">-1</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a> removed</td></tr>
<tr><td><tt> /<a href="#file29"><span id="removed">.cvsignore</span></a></tt></td><td></td><td align="right" id="removed">-2</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a> removed</td></tr>
<tr class="alt"><td><tt>maven-loom/src/plugin-test/src/java/<a href="#file30"><span id="added">Test.java</span></a></tt></td><td align="right" id="added">+15</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/java/Test.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt>maven-loom/xdocs/<a href="#file31"><span id="added">index.xml</span></a></tt></td><td align="right" id="added">+16</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/index.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file32"><span id="added">properties.xml</span></a></tt></td><td align="right" id="added">+140</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/properties.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file33"><span id="added">goals.xml</span></a></tt></td><td align="right" id="added">+48</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/goals.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file34"><span id="added">navigation.xml</span></a></tt></td><td align="right" id="added">+16</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/navigation.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file35"><span id="added">tips.xml</span></a></tt></td><td align="right" id="added">+24</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/tips.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>maven-sar/src/plugin-test/src/conf/<a href="#file36"><span id="removed">assembly.xml</span></a></tt></td><td></td><td align="right" id="removed">-6</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/assembly.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr><td><tt> /<a href="#file37"><span id="removed">config.xml</span></a></tt></td><td></td><td align="right" id="removed">-4</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/config.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file38"><span id="removed">logging.properties</span></a></tt></td><td></td><td align="right" id="removed">-22</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/logging.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a> removed</td></tr>
<tr><td><tt> /<a href="#file39"><span id="removed">environment.xml</span></a></tt></td><td></td><td align="right" id="removed">-9</td><td nowrap="nowrap"><a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/environment.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a> removed</td></tr>
<tr class="alt"><td><tt>maven-loom/src/plugin-test/<a href="#file40"><span id="added">maven.xml</span></a></tt></td><td align="right" id="added">+14</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/maven.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file41"><span id="added">.cvsignore</span></a></tt></td><td align="right" id="added">+2</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt> /<a href="#file42"><span id="added">project.properties</span></a></tt></td><td align="right" id="added">+1</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td><tt> /<a href="#file43"><span id="added">project.xml</span></a></tt></td><td align="right" id="added">+36</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/project.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr class="alt"><td><tt>maven-loom/src/java/org/jcontainer/loom/info/<a href="#file44"><span id="added">PhoenixAttributeInterceptor.java</span></a></tt></td><td align="right" id="added">+243</td><td></td><td nowrap="nowrap" align="right">added <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java/org/jcontainer/loom/info/PhoenixAttributeInterceptor.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></td></tr>
<tr><td></td><td align="right" id="added">+1457</td><td align="right" id="removed">-1458</td><td></td></tr>
</table>
<small id="info">22 added + 22 removed, total 44 files</small><br />
<pre class="comment">
Renamed plugin: maven-sar -> maven-loom
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test">test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontai
ner/loom/plugins/maven-loom/src/test/org/jcontainer/loom/info">info</a><br /></span>
<div class="fileheader" id="added"><big><b>PhoenixAttributeInterceptorTestCase.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/test/org/jcontainer/loom/info/PhoenixAttributeInterceptorTestCase.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N PhoenixAttributeInterceptorTestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ PhoenixAttributeInterceptorTestCase.java 25 Mar 2004 00:46:55 -0000 1.1
@@ -0,0 +1,572 @@
</small></pre><pre class="diff" id="added">+/*
+ * Copyright (C) The JContainer Group. All rights reserved.
+ *
+ * This software is published under the terms of the JContainer
+ * Software License version 1.1, a copy of which has been included
+ * with this distribution in the LICENSE.txt file.
+ */
+package org.jcontainer.loom.info;
+
+import com.thoughtworks.qdox.model.DefaultDocletTag;
+import com.thoughtworks.qdox.model.DefaultDocletTagFactory;
+import com.thoughtworks.qdox.model.DocletTagFactory;
+import com.thoughtworks.qdox.model.JavaClass;
+import com.thoughtworks.qdox.model.JavaMethod;
+import com.thoughtworks.qdox.model.JavaSource;
+import java.util.ArrayList;
+import java.util.Properties;
+import junit.framework.TestCase;
+import org.realityforge.metaclass.model.Attribute;
+
+/**
+ * @author Peter Donald
+ * @version $Revision: 1.1 $ $Date: 2004/03/25 00:46:55 $
+ */
+public class PhoenixAttributeInterceptorTestCase
+ extends TestCase
+{
+ public void testProcessClassAttributeWithoutTransformations()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "ignored" );
+ final Attribute result =
+ interceptor.processClassAttribute(
+ new JavaClass( new JavaSource() ),
+ attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "ignored", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessClassAttributeWithPhoenixBlock()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:block" );
+ final Attribute result =
+ interceptor.processClassAttribute(
+ new JavaClass( new JavaSource() ),
+ attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "dna.component", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessClassAttributeWithPhoenixMxTopic()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ parameters.setProperty( "name", "MyTopic" );
+ final Attribute attribute = new Attribute( "phoenix:mx-topic",
+ parameters );
+ final Attribute result =
+ interceptor.processClassAttribute(
+ new JavaClass( new JavaSource() ),
+ attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.component", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(description)",
+ "MyTopic",
+ result.getParameter( "description" ) );
+ }
+
+ public void testProcessClassAttributeWithPhoenixService()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ parameters.setProperty( "name", "X" );
+ final Attribute attribute = new Attribute( "phoenix:service",
+ parameters );
+ final Attribute result =
+ interceptor.processClassAttribute(
+ new JavaClass( new JavaSource() ),
+ attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "dna.service", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ "X",
+ result.getParameter( "type" ) );
+ }
+
+ public void testProcessClassAttributeWithPhoenixMXProxy()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ parameters.setProperty( "class", "X" );
+ final Attribute attribute = new Attribute( "phoenix:mx-proxy",
+ parameters );
+ final Attribute result =
+ interceptor.processClassAttribute(
+ new JavaClass( new JavaSource() ),
+ attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.proxy", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ "X",
+ result.getParameter( "type" ) );
+ }
+
+ public void testProcessMethodAttributeWithoutTransformation()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "ignore-me" );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "ignore-me", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessMethodAttributeWithMXDescription()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-description" );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNull( "attribute", result );
+ }
+
+ public void testProcessMethodAttributeWithMXAttributeAndNoDescriptionOrComment()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.attribute", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessMethodAttributeWithMXAttributeAndDescription()
+ throws Exception
+ {
+ final String description = "A Random Thought";
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
+ final JavaMethod method = new JavaMethod();
+ final ArrayList tags = new ArrayList();
+ final DocletTagFactory factory = new DefaultDocletTagFactory();
+ tags.add(
+ factory.createDocletTag( "phoenix:mx-description", description ) );
+ method.setTags( tags );
+ final Attribute result =
+ interceptor.processMethodAttribute( method, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.attribute", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(description)",
+ description, result.getParameter( "description" ) );
+ }
+
+ public void testProcessMethodAttributeWithMXAttributeAndComment()
+ throws Exception
+ {
+ final String description = "A Random Thought";
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
+ final JavaMethod method = new JavaMethod();
+ method.setComment( description );
+ final Attribute result =
+ interceptor.processMethodAttribute( method, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.attribute", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(description)",
+ description, result.getParameter( "description" ) );
+ }
+
+ public void testProcessMethodAttributeWithMXOperationAndNoDescriptionOrComment()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-operation" );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.operation", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessMethodAttributeWithMXOperationAndDescription()
+ throws Exception
+ {
+ final String description = "A Random Thought";
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-operation" );
+ final JavaMethod field = new JavaMethod();
+ final ArrayList tags = new ArrayList();
+ tags.add(
+ new DefaultDocletTag( "phoenix:mx-description", description ) );
+ field.setTags( tags );
+ final Attribute result =
+ interceptor.processMethodAttribute( field, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.operation", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(description)",
+ description, result.getParameter( "description" ) );
+ }
+
+ public void testProcessMethodAttributeWithMXOperationAndComment()
+ throws Exception
+ {
+ final String description = "A Random Thought";
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute( "phoenix:mx-operation" );
+ final JavaMethod field = new JavaMethod();
+ field.setComment( description );
+ final Attribute result =
+ interceptor.processMethodAttribute( field, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "mx.operation", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(description)",
+ description, result.getParameter( "description" ) );
+ }
+
+ public void testProcessMethodAttributeWithPhoenixConfigurationSchema()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute attribute = new Attribute(
+ "phoenix:configuration-schema" );
+ final JavaClass javaClass = new JavaClass( new JavaSource() );
+ javaClass.setName( "com.biz.MyClass" );
+ final JavaMethod method = new JavaMethod();
+ method.setParentClass( javaClass );
+ final Attribute result =
+ interceptor.processMethodAttribute( method, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name",
+ "dna.configuration",
+ result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 0,
+ result.getParameterCount() );
+ }
+
+ public void testProcessMethodAttributeWithPhoenixConfigurationSchemaSpecifyingType()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ final String type = "BobbaFett";
+ parameters.setProperty( "type", type );
+ final Attribute attribute = new Attribute(
+ "phoenix:configuration-schema", parameters );
+ final JavaClass javaClass = new JavaClass( new JavaSource() );
+ javaClass.setName( "com.biz.MyClass" );
+ final JavaMethod method = new JavaMethod();
+ method.setParentClass( javaClass );
+ final Attribute result =
+ interceptor.processMethodAttribute( method, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name",
+ "dna.configuration",
+ result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ type, result.getParameter( "type" ) );
+ }
+
+ public void testProcessMethodAttributeWithPhoenixConfigurationSchemaSpecifyingRelaxType()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ parameters.setProperty( "type", "relax-ng" );
+ final Attribute attribute = new Attribute(
+ "phoenix:configuration-schema", parameters );
+ final JavaClass javaClass = new JavaClass( new JavaSource() );
+ javaClass.setName( "com.biz.MyClass" );
+ final JavaMethod method = new JavaMethod();
+ method.setParentClass( javaClass );
+ final Attribute result =
+ interceptor.processMethodAttribute( method, attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name",
+ "dna.configuration",
+ result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ "http://relaxng.org/ns/structure/1.0",
+ result.getParameter( "type" ) );
+ }
+
+ public void testProcessMethodAttributeWithPhoenixDependency()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ final String type = "BobbaFett";
+ parameters.setProperty( "name", type );
+ final Attribute attribute = new Attribute( "phoenix:dependency",
+ parameters );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "dna.dependency", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 1,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ type, result.getParameter( "type" ) );
+ }
+
+ public void testProcessMethodAttributeWithPhoenixDependencyWithRoleSpecified()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ final String type = "BobbaFett";
+ final String key = "myKey";
+ parameters.setProperty( "name", type );
+ parameters.setProperty( "role", key );
+ final Attribute attribute = new Attribute( "phoenix:dependency",
+ parameters );
+ final Attribute result =
+ interceptor.processMethodAttribute( new JavaMethod(), attribute );
+ assertNotNull( "attribute", result );
+ assertEquals( "attribute.name", "dna.dependency", result.getName() );
+ assertEquals( "attribute.value", null, result.getValue() );
+ assertEquals( "attribute.parameterCount",
+ 2,
+ result.getParameterCount() );
+ assertEquals( "attribute.parameter(type)",
+ type, result.getParameter( "type" ) );
+ assertEquals( "attribute.parameter(key)",
+ key, result.getParameter( "key" ) );
+ }
+
+ public void testProcessClassAttributesWithoutMXService()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute[] input = new Attribute[]{
+ new Attribute( "RandomJAttribute" )};
+ final Attribute[] attributes =
+ interceptor.processClassAttributes(
+ new JavaClass( new JavaSource() ), input );
+ assertEquals( "attributes.length", 1, attributes.length );
+ assertEquals( "attributes[0].name",
+ "RandomJAttribute",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 0,
+ attributes[ 0 ].getParameterCount() );
+ }
+
+ public void testProcessClassAttributesWithMXService()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Properties parameters = new Properties();
+ final String type = "PerformMagicService";
+ parameters.setProperty( "name", type );
+ final Attribute attribute = new Attribute( "phoenix:mx", parameters );
+ final Attribute[] input = new Attribute[]{attribute};
+ final Attribute[] attributes =
+ interceptor.processClassAttributes(
+ new JavaClass( new JavaSource() ), input );
+ assertEquals( "attributes.length", 2, attributes.length );
+ assertEquals( "attributes[0].name",
+ "dna.service",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 1,
+ attributes[ 0 ].getParameterCount() );
+ assertEquals( "attributes[0].parameter(type)",
+ type, attributes[ 0 ].getParameter( "type" ) );
+ assertEquals( "attributes[1].name",
+ "mx.interface",
+ attributes[ 1 ].getName() );
+ assertEquals( "attributes[1].value",
+ null,
+ attributes[ 1 ].getValue() );
+ assertEquals( "attributes[1].parameterCount",
+ 2,
+ attributes[ 1 ].getParameterCount() );
+ assertEquals( "attributes[1].parameter(type)",
+ type, attributes[ 1 ].getParameter( "type" ) );
+ assertEquals( "attributes[1].parameter(topic)",
+ "PerformMagicService",
+ attributes[ 1 ].getParameter( "type" ) );
+ }
+
+ public void testProcessMethodAttributesWithoutMXOperation()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute[] input = new Attribute[]{
+ new Attribute( "RandomJAttribute" )};
+ final Attribute[] attributes =
+ interceptor.processMethodAttributes( new JavaMethod(), input );
+ assertEquals( "attributes.length", 1, attributes.length );
+ assertEquals( "attributes[0].name",
+ "RandomJAttribute",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 0,
+ attributes[ 0 ].getParameterCount() );
+
+ }
+
+ public void testProcessMethodAttributesWithMXOperationWithoutParameters()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute[] input = new Attribute[]{
+ new Attribute( "mx.operation" )};
+ final Attribute[] attributes =
+ interceptor.processMethodAttributes( new JavaMethod(), input );
+ assertEquals( "attributes.length", 1, attributes.length );
+ assertEquals( "attributes[0].name",
+ "mx.operation",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 0,
+ attributes[ 0 ].getParameterCount() );
+ }
+
+ public void testProcessMethodAttributesWithMXOperationWithMalformedParameter()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute[] input =
+ new Attribute[]{new Attribute( "mx.operation" ),
+ new Attribute( "param", "var" )};
+ final Attribute[] attributes =
+ interceptor.processMethodAttributes( new JavaMethod(), input );
+ assertEquals( "attributes.length", 2, attributes.length );
+ assertEquals( "attributes[0].name",
+ "mx.operation",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 0,
+ attributes[ 0 ].getParameterCount() );
+ assertEquals( "attributes[1].name",
+ "param",
+ attributes[ 1 ].getName() );
+ assertEquals( "attributes[1].value",
+ "var",
+ attributes[ 1 ].getValue() );
+ assertEquals( "attributes[1].parameterCount",
+ 0,
+ attributes[ 1 ].getParameterCount() );
+ }
+
+ public void testProcessMethodAttributesWithMXOperationWithParameter()
+ throws Exception
+ {
+ final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
+ final Attribute[] input =
+ new Attribute[]{new Attribute( "mx.operation" ),
+ new Attribute( "param",
+ "var This is the description" )};
+ final Attribute[] attributes =
+ interceptor.processMethodAttributes( new JavaMethod(), input );
+ assertEquals( "attributes.length", 3, attributes.length );
+ assertEquals( "attributes[0].name",
+ "mx.operation",
+ attributes[ 0 ].getName() );
+ assertEquals( "attributes[0].value",
+ null,
+ attributes[ 0 ].getValue() );
+ assertEquals( "attributes[0].parameterCount",
+ 0,
+ attributes[ 0 ].getParameterCount() );
+ assertEquals( "attributes[1].name",
+ "param",
+ attributes[ 1 ].getName() );
+ assertEquals( "attributes[1].value",
+ "var This is the description",
+ attributes[ 1 ].getValue() );
+ assertEquals( "attributes[1].parameterCount",
+ 0,
+ attributes[ 1 ].getParameterCount() );
+ assertEquals( "attributes[2].name",
+ "mx.parameter",
+ attributes[ 2 ].getName() );
+ assertEquals( "attributes[2].value",
+ null,
+ attributes[ 2 ].getValue() );
+ assertEquals( "attributes[2].parameterCount",
+ 2,
+ attributes[ 2 ].getParameterCount() );
+ assertEquals( "attributes[2].parameter(name)",
+ "var",
+ attributes[ 2 ].getParameter( "name" ) );
+ assertEquals( "attributes[2].parameter(description)",
+ "This is the description",
+ attributes[ 2 ].getParameter( "description" ) );
+ }
+}
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="removed"><big><b>tips.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/tips.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N tips.xml
--- tips.xml 28 Feb 2004 19:46:52 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,24 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<document>
-
- <properties>
- <title>Maven Sar Plugin Tips</title>
- <author>Mauro Talevi</author>
- </properties>
-
- <body>
- <section name="Maven Sar Plugin Tips">
- <section name="Filtering xml files">
- <p>
- If you need to copy the [assembly|config|environment].xml files in order to replace some
- filter tokens or simply perform some custom modification to it,
- simply write a pre-goal to the
- <code>sar:sar</code> goal in which
- you perform the manipulation. Then set the
- <code>maven.sar.[assembly|config|environment]</code> property to point to your modified
- <code>[assembly|config|environment].xml</code>.
- </p>
- </section>
- </section>
- </body>
-</document>
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="removed"><big><b>goals.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/goals.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N goals.xml
--- goals.xml 28 Feb 2004 19:46:52 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,48 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="UTF-8"?>
-
-<document>
- <properties>
- <title>Maven Sar Plug-in Goals</title>
- <author>Mauro Talevi</author>
- </properties>
- <body>
- <goals>
- <goal>
- <name>sar</name>
- <description>Build a sar file</description>
- </goal>
- <goal>
- <name>sar:init</name>
- <description>Initialize the file system and define tasks</description>
- </goal>
- <goal>
- <name>sar:install</name>
- <description>Install the sar in the local repository</description>
- </goal>
- <goal>
- <name>sar:metagenerate</name>
- <description>Metagenerate xinfo files</description>
- </goal>
- <goal>
- <name>sar:sar</name>
- <description>Build a sar file</description>
- </goal>
- <goal>
- <name>sar:install</name>
- <description>Install the sar in the local repository</description>
- </goal>
- <goal>
- <name>sar:install-snapshot</name>
- <description>Install snapshot of the sar in the local repository</description>
- </goal>
- <goal>
- <name>sar:deploy</name>
- <description>Deploy the sar to the remote repository</description>
- </goal>
- <goal>
- <name>sar:deploy-snapshot</name>
- <description>Deploy snapshot of the sar to the remote repository</description>
- </goal>
- </goals>
- </body>
-</document>
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="removed"><big><b>properties.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/properties.xml?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -N properties.xml
--- properties.xml 28 Feb 2004 19:46:52 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,140 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="ISO-8859-1"?>
-<document>
-
- <properties>
- <title>Sar Properties</title>
- <author>Mauro Talevi</author>
- </properties>
-
- <body>
- <section name="Sar Settings">
- <table>
- <tr>
- <th>Property</th>
- <th>Optional?</th>
- <th>Description</th>
- </tr>
- <tr>
- <td>maven.sar.src</td>
- <td>Yes</td>
- <td>Location of sar source in source tree.
- Defaults to
- <code>${maven.src.dir}</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.assembly</td>
- <td>Yes</td>
- <td>Location of the
- <code>assembly.xml</code> file.
- Defaults to
- <code>${maven.sar.src}/conf/assembly.xml</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.config</td>
- <td>Yes</td>
- <td>Location of the
- <code>config.xml</code> file.
- Defaults to
- <code>${maven.sar.src}/conf/config.xml</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.environment</td>
- <td>Yes</td>
- <td>Location of the
- <code>environment.xml</code> file.
- Defaults to
- <code>${maven.sar.src}/conf/environment.xml</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.logging</td>
- <td>Yes</td>
- <td>Location of the logging configuration file which can be specified
- in alternative to the
- <code>logs</code> element in
- <code>environment.xml</code>
- (which takes precedence over the logging configuration).
- The recognised valid logging file names are:
- <code>log4j.properties</code>,
- <code>log4j.xml</code>,
- <code>logging.properties</code>,
- <code>excalibur-logger.xml</code>.
- Has no default.
- </td>
- </tr>
- <tr>
- <td>maven.sar.build.dir</td>
- <td>Yes</td>
- <td>Directory where the sar will be generated.
- Defaults to
- <code>${maven.build.dir}</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.lib.include</td>
- <td>Yes</td>
- <td>Build artifacts to include in sar.
- Defaults to
- <code>${pom.artifactId}*.jar</code>. Files are relative to
- <code>${maven.sar.build.dir}</code>.
- </td>
- </tr>
- <tr>
- <td>maven.sar.lib.exclude</td>
- <td>Yes</td>
- <td>Build artifacts to exclude in sar.
- Defaults to none. Files are relative to
- <code>${maven.sar.build.dir}</code>.
- </td>
- </tr>
- </table>
- </section>
- <section name="Including jars in the sar">
- <p>
- To include a dependency in the sar you need to set the
- <code>sar.bundle</code> property to
- <code>true</code>:
- </p>
-
- <source><![CDATA[
- <dependency>
- <id>jarid</id>
- <version>jarversion</version>
- <properties>
- <sar.bundle>true</sar.bundle>
- </properties>
- </dependency>
- ]]></source>
-
- </section>
- <section name="Including resources in the app">
- <p>
- To include a resource in the app you need to set the corresponding
- <code>targetPath</code>
- to
- <code>SAR-INF</code>:
- </p>
-
- <source><![CDATA[
- <build>
- <resources>
- <resource>
- <directory>${basedir}/src/conf</directory>
- <targetPath>SAR-INF</targetPath>
- <includes>
- <include>**/somedescriptor.xml</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- </resources>
- </build>
- ]]></source>
-
- </section>
- </body>
-</document>
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="removed"><big><b>index.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/index.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N index.xml
--- index.xml 28 Feb 2004 19:46:52 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<document>
-
- <properties>
- <title>Maven Sar Plugin</title>
- <author>Mauro Talevi</author>
- </properties>
-
- <body>
- <section name="Maven Sar Plugin">
- <p>
- This plug-in provides the ability to generate either a deployed app
- or an app packaged as a Sar file.
- </p>
- </section>
- </body>
-</document>
</pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="removed"><big><b>navigation.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/xdocs/navigation.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N navigation.xml
--- navigation.xml 3 Dec 2003 10:44:48 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="ISO-8859-1"?>
-<project name="Maven Sar Plugin">
-
- <title>Maven Sar Plugin</title>
-
- <body>
- <links>
- <item name="Maven" href="http://maven.apache.org/"/>
- </links>
- <menu name="Overview">
- <item name="Goals" href="/goals.html"/>
- <item name="Properties" href="/properties.html"/>
- <item name="Tips" href="/tips.html"/>
- </menu>
- </body>
-</project>
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="added"><big><b>config.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/config.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N config.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ config.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,4 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+<config>
+ <block-name/>
+</config>
</pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="added"><big><b>logging.properties</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/logging.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N logging.properties
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ logging.properties 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,22 @@
</small></pre><pre class="diff" id="added">+# comma separated list of log Handler
+handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
+
+# Default global logging level.
+.level= INFO
+
+# file handler
+java.util.logging.FileHandler.pattern = logs/jdk14.log
+java.util.logging.FileHandler.limit = 50000
+java.util.logging.FileHandler.count = 1
+
+# console handler
+java.util.logging.ConsoleHandler.level = INFO
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+############################################################
+# Facility specific properties.
+# Provides extra control for each logger.
+############################################################
+
+# Set the logger to only log SEVERE
+nejney.level = FINEST
</pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="added"><big><b>environment.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/environment.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N environment.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ environment.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,9 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+<environment>
+
+ <logs>
+ <category name="" target="default" priority="DEBUG"/>
+ <log-target name="default" location="/logs/demo.log"/>
+ </logs>
+
+</environment>
</pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="added"><big><b>assembly.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/conf/assembly.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N assembly.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ assembly.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,6 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+<!DOCTYPE assembly PUBLIC "-//LOOM/Assembly DTD Version 1.0//EN"
+ "http://loom.jcontainer.org/dtds/assembly_1_0.dtd">
+<assembly>
+ <block class="block.class" name="block-name"/>
+</assembly>
</pre></div>
<hr /><a name="file11" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test">test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
oom/plugins/maven-sar/src/test/org/jcontainer/loom/info">info</a><br /></span>
<div class="fileheader" id="removed"><big><b>PhoenixAttributeInterceptorTestCase.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/test/org/jcontainer/loom/info/PhoenixAttributeInterceptorTestCase.java?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N PhoenixAttributeInterceptorTestCase.java
--- PhoenixAttributeInterceptorTestCase.java 29 Nov 2003 13:44:31 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,572 +0,0 @@
</small></pre><pre class="diff" id="removed">-/*
- * Copyright (C) The JContainer Group. All rights reserved.
- *
- * This software is published under the terms of the JContainer
- * Software License version 1.1, a copy of which has been included
- * with this distribution in the LICENSE.txt file.
- */
-package org.jcontainer.loom.info;
-
-import com.thoughtworks.qdox.model.DefaultDocletTag;
-import com.thoughtworks.qdox.model.DefaultDocletTagFactory;
-import com.thoughtworks.qdox.model.DocletTagFactory;
-import com.thoughtworks.qdox.model.JavaClass;
-import com.thoughtworks.qdox.model.JavaMethod;
-import com.thoughtworks.qdox.model.JavaSource;
-import java.util.ArrayList;
-import java.util.Properties;
-import junit.framework.TestCase;
-import org.realityforge.metaclass.model.Attribute;
-
-/**
- * @author Peter Donald
- * @version $Revision: 1.4 $ $Date: 2003/11/29 13:44:31 $
- */
-public class PhoenixAttributeInterceptorTestCase
- extends TestCase
-{
- public void testProcessClassAttributeWithoutTransformations()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "ignored" );
- final Attribute result =
- interceptor.processClassAttribute(
- new JavaClass( new JavaSource() ),
- attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "ignored", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessClassAttributeWithPhoenixBlock()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:block" );
- final Attribute result =
- interceptor.processClassAttribute(
- new JavaClass( new JavaSource() ),
- attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "dna.component", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessClassAttributeWithPhoenixMxTopic()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- parameters.setProperty( "name", "MyTopic" );
- final Attribute attribute = new Attribute( "phoenix:mx-topic",
- parameters );
- final Attribute result =
- interceptor.processClassAttribute(
- new JavaClass( new JavaSource() ),
- attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.component", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(description)",
- "MyTopic",
- result.getParameter( "description" ) );
- }
-
- public void testProcessClassAttributeWithPhoenixService()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- parameters.setProperty( "name", "X" );
- final Attribute attribute = new Attribute( "phoenix:service",
- parameters );
- final Attribute result =
- interceptor.processClassAttribute(
- new JavaClass( new JavaSource() ),
- attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "dna.service", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- "X",
- result.getParameter( "type" ) );
- }
-
- public void testProcessClassAttributeWithPhoenixMXProxy()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- parameters.setProperty( "class", "X" );
- final Attribute attribute = new Attribute( "phoenix:mx-proxy",
- parameters );
- final Attribute result =
- interceptor.processClassAttribute(
- new JavaClass( new JavaSource() ),
- attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.proxy", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- "X",
- result.getParameter( "type" ) );
- }
-
- public void testProcessMethodAttributeWithoutTransformation()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "ignore-me" );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "ignore-me", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessMethodAttributeWithMXDescription()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-description" );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNull( "attribute", result );
- }
-
- public void testProcessMethodAttributeWithMXAttributeAndNoDescriptionOrComment()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.attribute", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessMethodAttributeWithMXAttributeAndDescription()
- throws Exception
- {
- final String description = "A Random Thought";
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
- final JavaMethod method = new JavaMethod();
- final ArrayList tags = new ArrayList();
- final DocletTagFactory factory = new DefaultDocletTagFactory();
- tags.add(
- factory.createDocletTag( "phoenix:mx-description", description ) );
- method.setTags( tags );
- final Attribute result =
- interceptor.processMethodAttribute( method, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.attribute", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(description)",
- description, result.getParameter( "description" ) );
- }
-
- public void testProcessMethodAttributeWithMXAttributeAndComment()
- throws Exception
- {
- final String description = "A Random Thought";
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-attribute" );
- final JavaMethod method = new JavaMethod();
- method.setComment( description );
- final Attribute result =
- interceptor.processMethodAttribute( method, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.attribute", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(description)",
- description, result.getParameter( "description" ) );
- }
-
- public void testProcessMethodAttributeWithMXOperationAndNoDescriptionOrComment()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-operation" );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.operation", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessMethodAttributeWithMXOperationAndDescription()
- throws Exception
- {
- final String description = "A Random Thought";
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-operation" );
- final JavaMethod field = new JavaMethod();
- final ArrayList tags = new ArrayList();
- tags.add(
- new DefaultDocletTag( "phoenix:mx-description", description ) );
- field.setTags( tags );
- final Attribute result =
- interceptor.processMethodAttribute( field, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.operation", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(description)",
- description, result.getParameter( "description" ) );
- }
-
- public void testProcessMethodAttributeWithMXOperationAndComment()
- throws Exception
- {
- final String description = "A Random Thought";
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute( "phoenix:mx-operation" );
- final JavaMethod field = new JavaMethod();
- field.setComment( description );
- final Attribute result =
- interceptor.processMethodAttribute( field, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "mx.operation", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(description)",
- description, result.getParameter( "description" ) );
- }
-
- public void testProcessMethodAttributeWithPhoenixConfigurationSchema()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute attribute = new Attribute(
- "phoenix:configuration-schema" );
- final JavaClass javaClass = new JavaClass( new JavaSource() );
- javaClass.setName( "com.biz.MyClass" );
- final JavaMethod method = new JavaMethod();
- method.setParentClass( javaClass );
- final Attribute result =
- interceptor.processMethodAttribute( method, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name",
- "dna.configuration",
- result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 0,
- result.getParameterCount() );
- }
-
- public void testProcessMethodAttributeWithPhoenixConfigurationSchemaSpecifyingType()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- final String type = "BobbaFett";
- parameters.setProperty( "type", type );
- final Attribute attribute = new Attribute(
- "phoenix:configuration-schema", parameters );
- final JavaClass javaClass = new JavaClass( new JavaSource() );
- javaClass.setName( "com.biz.MyClass" );
- final JavaMethod method = new JavaMethod();
- method.setParentClass( javaClass );
- final Attribute result =
- interceptor.processMethodAttribute( method, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name",
- "dna.configuration",
- result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- type, result.getParameter( "type" ) );
- }
-
- public void testProcessMethodAttributeWithPhoenixConfigurationSchemaSpecifyingRelaxType()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- parameters.setProperty( "type", "relax-ng" );
- final Attribute attribute = new Attribute(
- "phoenix:configuration-schema", parameters );
- final JavaClass javaClass = new JavaClass( new JavaSource() );
- javaClass.setName( "com.biz.MyClass" );
- final JavaMethod method = new JavaMethod();
- method.setParentClass( javaClass );
- final Attribute result =
- interceptor.processMethodAttribute( method, attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name",
- "dna.configuration",
- result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- "http://relaxng.org/ns/structure/1.0",
- result.getParameter( "type" ) );
- }
-
- public void testProcessMethodAttributeWithPhoenixDependency()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- final String type = "BobbaFett";
- parameters.setProperty( "name", type );
- final Attribute attribute = new Attribute( "phoenix:dependency",
- parameters );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "dna.dependency", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 1,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- type, result.getParameter( "type" ) );
- }
-
- public void testProcessMethodAttributeWithPhoenixDependencyWithRoleSpecified()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- final String type = "BobbaFett";
- final String key = "myKey";
- parameters.setProperty( "name", type );
- parameters.setProperty( "role", key );
- final Attribute attribute = new Attribute( "phoenix:dependency",
- parameters );
- final Attribute result =
- interceptor.processMethodAttribute( new JavaMethod(), attribute );
- assertNotNull( "attribute", result );
- assertEquals( "attribute.name", "dna.dependency", result.getName() );
- assertEquals( "attribute.value", null, result.getValue() );
- assertEquals( "attribute.parameterCount",
- 2,
- result.getParameterCount() );
- assertEquals( "attribute.parameter(type)",
- type, result.getParameter( "type" ) );
- assertEquals( "attribute.parameter(key)",
- key, result.getParameter( "key" ) );
- }
-
- public void testProcessClassAttributesWithoutMXService()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute[] input = new Attribute[]{
- new Attribute( "RandomJAttribute" )};
- final Attribute[] attributes =
- interceptor.processClassAttributes(
- new JavaClass( new JavaSource() ), input );
- assertEquals( "attributes.length", 1, attributes.length );
- assertEquals( "attributes[0].name",
- "RandomJAttribute",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 0,
- attributes[ 0 ].getParameterCount() );
- }
-
- public void testProcessClassAttributesWithMXService()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Properties parameters = new Properties();
- final String type = "PerformMagicService";
- parameters.setProperty( "name", type );
- final Attribute attribute = new Attribute( "phoenix:mx", parameters );
- final Attribute[] input = new Attribute[]{attribute};
- final Attribute[] attributes =
- interceptor.processClassAttributes(
- new JavaClass( new JavaSource() ), input );
- assertEquals( "attributes.length", 2, attributes.length );
- assertEquals( "attributes[0].name",
- "dna.service",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 1,
- attributes[ 0 ].getParameterCount() );
- assertEquals( "attributes[0].parameter(type)",
- type, attributes[ 0 ].getParameter( "type" ) );
- assertEquals( "attributes[1].name",
- "mx.interface",
- attributes[ 1 ].getName() );
- assertEquals( "attributes[1].value",
- null,
- attributes[ 1 ].getValue() );
- assertEquals( "attributes[1].parameterCount",
- 2,
- attributes[ 1 ].getParameterCount() );
- assertEquals( "attributes[1].parameter(type)",
- type, attributes[ 1 ].getParameter( "type" ) );
- assertEquals( "attributes[1].parameter(topic)",
- "PerformMagicService",
- attributes[ 1 ].getParameter( "type" ) );
- }
-
- public void testProcessMethodAttributesWithoutMXOperation()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute[] input = new Attribute[]{
- new Attribute( "RandomJAttribute" )};
- final Attribute[] attributes =
- interceptor.processMethodAttributes( new JavaMethod(), input );
- assertEquals( "attributes.length", 1, attributes.length );
- assertEquals( "attributes[0].name",
- "RandomJAttribute",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 0,
- attributes[ 0 ].getParameterCount() );
-
- }
-
- public void testProcessMethodAttributesWithMXOperationWithoutParameters()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute[] input = new Attribute[]{
- new Attribute( "mx.operation" )};
- final Attribute[] attributes =
- interceptor.processMethodAttributes( new JavaMethod(), input );
- assertEquals( "attributes.length", 1, attributes.length );
- assertEquals( "attributes[0].name",
- "mx.operation",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 0,
- attributes[ 0 ].getParameterCount() );
- }
-
- public void testProcessMethodAttributesWithMXOperationWithMalformedParameter()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute[] input =
- new Attribute[]{new Attribute( "mx.operation" ),
- new Attribute( "param", "var" )};
- final Attribute[] attributes =
- interceptor.processMethodAttributes( new JavaMethod(), input );
- assertEquals( "attributes.length", 2, attributes.length );
- assertEquals( "attributes[0].name",
- "mx.operation",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 0,
- attributes[ 0 ].getParameterCount() );
- assertEquals( "attributes[1].name",
- "param",
- attributes[ 1 ].getName() );
- assertEquals( "attributes[1].value",
- "var",
- attributes[ 1 ].getValue() );
- assertEquals( "attributes[1].parameterCount",
- 0,
- attributes[ 1 ].getParameterCount() );
- }
-
- public void testProcessMethodAttributesWithMXOperationWithParameter()
- throws Exception
- {
- final PhoenixAttributeInterceptor interceptor = new PhoenixAttributeInterceptor();
- final Attribute[] input =
- new Attribute[]{new Attribute( "mx.operation" ),
- new Attribute( "param",
- "var This is the description" )};
- final Attribute[] attributes =
- interceptor.processMethodAttributes( new JavaMethod(), input );
- assertEquals( "attributes.length", 3, attributes.length );
- assertEquals( "attributes[0].name",
- "mx.operation",
- attributes[ 0 ].getName() );
- assertEquals( "attributes[0].value",
- null,
- attributes[ 0 ].getValue() );
- assertEquals( "attributes[0].parameterCount",
- 0,
- attributes[ 0 ].getParameterCount() );
- assertEquals( "attributes[1].name",
- "param",
- attributes[ 1 ].getName() );
- assertEquals( "attributes[1].value",
- "var This is the description",
- attributes[ 1 ].getValue() );
- assertEquals( "attributes[1].parameterCount",
- 0,
- attributes[ 1 ].getParameterCount() );
- assertEquals( "attributes[2].name",
- "mx.parameter",
- attributes[ 2 ].getName() );
- assertEquals( "attributes[2].value",
- null,
- attributes[ 2 ].getValue() );
- assertEquals( "attributes[2].parameterCount",
- 2,
- attributes[ 2 ].getParameterCount() );
- assertEquals( "attributes[2].parameter(name)",
- "var",
- attributes[ 2 ].getParameter( "name" ) );
- assertEquals( "attributes[2].parameter(description)",
- "This is the description",
- attributes[ 2 ].getParameter( "description" ) );
- }
-}
</pre></div>
<hr /><a name="file12" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>project.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/project.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N project.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ project.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,57 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <extend>${basedir}/../project.xml</extend>
+ <id>maven-loom-plugin</id>
+ <name>Maven Loom Plugin</name>
+ <description>Maven Loom Plugin</description>
+ <shortDescription>Maven Loom Plugin</shortDescription>
+
+ <siteDirectory>/www/jcontainer.codehaus.org/loom/plugins/maven-loom</siteDirectory>
+
+ <versions>
+ <version>
+ <id>${pom.currentVersion}</id>
+ <name>${pom.currentVersion}</name>
+ <tag>HEAD</tag>
+ </version>
+ <version>
+ <id>1.0</id>
+ <name>1.0</name>
+ <tag>MAVEN_LOOM_PLUGIN_1_0-tag</tag>
+ </version>
+ </versions>
+
+ <developers>
+ <developer>
+ <name>Mauro Talevi</name>
+ <id>mauro</id>
+ </developer>
+ </developers>
+
+ <dependencies>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.5.1</version>
+ </dependency>
+ <dependency>
+ <groupId>dna</groupId>
+ <artifactId>dna-tools</artifactId>
+ <version>1.1-rc2</version>
+ </dependency>
+ <dependency>
+ <id>qdox</id>
+ <version>1.3</version>
+ </dependency>
+ <dependency>
+ <id>avalon-framework</id>
+ <version>4.1.5</version>
+ </dependency>
+ <dependency>
+ <groupId>spice</groupId>
+ <artifactId>spice-metaclass</artifactId>
+ <version>1.0-rc3-dev</version>
+ </dependency>
+ </dependencies>
+
+</project>
</pre></div>
<hr /><a name="file13" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>plugin.jelly</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/plugin.jelly?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N plugin.jelly
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ plugin.jelly 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,161 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+
+<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:artifact="artifact" xmlns:license="license" xmlns:util="jelly:util">
+
+ <j:set var="loom.sar.final.name" value="${pom.artifactId}.sar"/>
+ <j:set var="logging" value="${context.getVariable('maven.loom.logging')}"/>
+
+ <!--==================================================================-->
+ <!-- Default goal : Builds a sar file -->
+ <!--==================================================================-->
+ <goal name="loom" prereqs="loom:sar" description="Build a sar file"/>
+
+ <!--==================================================================-->
+ <!-- Setup Descriptor Tools -->
+ <!--==================================================================-->
+ <goal name="loom:init" prereqs="dna:init" description="Setup Loom Descriptor Processing Tasks">
+
+ <ant:mc_interceptorSet id="maven.loom.interceptors">
+ <ant:interceptor name="org.jcontainer.loom.info.PhoenixAttributeInterceptor">
+ <ant:classpath>
+ <ant:pathelement path="${plugin.dir}"/>
+ <!--
+ The following allows applications to resolve * imports for
+ types in the source code. If this is not included then
+ all imports must be fully specified or else they will be
+ incorrectly specified in attributes file.
+ -->
+ <!--<ant:path refid="maven.dependency.classpath"/>-->
+ </ant:classpath>
+ </ant:interceptor>
+ </ant:mc_interceptorSet>
+
+ <ant:mc_addToInterceptorSet dest="maven.metaclass.interceptors" source="maven.loom.interceptors"/>
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Metagenerate descriptor files -->
+ <!--==================================================================-->
+ <goal name="loom:metagenerate" prereqs="loom:init,metaclass:generate" description="Generate Loom Descriptor Files">
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Builds a sar file -->
+ <!--==================================================================-->
+ <goal name="loom:sar" prereqs="jar:jar" description="Build a Loom sar file">
+
+ <ant:echo message="Building sar ${loom.sar.final.name}"/>
+ <!-- Ensure maven.loom.build.dir exists -->
+ <ant:mkdir dir="${maven.loom.build.dir}"/>
+ <ant:jar destfile="${maven.loom.build.dir}/${loom.sar.final.name}">
+ <!-- Add Sar descriptor files to SAR-INF/ -->
+ <ant:zipfileset file="${maven.loom.assembly}" fullpath="SAR-INF/assembly.xml"/>
+ <ant:zipfileset file="${maven.loom.config}" fullpath="SAR-INF/config.xml"/>
+ <ant:zipfileset file="${maven.loom.environment}" fullpath="SAR-INF/environment.xml"/>
+ <j:if test="${!empty(logging)}">
+ <ant:zipfileset file="${logging}" prefix="SAR-INF/"/>
+ </j:if>
+ <!-- Add build artifacts -->
+ <ant:zipfileset dir="${maven.loom.build.dir}" prefix="SAR-INF/lib">
+ <ant:include name="${maven.loom.lib.include}"/>
+ <ant:exclude name="${maven.loom.lib.exclude}"/>
+ </ant:zipfileset>
+ <!-- Add dependency artifacts -->
+ <j:forEach var="artifact" items="${pom.artifacts}">
+ <j:set var="dependency" value="${artifact.dependency}"/>
+ <j:if test="${dependency.getProperty('sar.bundle')=='true'}">
+ <ant:zipfileset dir="${maven.repo.local}/${dependency.artifactDirectory}/jars/" prefix="SAR-INF/lib">
+ <ant:include name="${dependency.artifact}"/>
+ </ant:zipfileset>
+ </j:if>
+ </j:forEach>
+ <!-- Add resources with targetPath = 'SAR-INF' -->
+ <j:forEach var="resource" items="${pom.build.resources}">
+ <ant:patternset id="maven.loom.resources.set">
+ <j:forEach var="include" items="${resource.includes}">
+ <ant:include name="${include}"/>
+ </j:forEach>
+ <j:forEach var="exclude" items="${resource.excludes}">
+ <ant:exclude name="${exclude}"/>
+ </j:forEach>
+ </ant:patternset>
+ <j:set var="directory" value='${resource.directory}'/>
+ <j:if test="${directory == null}">
+ <j:set var="directory" value='${basedir}'/>
+ </j:if>
+ <j:set var="targetPath" value='${resource.targetPath}'/>
+ <j:if test="${targetPath == 'SAR-INF'}">
+ <ant:echo message="Adding resources from directory ${directory} to ${targetPath}..."/>
+ <ant:zipfileset dir="${directory}" prefix="${targetPath}">
+ <ant:patternset refid="maven.loom.resources.set"/>
+ </ant:zipfileset>
+ </j:if>
+ </j:forEach>
+
+ <j:set var="licenseFileName">
+ <license:fileName/>
+ </j:set>
+ <util:file name="${licenseFileName}" var="licenseFile"/>
+ <ant:metainf dir="${licenseFile.canonicalFile.parent}">
+ <ant:include name="${licenseFile.canonicalFile.name}"/>
+ </ant:metainf>
+
+ <ant:manifest>
+ <ant:attribute name="Built-By" value="${user.name}"/>
+ <ant:section name="${pom.package}">
+ <ant:attribute name="Specification-Title" value="${pom.artifactId}"/>
+ <ant:attribute name="Specification-Version" value="${pom.currentVersion}"/>
+ <ant:attribute name="Specification-Vendor" value="${pom.organization.name}"/>
+ <ant:attribute name="Implementation-Title" value="${pom.package}"/>
+ <ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
+ <ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
+ </ant:section>
+ </ant:manifest>
+ </ant:jar>
+
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Install the sar in the local repository -->
+ <!--==================================================================-->
+ <goal name="loom:install" prereqs="loom:sar" description="Install the sar in the local repository">
+
+ <artifact:install artifact="${maven.loom.build.dir}/${loom.sar.final.name}" type="sar" project="${pom}"/>
+
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Install snapshot of the sar in the local repository -->
+ <!--==================================================================-->
+ <goal name="loom:install-snapshot" prereqs="loom:sar" description="Install snapshot of the sar in the local repository">
+
+ <artifact:install-snapshot artifact="${maven.loom.build.dir}/${loom.sar.final.name}" type="sar" project="${pom}"/>
+
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Deploy the sar to the remote repository -->
+ <!--==================================================================-->
+ <goal name="loom:deploy" prereqs="sar" description="Deploy the sar to the remote repository">
+
+ <artifact:deploy artifact="${maven.loom.build.dir}/${loom.sar.final.name}" type="sar" project="${pom}"/>
+
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Deploy snapshot of the sar to the remote repository -->
+ <!--==================================================================-->
+ <goal name="loom:deploy-snapshot" prereqs="loom:sar" description="Deploy snapshot of the sar to the remote repository">
+
+ <artifact:deploy-snapshot artifact="${maven.loom.build.dir}/${loom.sar.final.name}" type="sar" project="${pom}"/>
+
+ </goal>
+
+ <!--==================================================================-->
+ <!-- Special no-op goal which can be used by other plugin which need -->
+ <!-- to get access to any of this plugin's property. This is -->
+ <!-- temporary, until we get explicit plugin dependencies. -->
+ <!--==================================================================-->
+ <goal name="loom:load"/>
+
+</project>
</pre></div>
<hr /><a name="file14" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>project.properties</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N project.properties
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ project.properties 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,8 @@
</small></pre><pre class="diff" id="added">+# -------------------------------------------------------------------
+# P R O J E C T P R O P E R T I E S
+# -------------------------------------------------------------------
+maven.repo.remote = http://ibiblio.org/maven/,http://dist.codehaus.org,http://spice.codehaus.org/maven/,http://spice.sf.net/maven/,
+maven.xdoc.date=left
+maven.xdoc.version=${pom.currentVersion}
+maven.license.licenseFile=${basedir}/../../../LICENSE.txt
+
</pre></div>
<hr /><a name="file15" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>maven.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/maven.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ maven.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,36 @@
</small></pre><pre class="diff" id="added">+<project default="main"
+ xmlns:ant="jelly:ant"
+ xmlns:deploy="deploy">
+
+ <goal name="main">
+ <attainGoal name="build"/>
+ </goal>
+
+ <goal name="build">
+ <attainGoal name="plugin"/>
+ </goal>
+
+ <goal name="install">
+ <attainGoal name="plugin:install"/>
+ <ant:copy file="${maven.build.dir}/${maven.final.name}.jar"
+ todir="${maven.repo.local}/${pom.groupId}/plugins"/>
+ <ant:delete dir="${maven.home}/plugins/${maven.final.name}.jar"/>
+ <ant:delete dir="${maven.home}/plugins/${maven.final.name}"/>
+ <ant:delete>
+ <ant:fileset dir="${maven.home}/plugins">
+ <ant:include name="${pom.artifactID}-*"/>
+ </ant:fileset>
+ </ant:delete>
+ </goal>
+
+ <goal name="deploy">
+ <attainGoal name="plugin:deploy"/>
+ <ant:property name="artifact" value="${maven.final.name}.jar"/>
+ <deploy:artifact
+ artifact="${maven.build.dir}/${artifact}"
+ type="plugins"
+ assureDirectoryCommand="mkdir -p"
+ siteCommand="cd @deployDirectory@; chmod g+w ${artifact}; chgrp ${maven.remote.group} ${artifact}"/>
+ </goal>
+
+</project>
</pre></div>
<hr /><a name="file16" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>.cvsignore</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N .cvsignore
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ .cvsignore 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,4 @@
</small></pre><pre class="diff" id="added">+target
+*.log
+*.iml
+*.ipr
</pre></div>
<hr /><a name="file17" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a><br /></span>
<div class="fileheader" id="added"><big><b>plugin.properties</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/plugin.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N plugin.properties
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ plugin.properties 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,23 @@
</small></pre><pre class="diff" id="added">+# -------------------------------------------------------------------
+# P L U G I N P R O P E R T I E S
+# -------------------------------------------------------------------
+# Maven Loom plugin
+# -------------------------------------------------------------------
+# Location of where the source is located in the source tree.
+maven.loom.src=${maven.src.dir}
+# Location of configuration files
+maven.loom.assembly=${maven.loom.src}/conf/assembly.xml
+maven.loom.config=${maven.loom.src}/conf/config.xml
+maven.loom.environment=${maven.loom.src}/conf/environment.xml
+# The optional logging file allows the specification of logging
+# outside of environment file. The recognised valid logging file names are:
+# log4j.properties, log4j.xml, logging.properties, excalibur-logger.xml
+# The environment logging takes precedence over the logging file.
+maven.loom.logging=
+# Location where the sar will be created.
+maven.loom.build.dir=${maven.build.dir}
+# Build artifacts to include/exclude in sar SAR-INF/lib
+# These are are not specified in the dependency element
+# and are found in ${maven.loom.build.dir}
+maven.loom.lib.include=${pom.artifactId}*.jar
+maven.loom.lib.exclude=
</pre></div>
<hr /><a name="file18" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>maven.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/maven.xml?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- maven.xml 28 Oct 2003 13:26:42 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,36 +0,0 @@
</small></pre><pre class="diff" id="removed">-<project default="main"
- xmlns:ant="jelly:ant"
- xmlns:deploy="deploy">
-
- <goal name="main">
- <attainGoal name="build"/>
- </goal>
-
- <goal name="build">
- <attainGoal name="plugin"/>
- </goal>
-
- <goal name="install">
- <attainGoal name="plugin:install"/>
- <ant:copy file="${maven.build.dir}/${maven.final.name}.jar"
- todir="${maven.repo.local}/${pom.groupId}/plugins"/>
- <ant:delete dir="${maven.home}/plugins/${maven.final.name}.jar"/>
- <ant:delete dir="${maven.home}/plugins/${maven.final.name}"/>
- <ant:delete>
- <ant:fileset dir="${maven.home}/plugins">
- <ant:include name="${pom.artifactID}-*"/>
- </ant:fileset>
- </ant:delete>
- </goal>
-
- <goal name="deploy">
- <attainGoal name="plugin:deploy"/>
- <ant:property name="artifact" value="${maven.final.name}.jar"/>
- <deploy:artifact
- artifact="${maven.build.dir}/${artifact}"
- type="plugins"
- assureDirectoryCommand="mkdir -p"
- siteCommand="cd @deployDirectory@; chmod g+w ${artifact}; chgrp ${maven.remote.group} ${artifact}"/>
- </goal>
-
-</project>
</pre></div>
<hr /><a name="file19" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>project.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/project.xml?rev=1.12&content-type=text/vnd.viewcvs-markup">1.12</a></small></div>
<pre class="diff"><small id="info">diff -N project.xml
--- project.xml 22 Mar 2004 22:23:22 -0000 1.12
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,57 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <extend>${basedir}/../project.xml</extend>
- <id>maven-sar-plugin</id>
- <name>Maven Sar Plugin</name>
- <description>Maven Sar Plugin</description>
- <shortDescription>Maven Sar Plugin</shortDescription>
-
- <siteDirectory>/www/jcontainer.codehaus.org/loom/plugins/maven-sar</siteDirectory>
-
- <versions>
- <version>
- <id>${pom.currentVersion}</id>
- <name>${pom.currentVersion}</name>
- <tag>HEAD</tag>
- </version>
- <version>
- <id>1.0</id>
- <name>1.0</name>
- <tag>MAVEN_SAR_PLUGIN_1_0-tag</tag>
- </version>
- </versions>
-
- <developers>
- <developer>
- <name>Mauro Talevi</name>
- <id>mauro</id>
- </developer>
- </developers>
-
- <dependencies>
- <dependency>
- <groupId>ant</groupId>
- <artifactId>ant</artifactId>
- <version>1.5.1</version>
- </dependency>
- <dependency>
- <groupId>dna</groupId>
- <artifactId>dna-tools</artifactId>
- <version>1.1-rc2</version>
- </dependency>
- <dependency>
- <id>qdox</id>
- <version>1.3</version>
- </dependency>
- <dependency>
- <id>avalon-framework</id>
- <version>4.1.5</version>
- </dependency>
- <dependency>
- <groupId>spice</groupId>
- <artifactId>spice-metaclass</artifactId>
- <version>1.0-rc3-dev</version>
- </dependency>
- </dependencies>
-
-</project>
</pre></div>
<hr /><a name="file20" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>plugin.jelly</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/plugin.jelly?rev=1.15&content-type=text/vnd.viewcvs-markup">1.15</a></small></div>
<pre class="diff"><small id="info">diff -N plugin.jelly
--- plugin.jelly 22 Mar 2004 23:02:09 -0000 1.15
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,161 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-
-<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:artifact="artifact" xmlns:license="license" xmlns:util="jelly:util">
-
- <j:set var="maven.sar.final.name" value="${pom.artifactId}.sar"/>
- <j:set var="logging" value="${context.getVariable('maven.sar.logging')}"/>
-
- <!--==================================================================-->
- <!-- Default goal : Builds a sar file -->
- <!--==================================================================-->
- <goal name="sar" prereqs="sar:sar" description="Build a sar file"/>
-
- <!--==================================================================-->
- <!-- Setup Descriptor Tools -->
- <!--==================================================================-->
- <goal name="sar:init" prereqs="dna:init" description="Setup Loom Descriptor Processing Tasks">
-
- <ant:mc_interceptorSet id="maven.loom.interceptors">
- <ant:interceptor name="org.jcontainer.loom.info.PhoenixAttributeInterceptor">
- <ant:classpath>
- <ant:pathelement path="${plugin.dir}"/>
- <!--
- The following allows applications to resolve * imports for
- types in the source code. If this is not included then
- all imports must be fully specified or else they will be
- incorrectly specified in attributes file.
- -->
- <!--<ant:path refid="maven.dependency.classpath"/>-->
- </ant:classpath>
- </ant:interceptor>
- </ant:mc_interceptorSet>
-
- <ant:mc_addToInterceptorSet dest="maven.metaclass.interceptors" source="maven.loom.interceptors"/>
- </goal>
-
- <!--==================================================================-->
- <!-- Metagenerate descriptor files -->
- <!--==================================================================-->
- <goal name="sar:metagenerate" prereqs="sar:init,metaclass:generate" description="Generate Loom Descriptor Files">
- </goal>
-
- <!--==================================================================-->
- <!-- Builds a sar file -->
- <!--==================================================================-->
- <goal name="sar:sar" prereqs="jar:jar" description="Build a sar file">
-
- <ant:echo message="Building sar ${maven.sar.final.name}"/>
- <!-- Ensure maven.sar.build.dir exists -->
- <ant:mkdir dir="${maven.sar.build.dir}"/>
- <ant:jar destfile="${maven.sar.build.dir}/${maven.sar.final.name}">
- <!-- Add Sar descriptor files to SAR-INF/ -->
- <ant:zipfileset file="${maven.sar.assembly}" fullpath="SAR-INF/assembly.xml"/>
- <ant:zipfileset file="${maven.sar.config}" fullpath="SAR-INF/config.xml"/>
- <ant:zipfileset file="${maven.sar.environment}" fullpath="SAR-INF/environment.xml"/>
- <j:if test="${!empty(logging)}">
- <ant:zipfileset file="${logging}" prefix="SAR-INF/"/>
- </j:if>
- <!-- Add build artifacts -->
- <ant:zipfileset dir="${maven.sar.build.dir}" prefix="SAR-INF/lib">
- <ant:include name="${maven.sar.lib.include}"/>
- <ant:exclude name="${maven.sar.lib.exclude}"/>
- </ant:zipfileset>
- <!-- Add dependency artifacts -->
- <j:forEach var="artifact" items="${pom.artifacts}">
- <j:set var="dependency" value="${artifact.dependency}"/>
- <j:if test="${dependency.getProperty('sar.bundle')=='true'}">
- <ant:zipfileset dir="${maven.repo.local}/${dependency.artifactDirectory}/jars/" prefix="SAR-INF/lib">
- <ant:include name="${dependency.artifact}"/>
- </ant:zipfileset>
- </j:if>
- </j:forEach>
- <!-- Add resources with targetPath = 'SAR-INF' -->
- <j:forEach var="resource" items="${pom.build.resources}">
- <ant:patternset id="maven.sar.resources.set">
- <j:forEach var="include" items="${resource.includes}">
- <ant:include name="${include}"/>
- </j:forEach>
- <j:forEach var="exclude" items="${resource.excludes}">
- <ant:exclude name="${exclude}"/>
- </j:forEach>
- </ant:patternset>
- <j:set var="directory" value='${resource.directory}'/>
- <j:if test="${directory == null}">
- <j:set var="directory" value='${basedir}'/>
- </j:if>
- <j:set var="targetPath" value='${resource.targetPath}'/>
- <j:if test="${targetPath == 'SAR-INF'}">
- <ant:echo message="Adding resources from directory ${directory} to ${targetPath}..."/>
- <ant:zipfileset dir="${directory}" prefix="${targetPath}">
- <ant:patternset refid="maven.sar.resources.set"/>
- </ant:zipfileset>
- </j:if>
- </j:forEach>
-
- <j:set var="licenseFileName">
- <license:fileName/>
- </j:set>
- <util:file name="${licenseFileName}" var="licenseFile"/>
- <ant:metainf dir="${licenseFile.canonicalFile.parent}">
- <ant:include name="${licenseFile.canonicalFile.name}"/>
- </ant:metainf>
-
- <ant:manifest>
- <ant:attribute name="Built-By" value="${user.name}"/>
- <ant:section name="${pom.package}">
- <ant:attribute name="Specification-Title" value="${pom.artifactId}"/>
- <ant:attribute name="Specification-Version" value="${pom.currentVersion}"/>
- <ant:attribute name="Specification-Vendor" value="${pom.organization.name}"/>
- <ant:attribute name="Implementation-Title" value="${pom.package}"/>
- <ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
- <ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
- </ant:section>
- </ant:manifest>
- </ant:jar>
-
- </goal>
-
- <!--==================================================================-->
- <!-- Install the sar in the local repository -->
- <!--==================================================================-->
- <goal name="sar:install" prereqs="sar:sar" description="Install the sar in the local repository">
-
- <artifact:install artifact="${maven.sar.build.dir}/${maven.sar.final.name}" type="sar" project="${pom}"/>
-
- </goal>
-
- <!--==================================================================-->
- <!-- Install snapshot of the sar in the local repository -->
- <!--==================================================================-->
- <goal name="sar:install-snapshot" prereqs="sar:sar" description="Install snapshot of the sar in the local repository">
-
- <artifact:install-snapshot artifact="${maven.sar.build.dir}/${maven.sar.final.name}" type="sar" project="${pom}"/>
-
- </goal>
-
- <!--==================================================================-->
- <!-- Deploy the sar to the remote repository -->
- <!--==================================================================-->
- <goal name="sar:deploy" prereqs="sar:sar" description="Deploy the sar to the remote repository">
-
- <artifact:deploy artifact="${maven.sar.build.dir}/${maven.sar.final.name}" type="sar" project="${pom}"/>
-
- </goal>
-
- <!--==================================================================-->
- <!-- Deploy snapshot of the sar to the remote repository -->
- <!--==================================================================-->
- <goal name="sar:deploy-snapshot" prereqs="sar:sar" description="Deploy snapshot of the sar to the remote repository">
-
- <artifact:deploy-snapshot artifact="${maven.sar.build.dir}/${maven.sar.final.name}" type="sar" project="${pom}"/>
-
- </goal>
-
- <!--==================================================================-->
- <!-- Special no-op goal which can be used by other plugin which need -->
- <!-- to get access to any of this plugin's property. This is -->
- <!-- temporary, until we get explicit plugin dependencies. -->
- <!--==================================================================-->
- <goal name="sar:load"/>
-
-</project>
</pre></div>
<hr /><a name="file21" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>plugin.properties</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/plugin.properties?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -N plugin.properties
--- plugin.properties 29 Nov 2003 07:25:01 -0000 1.5
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,23 +0,0 @@
</small></pre><pre class="diff" id="removed">-# -------------------------------------------------------------------
-# P L U G I N P R O P E R T I E S
-# -------------------------------------------------------------------
-# Loom Sar plugin
-# -------------------------------------------------------------------
-# Location of where the sar source is located in the source tree.
-maven.sar.src=${maven.src.dir}
-# Location of configuration files
-maven.sar.assembly=${maven.sar.src}/conf/assembly.xml
-maven.sar.config=${maven.sar.src}/conf/config.xml
-maven.sar.environment=${maven.sar.src}/conf/environment.xml
-# The optional logging file allows the specification of logging
-# outside of environment file. The recognised valid logging file names are:
-# log4j.properties, log4j.xml, logging.properties, excalibur-logger.xml
-# The environment logging takes precedence over the logging file.
-maven.sar.logging=
-# Location where the sar will be created.
-maven.sar.build.dir=${maven.build.dir}
-# Build artifacts to include/exclude in sar SAR-INF/lib
-# These are are not specified in the dependency element
-# and are found in ${maven.sar.build.dir}
-maven.sar.lib.include=${pom.artifactId}*.jar
-maven.sar.lib.exclude=
</pre></div>
<hr /><a name="file22" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>project.properties</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/project.properties?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N project.properties
--- project.properties 29 Nov 2003 00:57:01 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,8 +0,0 @@
</small></pre><pre class="diff" id="removed">-# -------------------------------------------------------------------
-# P R O J E C T P R O P E R T I E S
-# -------------------------------------------------------------------
-maven.repo.remote = http://ibiblio.org/maven/,http://dist.codehaus.org,http://spice.codehaus.org/maven/,http://spice.sf.net/maven/,
-maven.xdoc.date=left
-maven.xdoc.version=${pom.currentVersion}
-maven.license.licenseFile=${basedir}/../../../LICENSE.txt
-
</pre></div>
<hr /><a name="file23" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a><br /></span>
<div class="fileheader" id="removed"><big><b>.cvsignore</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/.cvsignore?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N .cvsignore
--- .cvsignore 20 Feb 2004 03:38:38 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
</small></pre><pre class="diff" id="removed">-target
-*.log
-*.iml
-*.ipr
</pre></div>
<hr /><a name="file24" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/java">java</a><br /></span>
<div class="fileheader" id="removed"><big><b>Test.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/java/Test.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Test.java
--- Test.java 2 Dec 2003 16:52:30 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
</small></pre><pre class="diff" id="removed">-/*
- * Copyright (C) The JContainer Group. All rights reserved.
- *
- * This software is published under the terms of the JContainer
- * Software License version 1.1, a copy of which has been included
- * with this distribution in the LICENSE.txt file.
- */
-
-/**
- * This is a Test class
- *
- */
-public class Test
-{
-}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file25" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/l
oom/plugins/maven-sar/src/java/org/jcontainer/loom/info">info</a><br /></span>
<div class="fileheader" id="removed"><big><b>PhoenixAttributeInterceptor.java</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/java/org/jcontainer/loom/info/PhoenixAttributeInterceptor.java?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N PhoenixAttributeInterceptor.java
--- PhoenixAttributeInterceptor.java 29 Nov 2003 13:44:31 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,243 +0,0 @@
</small></pre><pre class="diff" id="removed">-/*
- * Copyright (C) The JContainer Group. All rights reserved.
- *
- * This software is published under the terms of the JContainer
- * Software License version 1.1, a copy of which has been included
- * with this distribution in the LICENSE.txt file.
- */
-package org.jcontainer.loom.info;
-
-import com.thoughtworks.qdox.model.DocletTag;
-import com.thoughtworks.qdox.model.JavaClass;
-import com.thoughtworks.qdox.model.JavaMethod;
-import java.util.ArrayList;
-import java.util.Properties;
-import org.realityforge.metaclass.model.Attribute;
-import org.realityforge.metaclass.tools.qdox.DefaultQDoxAttributeInterceptor;
-import org.realityforge.metaclass.tools.qdox.QDoxAttributeInterceptor;
-
-/**
- * This is an Attribute interceptor that invoked during construction of
- * ClassDescriptors that will translate legacy Loom attributes into modern DNA
- * and MX attributes.
- *
- * @author Peter Donald
- * @version $Revision: 1.2 $ $Date: 2003/11/29 13:44:31 $
- */
-public class PhoenixAttributeInterceptor
- extends DefaultQDoxAttributeInterceptor
- implements QDoxAttributeInterceptor
-{
- /**
- * @see QDoxAttributeInterceptor#processClassAttribute(JavaClass,
- * Attribute)
- */
- public Attribute processClassAttribute( final JavaClass clazz,
- final Attribute attribute )
- {
- final String name = attribute.getName();
- if( name.equals( "phoenix:block" ) )
- {
- return new Attribute( "dna.component" );
- }
- else if( name.equals( "phoenix:service" ) )
- {
- final Properties parameters = new Properties();
- final String type = attribute.getParameter( "name", null );
- setParameter( parameters, "type", type );
- return new Attribute( "dna.service", parameters );
- }
- else if( name.equals( "phoenix:mx-topic" ) )
- {
- final String description = attribute.getParameter( "name", "" );
- final Properties parameters = new Properties();
- setParameter( parameters, "description", description );
- return new Attribute( "mx.component", parameters );
- }
- else if( name.equals( "phoenix:mx-proxy" ) )
- {
- final Properties parameters = new Properties();
- final String type = attribute.getParameter( "class", "" );
- setParameter( parameters, "type", type );
- return new Attribute( "mx.proxy", parameters );
- }
- else
- {
- return attribute;
- }
- }
-
- /**
- * @see QDoxAttributeInterceptor#processMethodAttribute(JavaMethod,
- * Attribute)
- */
- public Attribute processMethodAttribute( final JavaMethod method,
- final Attribute attribute )
- {
- final String name = attribute.getName();
- if( name.equals( "phoenix:configuration-schema" ) )
- {
- final String type =
- attribute.getParameter( "type", null );
- final Properties parameters = new Properties();
- if( "relax-ng".equals( type ) )
- {
- setParameter( parameters,
- "type",
- "http://relaxng.org/ns/structure/1.0" );
- }
- else
- {
- setParameter( parameters, "type", type );
- }
- return new Attribute( "dna.configuration", parameters );
- }
- else if( name.equals( "phoenix:dependency" ) )
- {
- final Properties parameters = new Properties();
- final String key = attribute.getParameter( "role", null );
- final String type = attribute.getParameter( "name", null );
- setParameter( parameters, "type", type );
- setParameter( parameters, "key", key );
- return new Attribute( "dna.dependency", parameters );
- }
- else if( name.equals( "phoenix:mx-operation" ) )
- {
- final DocletTag descriptionTag =
- method.getTagByName( "phoenix:mx-description" );
- final String description;
- if( null != descriptionTag )
- {
- description = descriptionTag.getValue();
- }
- else
- {
- description = method.getComment();
- }
- final Properties parameters = new Properties();
- setParameter( parameters, "description", description );
- return new Attribute( "mx.operation", parameters );
- }
- if( name.equals( "phoenix:mx-attribute" ) )
- {
- final DocletTag descriptionTag =
- method.getTagByName( "phoenix:mx-description" );
- final String description;
- if( null != descriptionTag )
- {
- description = descriptionTag.getValue();
- }
- else
- {
- description = method.getComment();
- }
- final Properties parameters = new Properties();
- setParameter( parameters, "description", description );
- return new Attribute( "mx.attribute", parameters );
- }
- else if( name.equals( "phoenix:mx-description" ) )
- {
- return null;
- }
- else
- {
- return attribute;
- }
- }
-
- /**
- * @see QDoxAttributeInterceptor#processClassAttributes(JavaClass,
- * Attribute[])
- */
- public Attribute[] processClassAttributes( final JavaClass clazz,
- final Attribute[] attributes )
- {
- final ArrayList result = new ArrayList();
- for( int i = 0; i < attributes.length; i++ )
- {
- final Attribute attribute = attributes[ i ];
- final String name = attribute.getName();
- if( !name.equals( "phoenix:mx" ) )
- {
- result.add( attribute );
- }
- else
- {
- final Properties parameters = new Properties();
- final String type = attribute.getParameter( "name", "" );
- setParameter( parameters, "type", type );
- result.add( new Attribute( "dna.service", parameters ) );
-
- final Properties mxParameters = new Properties();
- setParameter( mxParameters, "type", type );
- final String topic = type.substring(
- type.lastIndexOf( '.' ) + 1 );
- setParameter( mxParameters, "topic", topic );
-
- result.add( new Attribute( "mx.interface", mxParameters ) );
- }
- }
- return (Attribute[])result.toArray( new Attribute[ result.size() ] );
- }
-
- /**
- * @see QDoxAttributeInterceptor#processMethodAttributes(JavaMethod,
- * Attribute[])
- */
- public Attribute[] processMethodAttributes( final JavaMethod method,
- final Attribute[] attributes )
- {
- final ArrayList result = new ArrayList();
-
- boolean isMxOperation = false;
- for( int i = 0; i < attributes.length; i++ )
- {
- final Attribute attribute = attributes[ i ];
- if( attribute.getName().equals( "mx.operation" ) )
- {
- isMxOperation = true;
- }
- result.add( attribute );
- }
- if( isMxOperation )
- {
- for( int i = 0; i < attributes.length; i++ )
- {
- final Attribute attribute = attributes[ i ];
- if( attribute.getName().equals( "param" ) )
- {
- final String value = attribute.getValue();
- final int index = value.indexOf( " " );
- if( -1 == index )
- {
- continue;
- }
- final String name = value.substring( 0, index ).trim();
- final String description = value.substring( index + 1 );
- final Properties parameters = new Properties();
- setParameter( parameters, "name", name );
- setParameter( parameters, "description", description );
- result.add( new Attribute( "mx.parameter", parameters ) );
- }
- }
- }
- return (Attribute[])result.toArray( new Attribute[ result.size() ] );
- }
-
- /**
- * Set parameter if value not null.
- *
- * @param parameters the parameters object
- * @param key the key
- * @param value the value
- */
- private void setParameter( final Properties parameters,
- final String key,
- final String value )
- {
- if( null != value )
- {
- parameters.setProperty( key, value );
- }
- }
-}
</pre></div>
<hr /><a name="file26" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="removed"><big><b>project.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/project.xml?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a></small></div>
<pre class="diff"><small id="info">diff -N project.xml
--- project.xml 3 Dec 2003 10:44:48 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,36 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0" encoding="UTF-8"?>
-
-<project>
- <id>test-maven-sar-plugin</id>
- <currentVersion>test</currentVersion>
- <name>Test project for Maven Sar Plugin</name>
-
- <dependencies>
- <dependency>
- <groupId>loom</groupId>
- <artifactId>maven-sar-plugin</artifactId>
- <version>1.0-beta1-dev</version>
- <type>plugin</type>
- </dependency>
- <dependency>
- <id>ant</id>
- <version>1.5.1</version>
- <properties>
- <sar.bundle>true</sar.bundle>
- </properties>
- </dependency>
- </dependencies>
-
- <build>
- <sourceDirectory>${basedir}/src/java</sourceDirectory>
- <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
-
- <unitTest>
- <includes>
- <include>**/*TestCase.java</include>
- </includes>
- </unitTest>
-
- </build>
-
-</project>
</pre></div>
<hr /><a name="file27" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="removed"><big><b>maven.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/maven.xml?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- maven.xml 27 Nov 2003 01:29:09 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
</small></pre><pre class="diff" id="removed">-<project
- xmlns:ant="jelly:ant"
- xmlns:j="jelly:core"
- xmlns:u="jelly:util">
-
- <goal name="test-clean">
- <attainGoal name="clean"/>
- </goal>
-
- <goal name="test-sar-init">
- <attainGoal name="sar:init"/>
- </goal>
-
-</project>
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file28" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="removed"><big><b>project.properties</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N project.properties
--- project.properties 22 Nov 2003 16:40:31 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1 +0,0 @@
</small></pre><pre class="diff" id="removed">-maven.sar.logging=src/conf/logging.properties
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file29" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="removed"><big><b>.cvsignore</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N .cvsignore
--- .cvsignore 27 Nov 2003 10:35:09 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,2 +0,0 @@
</small></pre><pre class="diff" id="removed">-target
-*.log
</pre></div>
<hr /><a name="file30" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/java">java</a><br /></span>
<div class="fileheader" id="added"><big><b>Test.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/src/java/Test.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N Test.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Test.java 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,15 @@
</small></pre><pre class="diff" id="added">+/*
+ * Copyright (C) The JContainer Group. All rights reserved.
+ *
+ * This software is published under the terms of the JContainer
+ * Software License version 1.1, a copy of which has been included
+ * with this distribution in the LICENSE.txt file.
+ */
+
+/**
+ * This is a Test class
+ *
+ */
+public class Test
+{
+}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file31" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="added"><big><b>index.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/index.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N index.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ index.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,16 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+<document>
+
+ <properties>
+ <title>Maven Loom Plugin</title>
+ <author>Mauro Talevi</author>
+ </properties>
+
+ <body>
+ <section name="Maven Loom Plugin">
+ <p>This plug-in provides the ability to generate a Loom app packaged
+ as a Sar file, and install and deploy it.
+ </p>
+ </section>
+ </body>
+</document>
</pre></div>
<hr /><a name="file32" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="added"><big><b>properties.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/properties.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N properties.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ properties.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,140 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<document>
+
+ <properties>
+ <title>Maven Loom Properties</title>
+ <author>Mauro Talevi</author>
+ </properties>
+
+ <body>
+ <section name="Maven Loom Settings">
+ <table>
+ <tr>
+ <th>Property</th>
+ <th>Optional?</th>
+ <th>Description</th>
+ </tr>
+ <tr>
+ <td>maven.loom.src</td>
+ <td>Yes</td>
+ <td>Location of source in source tree.
+ Defaults to
+ <code>${maven.src.dir}</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.assembly</td>
+ <td>Yes</td>
+ <td>Location of the
+ <code>assembly.xml</code> file.
+ Defaults to
+ <code>${maven.loom.src}/conf/assembly.xml</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.config</td>
+ <td>Yes</td>
+ <td>Location of the
+ <code>config.xml</code> file.
+ Defaults to
+ <code>${maven.loom.src}/conf/config.xml</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.environment</td>
+ <td>Yes</td>
+ <td>Location of the
+ <code>environment.xml</code> file.
+ Defaults to
+ <code>${maven.loom.src}/conf/environment.xml</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.logging</td>
+ <td>Yes</td>
+ <td>Location of the logging configuration file which can be specified
+ in alternative to the
+ <code>logs</code> element in
+ <code>environment.xml</code>
+ (which takes precedence over the logging configuration).
+ The recognised valid logging file names are:
+ <code>log4j.properties</code>,
+ <code>log4j.xml</code>,
+ <code>logging.properties</code>,
+ <code>excalibur-logger.xml</code>.
+ Has no default.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.build.dir</td>
+ <td>Yes</td>
+ <td>Directory where the sar will be generated.
+ Defaults to
+ <code>${maven.build.dir}</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.lib.include</td>
+ <td>Yes</td>
+ <td>Build artifacts to include in sar.
+ Defaults to
+ <code>${pom.artifactId}*.jar</code>. Files are relative to
+ <code>${maven.loom.build.dir}</code>.
+ </td>
+ </tr>
+ <tr>
+ <td>maven.loom.lib.exclude</td>
+ <td>Yes</td>
+ <td>Build artifacts to exclude in sar.
+ Defaults to none. Files are relative to
+ <code>${maven.loom.build.dir}</code>.
+ </td>
+ </tr>
+ </table>
+ </section>
+ <section name="Including jars in the sar">
+ <p>
+ To include a dependency in the sar you need to set the
+ <code>sar.bundle</code> property to
+ <code>true</code>:
+ </p>
+
+ <source><![CDATA[
+ <dependency>
+ <id>jarid</id>
+ <version>jarversion</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+ ]]></source>
+
+ </section>
+ <section name="Including resources in the app">
+ <p>
+ To include a resource in the app you need to set the corresponding
+ <code>targetPath</code>
+ to
+ <code>SAR-INF</code>:
+ </p>
+
+ <source><![CDATA[
+ <build>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/conf</directory>
+ <targetPath>SAR-INF</targetPath>
+ <includes>
+ <include>**/somedescriptor.xml</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ </build>
+ ]]></source>
+
+ </section>
+ </body>
+</document>
</pre></div>
<hr /><a name="file33" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="added"><big><b>goals.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/goals.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N goals.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ goals.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,48 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="UTF-8"?>
+
+<document>
+ <properties>
+ <title>Maven Loom Plug-in Goals</title>
+ <author>Mauro Talevi</author>
+ </properties>
+ <body>
+ <goals>
+ <goal>
+ <name>loom</name>
+ <description>Defaults to loom:sar</description>
+ </goal>
+ <goal>
+ <name>loom:init</name>
+ <description>Initialize the file system and define tasks</description>
+ </goal>
+ <goal>
+ <name>loom:sar</name>
+ <description>Build a sar file</description>
+ </goal>
+ <goal>
+ <name>loom:install</name>
+ <description>Install the sar in the local repository</description>
+ </goal>
+ <goal>
+ <name>loom:metagenerate</name>
+ <description>Metagenerate xinfo files</description>
+ </goal>
+ <goal>
+ <name>loom:install</name>
+ <description>Install the sar in the local repository</description>
+ </goal>
+ <goal>
+ <name>loom:install-snapshot</name>
+ <description>Install snapshot of the sar in the local repository</description>
+ </goal>
+ <goal>
+ <name>loom:deploy</name>
+ <description>Deploy the sar to the remote repository</description>
+ </goal>
+ <goal>
+ <name>loom:deploy-snapshot</name>
+ <description>Deploy snapshot of the sar to the remote repository</description>
+ </goal>
+ </goals>
+ </body>
+</document>
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file34" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="added"><big><b>navigation.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/navigation.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N navigation.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ navigation.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,16 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project name="Maven Loom Plugin">
+
+ <title>Maven Loom Plugin</title>
+
+ <body>
+ <links>
+ <item name="Maven" href="http://maven.apache.org/"/>
+ </links>
+ <menu name="Overview">
+ <item name="Goals" href="/goals.html"/>
+ <item name="Properties" href="/properties.html"/>
+ <item name="Tips" href="/tips.html"/>
+ </menu>
+ </body>
+</project>
</pre></div>
<hr /><a name="file35" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs">xdocs</a><br /></span>
<div class="fileheader" id="added"><big><b>tips.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/xdocs/tips.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N tips.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ tips.xml 25 Mar 2004 00:46:56 -0000 1.1
@@ -0,0 +1,24 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0"?>
+<document>
+
+ <properties>
+ <title>Maven Loom Plugin Tips</title>
+ <author>Mauro Talevi</author>
+ </properties>
+
+ <body>
+ <section name="Maven Loom Plugin Tips">
+ <section name="Filtering xml files">
+ <p>
+ If you need to copy the [assembly|config|environment].xml files in order to replace some
+ filter tokens or simply perform some custom modification to it,
+ simply write a pre-goal to the
+ <code>loom:sar</code> goal in which
+ you perform the manipulation. Then set the
+ <code>maven.loom.[assembly|config|environment]</code> property to point to your modified
+ <code>[assembly|config|environment].xml</code>.
+ </p>
+ </section>
+ </section>
+ </body>
+</document>
</pre></div>
<hr /><a name="file36" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="removed"><big><b>assembly.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/assembly.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N assembly.xml
--- assembly.xml 27 Nov 2003 01:29:04 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<!DOCTYPE assembly PUBLIC "-//LOOM/Assembly DTD Version 1.0//EN"
- "http://loom.jcontainer.org/dtds/assembly_1_0.dtd">
-<assembly>
- <block class="block.class" name="block-name"/>
-</assembly>
</pre></div>
<hr /><a name="file37" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="removed"><big><b>config.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/config.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N config.xml
--- config.xml 27 Nov 2003 01:29:04 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<config>
- <block-name/>
-</config>
</pre></div>
<hr /><a name="file38" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="removed"><big><b>logging.properties</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/logging.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N logging.properties
--- logging.properties 22 Nov 2003 16:40:30 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,22 +0,0 @@
</small></pre><pre class="diff" id="removed">-# comma separated list of log Handler
-handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
-
-# Default global logging level.
-.level= INFO
-
-# file handler
-java.util.logging.FileHandler.pattern = logs/jdk14.log
-java.util.logging.FileHandler.limit = 50000
-java.util.logging.FileHandler.count = 1
-
-# console handler
-java.util.logging.ConsoleHandler.level = INFO
-java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
-
-############################################################
-# Facility specific properties.
-# Provides extra control for each logger.
-############################################################
-
-# Set the logger to only log SEVERE
-nejney.level = FINEST
</pre></div>
<hr /><a name="file39" /><div class="file">
<span class="pathname" id="removed"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar">maven-sar</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test">plugin-test</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf">conf</a><br /></span>
<div class="fileheader" id="removed"><big><b>environment.xml</b></big> <small id="info">removed after <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-sar/src/plugin-test/src/conf/environment.xml?rev=1.2&content-type=text/vnd.viewcvs-markup">1.2</a></small></div>
<pre class="diff"><small id="info">diff -N environment.xml
--- environment.xml 27 Nov 2003 01:29:04 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<environment>
-
- <logs>
- <category name="" target="default" priority="DEBUG"/>
- <log-target name="default" location="/logs/demo.log"/>
- </logs>
-
-</environment>
</pre></div>
<hr /><a name="file40" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="added"><big><b>maven.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/maven.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ maven.xml 25 Mar 2004 00:46:57 -0000 1.1
@@ -0,0 +1,14 @@
</small></pre><pre class="diff" id="added">+<project
+ xmlns:ant="jelly:ant"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util">
+
+ <goal name="test-clean">
+ <attainGoal name="clean"/>
+ </goal>
+
+ <goal name="test-loom-init">
+ <attainGoal name="loom:init"/>
+ </goal>
+
+</project>
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file41" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="added"><big><b>.cvsignore</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N .cvsignore
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ .cvsignore 25 Mar 2004 00:46:57 -0000 1.1
@@ -0,0 +1,2 @@
</small></pre><pre class="diff" id="added">+target
+*.log
</pre></div>
<hr /><a name="file42" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="added"><big><b>project.properties</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/project.properties?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N project.properties
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ project.properties 25 Mar 2004 00:46:57 -0000 1.1
@@ -0,0 +1 @@
</small></pre><pre class="diff" id="added">+maven.loom.logging=src/conf/logging.properties
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file43" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test">plugin-test</a><br /></span>
<div class="fileheader" id="added"><big><b>project.xml</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/plugin-test/project.xml?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N project.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ project.xml 25 Mar 2004 00:46:57 -0000 1.1
@@ -0,0 +1,36 @@
</small></pre><pre class="diff" id="added">+<?xml version="1.0" encoding="UTF-8"?>
+
+<project>
+ <id>test-maven-loom-plugin</id>
+ <currentVersion>test</currentVersion>
+ <name>Test project for Maven Loom Plugin</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>loom</groupId>
+ <artifactId>maven-loom-plugin</artifactId>
+ <version>1.0-beta1-dev</version>
+ <type>plugin</type>
+ </dependency>
+ <dependency>
+ <id>ant</id>
+ <version>1.5.1</version>
+ <properties>
+ <sar.bundle>true</sar.bundle>
+ </properties>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <sourceDirectory>${basedir}/src/java</sourceDirectory>
+ <unitTestSourceDirectory>${basedir}/src/test</unitTestSourceDirectory>
+
+ <unitTest>
+ <includes>
+ <include>**/*TestCase.java</include>
+ </includes>
+ </unitTest>
+
+ </build>
+
+</project>
</pre></div>
<hr /><a name="file44" /><div class="file">
<span class="pathname" id="added"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins">plugins</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom">maven-loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src">src</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java">java</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java/org">org</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java/org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java/org/jcontainer/loom">loom</a>/<a href="http://xstream.cvs.codehaus.org/jcontai
ner/loom/plugins/maven-loom/src/java/org/jcontainer/loom/info">info</a><br /></span>
<div class="fileheader" id="added"><big><b>PhoenixAttributeInterceptor.java</b></big> <small id="info">added at <a href="http://xstream.cvs.codehaus.org/jcontainer/loom/plugins/maven-loom/src/java/org/jcontainer/loom/info/PhoenixAttributeInterceptor.java?rev=1.1&content-type=text/vnd.viewcvs-markup">1.1</a></small></div>
<pre class="diff"><small id="info">diff -N PhoenixAttributeInterceptor.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ PhoenixAttributeInterceptor.java 25 Mar 2004 00:46:57 -0000 1.1
@@ -0,0 +1,243 @@
</small></pre><pre class="diff" id="added">+/*
+ * Copyright (C) The JContainer Group. All rights reserved.
+ *
+ * This software is published under the terms of the JContainer
+ * Software License version 1.1, a copy of which has been included
+ * with this distribution in the LICENSE.txt file.
+ */
+package org.jcontainer.loom.info;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaClass;
+import com.thoughtworks.qdox.model.JavaMethod;
+import java.util.ArrayList;
+import java.util.Properties;
+import org.realityforge.metaclass.model.Attribute;
+import org.realityforge.metaclass.tools.qdox.DefaultQDoxAttributeInterceptor;
+import org.realityforge.metaclass.tools.qdox.QDoxAttributeInterceptor;
+
+/**
+ * This is an Attribute interceptor that invoked during construction of
+ * ClassDescriptors that will translate legacy Loom attributes into modern DNA
+ * and MX attributes.
+ *
+ * @author Peter Donald
+ * @version $Revision: 1.1 $ $Date: 2004/03/25 00:46:57 $
+ */
+public class PhoenixAttributeInterceptor
+ extends DefaultQDoxAttributeInterceptor
+ implements QDoxAttributeInterceptor
+{
+ /**
+ * @see QDoxAttributeInterceptor#processClassAttribute(JavaClass,
+ * Attribute)
+ */
+ public Attribute processClassAttribute( final JavaClass clazz,
+ final Attribute attribute )
+ {
+ final String name = attribute.getName();
+ if( name.equals( "phoenix:block" ) )
+ {
+ return new Attribute( "dna.component" );
+ }
+ else if( name.equals( "phoenix:service" ) )
+ {
+ final Properties parameters = new Properties();
+ final String type = attribute.getParameter( "name", null );
+ setParameter( parameters, "type", type );
+ return new Attribute( "dna.service", parameters );
+ }
+ else if( name.equals( "phoenix:mx-topic" ) )
+ {
+ final String description = attribute.getParameter( "name", "" );
+ final Properties parameters = new Properties();
+ setParameter( parameters, "description", description );
+ return new Attribute( "mx.component", parameters );
+ }
+ else if( name.equals( "phoenix:mx-proxy" ) )
+ {
+ final Properties parameters = new Properties();
+ final String type = attribute.getParameter( "class", "" );
+ setParameter( parameters, "type", type );
+ return new Attribute( "mx.proxy", parameters );
+ }
+ else
+ {
+ return attribute;
+ }
+ }
+
+ /**
+ * @see QDoxAttributeInterceptor#processMethodAttribute(JavaMethod,
+ * Attribute)
+ */
+ public Attribute processMethodAttribute( final JavaMethod method,
+ final Attribute attribute )
+ {
+ final String name = attribute.getName();
+ if( name.equals( "phoenix:configuration-schema" ) )
+ {
+ final String type =
+ attribute.getParameter( "type", null );
+ final Properties parameters = new Properties();
+ if( "relax-ng".equals( type ) )
+ {
+ setParameter( parameters,
+ "type",
+ "http://relaxng.org/ns/structure/1.0" );
+ }
+ else
+ {
+ setParameter( parameters, "type", type );
+ }
+ return new Attribute( "dna.configuration", parameters );
+ }
+ else if( name.equals( "phoenix:dependency" ) )
+ {
+ final Properties parameters = new Properties();
+ final String key = attribute.getParameter( "role", null );
+ final String type = attribute.getParameter( "name", null );
+ setParameter( parameters, "type", type );
+ setParameter( parameters, "key", key );
+ return new Attribute( "dna.dependency", parameters );
+ }
+ else if( name.equals( "phoenix:mx-operation" ) )
+ {
+ final DocletTag descriptionTag =
+ method.getTagByName( "phoenix:mx-description" );
+ final String description;
+ if( null != descriptionTag )
+ {
+ description = descriptionTag.getValue();
+ }
+ else
+ {
+ description = method.getComment();
+ }
+ final Properties parameters = new Properties();
+ setParameter( parameters, "description", description );
+ return new Attribute( "mx.operation", parameters );
+ }
+ if( name.equals( "phoenix:mx-attribute" ) )
+ {
+ final DocletTag descriptionTag =
+ method.getTagByName( "phoenix:mx-description" );
+ final String description;
+ if( null != descriptionTag )
+ {
+ description = descriptionTag.getValue();
+ }
+ else
+ {
+ description = method.getComment();
+ }
+ final Properties parameters = new Properties();
+ setParameter( parameters, "description", description );
+ return new Attribute( "mx.attribute", parameters );
+ }
+ else if( name.equals( "phoenix:mx-description" ) )
+ {
+ return null;
+ }
+ else
+ {
+ return attribute;
+ }
+ }
+
+ /**
+ * @see QDoxAttributeInterceptor#processClassAttributes(JavaClass,
+ * Attribute[])
+ */
+ public Attribute[] processClassAttributes( final JavaClass clazz,
+ final Attribute[] attributes )
+ {
+ final ArrayList result = new ArrayList();
+ for( int i = 0; i < attributes.length; i++ )
+ {
+ final Attribute attribute = attributes[ i ];
+ final String name = attribute.getName();
+ if( !name.equals( "phoenix:mx" ) )
+ {
+ result.add( attribute );
+ }
+ else
+ {
+ final Properties parameters = new Properties();
+ final String type = attribute.getParameter( "name", "" );
+ setParameter( parameters, "type", type );
+ result.add( new Attribute( "dna.service", parameters ) );
+
+ final Properties mxParameters = new Properties();
+ setParameter( mxParameters, "type", type );
+ final String topic = type.substring(
+ type.lastIndexOf( '.' ) + 1 );
+ setParameter( mxParameters, "topic", topic );
+
+ result.add( new Attribute( "mx.interface", mxParameters ) );
+ }
+ }
+ return (Attribute[])result.toArray( new Attribute[ result.size() ] );
+ }
+
+ /**
+ * @see QDoxAttributeInterceptor#processMethodAttributes(JavaMethod,
+ * Attribute[])
+ */
+ public Attribute[] processMethodAttributes( final JavaMethod method,
+ final Attribute[] attributes )
+ {
+ final ArrayList result = new ArrayList();
+
+ boolean isMxOperation = false;
+ for( int i = 0; i < attributes.length; i++ )
+ {
+ final Attribute attribute = attributes[ i ];
+ if( attribute.getName().equals( "mx.operation" ) )
+ {
+ isMxOperation = true;
+ }
+ result.add( attribute );
+ }
+ if( isMxOperation )
+ {
+ for( int i = 0; i < attributes.length; i++ )
+ {
+ final Attribute attribute = attributes[ i ];
+ if( attribute.getName().equals( "param" ) )
+ {
+ final String value = attribute.getValue();
+ final int index = value.indexOf( " " );
+ if( -1 == index )
+ {
+ continue;
+ }
+ final String name = value.substring( 0, index ).trim();
+ final String description = value.substring( index + 1 );
+ final Properties parameters = new Properties();
+ setParameter( parameters, "name", name );
+ setParameter( parameters, "description", description );
+ result.add( new Attribute( "mx.parameter", parameters ) );
+ }
+ }
+ }
+ return (Attribute[])result.toArray( new Attribute[ result.size() ] );
+ }
+
+ /**
+ * Set parameter if value not null.
+ *
+ * @param parameters the parameters object
+ * @param key the key
+ * @param value the value
+ */
+ private void setParameter( final Properties parameters,
+ final String key,
+ final String value )
+ {
+ if( null != value )
+ {
+ parameters.setProperty( key, value );
+ }
+ }
+}
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.8</small></center>
</body></html>