I write applications where each application is divided into several scripts,
all in the same directory. Each form in a separate script. Each class in a
separate script. I don't use Project Manager to put them into one script.
The first script loads and finds out what directory it came from and the
rest of the scripts are loaded using that information. This way the
directory and drive where the application resides can be moved around as
needed.

I write things for myself, not for sale. The test and production
environments are the same. When I make a change to a script, I can load it
and can often continue testing without restarting. No builds necessary. When
I'm through I simply make a shortcut to the first script and put it on the
desktop. File type ijs is defined to load J to run it.

On Thu, Apr 8, 2010 at 2:25 PM, Devon McCormick <[email protected]> wrote:

> This might make sense if you have multiple versions of a script with the
> same name but in different locations - which doesn't necessarily seem like
> a
> good idea but I don't know what you're aiming at.  I guess it might be
> useful if you have old and new versions of a cluster of inter-related
> scripts and you want to run them side-by-side?
>
> On Thu, Apr 8, 2010 at 1:22 PM, Sprague, Webb (OFM) <
> [email protected]
> > wrote:
>
> > > > The problem is, if you put this in every script, your answer will be
> > > based
> > > > on whatever you last loaded.
> > >
> > > That was what he wanted.
> >
> > My overall goal is that if I load /foo/bar/script.ijs, I want to have
> > commands in script.ijs that know to load other libraries relative to the
> > file in which script.ijs was defined.  Does that make sense?
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to