Commit Graph

155 Commits

Author SHA1 Message Date
Diomidis Spinellis 6839e3c683 Fix InvocationTargetException.
Reported by: George Gousios
2007-03-26 07:04:06 +00:00
Diomidis Spinellis c410ab3fad Correct output of UmlGraphDoc path-relative file names under Windows
Fix by: Panagiotis Astithas
2007-03-05 09:37:34 +00:00
Diomidis Spinellis f58bb743d4 Make the output more verbose to allow the testing of the executed commands
from the command-line.
2007-03-05 09:18:39 +00:00
Diomidis Spinellis 84a3c98d16 Double quotes don't work correctly in the Unix exec
(reported by Dirk Datzert)
Run exec(String []), which I tested to work on both Windows and Unix.
2007-02-05 09:22:16 +00:00
Diomidis Spinellis b7b323ced5 Handle pathnames with embedded spaces. 2006-11-24 20:08:28 +00:00
Diomidis Spinellis 421785ef7d Change UmlDoc into UmlGraphDoc. 2006-11-24 20:08:03 +00:00
Diomidis Spinellis 41ffcdafcf Escape & characters from generics in the HTML output.
Reported by: Ivan F. Villanueva B.
2006-08-30 13:06:09 +00:00
Diomidis Spinellis 4321bf772f Propagate wolf's 2006/07/15 09:15:32 renaming of UMLDoc to UMLGraphDoc
to make the tests run again.
2006-08-30 12:38:07 +00:00
Andrea Aime 6c120adba4 Renamed UMLDoc to UMLGraphDoc to avoid naming problems with http://www.umldoc.org/ 2006-07-15 09:15:32 +00:00
Andrea Aime 545613a15b Clean up and name fixes 2006-07-09 15:14:27 +00:00
Andrea Aime b5837d2840 (whoops, forgot to commit this!)
Introduced explicit enums for relation types and relation directions, added an option to specify the direction and type of relations included in the context (basically, a tool to build a map from relation type to direction), fixed a test that still contained the old -inferassoc intestead of -inferrel
2006-07-02 16:24:03 +00:00
Andrea Aime 14b80c0eab Introduced explicit enums for relation types and relation directions, added an option to specify the direction and type of relations included in the context (basically, a tool to build a map from relation type to direction), fixed a test that still contained the old -inferassoc intestead of -inferrel 2006-07-02 16:23:39 +00:00
Diomidis Spinellis 84fa647445 Filter-out static initializer method from classes
Submitted-by: Andreas Studer
2006-06-20 16:52:08 +00:00
Andrea Aime 0f3c2cf511 Fixed bug in relative path computation (and made that testable alone, too, though I did not commit the test since we don't have unit testing in place) 2006-06-11 15:28:05 +00:00
Andrea Aime 56e3b66325 Skip CVS directories during comparison 2006-06-11 13:48:25 +00:00
Andrea Aime e63dfd9fa8 Skip CVS directories during recursive comparison 2006-06-11 13:48:04 +00:00
Andrea Aime 1a066ccff8 Removed reliance on -verbose2 2006-06-11 13:47:30 +00:00
Andrea Aime 63dff2aaa3 Added support for new dependency filtering options 2006-06-11 13:46:44 +00:00
Andrea Aime fb49bafe0f Added two options:
- a way to avoid seeing intra-package dependencies between classes since classes in the same package are supposed to be releated anyway and in fact, there's no reliable way to spot all of them anyway (since you don't need imports for using classes in the same package)
- a way to limit the visibility of members used to perform dependency inference.

Both of these allow to reduce the "fur ball" effect.

Finally, removed the -version2 option since we can rely on the -quiet standard javadoc option if we use RootDoc.printNotice/Warning/Error
2006-06-11 13:45:55 +00:00
Andrea Aime 015357b8c7 Java visibility types enumeration, with some useful conversion methods for actually making it easy to use in the context of UmlGraph 2006-06-11 13:42:00 +00:00
Andrea Aime d827bdf1f5 Added testing for umldoc, and moved shared methods with the umlgraph tests in an utility class 2006-06-04 13:55:00 +00:00
Andrea Aime 6bbf7d2f71 Don't infer dependencies from fields if we already inferred relationships (basically to avoid having dependencies on the collection containers that were not included in the relationships) 2006-06-04 13:54:27 +00:00
Andrea Aime f971bded86 Renamed WrappedRootDoc due to a typo, removed package.html and fixed a few umlgraph tags on the classes for better output generation 2006-06-04 09:19:21 +00:00
Andrea Aime 0c41210872 Consistently use pw instead of System.out in every point of the file, better error reporting for file with difference, ensure to flush the printwriter before exiting 2006-06-04 08:29:29 +00:00
Andrea Aime 51a19f4be1 Use Version of printouts 2006-06-04 08:28:12 +00:00
Andrea Aime 20070fafaf Moved handling of api doc map to Options, and made options react to -link parameters the same way as the standard doclet does: by downloading and parsing the package-list file to populate the api doc map. 2006-06-04 08:27:03 +00:00
Andrea Aime 54796efd41 Moved api map to options, removed all dependencies to specified packages since we cannot assume the "user" will specify -subpackages on the command line 2006-06-04 08:24:47 +00:00
Andrea Aime 14932ba5b2 Lots of changes:
* output using the RootDoc.notice/warning methods instead of system.out (standard way, and allows the output to be seen from maven2 javadoc plugins as well)
* works also if the subpackages parameter is not specified on the command line
* added javadoc comments
* other smallish fixes
2006-06-02 09:36:19 +00:00
Andrea Aime 19989b3736 String formatting fix, and don't show package names in the package class diagram (waste of space, all classes do come from the same package anyway) 2006-06-02 09:19:00 +00:00
Andrea Aime 73c2338bce Avoid re-computing the set of returned options, which is really just composed of a handful of possibilities, optimize a little, and fixed a few bugs 2006-06-02 09:17:55 +00:00
Andrea Aime 78bea1ee77 Allow the reuse of the context matcher computed relations for various context center classes in order to speed up UMLDoc, which uses this one heavily.
Also, add an option to avoid overriding class hiding specified in the parent option provider, since the hides specifed for the doclet should not be modified in a context class diagram
2006-06-02 09:16:32 +00:00
Andrea Aime 8ad82c975c Update according to changes in ContextMatcher 2006-06-02 09:10:31 +00:00
Andrea Aime 74a9c16003 Various changes, hard to account for all of them. Yet, basically:
* ability to compute relative links for UmlDoc diagrams (client side image maps)
* better handling of sources with annotations and generics usage
* avoid relying on specifiedpacakges to check if classes are included in the parsed source, maven 2 does not provide javadoc with them, but with a plain list of classes
2006-06-02 09:09:00 +00:00
Andrea Aime a1f3f6ab6c A few changes related to the needs of UMLDoc to generate relative links between diagrams in javadoc files, and a few that are needed for a separate project I'm working on: an "interactive" version of UMLGraph that allows the parsing of source files just once, and re-parses just the views when the user asks for, so that it's way faster to build the views by iterative changes on a big source code base (that code is in such a bad shape now that I don't feel like commiting it now) 2006-06-02 09:03:32 +00:00
Andrea Aime 6e7f99ef8c Small performance improvements, new options for UMLDoc, in particular the ability to enable strict hide pattern matching (m.matches()) instead of lax matching (m.find()). We should think if having strict matching by default would be better (in my opinion it is, but that's just my opinion)...
Also added a reflective toString() that I've used for debugging settings during UmlDoc developtment (the code comes more or less from the first pages of Code Quality, the open source perspective :-) )
2006-06-02 08:56:15 +00:00
Andrea Aime 17779ac68b Classdoc and rootdoc wrappers used to improve the performance of UMLDoc 2006-06-02 08:47:47 +00:00
Andrea Aime 72f918b68c First stab at UmlDoc implementation. It's an "improved" javadoc that outputs docs along with class diagrams.
Diomidis, can you have a look at the output (UmlGraph javadoc are built with UmlDoc now) and review the code?
I know I still have to write the docs, and I will have to try out UmlDoc on something other than UmlGraph itself (was thinking of the java sources themselves, or Hibernate, Spring, ... whatever is big enough).
2006-05-01 19:38:12 +00:00
Andrea Aime 8e35628205 Stronger checks for view folders existence and accessibility. Let's see if you get a better error message. 2006-03-05 08:50:17 +00:00
Andrea Aime 44d645541a Unfortunately, some commits ago I added a bug in testing code that went
un-noticed since I never wiped out the testdata-out folder contents. Anyway,
 I've fixed the bug and made sure all .dot and .png files are removed from the
folder as the test starts, so that a similar problem won't stay hidden in future.

Anyway, the error you sent me seem to be something different (possibly HTML
code generation, dot is very picky about what HTML it can parse).
Can you try again with this patch and let me know? If you see again that error,
can you send me a few of those failing dot files?

Moreover, what dot version do you have? I have version 2.6 (Sun Aug 28
13:14:52 UTC 2005).

About my aliceposta mail address, I don't know, I'm receiving mail so it cannot
be fully broken, but yes, it's not the first message I don't receive this week.
The mail you sent me thru istlab.dmst.aueb.gr arrived fine (but it's just a
redirector, isn't it?).

Wow... pretty long for a commit message :-)
I'll be online again in the late afternoon. See you.
Andrea
2006-03-04 12:45:13 +00:00
Andrea Aime 3dc36ec498 Fixed a problematic situation. When all the operations of a class were hidden the generated html wasn't valid (see the test case, a class with a single hidden operation). Plus, when checking for hidden elements for elements other than a class, get the options against the containing class (the views are all based on class at the moment, we don't have views for methods or constructors) 2006-02-23 19:49:27 +00:00
Andrea Aime 287c34e3d7 More font options, as well as the ability to postfix the package declaration in class nodes.
Using enums in ClassGraph.
2006-02-18 11:08:58 +00:00
Andrea Aime 2a7a49f4db Comment fix 2006-02-12 09:38:15 +00:00
Andrea Aime 2053cb50eb Changes for testable output (platform independent, compact) 2006-02-12 09:38:07 +00:00
Andrea Aime 11575dfd31 New HTML ouput format 2006-02-12 09:37:34 +00:00
Andrea Aime 6a16efccf3 Fixes for dot's font platform dependence, so that we can get italic fonts on windows too. Added a flag to generated "compact", that is, all HTML on one line, output, to ease testing, leaving the more human readable HTML multiline output as default 2006-02-12 09:37:21 +00:00
Diomidis Spinellis 18604f7165 Verbose output is enabled using the -verbose2 flag. 2006-02-04 23:03:31 +00:00
Diomidis Spinellis d04ac049c7 Remove trailing spaces, add file comment, and CVS Id. 2006-02-04 22:44:58 +00:00
Andrea Aime eacd052ed8 Added some feedback on the standard output, so that the user knows what's going on (on big code bases the use of context matches may require quite a bit of time, plus when the diagrams are too big dot just eats 100% CPU for a long time and has to be killed, at least we can show that UMLGraph has finished its part of the work).
The output looks like:

 [java] UMLGraph doclet started
     [java] Building view ViewProduct
     [java] Building view ViewColors
     [java] Building view ViewChildOverride
     [java] Building view ViewChildEmpty
     [java] Building view ViewAtt
     [java] Building view ViewAllDetailed
     [java] Building view ViewAll
     [java] Building view ViewContext
     [java] Building view ViewInterfaces
     [java] Building view ViewSubclasses
     [java] Class diagram generation complete
2006-02-04 09:24:43 +00:00
Andrea Aime 8022cbf8de Added new match tests 2006-01-28 10:14:51 +00:00
Andrea Aime 7edade65bb Changed the class diagram generation options, with the new classes the old diagram was getting hard to understand at a glance 2006-01-28 10:14:17 +00:00