Menu

Settings File annoyance

Developers
2004-04-13
2012-10-08
  • William Cook

    William Cook - 2004-04-13

    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).

     
    • deepak_advani

      deepak_advani - 2004-04-14

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.