1!:43 y | Query Current Working Directory |
1!:44 y | Set Current Working Directory |
1!:45 y | Query Default Profile |
See J Help on !: (foreign conjunctions) for further details.
SYSTEMFOLDERS_j_ is a 2-column table of folder names and paths. This table is required by the system scripts. If you need to modify the paths (second column) in this table, change the profile script used on start up. You should not modify the entries in the first column. For example:
+-------+-----------------+ |system |c:\j5\system | +-------+-----------------+ |profile|c:\j5 | +-------+-----------------+ |home |c:\j5 | +-------+-----------------+ |temp |c:\j5\temp | +-------+-----------------+ |addons |c:\jx\addons | +-------+-----------------+ |user |c:\jx\user | +-------+-----------------+ |config |c:\jx\user\config| +-------+-----------------+Here:
system | system directory |
profile | profile directory (i.e. file profile.ijs) |
home | HOME in UNIX, otherwise same as profile |
temp | temporary directory |
addons | addons directory |
user | user directory |
config | user configuration directory |
+------+-----------------+ |LTsrc |c:\lt\source | +------+-----------------+ |LTrel |c:\lt\release | +------+-----------------+ |JPB |d:\jss\jpb\source| +------+-----------------+ |JST |d:\jst\source | +------+-----------------+ |JSTdev|d:\jst\dev | +------+-----------------+ ...
jpath | converts argument to a full path name |
jcwdpath | return current working directory |
jhostpath | convert separators in filename to host operating system |
These verbs are used to provide the full pathname for files, and to ensure that the path separator is correct for the host operating system. For example:
jpath '~system\main\dates.ijs' c:\j5\system\main\dates.ijs jhostpath 'system\main/dates.ijs' NB. in Windows system\main\dates.ijs jcwdpath '' c:\j5 jcwdpath 'system\main' C:\j5\system\main
jpath '~temp' c:\j5\temp jpath '~temp\t2.ijs' c:\j5\temp\t2.ijs jpath '~JPB\classes\board\init.ijs' d:\jss\jpb\source\classes\board\init.ijsWhere the folder name is preceded with ~., for example ~.mywork, this refers to the corresponding parent directory, for example:
jpath '~.JPB\dev\regtest.ijs' d:\jss\jpb\dev\regtest.ijs jpath '~..JPB\release\pbr.ijs' d:\jss\release\pbr.ijsVerb jpath also converts path separators to the current path separator, and so can be used instead of jhostpath (which is still supported).
load '~JPB\classes\board\init.ijs' require '~user\projects\run\run.ijs'
The conversion process:
Existing names in a project are not converted. Therefore you can edit the project file to replace any ~path name with a full filename, and this will be preserved.
Earlier versions of Project Manager stored some names as a relative path name, starting from the J executable directory. Such names are converted to ~path form.
The Look In combobox in Project Manager displays entries in USERFOLDERS, except those pointing to the J system directory. The reason for the exclusion is that projects should not be developed in the J system directory.