Patch to jde-ant.el
"Paul J. Ste. Marie" <[email protected]>
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
I've been finding that projects in directories with spaces break
jde-ant. The biggest problem seems to be that the -buildfile rgument
either doesn't get quoted, or it's quoted with single quotes, which
doesn't work on Windows.
My somewhat ugly solution was changing:
< (if (not (string= buildfile ""))
< (setq ant-command
< (concat ant-command
< " -buildfile " delimiter
< (jde-normalize-path buildfile)
< delimiter)))
at line 295 to
> (if (not (string= buildfile ""))
> (setq ant-command
> (concat ant-command
> " -buildfile "
> ;; Quote path if it contains a space or period.
> (if (or
> (string-match " " (jde-normalize-path buildfile))
> (string-match "." (jde-normalize-path buildfile)))
> (concat "\"" (jde-normalize-path buildfile) "\"")
> (jde-normalize-path buildfile)))))
delimiter gets set to either " or ' at the top of the function, but I
wasn't quite certain what all it was being used for or whether mucking
with it was a good idea.
--
--Paul
A wholly owned subsidiary of:
Sissy: DL R+W+B C 2 X L W C++ I++ T+ A E H++ S+ V-- F+ Q P B PA+ PL
Aldebaran: DM Rt H 1 Y L- W+ C+ I++ T++ A+++ E H++ S+ V+ F++ Q+ P B++
PA- PL--