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]



Reply via email to