Jim Otte wrote:
I did not have it on the java or default cartridges-
as it is just a simple java class (1 attribute and
operation)- I was just wanting that generated- yest I
get nothing...
I did notice that I did not have a JavaMappings.xml on
my system- but I finally found 1 in
andromda-translation-library-plugin-3.0M3.jar - so I
extracted that and used for the namespace keys for the
mappings- but still no output!
Thanks for any suggestions,
You're missing the "services" and "service-impls" outlet from java
namespace declaration below, add those and it should work. (those are
optional so AndroMDA will not complain when they aren't specified)
Jim
--- Wouter Zoons <[EMAIL PROTECTED]> wrote:
Why do you have ignore="true" on all the cartridges
(even ejb) ?
If you ignore a cartridge no code will be generated
for it
-- Wouter
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:andromda-user-
[EMAIL PROTECTED] On Behalf Of Jim Otte
Sent: Monday, March 21, 2005 4:46 PM
To: [email protected]
Subject: [Andromda-user] Andromda ant task no
output
I am a beginner with AndroMDA and have the
following
issue-
I have created a very basic UML project using
MagicDraw 9.0- 1 class with a <<Service>>
stereotype-
I have then saved the project in a zip file and
would
like to use the andromda <ant> task to generate
the
java class.
I run the target task and the console outputs
quite a
bit of information- and no exceptions- yet I never
see
the output (no java files are generated)!!
Am I missing some tag attribute- such as
<output=....>?
Here is the ant target:
<target name="codegenTest">
<andromda processAllModelPackages="false"
modelValidation="false" lastModifiedCheck="false"
<model
url="jar:file:specs/testUML_jim_3.xml.zip!/testUML_jim_3.xml"/>
<repository>
<moduleSearchPath>
<pathelement
location="${andromda.lib}"/>
<pathelement
location="${andromda.dir}/etc"/>
<pathelement location="c:/Program
Files/MagicDraw UML/profiles" />
<pathelement location="${basedir}/specs"
/>
</moduleSearchPath>
</repository>
<namespace name="java" ignore="false">
<property name="*" value="."/>
</namespace>
<namespace name="default" ignore="true">
<property name="languageMappingsUri"
value="file:${basedir}/JavaMappings.xml"/>
<property name="pages" value=""/>
<property name="wrapperMappingsUri"
value=""/>
</namespace>
<namespace name="bpm4struts" ignore="true">
</namespace>
<namespace name="hibernate" ignore="true">
</namespace>
<namespace name="meta" ignore="true">
</namespace>
<namespace name="spring" ignore="true">
</namespace>
<namespace name="webservice" ignore="true">
</namespace>
<namespace name="xmlschema" ignore="true">
</namespace>
<namespace name="ejb" ignore="true">
<property name="entities"
value="${gen.src.dir}" ignore="false"/>
<property name="entity-impls"
value="${gen.src.dir}" ignore="false"/>
<property name="session-beans"
value="${gen.src.dir}" ignore="false"/>
<property name="session-impls"
value="${gen.src.dir}" ignore="false"/>
</namespace>
</andromda>
</target>
and the console output is:
D:\caprojects\SMM\1.0>ant codegenTest
Buildfile: build.xml
codegenTest:
[andromda] INFO [AndroMDA]
[andromda] INFO [AndroMDA] A n d r o M D A -
3.0M3
[andromda] INFO [AndroMDA]
[andromda] INFO [AndroMDA] Input model -->
'jar:file:specs/testUML_jim_3.xml.z
ip!/testUML_jim_3.xml'
[andromda] INFO [AndroMDA] -- discovering
plugins --
[andromda] INFO [AndroMDA] found
translation-library
--> 'query'
[andromda] INFO [AndroMDA] found
translation-library
--> 'validation'
[andromda] INFO [AndroMDA] found cartridge -->
'bpm4struts'
[andromda] INFO [AndroMDA] found cartridge -->
'ejb'
[andromda] INFO [AndroMDA] found cartridge -->
'hibernate'
[andromda] INFO [AndroMDA] found cartridge -->
'java'
[andromda] INFO [AndroMDA] found cartridge -->
'meta'
[andromda] INFO [AndroMDA] found cartridge -->
'spring'
[andromda] INFO [AndroMDA] found cartridge -->
'webservice'
[andromda] INFO [AndroMDA] found cartridge -->
'xmlschema'
[andromda] INFO [AndroMDA] -- discovering
metafacades --
[andromda] INFO [AndroMDA] found metafacades -->
'bpm4struts'
[andromda] INFO [AndroMDA] found metafacades -->
'ejb'
[andromda] INFO [AndroMDA] found metafacades -->
'hibernate'
[andromda] INFO [AndroMDA] found metafacades -->
'meta'
[andromda] INFO [AndroMDA] found shared
metafacades
--> 'uml-1.4' - adding to
'default' namespace
[andromda] INFO [AndroMDA] found metafacades -->
'spring'
[andromda] INFO [AndroMDA] found metafacades -->
'webservice'
[andromda] INFO [AndroMDA] found metafacades -->
'xmlschema'
[andromda] INFO [AndroMDA] Referenced model -->
'jar:file:/D:/caprojects/Devel
opment/AndroMDA/3.0M3/etc/andromda-profile-3.0M3.xml.zip!/andromda-
profile-3.0M3
.xml'
[andromda] INFO [AndroMDA] Referenced model -->
'file:/C:/Program Files/MagicD
raw UML/profiles/UML_Standard_Profile.xml'
[andromda] INFO [AndroMDA] Referenced model -->
'file:/C:/Program Files/MagicD
raw UML/profiles/MagicDraw_Profile.xml'
[andromda] INFO [AndroMDA] Referenced model -->
'file:/C:/Program Files/MagicD
raw UML/profiles/Java_Profile.xml'
[andromda] INFO [AndroMDA] namespace for
'bpm4struts' cartridge is either not
defined, or has the ignore attribute set to 'true'
-->
skipping processing
[andromda] INFO [AndroMDA] namespace for 'ejb'
cartridge is either not defined
, or has the ignore attribute set to 'true' -->
skipping processing
[andromda] INFO [AndroMDA] namespace for
'hibernate'
cartridge is either not d
efined, or has the ignore attribute set to 'true'
-->
skipping processing
[andromda] INFO [AndroMDA] namespace for 'meta'
cartridge is either not define
d, or has the ignore attribute set to 'true' -->
skipping processing
[andromda] INFO [AndroMDA] namespace for
'spring'
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user