> From: "Sherlock, Ric" <[EMAIL PROTECTED]>
> 
> ---Chris Burke wrote:
> > Alex Rufon wrote:
> ...
> > > So now my problem is that the addon files are not part of
> > the Project
> > > Manager's library list so I can't just add it there. Adding the
> > > following to one to one of the script files
> ...
> >
> > At some stage, the addons need to be added to the PM Library list. In
> > the meantime, just add the script to the source, i.e. in the
> > source tab,
> > click Add, navigate to the addon and add it.
> 
> It will be nice when addons are properly added to the PM Library list (see 
> Library Request on wiki for one idea of how).
> In the meantime I add addons that I use frequently to the PM Library list as 
> follows:
> 
> * Edit ~config/startup.ijs (Edit|Configure|Startup|Open)
> * Add desired addons to PUBLIC_j_ like this:
> 
> buildpublic_j_ 0 : 0
> dirtrees       ~addons/general/dirtrees/dirtrees
> dirutils       ~addons/general/dirutils/dirutils
> md5            ~addons/convert/misc/md5
> inifiles       ~addons/general/inifiles/inifiles
> sqlite         ~addons/data/sqlite/sqlite
> sqlitedef      ~addons/data/sqlite/def
> platimg        ~addons/media/platimg/platimg
> tara           ~addons/tables/tara/tara
> zip            ~addons/arc/zip/zfiles
> ziptrees       ~addons/arc/ziptrees/ziptrees
> csv            ~addons/tables/csv/csv
> )
> 
> * Finished.
> 
> Because of the syntax that PM uses when it includes an entry from the PM 
> Library 
> list in your project,
> 
> script_z_ '~addons/general/dirutils/dirutils.ijs'
> script_z_ '~addons/arc/zip/zfiles.ijs'
> 
> there will be no problem running the built script on other user's machines 
> who 
> haven't made the same config change as you (as long as they have the addon 
> installed).
> 
> Another bonus is that you can then refer to these addons in the session as 
> you 
> would other defined library scripts. Eg.
> load 'tara'
> open 'zip'
> 
> Note-To-Self: other users may/will not have the same addons defined as me - 
> something to keep in mind when I post to the forum! In that situation it is 
> safer to use the full JAL format. Eg.
> load 'tables/tara'
> open 'arc/zip/zfiles'

Yes it absolutely true that it is better to use canonical way
to load addons 
  load 'tables/tara'

All other ways are non-portable and not recommended.

To get the main forlder for addon:

  jpath'~addons/tables/tara'
D:\stuff\j602\addons\tables\tara

We will need to discuss how to integrate addons in 
Project Manager (PM).

One aspect of PM build process: combining external libraries
into one file, AFAIK, would probably be better to replace with
the approach of "referencing" standard base and addon library.
So instead of a one file, to create a target folder structure
with external libraries in their place. And only internal scripts
would be then combined into one file. Maybe there is already such
build "mode" in PM, I don't know. But such approach seems to
be very optimal and portable. Code is not repeated and result 
can easily be incorporated into existing J installations, providing
version compatibility.


      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to