Right. build.xml and prj.el are both in parent directories in of the source.
What I'm trying to get away from is a dependency on my current working
directory... So lets say I've got a tree like this
$HOME
project
prj.el
build.xml
src
xxx.java
yyy.java
If I am editing xxx.java and my current working directory is project then
jde-ant-build works perfectly. Lets say I M-x cd
/usr/share/doc/elisp-manual, look at some files, then get back to editing
xxx.java jde-ant-build fails because it always cds to the current working
directory i.e. /usr/share/...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 10, 2001 3:24 PM
To: Aubin, Ethan
Cc: '[EMAIL PROTECTED]'; 'JDE Developers'; 'Molitor, Stephen'
Subject: RE: ant and paths
Maybe I'm misunderstanding you, but if your build.xml and prj.el files are
not in a parent directory of your source file, it won't work unless you
explicitly specify the full path to the build file.
JDE(E) searches for the project file recursively through the parent
directories.
HTH
Jason
"Aubin,
Ethan" To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>, "'Molitor, Stephen'"
<ethan.aubin@ <[EMAIL PROTECTED]>
lmco.com> cc: "'JDE Developers'"
<[EMAIL PROTECTED]>
Subject: RE: ant and paths
10/10/01
02:43 PM
Thank you both for responding. Its working slightly better now. Let me go
through the steps I'm taking...
First suppose I'm in directory 'asdf' which is any random directory. I
start emacs, then open xyz.java in the 'src' directory which contains
prj.el. If I jde-ant-build
it outputs
cd src/prj.el
ant <ant options here>
Somewhere the default-directory is changed to src/prj.el. This is
apparently
fine, as the build succeeds. If I change directory in emacs back to asdf
then jde-ant-build outputs
cd asdf
ant <ant options here>
and fails as it can't find build.xml My goal here is to be able to run
jde-ant-build regardless of where I am in the directory tree... jde-find
would miss build.xml if I was already above it in the tree...
Also, Jason you were right about the path not containing ant.
Ethan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 10, 2001 1:27 PM
To: Aubin, Ethan
Cc: 'JDE Developers'
Subject: Re: ant and paths
Ethan
In response to your second question, if you are using the JDE project
facilities, jde-ant will look for the buildfile in the same directory as
the prj.el file.
Try M-x jde-create-new-project [/directory/containing/buildfile]
Jason
"Aubin,
Ethan" To: "'JDE Developers'"
<[EMAIL PROTECTED]>
<ethan.aubin@ cc:
lmco.com> Subject: ant and paths
10/10/01
01:09 PM
Hello,
Ant will only work if I include the full path in jde-ant-program. Ant
currently is in my path... Is there a way for jde search the path for ant?
When I do a jde-ant-build. It cd's to the buffers current directory, and
runs ant. I'd like to able to set a project directory or an
ant-working-directory and have it cd there or look for the build file
there.
Right now I'm putting in the full path to the build.xml file as a work
around... Am I missing or misunderstanding a config option?
Any ideas or suggestions?
Btw. I'm using jde-2.2.9beta3, gnu emacs 20.4.1 (sparc-sun-solaris2.8),
Thanks,
[EMAIL PROTECTED]