setting jde-ant-working-directory has no effect when I set it for all session or when I set it for the project.
The result, when I start ant, is the same like starting ant without setting jde-ant-working-directory.
Example: working-directory is set to "c:/home/geoMIA/" and starting ant from a file in c:/home/geoMIA/src/de/itcampus/geomia/wag/anwendung:
cd c:/home/geoMIA/src/de/itcampus/geomia/wag/anwendung/
c:/Programme/jdk1.3.1/bin/java.exe -classpath ... -Dant.home=c:/Programme/apache-ant-1.5.2 org.apache.tools.ant.Main -buildfile "c:/home/geoMIA/build.xml" -emacs test_all
Buildfile: c:\home\geoMIA\build.xml
Thank you for any suggestions,
Christian
PS: My Setup: jdee 2.3.2 emacs 21.2 ant 1.5.2
(jde-project-file-version "1.0") (jde-set-variables '(jde-run-classic-mode-vm t) '(jde-bug-key-bindings (quote (("[f6]" . jde-bug-step-over) ("[f7]" . jde-bug-step-into) ("[? ? ?]" . jde-bug-step-into-all) ("[? ? ?]" . jde-bug-step-out) ("[? ? ?]" . jde-bug-continue) ("[? ? ?]" . jde-bug-toggle-breakpoint)))) '(jde-compile-finish-hook (quote (jde-compile-finish-refresh-speedbar))) '(jde-global-classpath (quote ("c:/home/geoMIA/classes" "c:/home/geoMIA/lib" "c:/home/geoMIA/lib/xalan"))) '(jde-jdk (quote ("1.3.1"))) '(jde-run-option-vm-args (quote ("-classic"))) '(jde-compile-option-directory "c:/home/geoMIA/classes") '(jde-lib-directory-names (quote ("^lib" "^jar" "^build" "^xalan"))) '(jde-compile-option-sourcepath (quote ("c:/home/geoMIA/src"))) '(jde-sourcepath (quote ("c:/home/geoMIA/src"))) '(jde-db-query-missing-source-files nil) '(jde-run-application-class "de.itcampus.geomia.wag.GeoMIAShutdown") '(jde-help-docsets (quote (("JDK API" "c:/home/docs/jdk1.3/docs/api" nil) ("User (javadoc)" "c:/home/geoMIA/javadoc" nil) ("User (javadoc)" "c:/Programme/junit3.8.1/javadoc" nil)))) '(jde-ant-invocation-method (quote ("Java"))) '(jde-compile-option-command-line-args nil) '(jde-ant-working-directory "c:/home/geoMIA/"))
;;(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t) ;;(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist)) ;;(add-to-list 'load-path "~/lib/elisp") (add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/docbookide") ;;(add-to-list 'load-path "c:/Programme/jde-2.2.8/lisp") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/jde-2.2.9beta10/lisp") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/speedbar-0.14beta4") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/eieio-0.17beta4") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/semantic-1.4/") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/elib-1.0/") (add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/psgml-1.2.3") (add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/auctex-10.0g") ;;(add-to-list 'load-path "c:/Programme/emacs-21.2/site-lisp/preview-latex-0.5.8.2/")
;;(require 'preview) (require 'jde) (require 'ecb) (require 'vvb-mode) ;;auctex (require 'tex-site) (add-hook 'TeX-language-de-hook (function (lambda () (ispell-change-dictionary "german")))) (add-hook 'latex-mode-hook (function (lambda () (local-set-key "\"" (quote self-insert-command))))) (add-hook 'latex-mode-hook 'turn-on-auto-fill) (if window-system (require 'hilit-LaTeX)) (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) (autoload 'xml-mode "psgml" "Major mode to edit XML files." t) ;; ispell (setq ispell-dictionary "german") (setq ispell-local-dictionary "german") ;; flyspell (add-hook 'text-mode-hook 'flyspell-mode) (autoload 'flyspell-mode "flyspell" "On-the-fly ispell." t) (setq flyspell-issue-welcome-flag nil) (setq flyspell-default-dictionary "german") ;;w3 (add-to-list 'load-path "c:/Programme/w3/lisp") (require 'w3-auto) (add-to-list 'load-path "c:/Programme/emacspeak-14.0/lisp") (setq semantic-load-turn-everything-on t) (require 'semantic-load) (autoload 'vhdl-mode "vhdl-mode" "VHDL Mode" t) (setq auto-mode-alist (cons '("\\.vhd?\\'" . vhdl-mode) auto-mode-alist)) (add-hook 'java-mode-hook 'turn-on-font-lock) (add-hook 'c-mode-hook 'turn-on-font-lock) ;; DocBook IDE mode (autoload 'docbook-mode "docbookide" "Major mode for DocBook documents." t) ;; Turn on font lock when in DocBook mode (add-hook 'docbook-mode-hook 'turn-on-font-lock) (add-hook 'docbook-mode-hook (function (lambda () (local-set-key [tab] (quote docbook-force-electric-tab))))) (add-hook 'docbook-mode-hook (function (lambda () (local-set-key [C-tab] (quote docbook-complete))))) ;; You might want to make this the default for .sgml or .xml documents, ;; or you might want to rely on -*- DocBook -*- on the first line, ;; or perhaps buffer variables. It's up to you... (setq auto-mode-alist (append (list '("\\.sgm" . docbook-mode) '("\\.sgml" . docbook-mode) '("\\.xml" . docbook-mode) '("\\.html" . docbook-mode)) auto-mode-alist)) ;; mmm-mode (add-to-list 'load-path "c:/Programme/mmm-mode-0.4.7") (require 'mmm-mode) (setq mmm-global-mode 'maybe) (mmm-add-mode-ext-class nil "\\.html" 'html-js) (global-font-lock-mode t) (setq font-lock-maximum-decoration t) ;; '((c-mode . 3) (c++-mode . 3) (java-mode . 3))) (setq line-number-mode t) (setq column-number-mode t) (display-time) (font-lock-add-keywords 'c++-mode '(("\\<\\(ACHTUNG\\)" 1 font-lock-warning-face prepend))) (font-lock-add-keywords 'c++-mode '("\\<foreach\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_items\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_nodes\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_rev_nodes\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_rev_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_adj_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_out_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_in_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_inout_edges\\>")) (font-lock-add-keywords 'c++-mode '("\\<forall_adj_nodes\\>")) (font-lock-add-keywords 'c-mode '(("\\<\\(ACHTUNG\\)" 1 font-lock-warning-face prepend))) (defun my-c-mode-common-hook () ;; use bsd style for all C, C++, and Objective-C code (c-set-style "stroustrup") ;; other customizations can go here ) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) (fset 'first-strip [?\C- ?\C-s ?_ ?_ right left ?\C-w ?\C-e ?\\ ?\\ escape ?b ?& ? escape ?b ?& ? escape ?b ?& ? escape ?b escape backspace escape ?d escape backspace backspace down ?\C-a]) ;;(global-set-key (quote [home]) (quote beginning-of-buffer)) ;;(global-set-key (quote [end]) (quote end-of-buffer)) (global-set-key (quote [f1]) (quote goto-line)) (global-set-key (quote [f2]) (quote jde-compile)) (global-set-key (quote [f3]) (quote jde-build)) (global-set-key (quote [f4]) (quote jde-run)) ;;(global-set-key (quote [f3]) (quote gdb)) ;;(global-set-key (quote [f4]) (quote shell)) ;;(global-set-key (quote [f9]) (quote jde-compile)) ;;(global-unset-key "C-x'") (global-set-key "\C-x#" (quote next-error)) (global-set-key " " (quote newline-and-indent)) (setq options-save-faces 't) (setq exec-path '("c:/bin/" "c:/sbin/" "c:/usr/bin/" "c:/usr/local/bin/" "c:/usr/local/sbin/" "c:/usr/ccs/bin/" "c:/Programme/j2sdk1.4.0/bin")) (setq Info-default-directory-list '("/usr/local/lib/info/" "/usr/info/" "c:/emacs/info/" "c:/Programme/emacs-21.2/info/")) (setq Info-directory-list '("c:/usr/info/" "/usr/local/lib/info/" "/usr/local/info/" "c:/Programme/emacs-21.2/info/")) ;; fuer ansi-color.el ;;(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t) ;;(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. '(c-basic-offset 4) '(case-fold-search t) '(current-language-environment "German") '(default-input-method "german-postfix") '(ecb-compilation-buffer-names (quote (("*compilation*")))) '(ecb-compile-window-height nil) '(ecb-compile-window-temporally-enlarge (quote both)) '(ecb-layout-window-sizes (quote (("left8" (0.19480519480519481 . 0.2777777777777778) (0.19480519480519481 . 0.25925925925925924) (0.19480519480519481 . 0.2777777777777778) (0.19480519480519481 . 0.16666666666666666))))) '(ecb-source-path (quote ("f:/home/geoMIA/src" "f:/home/geoMIA/test"))) '(ecb-truncate-lines t) '(global-font-lock-mode t nil (font-lock)) '(indent-tabs-mode nil) '(jde-ant-args "-emacs") '(jde-ant-buildfile "build.xml") '(jde-ant-enable-find t) '(jde-ant-home "c:/Programme/apache-ant-1.5.2") '(jde-ant-invocation-method (quote ("Java"))) '(jde-ant-program "ant.bat") '(jde-ant-read-target t) '(jde-ant-use-global-classpath t) '(jde-ant-user-jar-files (quote ("c:/Programme/apache-ant-1.5.1/lib/junit.jar"))) '(jde-ant-working-directory "c:/home/geoMIA/") '(jde-bug-jdk-directory "C:/Programme/jsdk1.4.1_01/") '(jde-bug-vm-includes-jpda-p t) '(jde-build-function (quote (jde-ant-build))) '(jde-check-version-flag nil) '(jde-compile-option-classpath nil) '(jde-compile-option-command-line-args (quote ("-source" "1.4"))) '(jde-compile-option-debug (quote ("selected" (t t t)))) '(jde-compile-option-hide-classpath t) '(jde-compiler (quote ("javac server" ""))) '(jde-complete-add-space-after-method t) '(jde-complete-display-qualified-types nil) '(jde-complete-function (quote (jde-complete-minibuf))) '(jde-complete-insert-method-signature nil) '(jde-complete-signature-display (quote ("Buffer"))) '(jde-complete-unique-method-names nil) '(jde-db-debugger (quote ("JDEbug" "" . "Executable")) t) '(jde-db-source-directories (quote ("c:/home/velogate/code/java/src" "c:/home/velogate/code/java/output/content/Web-inf/classes/Generated Source"))) '(jde-debugger (quote ("JDEbug"))) '(jde-enable-abbrev-mode t) '(jde-gen-cflow-else (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"else\")" "'(l '> \"else \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"'>'n'>)" ")"))) '(jde-gen-cflow-else-if (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"eif\")" "'(l '> \"else if (\" (p \"else-if-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"'> n)" ")"))) '(jde-gen-cflow-enable t) '(jde-gen-cflow-for-i (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"fori\")" "'(l '> \"for (int \" (p \"variable: \" var) \" = 0; \"" "(s var)" "\" < \"(p \"upper bound: \" ub)\"; \" (s var) \"++) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"" "(if jde-gen-comments" "'(l \" // end of for (int \" (s var) \" = 0; \"" "(s var) \" < \" (s ub) \"; \" (s var) \"++)\")" ")" "'>'n'>" ")" ")"))) '(jde-gen-cflow-try-catch (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"try\")" "'(l \"try \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"'>'n" "'> \"catch (\" (p \"catch what: \" clause) \"Exception e) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"" "(if jde-gen-comments" "'(l \" // end of try-catch\")" ")" "'>'n'>" ")" ")"))) '(jde-gen-cflow-while (quote ("(if (jde-parse-comment-or-quoted-p)" "'(l \"while\")" "'(l '> \"while (\" (p \"while-clause: \" clause) \") \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"}\"'>'n'>)" ")"))) '(jde-gen-class-buffer-template (quote ("(funcall jde-gen-boilerplate-function)" "(jde-gen-get-package-statement)" "\"/**\" '>'n" "\" * \"" "(file-name-nondirectory buffer-file-name) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto:\" (eval user-mail-address) \"\\\">\" (user-full-name) \"</a>\"'>'n" "\" * @version $Revision$, $Date$, \" '>'n" "\" */\" '>'n'" "'>'n" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" \" (jde-gen-get-extend-class)" "(if jde-gen-k&r " " ()" " '>'n)" "\"{\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" " jde-gen-method-signature-padding-1 \"()\" jde-gen-method-signature-padding-3 " "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'p'n" "\"}\">" "'>'n" "(jde-gen-get-interface-implementation)" "'>'n" "\"}\">" "\"// \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-gen-comments nil) '(jde-gen-junit-test-class-buffer-template (quote ("(funcall jde-gen-boilerplate-function)" "(jde-gen-get-package-statement)" "\"import junit.framework.Test;\" '>'n" "\"import junit.framework.TestCase;\" '>'n" "\"import junit.framework.TestSuite;\" '>'n" "'n" "\"/**\" '>'n" "\" * \"" "\" Unit Test for class\"" "(jde-gen-junit-class (file-name-nondirectory buffer-file-name)) '>'n" "\" *\" '>'n" "\" *\" '>'n" "\" * Created: \" (current-time-string) '>'n" "\" *\" '>'n" "\" * @author <a href=\\\"mailto:\" (eval user-mail-address) \"\\\">\" (user-full-name) \"</a>\"'>'n" "\" * @version $Revision$, $Date$\" '>'n" "\" */\" '>'n'" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" extends TestCase \" " "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'n" " \" /** \" '>'n" " \"* Creates a new <code>\"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"</code> instance.\" '>'n" " \"*\" '>'n" " \"* @param name test name\" '>'n" " \"*/\"'>'n" "\"public \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" (String name)\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"super(name);\"'>'n" "\"}\"'>" "'>'n" "'n" "\"/**\" '>'n" "\"* @return a <code>TestSuite</code>\" '>'n" "\"*/\" '>'n" "\"public static TestSuite suite()\" '>" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"TestSuite suite = new TestSuite ();\" '>'n" "'>'n" "\"return suite;\" '>'n" "\"}\"'>'n'n" "\"/** \" '>'n" "\"* Entry point \" '>'n" "\"*/ \" '>'n" "\"public static void main(String[] args) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "\"junit.textui.TestRunner.run(suite());\"'>'n" "\"}\"'>'n" "\"}\">" "\"// \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'>'n"))) '(jde-gen-k&r nil) '(jde-global-classpath (quote ("c:/home/geoMIA/classes" "c:/home/geoMIA/lib" "c:/Programme/xalan-j_2_5_D1/bin"))) '(jde-help-docsets (quote (("JDK API" "c:/home/docs/jdk1.3/docs/api" nil) ("User (javadoc)" "f:/home/geoMIA/javadoc" nil) ("User (javadoc)" "c:/Programme/junit3.8.1/javadoc" nil)))) '(jde-import-auto-sort t) '(jde-javadoc-exception-tag-template "\"* @exception \" type \" falls ein Fehler auftritt\"") '(jde-javadoc-param-tag-template "\"* @param \" name \" \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" Wert\"") '(jde-javadoc-return-tag-template "\"* @return \" (jde-javadoc-a type) \" \" (jde-javadoc-code type) \" Wert\"") '(jde-jdk-registry (quote (("1.4.0" . "c:/Programme/j2sdk1.4.0") ("1.4.1_01" . "c:/Programme/j2sdk1.4.1_01") ("1.3.1" . "c:/Programme/jdk1.3.1")))) '(jde-key-bindings (quote (("[? ? ?]" . jde-run-menu-run-applet) ("[? ? ?]" . jde-build) ("[? ? ?]" . jde-compile) ("[? ? ?]" . jde-debug) ("[? ? ?]" . jde-find) ("[? ? ?i]" . jde-wiz-implement-interface) ("[? ? ?j]" . jde-javadoc-generate-javadoc-template) ("[? ? ?k]" . jde-javadoc-code) ("[? ? ?]" . bsh) ("[? ? ?]" . jde-gen-println) ("[? ? ?]" . jde-browse-jdk-doc) ("[? ? ?]" . jde-save-project) ("[? ? ?]" . jde-wiz-update-class-list) ("[? ? ?]" . jde-run) ("[? ? ?]" . speedbar-frame-mode) ("[? ? ?]" . jde-db-menu-debug-applet) ("[? ? ?]" . jde-help-symbol) ("[? ? ?]" . jde-open-class-source) ("[? ? ?]" . jde-import-find-and-import) ("[? ? ?]" . jde-run-etrace-prev) ("[? ? ?]" . jde-run-etrace-next) ("[(control c) (control v) (control ?.)]" . jde-complete-menu) ("[(control c) (control v) ?.]" . jde-complete-minibuf) ("[(control tab)]" . jde-complete-minibuf)))) '(jde-lib-directory-name ".*") '(jde-lib-directory-names (quote ("^lib" "^jar" "^build" "^bin"))) '(jde-run-application-class "") '(jde-run-classic-mode-vm nil) '(jde-run-option-application-args (quote ("./conf/servlet/servlet.conf"))) '(jde-run-option-classpath nil) '(jde-run-option-java-profile (quote (nil . "./java.prof"))) '(jde-run-option-vm-args nil) '(jde-run-read-app-args nil) '(mouse-avoidance-mode (quote exile) nil (avoid)) '(query-user-mail-address nil) '(sentence-end-double-space nil) '(speedbar-frame-parameters (quote ((minibuffer) (width . 30) (border-width . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) (unsplittable . t)))) '(speedbar-show-unknown-files t) '(speedbar-use-images t) '(tab-width 4) '(todo-file-do "u:/.todo-do") '(todo-file-done "u:/.todo-done") '(todo-file-top "u:/.todo-top") '(user-full-name "Christian Matuszewski") '(user-mail-address "[EMAIL PROTECTED]")) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) (autoload 'speedbar-frame-mode "speedbar" "Popup a speedbar frame" t) (autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t) (global-set-key [(f5)] 'speedbar-get-focus) (add-hook 'html-mode-hook (lambda () (require 'sb-html))) ;; Options Menu Settings ;; ===================== ;;(cond ;; ((and (string-match "XEmacs" emacs-version) ;; (boundp 'emacs-major-version) ;; (or (and ;; (= emacs-major-version 19) ;; (>= emacs-minor-version 14)) ;; (= emacs-major-version 20)) ;; (fboundp 'load-options-file)) ;; (load-options-file "/home/matuszew/.xemacs-options"))) ;; ============================ ;; End of Options Menu Settings (load "desktop") (desktop-load-default) (desktop-read) ;;; Emacs/W3 Configuration (setq load-path (cons "c:/Programme/emacs-21.2/share/emacs/site-lisp" load-path)) (condition-case () (require 'w3-auto "w3-auto") (error nil))