Can I create KDM model from only part of Java project? [message #1090559] |
Tue, 20 August 2013 06:09  |
Eclipse User |
|
|
|
I'm trying to reverse engineer a big legacy project with MoDisco eclipse plugin. Tried doing a Java to KDM model discovery, but it failed because Java heap space got filled. So i increased the amount of memory, but now discovery process seems to be getting stuck at "Saving discovered model".
If i go and select single Java package from my project, only option i get for discovery is "KDM source" and that one doesn't contain any information about class relations etc.
Is there a way to create a KDM model from only some small part of Java project? Or is there some way to improve KDM discovery performance, when dealing with huge project?
|
|
|
|
|
Re: Can I create KDM model from only part of Java project? [message #1713378 is a reply to message #1713311] |
Tue, 03 November 2015 11:25  |
Eclipse User |
|
|
|
Hello,
you should try to proceed in two steps as Hugo suggests : java source -> java reduced model -> kdm model.
The parameter to set for Java discoverery step is the one named "INCLUDED_ELEMENTS_REGEX" in ui. In the Java discoverer api, it can be set with the .setIncludedElementsRegEx(String regex) method.
The regex parameter allows to indicate a regular expression on qualified names for elements (types & packages) to be included during analysis.
For instance, if you want to select only types from pkga.pkgb.pkgc, you sets the value to pkga\.pkgb\.pkgc\..*
(there is also one opposite parameter EXCLUDED_ELEMENTS_REGEX)
I hope it will be helpful.
regards,
Fabien.
|
|
|
Powered by
FUDForum. Page generated in 0.08925 seconds