forked from BITPlan/CrazyBeans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
98 lines (67 loc) · 2.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
CrazyBeans original README extract (deprecated as of 2015-01)
-------------------------------------------------------------
The distribution classes should all be precompiled and ready for
use. After unpacking you should see the following directories:
api-docs/ Contains the javadoc documentation
cb/ Contains the packages
doc/ Contains documentation for the Petal file grammar
and the API
examples/ Some example Rose model files
templates/ Serialized classes used as templates
test/ Some test classes
images/ Some images for the PetalTree class
INSTALLATION
------------
CrazyBeans is written entirely in Java (JDK 1.2 or better) and comes
precompiled, so it should be fairly straightforward to get it set up
and running in your environment. Just set your CLASSPATH variable to
the appropiate value, e.g. on UNIX system using the (t)csh
setenv CLASSPATH $HOME/CrazyBeans:$CLASSPATH
TESTING IT
----------
Within the CrazyBeans directory try
make check
and
make test
DOS users without make, just do
cd test
java test.Test1 > Test1.mdl
java test.Test2
java test.Test2 ..\examples\uni.mdl
Try to read the generated file test/Test1.mdl into Rose (I will not
claim that this model is realistic ... :-). You'll probably have to
use the Tools/Layout Diagram menu too see the diagram correctly. The
sources generated by the second test program should be found in /tmp,
or C:\TEMP respectively, they show one possible way of how to map a
class diagram to (Java) source files. The way can be adapted by subclassing
the Generator and/or Factory class.
You may want to take a look at the sources and the documentation now...
COMPILATION
-----------
If you want to recompile CrazyBeans from scratch for some reason,
you'll need JavaCC:
http://javacc.dev.java.net/
If you want to use the XMI converter, you'll also need the NSUML package:
http://nsuml.sourceforge.net/
If you don't have Jikes installed
(http://oss.software.ibm.com/developerworks/opensource/jikes/)
run
make JC=javac JFLAGS=
otherwise just run
make
PROBLEMS
--------
If you get an exception like "serialized version incompatible", run
make templates
and try again.
NEW VERSIONS
------------
http://crazybeans.sourceforge.net/
LICENSE
-------
CrazyBeans is released under the Apache Public License.
AUTHOR
------
The CrazyBeans framework is copyright (2001) M. Dahm. Send bug
reports and suggestions to [email protected], please tell me also
if you find this tool helpful and in what kind of projects you use it.