I just tried using Recoder; it looks quite good... however, the way that the project file and settings are initialized is very annoying. It seems that you cannot just link to the library and easily call appropriate methods to initialize everything. Instead you MUST have a project file which has to be created and loaded. Am I wrong about this? The project file stuff should be factored out as a convenient way to load settings, but it should not be so deeply embedded into the heart of the system (IMHO).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just tried using Recoder; it looks quite good... however, the way that the project file and settings are initialized is very annoying. It seems that you cannot just link to the library and easily call appropriate methods to initialize everything. Instead you MUST have a project file which has to be created and loaded. Am I wrong about this? The project file stuff should be factored out as a convenient way to load settings, but it should not be so deeply embedded into the heart of the system (IMHO).
Project file is one way but you can acheive similiar results without a project file and their are various ways. Of which, one is as follows:
summary: tell the projectsetter to look for classes at a particular location.
CrossReferenceServiceConfiguration sc = new CrossReferenceServiceConfiguration ();
sc.getProjectSettings().getSearchPathList().add(<<adirLocation>>); //<<adirLocation>> is the folder location where u have all your classes.
Alternatively u can also use:
sc.getProjectSettings().setProperty (PropertyNames.INPUT_PATH, <<adirLocation>>);
Both these methods will tag the string that u specify as adirLocation with the existing java path (same as CLASSPATH).
U can direct the setter to spit the output to a particular location. see PropertyNames.output_path.
Hope this was usefull.
Deepak