ok, with a little help from Chad I managed to get it working. The way to go if 
you need use ant is: 



1) download the latest distribution ( 
http://team.andromda.org/maven/andromda/distributions ) and unzip it

2) go to the and directory and execute the build.xml file (by invoking ant ...) 
- and make sure you read the readme file and do what it says



this will generate you a sample project structure similar to the one 'maven 
andromdapp::generate' would do, except that the build scripts are ant based, 
not maven.



3) invoke 'ant mda' and code will be generate.



 I've got an error from one of the cartdriges (struts or ejb, I don't remember) 
but I think that's due to the fact that I was using a night build. Anways, I 
was only interested in using the java cartdrige and that worked, so I didn't 
really care about it.



That's about it, after that, it just works. Because I'm not interested at all 
in the struts / persistence / etc code generation - all I want is generate java 
code from my uml model - I made the mda module from the generated application 
independent. To do so I merged the build.properties files from the mda module 
and from the app root, and removed all properties not concerning the java 
cartdridge. I created a lib directory in which I copied the jar files from the 
DISTRIBUTION/ant/lib directory. In order to keep it working I had to adjust the 
value of the moduleSearchLocations tag in conf/andromda.xml



As a feature request I'd say it would be helpful to have a feature to also 
generate a simple code generation project that would only use the java 
cartdridge, along with the j2ee project generation. I think it would be more 
simple for beginers to understand the basic concepts. Also, I think I'm not the 
only one that only needs the java cartdrige. For me and the others in the same 
situation, the j2ee project is too verbose and a little bit confusing, in the 
begining. 



Hope this will help you get started with ant. 



Regards,

Emil.
--
Emil Kirschner
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3469#3469
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to