Title: Problem with jde-ant-build
I have the default value for jde-cygwin-path-converter, which is the same as yours.
 
This isn't a path problem anyway - the problem is that jde-build-ant-command puts quotes around the value specified for the -buildfile parameter:
    (if (not (string= buildfile ""))
        (setq ant-command
              (concat ant-command
                      " -buildfile " delimiter
                      (jde-normalize-path buildfile)
                      delimiter)))

`delimiter' is set to single quote.

Putting quotes around the value of the -buildfile parameter also causes the same problem when running `ant' directly from the command line with zsh, bash and cmd.  It just seems a bug to be adding the single quotes.

When I delete the 2 occurrences of `delimiter' from the above snippet, it works fine.

    --- John


From: Brian Rumple [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 19:36
To: John Cooper; [EMAIL PROTECTED]
Subject: RE: Problem with jde-ant-build

I have had this problem a long time in the past and I wasn't sure the exact solution that I used.  I don't think that it is a code issue, but probably a configuration one.
 
Do you have jde-cygwin-path-converter set?  Mine is set like '(jde-cygwin-path-converter (quote (jde-cygwin-path-converter-internal)))
 
I also believe that set jde-ant-buildfile would be more appropriate than setting buildfile, but maybe you have a good reason for it.
 
-Brian
 


From: John Cooper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 1:56 PM
To: Brian Rumple; John Cooper; [EMAIL PROTECTED]
Subject: RE: Problem with jde-ant-build

Unfortunately the patch doesn't make any difference for me, because the setq is only done when bulidfile is null, and my buildfile is set to "c:/javabld/build.xml". I think the problem is that buildfile is later being surrounded by quotes (the value of the delimiter variable).

    --- John


From: Brian Rumple [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 18:37
To: John Cooper; [EMAIL PROTECTED]
Subject: RE: Problem with jde-ant-build

I made a change to the jde-ant.el file that I believe solves this problem.  The diff is below:
 
Index: lisp/jde-ant.el
===================================================================
RCS file: /pack/anoncvs/jde/lisp/jde-ant.el,v
retrieving revision 1.72
diff -r1.72 jde-ant.el
246c246
<     (setq buildfile jde-ant-buildfile))
---
>     (setq buildfile (jde-normalize-path jde-ant-buildfile)))
 
 
 


From: John Cooper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: Problem with jde-ant-build

[I'm using jde 2.3.4beta5]

jde-ant-build fails for me, with the following error:
  cd h:/elisp/jde-2.3.4beta5/lisp/
  ant -Dant.home=c:/javabld/ant -buildfile 'c:/javabld/build.xml' -emacs -Dbuild.compiler.emacs=true  clean
  Buildfile: 'c:\javabld\build.xml' does not exist!
  Build failed

  Compilation finished at Tue Aug 17 17:33:18

I have jde-ant-invocation-method set to the default value ("Script").
To get it working, I had to remove the use of `delimiter' in the following section of jde-build-ant-command:

    (if (not (string= buildfile ""))
        (setq ant-command
              (concat ant-command
                      " -buildfile " delimiter
                      (jde-normalize-path buildfile)
                      delimiter)))

I use cygwin zsh as my cmd line shell (Windows XP), and passing the single quotes to ant also cause the same error:

  $ ant -Dant.home=c:/javabld/ant -buildfile \'c:/javabld/build.xml\' -emacs -Dbuild.compiler.emacs=true clean
  Buildfile: 'c:\javabld\build.xml' does not exist!
  Build failed

I also have the following set in my .emacs:
   explicit-sh-args nil
   shell-execute-helper "shelex.exe"
   shell-file-name "cmdproxy"

Should delimer be removed from here, or are there some circumstances where it is required?

    --- John

Reply via email to