|
|
|
Re: Can I create KDM model from only part of Java project? [message #1713378 is a reply to message #1713311] |
Tue, 03 November 2015 16:25 |
Fabien Giquel Messages: 147 Registered: July 2009 |
Senior Member |
|
|
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.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
rue Nina Simone
44000 NANTES
----------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.02859 seconds