Re: Dia - xml : instant UML class diagrams from your perl!

2001-04-10 Thread Aaron Trevena

On Tue, 10 Apr 2001, Bob Gustafson wrote:
> [root@hoho0 SRC]# ls -lt | head
> total 84
> -rw-rw-r--   1 root root10492 Apr 10 12:33 autodial.out.xml
> -rw-r--r--   1 root root10363 Apr 10 12:33 template.xml
> -rwxr-xr-x   1 user1users5013 Apr 10 06:52 autodial.pl
> -rw-r--r--   1 user1users 223 Apr 10 06:52 benchmark.pl
> 
> [user1@hoho0 autodial-0.1]$ cd SRC
> [user1@hoho0 SRC]$ dia
> /dev/dsp: No such device
> 
> GnomeUI-WARNING **: Could not open help topics file NULL
> /usr/home/user1/perl/autodial-0.1/SRC/autodial.out.xml:116: error: Opening
> and ending tag mismatch: string and type
> ##
> ^
> /usr/home/user1/perl/autodial-0.1/SRC/autodial.out.xml:140: error: Opening
> and ending tag mismatch: string and type
> ##
> ^

eep! how the hell did that get there?

I might have mentioned earlier that I don't actually have dia installed,
so I have been checking the xml output by hand.

oh dear - I knew this would happen when I uploaded something :), I blame
trelane, he suggested that I 'just release it' because something always
goes wrong anyway. This was at gone midnight and we were quite drunk but
it was good advice none-the-less.

anyways - any further bug fixes, etc mail to me offlist, otheriwse I'm
sure some of the list maintainers might get a little annoyed at me.

At least don't have to do that pennace now.

er.. sorry about that everybody.. I'll be updating the tarball on the site
fairly regulalry in the next few days as I get it working for people other
tham myself.

regards,

A.




Re: Dia - xml : instant UML class diagrams from your perl!

2001-04-10 Thread Bob Gustafson

>On Tue, 10 Apr 2001, Bob Gustafson wrote:
>> Sounds pretty cool.
>>
>> I'm having a problem though.
>>
>> Any assistance is greatly appreciated (even though it might be a dumb error
>> on my part..)
>>
>> Thanks
>>
>> BobG
>>
>> ---
>
>
>right - heres where you are going wrong.
>
>> [root@hoho0 SRC]# perl autodial.pl test.pl
>
>you want to use the argument -i "filenames", I didn't mention this in the
>docs and I suppose I really ought to - d'oh!
>
>so perl autodial.pl -i "filea fileb ... filez"
>or just perl autodial.pl filename if only one file.
>
>> opened autodial.pl
>>
>> opened Diagram.pm
>>
>> opened DiagramClass.pm
>>
>> opened DiagramSuperclass.pm
>>
>> opened DiagramComponent.pm
>>
>> opened DiagramInheritance.pm
>>
>> opened DiagramDependancy.pm
>
>if not passed any arguments with the -i option it runs on itself.
>
>> file error - template.xml: not found[root@hoho0 SRC]#
>> [root@hoho0 SRC]#
>
>you are in the SRC directory, you need to copy the template in TEMPLATE to
>SRC. I kept the template seperate so that you can your own withjout losing
>the original.
>
>hth,
>
>A.

OK -  see continuation from above trial
(Documentation? doc? ..)

[root@hoho0 SRC]# cp ../TEMPLATES/template.xml .
[root@hoho0 SRC]# perl autodial.pl -i test.pl
opened test.pl

[root@hoho0 SRC]# ls -lt | head
total 84
-rw-rw-r--   1 root root10492 Apr 10 12:33 autodial.out.xml
-rw-r--r--   1 root root10363 Apr 10 12:33 template.xml
-rwxr-xr-x   1 user1users5013 Apr 10 06:52 autodial.pl
-rw-r--r--   1 user1users 223 Apr 10 06:52 benchmark.pl

[user1@hoho0 autodial-0.1]$ cd SRC
[user1@hoho0 SRC]$ dia
/dev/dsp: No such device

GnomeUI-WARNING **: Could not open help topics file NULL
/usr/home/user1/perl/autodial-0.1/SRC/autodial.out.xml:116: error: Opening
and ending tag mismatch: string and type
##
^
/usr/home/user1/perl/autodial-0.1/SRC/autodial.out.xml:140: error: Opening
and ending tag mismatch: string and type
##
^

BobG




Re: Dia - xml : instant UML class diagrams from your perl!

2001-04-10 Thread Bob Gustafson

>AutoDIAL is a small perl based app that generates a Dia UML class diagram
>from your perl code. with small modification it can work on C, Java or
>python.
>
>Its alpha and the layout of relationship connectors is a bit flakey, but
>on the whole it could save a lot of time in building diagrams of yoru
>code, and teh xml can easily be parsed to create text documentation as
>well. (in fact I'll bang sonmethig together to do just that rsn).
>
>I have mentioned it a couple of times on list but since I have been
>unemployed for a bit I have spent a little time on it and now its ready
>for first release.
>
>you can find it at http://droogs.org/autodial/
>
>thought some of you might be interested, if nobody is interested I'll do a
>round of hail RMS's as pennance, and randomly uninstall a piece of
>proprietary software from my computer. :)
>
>A.


Sounds pretty cool.

I'm having a problem though.

Any assistance is greatly appreciated (even though it might be a dumb error
on my part..)

Thanks

BobG

---

[root@hoho0 SRC]# perl autodial.pl test.pl
opened autodial.pl

opened Diagram.pm

opened DiagramClass.pm

opened DiagramSuperclass.pm

opened DiagramComponent.pm

opened DiagramInheritance.pm

opened DiagramDependancy.pm

file error - template.xml: not found[root@hoho0 SRC]#
[root@hoho0 SRC]#




Dia - xml : instant UML class diagrams from your perl!

2001-04-10 Thread Aaron Trevena


AutoDIAL is a small perl based app that generates a Dia UML class diagram
from your perl code. with small modification it can work on C, Java or
python.

Its alpha and the layout of relationship connectors is a bit flakey, but
on the whole it could save a lot of time in building diagrams of yoru
code, and teh xml can easily be parsed to create text documentation as
well. (in fact I'll bang sonmethig together to do just that rsn).

I have mentioned it a couple of times on list but since I have been
unemployed for a bit I have spent a little time on it and now its ready
for first release.

you can find it at http://droogs.org/autodial/

thought some of you might be interested, if nobody is interested I'll do a
round of hail RMS's as pennance, and randomly uninstall a piece of
proprietary software from my computer. :)

A.