standalone script does not need default profile to run, so that
debug does not run in those case.

You need not alter any of your files.  Add a post build file to
the .ijp file.  Skeleton of a post build file for your purpose
may look like this

18!:4 <'jproject'

postbuildamend=: 3 : 0
NB. your code here
)

3 : 0''
if. # dat=. toJ fread xtg do.
  dat=. postbuildamend dat
  dat fwrite xtg
end.
''
)

you will need to use stringreplace or something similar to revert 
the few header lines that you have trouble with.

Втр, 05 Мар 2013, Anssi Seppälä писал(а):
> Thanks. I need sometimes to debug the standalone code at customer's site for 
> example to debug database connections. I do not like to add all my 
> development tools and scripts there. The debugging works if I install the 
> system-folder with j.exe.
> 
> Still wondering why the load-function must be overridden because that breaks 
> the j.exe debug. I can now change the script manually. The postbuild is 
> difficult because theses lines can be in several places of the final script.
> 
> Anssi
> 
> 
> -----Original Message-----
> From: programming-boun...@forums.jsoftware.com 
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill lam
> Sent: 5. maaliskuuta 2013 3:05
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] buildjade in project.ijs
> 
> I cannot remember the detail. IMO standalone script mean a production 
> environment where J development ide does not exist.
> In particular, the nouns systemfolder and userfolder that load-functions 
> depend on do not exist.
> 
> There is a POSTBUILDFILE option in j602 project that enable you to run 
> customisation.
> 
> Пн, 04 мар 2013, Anssi Seppälä писал(а):
> > Please, can somebody explain why buildjade function (in project.ijs in 
> > J6.02) is changed:
> > 
> > Now the target script starts with:
> > 3 : 0 ''
> > if. 0 ~: 4!:0 <'PATHSEP_j_' do.
> > PATHSEP_j_=: ((9!:12'') e. 6 7) { '/\'
> > jhostpath_z_=: PATHSEP_j_ & (I. @ (e.&'/\')@] })
> > jpath_z_=: jhostpath
> > end.
> > load_z_=: require_z_=: script_z_=: ]
> > 0
> > )
> > 
> > Earlier it was:
> > 3 : 0 ''
> > if. 0 = 4!:0 <'PATHSEP_j_' do. return. end.
> > PATHSEP_j_=: ((9!:12'') e. 6 7) { '/\'
> > jhostpath_z_=: PATHSEP_j_ & (I. @ (e.&'/\')@] })
> > jpath_z_=: jhostpath
> > load_z_=: require_z_=: ]
> > 0
> > )
> > 
> > The problem with the current version is that it always overrides the 
> > load-function used by the debugger. I do not understand why the load, 
> > require and script functions must be changed.
> > 
> > If this is not easy to change in Package Manager where should I put my own 
> > modifications.
> > 
> > Thanks,
> > Anssi
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> 
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to