[CVS jcontainer] Note limitations of the MetaClass tool

Peter Donald <pdonald-yCVjj/[email protected]> Mon, 22 Mar 2004 19:52:54 -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/dna/site/xdocs/metadata</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">generate.xml</a></tt></td><td align="right" id="added">+10</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></td></tr>
</table>
<pre class="comment">
Note limitations of the MetaClass tool
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://xstream.cvs.codehaus.org/jcontainer">jcontainer</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/dna">dna</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site">site</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs">xdocs</a>/<a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata">metadata</a><br /></span>
<div class="fileheader"><big><b>generate.xml</b></big> <small id="info"><a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml?rev=1.2&amp;content-type=text/vnd.viewcvs-markup">1.2</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml.diff?r1=1.2&amp;r2=1.3">-&gt;</a> <a href="http://xstream.cvs.codehaus.org/jcontainer/dna/site/xdocs/metadata/generate.xml?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">1.3</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.2 -r1.3
--- generate.xml	27 Nov 2003 03:54:39 -0000	1.2
+++ generate.xml	23 Mar 2004 01:52:54 -0000	1.3
@@ -16,7 +16,15 @@
</small></pre><pre class="diff" id="context">                 default values and types resolved. The following ant
                 snippet can be used to generate DNA metadata descriptors.
             &lt;/p&gt;
</pre><pre class="diff" id="removed">-&lt;source&gt;&lt;![CDATA[
</pre><pre class="diff" id="added">+            &lt;p&gt;
+                NOTE: There is one limitation when using the MetaClass
+                generator. The source code must have fully-qualified
+                imports. The MetaClass tool may not be able to resolve
+                names of classes if they are not fully qualified. This
+                is particularly important when specifying type fields
+                of dependency and service tags.
+            &lt;/p&gt;
+            &lt;source&gt;&lt;![CDATA[
</pre><pre class="diff" id="context"> &lt;!-- define the custom task --&gt;
 &lt;taskdef name="metaclassGen"
     classname="org.realityforge.metaclass.tools.tasks.GenerateClassDescriptorsTask"&gt;
</pre><pre class="diff"><small id="info">@@ -37,7 +45,7 @@
</small></pre><pre class="diff" id="context">         &lt;include name="**/*.java"/&gt;
     &lt;/fileset&gt;
 &lt;/metaclassGen&gt;
</pre><pre class="diff" id="removed">-]]&gt;&lt;/source&gt;
</pre><pre class="diff" id="added">+            ]]&gt;&lt;/source&gt;
</pre><pre class="diff" id="context">         &lt;/section&gt;
     &lt;/body&gt;
 &lt;/document&gt;
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.8</small></center>
</body></html>