Daniel Krieg wrote:
On Thu, 2003-06-12 at 01:10, Stephen McConnell wrote:
Daniel Krieg wrote:
Merlin looks for meta info resources in the following order: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.
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 theThe 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>).
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 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.
This tutorial demonstrates the creation of meta-info tags and subsequent deployment of a container using the component types declared with the meta.
$ cd merlin/merlin-platform/tutorials/meta $ maven clean $ maven
The maven run will build and deploy the resulting component model. During deployment you should see the following log messages.
[INFO ] (primary): ready [INFO ] (secondary): logging established [INFO ] (secondary.system): primary service resolved
Steve.
--
Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net
Sent via James running under Merlin as an NT service. http://avalon.apache.org/sandbox/merlin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
