Devon McCormick wrote:
...
> 
> So, I made the following change to "C:\Program Files\J601\profile.ijs":
> 
> NB. Use my own temp area....
> NB. tmp=. prf,sep,'temp'
> tmp=. 'C:',sep,'amisc',sep,'JSys',sep,'temp'
> 
> This works fine: now my temp directories default to the
> directory I specify, 'C:\amisc\JSys\temp' in this case.
> However, "profile.ijs" is supposed to be the standard J
> profile and maybe I shouldn't modify it.  At the very least,
> I'll have to re-do my modifications whenever I install a new
> version of J.
> 
> Is there a cleaner way to accomplish what I want here, i.e.
> choosing my own "temp" for session files?

What you have done is the recommended way to handle this. See the
comments in the profile.ijs file itself:

2. You can modify this file, for example to change the directory paths.
   Alternatively, set up your own profile. To do so, make a copy of the
   file, then change the J startup parameter to point to the new file,
   e.g. under Windows:
     c:\j6\j.exe -jprofile c:\jx\myprofile.ijs

J needs to bootstrap the session scripts on start up. This means that
certain directories must be specified at outset - even before the
configuration is run, because configuration is itself a J script. Those
directories are the SYSTEMFOLDERS, and are defined in profile.ijs. The
only way to change these is to change profile, or use another profile.

I like to keep the J distribution unchanged, and have a copy of the
profile in ~user/config that is given in the J startup parameter. The
same profile can then be used with different versions of J.

After changing the directories, you can continue with the "~user" prefix.

See also the docs in the User Manual, Directory Paths.

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

Reply via email to