Thanks to everyone for their help. I am following the building instructions and will contact the developers mailing list if I have any further problems.
Thomas Neustupny wrote: > Hi Jake, > > yes you need to do a checkout of the svn main trunk sources, patch the > release 0.28.1 sources and build the application on your own. Documentation > is in our developer wiki: http://argouml.tigris.org/wiki/Building_from_source > > Have a look, and if you have further questions, could you send them to the > developer mailing list? > > Regards, > Thomas > > -------- Original-Nachricht -------- > >> Datum: Mon, 24 Aug 2009 19:40:38 -0500 >> Von: Jake Stone <[email protected]> >> An: [email protected] >> Betreff: Re: [argouml-users] Using Command-Line to Generate SVGs >> > > >> Hello again! >> >> Yes, I think that's probably a better plan - from a standard >> installation, could I patch the .JAR file somehow? Or do I have to do a >> checkout of an old release source code, apply a patch, and compile? I'm >> not too experienced compiling my own software, so some general pointers >> to documentation or advice would be helpful :) >> >> Thanks! >> >> Thomas Neustupny wrote: >> >>> Hi Jake, >>> >>> the functionality is in the main trunk, which is the work towards the >>> >> 0.29.1 release. It's absolutely non-stable, but you can try it. You could >> also patch your local 0.28.1 sources if you do not want to work witch svn >> head. The changes are local to the classes that are referenced in the command >> parameter, IIRC. >> >>> Thomas >>> >>> -------- Original-Nachricht -------- >>> >>> >>>> Datum: Mon, 24 Aug 2009 03:37:47 -0500 >>>> Von: Jake Stone <[email protected]> >>>> An: [email protected] >>>> Betreff: Re: [argouml-users] Using Command-Line to Generate SVGs >>>> >>>> >>> >>> >>>> Ah! Excellent! So in future releases Thomas' change will be rolled out? >>>> I've done an SVN checkout of the trunk/www/argo-uml-0.28.1 folder, >>>> >> which >> >>>> I assume has this change included: could I build from this source and >>>> have the needed feature working? >>>> Thanks for your help! >>>> >>>> >>>> Michiel van der Wulp wrote: >>>> >>>> >>>>> Hi Jake, >>>>> >>>>> Thomas added this functionality in April, just after the V0.28 release >>>>> in March. >>>>> >>>>> See >>>>> >>>>> >>>>> >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1519239 >> >>>> >>>> >>>>> This feature did not make the newer V0.28.1 release, since that was a >>>>> bug-fix only release. >>>>> >>>>> Regards, >>>>> Michiel >>>>> >>>>> >>>>> >>>>> >>>>> Jake Stone wrote: >>>>> >>>>> >>>>>> Sorry for the double-email, but I think I found the problem. In >>>>>> \org\argouml\uml\ui\ActionSaveGrapics.java >>>>>> there is a >>>>>> public boolean doCommand(String argument) >>>>>> function that allows execution of the SaveGraphics action from the >>>>>> command line. There is no corresponding function in >>>>>> \org\argouml\uml\ui\ActionSaveAllGrapics.java >>>>>> So that's where the error is coming from. Maybe it got deleted by >>>>>> accident, or someone forgot to implement it? >>>>>> >>>>>> Hopefully I'm just missing the "real" way to do it, but if I'm not, >>>>>> the support is simple enough to hack in - I'm not great at Java, but >>>>>> I adapted the existing function for use in the SaveAllGraphics >>>>>> version (there are no errors to catch as the trySave handles them >>>>>> >> all): >> >>>>>> /** >>>>>> * Saves all graphics from the command-line. >>>>>> * @param argument the folder to save output to >>>>>> * @return true if success, otherwise false >>>>>> */ >>>>>> public boolean doCommand(String argument) { >>>>>> File file = new File(argument); >>>>>> if(!file.isDirectory()) >>>>>> return false; >>>>>> return trySave(true, file); >>>>>> } >>>>>> >>>>>> I could probably figure out how to add this myself & compile a custom >>>>>> version, but it'd be better to add this to the official distribution. >>>>>> Maybe I should talk to developers to get them to push this in their >>>>>> next revision? If there is an alternative to this please let me know. >>>>>> >>>>>> Thanks again! >>>>>> >>>>>> >>>>>> 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=2386669 >> >>>> To unsubscribe from this discussion, e-mail: >>>> [[email protected]]. >>>> >>>> >>> >> ------------------------------------------------------ >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2386872 >> >> To unsubscribe from this discussion, e-mail: >> [[email protected]]. >> > > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=2388135 To unsubscribe from this discussion, e-mail: [[email protected]].
