On Thu, 2003-06-12 at 01:10, Stephen McConnell wrote:
> Daniel Krieg wrote:
>
> >I am attempting to generate the meta-data files for Merlin using the
> >meta-tools ant task o.a.a.m.t.a.MetaTask. All documentation about
> >Merlin suggests that it is looking for *.xinfo meta data files.
> >
>
> Merlin looks for meta info resources in the following order:
>
> a) serialized - from <classname>.stype
> b) xml using <classname>.xtype
> c) xml using <classname>.xinfo
>
> Information generated by the mata info task is created as either
> serialized or XML depending on the policy set when invoking the task.
>
> >Furthermore a component does not seem to a recognized type unless the
> >meta-data file is in fact an xinfo file. However, the MetaTask outputs
> >the meta-data file as xtype files. I have copied the source below.
> >
> >Am I doing something wrong or is this something that needs patched?
> >
> > /**
> > * Determine the file for the [EMAIL PROTECTED] Task}.
> > *
> > * @param classname the fully qualified name of file to generate
> > * @return the file for info
> > * @throws IOException if unable to determine base file
> > */
> > private File getOutputFileForClass( final String classname )
> > throws IOException
> > {
> > String filename =
> > classname.replace( '.', File.separatorChar );
> >
> > if( SER_TYPE == m_format )
> > {
> > filename += ".stype";
> > }
> > else
> > {
> > filename += ".xtype";
> > }
> > return new File( m_destDir, filename ).getCanonicalFile();
> > }
> >
> >
>
> The above code is only relative to the generation side of things. We
> don;t generate to xinfo because that would overrite Phoenix xinfo
> descriptors, but during deployment we read stype first, if unavaiulable,
> then Merlin reads xinfo - then Merling reads the content and determines
> format based on the root element (either <type> or the legacy <blockinfo>).
>
> The more relevant class (concerning reading semantics is the TypeBuilder
> class in the meta package.
>
> Cheers, Steve.
I looked at the TypeBuilder implementations and how they work, however,
when I tried to run my block.xml from CLI (where my JAR file is the
repository and engine classpath accesses the resource -- with *.xtype
rather than *.xinfo in the JAR) the block failed to deploy.
Now, I very well may have been doing something wrong in the block.xml,
but this problem is what prompted my initial email.
--
Daniel Krieg <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]