Re: [argouml-dev] Exporting to .xmi from command line

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.db.axion.devel
Message-ID <20110125091930.202000__10495.1155758046$1295947185$gmane$org@gmx.net>
Hi Mattew,

yes you were right. Here are my two last commits that extend the batch mode functionality, you can make a similar patch:
http://argouml.markmail.org/message/r45ydr5klmnrhu6p?q=doCommand+list:org%2Etigris%2Eargouml%2Ecommits&page=1
http://argouml.markmail.org/message/wdjfkr4sjbzmaggh?q=doCommand+list:org%2Etigris%2Eargouml%2Ecommits&page=1

Regards,
Thomas

-------- Original-Nachricht --------
> Datum: Mon, 24 Jan 2011 19:12:51 +0100
> Von: Thomas Neustupny <[email protected]>
> An: [email protected]
> Betreff: Re: [argouml-dev] Exporting to .xmi from command line

> Hi Mattew,
> 
> yes you need to implement that interface and the doCommand method. I don't
> recall if this is sufficient. Create an issue and attach a patch if you
> like. I'll get back to you when I found what I did the last time I've
> extended the command line capabilities.
> 
> Thomas
> 
> -------- Original-Nachricht --------
> > Datum: Mon, 17 Jan 2011 18:03:48 +0100
> > Von: Mattew Pouzzi <[email protected]>
> > An: [email protected]
> > Betreff: [argouml-dev] Exporting to .xmi from command line
> 
> > Hi everybody!
> > This is my first message so I introduce myself: I'm Mattew, I'm from
> Italy
> > and I'm a junior java programmer.
> > 
> > I'm new to ArgoUML, and I'm trying to automatically generate an XMI file
> > from .java files using ArgoUML from command line.
> > 
> > These are the operations that I would do with the ArgoUML gui and that I
> > have to do using command line:
> > 1) import .java files from a directory (reverse engineering from source
> to
> > UML diagrams): File -> Import sources 
> > 2) go to "untitledModel_classes" diagram: View -> Go to diagram
> > 3) export .xmi file: File -> Export .xmi
> > 
> > 
> > With command line I'm able to make step 1 and 2 (it only works without
> the
> > -batch command), but not 3.
> > I'm using this command:
> > java -jar argouml.jar 
> > -command
> > "org.argouml.uml.ui.ActionImportFromSources=Java:/home/me/workspace/src"
> -command
> > "org.argouml.ui.cmd.ActionGotoDiagram=untitledModel_classes" 
> > 
> > 
> > Unfortunately "ActionExportXMI" doesen't implements CommandLineInterface
> > so I cannot run it from command line.
> > I would like to implement this function but I'm not a skilled java
> > programmer. I would like to know if the only thing I have to do is to
> implement
> > the doCommand method in ActionExportXMI class or if there is something
> else
> > to do in order to get this works.
> > Can anyone give me some advise please?
> > Sorry for my english and thank you, Mat
> > 
> > ------------------------------------------------------
> >
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2698748
> > 
> > To unsubscribe from this discussion, e-mail:
> > [[email protected]].
> > To be allowed to post to the list contact the mailing list moderator,
> > email: [[email protected]]
> 
> -- 
> Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> 
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2700162
> 
> To unsubscribe from this discussion, e-mail:
> [[email protected]].
> To be allowed to post to the list contact the mailing list moderator,
> email: [[email protected]]

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2700323

To unsubscribe from this discussion, e-mail: [[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.