----- Original Message ----- 
From: "Lofi Dewanto" <[EMAIL PROTECTED]>
To: "Chad Brandon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 20, 2004 12:43 PM
Subject: Re: Building Cartridge in 3.x


> Hi Chad,
>
> After playing a while... I encounter following errors:
>
> 1. Error with non-absolut path name? I cannot get something like
> file:${mapping.java.dir} to work...
>
>   [andromda] 18:12:12,281 ERROR [XmlObjectFactory] Error performing
> XmlObjectFactoryException.getObject, XML resource could not be loaded
> --> 'file:../../..//andromda/mappings/JavaMappings.xml'
>   [andromda] java.io.FileNotFoundException:
> ...\..\..\andromda\mappings\JavaMappings.xml (Das System kann den
> angegebenen Pfad nicht finden)
>   [andromda] at java.io.FileInputStream.open(Native Method)
>   [andromda] at java.io.FileInputStream.<init>(FileInputStream.java:106)
>
> I can only put an absolut path name on it...
> This happens general for the "namespace property".
>
> <namespace name="default" ignore="false">
>    <property name="languageMappingsUri"
>       value="file:${mapping.java.dir}/JavaMappings.xml" />
> </namespace>
>
> IMO, it is important to have the Ant task work for a non-absolut
> path name, something like ../../../ ;-) Or am I missing something?


You can use relative path names (I agree it would be bad if this wasn't the
case).

>
> 2. I cannot find the mapping files in the distribution directory.
> Maybe it is good to just copy all the mapping stuffs to the
> distribution? Without those XML files I cannot put the mapping files
> in my Ant task, correct?

-- Yeah currently the mapping files directory are created when your run
andromda's ant tool....if you run that thing,you'll  get a sample with a
setup for an AndoMDA project with ant (and it will contain the mapping
files).  Try running it and you'll see.  It may be good to include them in
the distribution in another place, good idea, we'll think about that.


>
> 3. I could compile the model! But the result is a bit wyrd...
> Instead of only getting 3 files (generated files) like:
> - metafacade-impls.properties
> - HibernateFinderMethodFacade.java
> - HibernateFinderMethodFacadeLogic.java
> + one Impl file,
>
> I'm getting those files also from the MetafacadeModel... like
> ..../metafacades/uml/ActionFacade.java

-- Yeah you'll need to specify that you want to not process the files from
the UMLMetafacadeModel packages, If you take a look at the ant task docs
again, you'll see you can specify whether or not you should process
some packages and not others: http://team.andromda.org/docs/anttask.html.
>From the example:
<!-- This example package will not be processed -->
        <modelPackage name="my.package.foo" shouldProcess="false"/>

So you'll need to add to your task something like above to keep those
UMLMetafacadeModel classes from being generated.


> ....
> etc. a lot of them...
>
> Any ideas?
>
> Thanks a lot!
> -- 
> ---------------------------------------------------
> Blasius Lofi Dewanto
> ---------------------------------------------------
> OpenUSS - Open University Support System
> http://openuss.sourceforge.net
> ---------------------------------------------------
> E-Mail   : [EMAIL PROTECTED]
> ICQ      : 39343280
> ---------------------------------------------------
>
> Chad Brandon schrieb:
>  > Ok at least your model is being read this time :).  Your other error
> I think
>  > is due to the fact that you don't have a languageMappingsUri property
>  > specified.  The warning message is misleading since you do have a
"meta"
>  > namespace defined (I'll fix that).  Anyway add a "default" namespace in
>  > addition to the "meta" one you have below, like the example in this ant
>  > task: http://www.andromda.org/docs/anttask.html.
>  >
>  > Chad
>
>



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to