Thanks for your quick reply! However, I've reached a stumbling block. I'm not sure the SaveAllGraphics command is actually there.
I'm trying to run: java -jar %ARGOUMLJAR% -batch -command "org.argouml.uml.ui.ActionOpenProject=%INZARGO%" -command org.argouml.uml.ui.ActionSaveAllGraphics=%OUTFILE%" Where ARGOJAR is the ArgoUML installation, INZARGO is a valid .zargo project file and OUTFILE is a folder. I get the following error: UMLtoSVG maze.zargo out log4j:WARN No such property [follow] in org.apache.log4j.ConsoleAppender. Performing command org.argouml.uml.ui.ActionOpenProject( maze.zargo ) org.argouml.uml.ui.ActionSaveAllGraphics is not a command - skipping. Exiting because we are running in batch. In the exact same context, this command works fine (specifying an SVG file rather than a folder for OUTFILE) java -jar %ARGOUMLJAR% -batch -command "org.argouml.uml.ui.ActionOpenProject=%INZARGO%" -command org.argouml.ui.cmd.ActionGotoDiagram=A -command "org.argouml.uml.ui.ActionSaveGraphics=%OUTFILE%" I also cannot find any documentation on the -command switches other than the user guide you specified, which is a bit thin. I've downloaded a copy of the latest source code, but I cannot find the specific .java file that handles the org.argouml.uml.ui actions - where is the specific documentation for the actions you can take from the command line? I'm probably just missing some silly detail, but I'd greatly appreciate help figuring this out. Thomas Neustupny wrote: > Hi, > > there is also a command for saving all diagrams of the project, it's the > org.argouml.uml.ui.ActionSaveAllGraphics command. Also have a look here: > http://www.argouml-users.net/forum/viewtopic.php?f=5&t=99 > > Thomas > > -------- Original-Nachricht -------- > >> Datum: Sat, 22 Aug 2009 08:14:48 -0500 >> Von: Jake Stone <[email protected]> >> An: [email protected] >> Betreff: [argouml-users] Using Command-Line to Generate SVGs >> > > >> 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.ActionGotoDiagram=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! >> >> ------------------------------------------------------ >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2386291 >> >> To unsubscribe from this discussion, e-mail: >> [[email protected]]. >> > > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2386643 To unsubscribe from this discussion, e-mail: [[email protected]].
