Changes between Version 2 and Version 3 of howto


Ignore:
Timestamp:
Aug 30, 2020, 10:30:33 PM (4 years ago)
Author:
tothm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto

    v2 v3  
    1111= Starting the tool 
    1212 
    13 To start the tool with the default config use: {{{bin/referl}}}. This will store the source code representation in an Mnesia database. However, to decrease memory footprint and speed up the tool you may want to use the Kyoto Cabinet backend of !RefactorErl: 
     13To start the tool with the default config use: {{{bin/referl}}}. This will store the source code representation in a Mnesia database. However, to decrease memory footprint and speed up the tool you may want to use the Kyoto Cabinet backend of !RefactorErl: 
    1414 
    1515{{{bin/referl -db kcmini}}} 
     
    1717For further options please check the [wiki:StartUp StartUp page] 
    1818= Interfaces: ri, web 
     19{{{ri:h}}} 
    1920 
    2021= Building a database 
     22For a first time user, we suggest using the {{{ri}}} interface to build the database of RefactorErl from the source code. There are several options to analyse the source files. For details see [wiki:ManagingFiles the file management page]. Here we discuss some basic scenarios. 
     23 
     24You can add files using the {{{ri:add/*}}} functions. To add a single module just provide the path to the file as an argument: 
     25{{{ri:add("path_to_file")}}} 
     26 
     27The same command can be used to add directories recursievely: 
     28{{{ri:add("path_to_dir")}}} 
     29 
     30If your included files are located in a separate directory, please add them as an include environment> 
     31{{{ri:addenv(include, "path_to_include_dir")}}} 
     32 
     33If your software follows the Erlang application hierarchy and you have a library of your software. 
     34 * Add the path to the application libarary as an environment variable: 
     35   {{{ri:addenv(appbase, "path_to_my_lib")}}} 
     36 * Add the files using a subkey of the application base path and the name of the  application> 
     37   {{{ri:add(my_lib, my_application)}}} 
     38 * This mode helps !RefactorErl to find the include files in the appropriate include folders. 
     39 
     40 
    2141 
    2242= Using the web interface