> > Did you have any luck getting the make directory to work for JDE? I
> > have the exact same problem as you...
>
> Er, what problem? I have no problem. I did respond once to someone
> who did.
Oops, sorry, I meant to email that person instead - but thanks very much for
the detailed response!
However, the problem I'm having seems to be caused by the cd <makedir>
command having no effect, as with the person you previously responded to. I
was able to cut and paste that command (from the build's compilation buffer)
into a regular emacs shell, and see it not work there either:
e.g.
cd c:/src/depot/JavaBrowser/Current/build
does not work in a regular emacs shell using a w2k cmd prompt, but
cd c:\src\depot\JavaBrowser\Current\build
and
cd "c:/src/depot/JavaBrowser/Current/build"
both work...
I figure this is the reason that it's not working for the build, it's all a
bit puzzling to me...
Anyway, I switched my emacs shell to bash (which I prefer anyway), in which
case the original CD command works fine... however, the change did not
effect the case where I build via JDE, which still failed to change
directories... (this doesn't use the shell specified in the shell filename
setting, right?)
Any idea what is going on here, or hints on where to start looking?
Also, in a related problem, when I try to use a relative path, it seems to
go relative to the directory of the java file that I'm editing, not the
project path... [although this is not really a problem for me, though, since
I'm happy to use an absolute path].
Thanks again,
Iain.
> In general, I am using ant, although I'm not using the new Ant
> specific build functions in JDE. I am setting the following varibles
> in my prj.el file
> '(jde-make-args "compile")
> '(jde-make-working-directory "./build/all_classes/")
> '(jde-make-program "ant")
>
> When I run the command jde-build (on my computer this is bound to the
> key [C-f5]), the compile window is created and I see my build process
> running more or less as if I had done the following in a command
> shell (note the "cmd#:dir_name$" for the prompt, I'm a Unix/Bash
> junkie):
>
> 924:config$ cd ../all_classes/
> 925:all_classes$ ant compile
> Searching for build.xml ...
> [ lots of output cut, mostly because this run was
> full of embarrassing compile errors ]
>
> Incidentally, note that my working directory varible uses the
> relative path notation. The prj.el file this is defined in is two
> directories above all_classes, in the project root directory. While
> I set these values in a local prj.el, setting them in .emacs, and
> using absolute pathnames should be just fine. I might check this
> myself, but it is currently 7.30am, I've just got to work, and I'm
> still feeling sluggish.
>
> I don't set a lot of jde varibles, and in fact, I think the three I
> listed above are the only ones you need worry about. Certainly the
> jde-compile-option-* varibles will have no effect. They only apply
> when running jde-compile which compile the Java file in the current
> buffer. Beyond the three make variables, the only settings that will
> really matter are the contents of you Makefile, build.xml, batch
> file, whatever.
>
> -----------------+---------------------------------------------------
> Craig McGeachie | #include <cheesy_tag.h>
> +61 (410) 774902 | while (!inebriated) c2h5oh = (++bottle)->contents;
> -----------------+---------------------------------------------------
>