Gilles Kirouac wrote: > The processing of require verbs in the Project Manager seems incorrect > to me. > > If I ask PM to "include Project Libraries", the target should include > them. It does not. See. So that you can check, I am using a distributed > script as my app. > > The full text of my only source script app.ijs is: > > require 'system\extras\migrate\fixargs.ijs' > > The complete resulting target is: > > NB. built from project: ~Projects/testpm/testpm > > require 'system\extras\migrate\fixargs.ijs' > > PM recognized and lists the required files under Source: > > app > ~system\main\compare (r) > ~system\main\strings (r) > ...etc > > but rather than include them, it only copies the statement in the target. > > require is a JADE verb and has no meaning when loading a stand-alone script. > > How can I make a stand-alone script?
PM is not yet smart enough. First, PM will only check 'require' inside scripts in library tab to include. In other words, you can not have a 'require' inside your own scripts (in the script tab) and expect it can run as a standalone script. If you need certain scripts to run, include them in the library tab. However if the scripts required is not a standard J library scripts as for the case fixargs.ijs quoted, you need either add them to the scripts tab, or modify the system\extras\config\scripts.ijs to add those scripts. -- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
