At 03:37 PM 5/9/00 -0400, you wrote:
>Sorry Paul, I cut out the file header, I didn't think you need that.
>
>Actually, while looking through the report, I noticed the
>jde-run-working-directory was set to be something other than my current
>run directory. It appears that at one point I was debugging and "saved
>for future sessions" and it has been carried on. My assumption was that
>if I created a prj.el file, fields like this one, would be populated
>correctly, i.e. with the current working directory. I will re-read the
>section on project files. Based on this experience, I will assume there
>is a discrete number of variables that I must explicitly set using
>customize, and THEN save my project file, jde-run-working-directory
>being one of those variables.
>
By default, the working directory is always the directory of the currently
selected source buffer. You need to set jde-run-working-directory only if
you need the working directory to be different from the current source buffer.
>I set (or cleared) jde-run-working-directory to be empty, double quotes,
>and then it was able to stop, only to prompt me for the source
>directory, which it defaulted to the current working directory, which
>was correct. So, for every line of code to debug, I need to hit enter.
>I then set jde-run-working-directory to be the same as my current
>source, i.e. c:/home/jrancier/proj/java/bruceeckel/chap2/exercises/1/,
>and that resulted in an "Invalid directory", after deleting my prj.el
>file, and setting (via customize as you always indicate), and then
>saving my project file again, I still got the same "Invalid" message. I
>removed the trailing '/' and that seemed to work. Then when I was
>prompted for the source again, I remembered the JDEbug user's guide's
>three steps, one of which was to set : jde-db-source-directories. When
>I did this, re-saved the project file, and restarted, voila, it seemed
>to be OK. So, my current thinking is this:
>
>(1) For every project, I need to set jde-run-working-directory to the
>current working directory, without the trailing '/' on the path,
Only necessary if you want the working directory to be some other directory
besides the directory of the source buffer active when you started the app
from Emacs.
>(2) For every project, I need to set jde-db-source-directories to the
>current working directory, with or without the trailing '/' on the path,
You need to set jde-db-source-directories to the root of your source tree.
If you do not set jde-db-source-directories, the JDE looks for your source
in the current working directory, which is either the directory of the
source buffer where you executed the Debug App (the default) or the value
of jde-db-working-directory.
>(3) Once these two variables are correctly set I need to set for current
>session, and then
>(4) Save my project file.
Whenever you customise a JDE variable for a particular project, you should
set it for the current session and save your project file. This two-step
procedure is not user-friendly but it is necessitated by two current
features of the JDE project system, namely the ability to have multiple
projects open in the same session and the use of customization to specify
project settings.
My plan is to replace the current project handling feature with something
more powerful and more friendly.
- Paul