Login | Register
My pages Projects Community openCollabNet

Discussions > users > [argouml-users] Using Command-Line to Generate SVGs

argouml
Discussion topic

Back to topic list

[argouml-users] Using Command-Line to Generate SVGs

Author Jake Stone <jake dot the dot stone at gmail dot com>
Full name Jake Stone <jake dot the dot stone at gmail dot com>
Date 2009-08-22 06:14:44 PDT
Message Hello! I am running an SVN repository over Apache on Windows, and have
several users who use ArgoUML for their design needs. I have an entire
repository set aside for their UML where they only commit .zargo files.
I would like to create a commit script that takes changed files and
generates SVG vector images to a separate folder, overwriting any SVG
already there. This would make it easy to host up-to-date diagrams of
their UML work!

I can handle assembling the list of changed files; but I've never used
ArgoUML before. There's an excellent command-line example in the
documentation that generates a PNG image for a single diagram:

java -jar argouml.jar -batch -command
"org.argouml.uml.ui.​ActionOpenProject=c:​\Documents and
Settings\Michiel\My Documents\test.zargo" -command
org.argouml.ui.cmd.A​ctionGotoDiagram=A -command
"org.argouml.uml.ui.​ActionSaveGraphics=c​:\Documents and
Settings\Michiel\My Documents\test.PNG"

However, I don't know what diagram(s) my users put in their projects,
and presumably you can place many such diagrams in a single zargo
project. So essentially I need to create:

GenerateSVGs.bat (or other language) %1 %2
%1 = input .zargo file
%2 = output folder to place SVG file(s) in

At the moment, I have Java/Perl/PHP support on my server, so I wouldn't
be straight-jacketed into batch files, though if I really need another
scripting language I could probably install it. Does anybody have any
bright ideas?

Thanks in advance for your help!
Attachments

« Previous message in topic | 1 of 14 | Next message in topic »

Messages

Show all messages in topic

[argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-22 06:14:44 PDT
     Re: [argouml-users] Using Command-Line to Generate SVGs thn Thomas Neustupny 2009-08-23 12:23:39 PDT
         Re: [argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-23 23:25:02 PDT
         Re: [argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-24 00:14:12 PDT
             Re: [argouml-users] Using Command-Line to Generate SVGs mvw Michiel van der Wulp 2009-08-24 01:15:35 PDT
                 Re: [argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-24 01:37:42 PDT
                     Re: [argouml-users] Using Command-Line to Generate SVGs phidias Mark Fortner 2009-08-24 08:23:38 PDT
                         Re: [argouml-users] Using Command-Line to Generate SVGs thn Thomas Neustupny 2009-08-24 11:18:25 PDT
                             Re: [argouml-users] Using Command-Line to Generate SVGs phidias Mark Fortner 2009-08-24 11:23:20 PDT
                                 Re: [argouml-users] Using Command-Line to Generate SVGs thn Thomas Neustupny 2009-08-24 11:34:05 PDT
                     Re: [argouml-users] Using Command-Line to Generate SVGs thn Thomas Neustupny 2009-08-24 11:23:30 PDT
                         Re: [argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-24 17:40:30 PDT
                             Re: [argouml-users] Using Command-Line to Generate SVGs thn Thomas Neustupny 2009-08-25 01:01:41 PDT
                                 Re: [argouml-users] Using Command-Line to Generate SVGs Jake Stone <jake dot the dot stone at gmail dot com> Jake Stone <jake dot the dot stone at gmail dot com> 2009-08-28 00:08:19 PDT
Messages per page: