-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This fixes a bug with 1.4.  If you are using jde-ant-enable-find it would not
specify the buildfile correctly.

;; jde-ant.el --- Use Apache Ant to build your JDE projects

;; $Revision: 1.28 $ $Date: 2001/12/03 16:35:44 $ 

;;
;; Author: Jason Stell | [EMAIL PROTECTED]
;; Author: Kevin A. Burton ( [EMAIL PROTECTED] )
;; Created: 19 Oct 2000
;; Version 1.4.1
;;

;; This file is not part of Emacs

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.

;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING.  If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;; Commentary:
;; This file defines jde-ant-build and some helper functions.
;; jde-ant-build uses the specified ant program/shell script to 
;; execute a specified build file (in the project root). 
;; 
;;
;; To do: 
;; -- allow interactive ant target/argument specification. 
;;    {DONE - version 1.1}
;;
;; -- consider using jde-run-java-vm to execute Ant instead of
;;    requiring a shell script.
;;
;;
;; Notes:
;; -- The JDE (Java Development Environment for Emacs) can be
;;    downloaded at http://sunsite.auc.dk/jde/
;;
;; -- Apache Ant is a Java & XML build system that can be downloaded 
;;    at http://jakarta.apache.org/ant/
;;
;; Version History:
;;
;; -- Version 1.3 (19 June 2001)
;;    : Addition of jde-ant-projecthelp to display list of targets for
;;      the current buildfile.
;; -- Version 1.2 (4 June 2001) 
;;    : Addition of jde-ant-read-buildfile option to prompt for the buildfile 
;;      name -- contributed by Rob Shaw <[EMAIL PROTECTED]>
;;    : Various Bug fixes contributed by Rob Shaw <[EMAIL PROTECTED]> 
;;        - The setting of the system property in a format other
;;          than -Dname=value had the side effect of negating the -emacs 
;;          command line argument.
;;        - The setting of the current directory to the location of the 
;;          JDE project file is now taking place when
;;          jde-ant-enable-find is nil.
;;        - The ant target is now the last thing to be appended to
;;          ant command to avoid any possible confusion for ANT
;;          as to what is the desired target.
;; -- Version 1.2b2 (25 May 2001) 
;;    : Fix to properly use the -find <buildfile> Ant switch--contributed
;;      by Rob Shaw <[EMAIL PROTECTED]>.
;; -- Version 1.2b1 (23 May 2001) 
;;    : Added jde-ant-enable-find custom flag to use the -find switch
;;      available in Ant. This overrides the requirement for a JDE
;;      project file
;;    : Fixed minor bug missing whitespace before -buildfile switch
;;      when building the ant compile command
;; -- Version 1.1 (20 October 2000)
;;    : Added interactive prompts (optional, based on customizable
;;      toggles) for Ant target and additional args. Removed the 
;;      jde-ant-target custom variable, since this is really
;;      represented by the default target in the build file.
;;    : The -f switch seems to be causing problems. Removed it from
;;      the default jde-ant-args.
;;    : Basic changes to the way the ant command is assembled.
;;
;; -- Version 1.0 (19 October 2000)
;;    Initial Version

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; jde-ant 1.4 notes
;; 
;;; Fri Jan 11 2002 03:59 PM ([EMAIL PROTECTED]): 
;;
;; It has become frustrating using (jde-ant-build) without true interactive
;; arguments.  I set out to refactor jde-ant.el so that jde-ant-build can use
;; true arguments like (jde-ant-build "/project/test/build.xml" "compile") like
;; a real lisp function.  This is important because it allows us to use
;; jde-ant-build more like an API function and we can also use
;; repeat-complex-command like normal Emacs code.
;;
;; This was also a design that could have caused problems in the long term.  For
;; example jde-ant.el depended on function side effects for operation.  For
;; example jde-ant-get-target-alist used jde-ant-find-build-file (in some
;; situations).   
;;
;; Also, looking at the code, I think this refactor will avoid a lot of long
;; term bugs we probably would have ran into.  A good example is that we were
;; using different algorithms in different places for guessing the buildfile.
;; 

;; Changes:
;;
;; - jde-build-ant-command now takes an optional argument buildfile which, if
;;   omitted
;;
;; - The jde-ant-buildfile variable is now deprecated as anything but providing
;;   a default
;;
;; - jde-ant-projecthelp now uses an interactive prompt and also shares a
;;   function with jde-ant-build for reading the buildfile.
;;
;; - jde-ant-find-build-file uses jde-ant-buildfile as a default reference and
;;   returns a string for the buildfile to use or nil.
;;
;; - jde-ant-get-target-alist now accepts a buildfile instead of using find.  We
;; now parameterize the filename.
;;
;; - jde-ant-interactive-buildfile is saved for every use of jde-ant-build and
;; used as the default next time we enter.
;;
;; - We no longer use the Ant version of -find.  We now have a lisp version of
;; this.  This was necessary in order to support jde-ant-read-target and since
;; we already have an implementation it doesn't make sense to have Ant find the
;; file a second time.  
;;
;; - documentation updates.
;;
;; - history variables now just use -history instead arg-history... less confusing.
;;
;; - jde-ant-interactive-target is now gone, this is no longer needed.
;; - jde-ant-interactive-args is now gone, this is no longer needed.

;; - we should be using the -history variables instead of 'interactive'
;; variables.

;; TODO:
;; 
;; - target history should be specific to a buildfile.  If it is not we could
;; accidentally use an invalid target on the wrong file.
;;
;; - maybe jde-ant-read-buildfile and jde-ant-enable-find DON'T HAVE TO BE
;; INCOMPATIBLE.  Maybe if jde-ant-read-buildfile is enabled we could use it as
;; the default.  That would work nicely.

;;; TESTS:
;;
;; We need to test that the following functionality still works.
;;
;; - (CONFIRMED) jde-ant-read-buildfile
;; - (CONFIRMED) jde-ant-read-target
;; - (CONFIRMED) jde-ant-enable-find
;; - (CONFIRMED) jde-ant-complete-target
;; 
;; - (CONFIRMED) last target is used if we execute this interactively.
;;
;; - (CONFIRMED) when we are interactively prompting for a filename using 
read-file-name,
;;   use the last selected file by default.  When we first enter we should have
;;   NO filename except the default directory.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Define XEmacs- and Emacs-only variables 
;; and functions to avoid compiler warnings.
(eval-when (compile)
  (if jde-xemacsp
      (progn
        (defvar compilation-enter-directory-regexp-alist)
        (defvar compilation-leave-directory-regexp-alist)
        (defvar compilation-file-regexp-alist)
        (defvar compilation-nomessage-regexp-alist)
        (defvar compilation-scroll-output)
        (defvar compilation-process-setup-function)
        (defvar last-nonmenu-event))))

(defgroup jde-ant nil
  "JDE Ant"
  :group 'jde
  :prefix "jde-ant-")

;;; start of Douglas WF Acheson mod
;;; The next three custom variables and defun added by Douglas WF Acheson to
;;; allow a user to select how ant is invoked, either by script or via Java

(defcustom jde-ant-invocation-method (list "Script")
  "*Specifies how to invoke ant. Ant can be invoked in one of three
ways. The first is via the ant script/program that comes with ant.
The second is via java and the third is via the Ant Server." 
  :group 'jde-ant
  :type '(list
           (radio-button-choice
             (const "Script")
             (const "Java")
             (const "Ant Server"))))

(defcustom jde-ant-home ""
  "*Directory where ant is install."
  :group 'jde-ant
  :type  'file)

(defcustom jde-ant-user-jar-files nil
  "*Specifies jar files that hold user-defined tasks."
  :group 'jde-ant
  :type '(repeat (file :tag "Path")))

(defcustom jde-ant-program "ant"
  "*Specifies name of ant program/script."
 :group 'jde-ant
 :type 'string)

(defcustom jde-ant-args "-emacs"
  "*Specifies arguments to be passed to make program."
  :group 'jde-ant
  :type 'string)

(defcustom jde-ant-buildfile "build.xml"
  "*Specifies the default buildfile to use."
  :group 'jde-ant
  :type 'string)

(defcustom jde-ant-read-buildfile nil
"*Specify whether to prompt for a buildfile. If non-nil, the jde-ant-build
command prompts you for an ant buildfile.  Note that `jde-ant-read-buildfile'
and `jde-ant-enable-find' are incompatible and that `jde-ant-read-buildfile'
will override the former. "
  :group 'jde-ant
  :type 'boolean)

(defcustom jde-ant-read-target nil
"*Specify whether to prompt for a build target. If non-nil, the 
jde-ant-build command prompts you for an ant target."
  :group 'jde-ant
  :type 'boolean)

(defvar jde-ant-interactive-buildfile nil
  "Defauilt buildfile to use when prompting interactively.")

(defvar jde-ant-interactive-target-history nil
  "History of targets entered in the minibuffer.")

(defcustom jde-ant-read-args nil
"*Specify whether to prompt for additional arguments to pass to ant. If non-nil, the 
jde-ant-build command prompts you for the additional arguments."
  :group 'jde-ant
  :type 'boolean)

(defvar jde-ant-interactive-args-history nil
"History of targets entered in the minibuffer.")

(defvar jde-ant-buildfile-history nil
 "History of targets entered in the minibuffer.")
 
(defcustom jde-ant-enable-find nil
"*Specify whether jde-ant find the build.xml file based on your current
directory. If non-nil, we will search up the directory hierarchy from the
current directory for the build definition file. Also note that, if non-nil,
this will relax the requirement for an explicit jde project file.  In order for
this to work `jde-ant-read-buildfile' must be nil."
   :group 'jde-ant
   :type 'boolean)

(defcustom jde-ant-complete-target t
  "*Specify whether to enable completion of build target names in the
minibuffer.

If non-nil, the jde-ant-build command allows you to use tab completion
in the minibuffer to specify the build target name.  This list of
valid build targets is determined by parsing the Ant build file.  This
option has no effect if jde-ant-read-target is nil."
  :group 'jde-ant
  :type 'boolean)

(defcustom jde-ant-target-regexp 
"<\\s-*target\\s-[^...]*?name\\s-*=\\s-*\"\\s-*\\([^\"]+\\)"
  "*Regular expression used to match target names in Ant build files."
  :group 'jde-ant
  :type 'string)

(defun jde-build-ant-command (target more-args &optional buildfile)
  "Constructs the java ant command. The variable `jde-ant-home' is used
if it is set, otherwise it gets the ant home from the environment
variable ANT_HOME."

  ;;provide a default buildfile.
  (when (null buildfile)
    (setq buildfile jde-ant-buildfile))
    
  (let* ((ant-home (if (string= "" jde-ant-home)
                       (jde-normalize-path (getenv "ANT_HOME"))
                     (jde-normalize-path jde-ant-home)))
         (ant-command
          (concat 
           (if (string= (car jde-ant-invocation-method) "Script")
               jde-ant-program)
           (if (string= (car jde-ant-invocation-method) "Java")
               (concat 
                "java -classpath " 
                (if (and (eq system-type 'windows-nt)
                         (string-match "sh$" shell-file-name))
                    "\"")
                (jde-build-classpath
                (append
                 (list 
                  (expand-file-name "lib/ant.jar" ant-home)
                  (expand-file-name "lib/crimson.jar" ant-home)
                  (expand-file-name "lib/jaxp.jar" ant-home)
                  (expand-file-name "lib/optional.jar" ant-home)
                  (expand-file-name "lib/tools.jar" (jde-get-jdk-dir)))
                 jde-ant-user-jar-files))
               (if (and (eq system-type 'windows-nt)
                        (string-match "sh$" shell-file-name))
                   "\"")))
          " -Dant.home="
          ant-home
          (if (string= (car jde-ant-invocation-method) "Java")
              (concat
               " "
               "org.apache.tools.ant.Main")))))
          
    (if (not (string= buildfile ""))
        (setq ant-command 
              (concat ant-command 
                      " -buildfile \""
                      (jde-normalize-path buildfile)
                      "\"")))

    (if (not (string= jde-ant-args ""))
        (setq ant-command (concat ant-command " " jde-ant-args)))

    (if (not (string= more-args ""))
        (setq ant-command (concat ant-command " " more-args)))

    (if (not (string= target ""))
        (setq ant-command (concat ant-command " " target " ")))
    
    ant-command))

(defun jde-ant-interactive-get-buildfile()
  "Get a buildfile interactively.  This is used so that code that needs to read
  a buildfile from interactive can share the same type of behavior.  This will
  return a new filename which points to the build.xml file to use."

  (let(buildfile)

    (if jde-ant-read-buildfile
        ;;read the buildfile from the user.

        ;;figure out which directory to execute from.
        (let(prompt-directory prompt-filename)

          (if jde-ant-interactive-buildfile
              (progn
                (setq prompt-directory (file-name-directory 
jde-ant-interactive-buildfile))
                (setq prompt-filename (file-name-nondirectory 
jde-ant-interactive-buildfile)))
            (setq prompt-directory default-directory)
            (setq prompt-filename ""))
          
          (setq buildfile (read-file-name "Buildfile: " prompt-directory nil t 
prompt-filename)))
        
      (if jde-ant-enable-find 
          (progn 
            (setq buildfile (jde-ant-find-build-file default-directory))

            (when (null buildfile)
              (error "Could not find Ant build file"))

            (when (not (file-exists-p buildfile))
              (error "File does not exist %s " buildfile)))
        
        ;;use the default buildfile.
        (setq buildfile jde-ant-buildfile)))

    buildfile))

;;;###autoload
(defun jde-ant-build(buildfile target &optional interactive-args)
  "Build the current project using Ant.  If interactive, we try to prompt the
  user for certain variables.."
  (interactive
   (let(buildfile target interactive-args)

     ;;build up the list of args we should use

     ;;NOTE: we aren't using history anymore.  the read-file-name function uses
     ;;its own history.  Is this acceptable?

     ;;get the buildfile.
     (setq buildfile (jde-ant-interactive-get-buildfile))
     
     ;;get the target using completion.
     (if jde-ant-read-target
         (if jde-ant-complete-target
             (setq target (completing-read "Target to build: "
                                           (jde-ant-get-target-alist buildfile)
                                           (nth 0 jde-ant-interactive-target-history)
                                           t
                                           nil
                                           'jde-ant-interactive-target-history))

           ;;without using completion... read the target as a string.
           (setq target (read-from-minibuffer "Target to build: "
                                              (nth 0 
jde-ant-interactive-target-history)
                                              nil
                                              nil
                                              'jde-ant-interactive-target-history))))

     (if jde-ant-read-args
         (setq interactive-args (read-from-minibuffer "Additional build args: "
                                                      (nth 0 
jde-ant-interactive-args-history)
                                                      nil nil
                                                      
'(jde-ant-interactive-args-history . 1))))

     ;;some of these global variables are defaults.  We should restore then for
     ;;every request.  IE jde-ant-interactive-target and
     ;;jde-ant-interactive-args

     (setq jde-ant-interactive-buildfile buildfile)

     ;;return our new arguments.  This should be a list of buildfile, target and 
optional-args.
     (list buildfile target interactive-args)))

  (message "FIXME (debug): using buildfile: %s" buildfile)
  
  (let ((compile-command (jde-build-ant-command target interactive-args buildfile)))

    (when compile-command
      ;; Force save-some-buffers to use the minibuffer
      ;; to query user about whether to save modified buffers.
      ;; Otherwise, when user invokes the command from
      ;; menu, save-some-buffers tries to popup a menu
      ;; which seems not to be supported--at least on
      ;; the PC.
      (if (and (eq system-type 'windows-nt)
               (not jde-xemacsp))
          (let ((temp last-nonmenu-event))
            ;; The next line makes emacs think that the command
            ;; was invoked from the minibuffer, even when it
            ;; is actually invoked from the menu-bar.
            (setq last-nonmenu-event t)
            (save-some-buffers (not compilation-ask-about-save) nil)
            (setq last-nonmenu-event temp))
        (save-some-buffers (not compilation-ask-about-save) nil))

      (if (string= (car jde-ant-invocation-method) "Ant Server")
          (progn
            (while (string-match "\"" compile-command)
              (setq compile-command (replace-match "" nil nil compile-command)))
            (jde-ant-compile-internal compile-command 
                                      (bsh-eval
                                       (concat "jde.util.AntServer.start(\""
                                               compile-command "\");"))
                                      "No more errors"))
        (compile-internal compile-command "No more errors")))))

(defun jde-ant-compile-internal (command output error-message) 
  "This method displays ant output in a compilation buffer.
error-message is a string to print if the user asks to see another error
and there are no more errors. "
  (let* (error-regexp-alist
         enter-regexp-alist
         leave-regexp-alist
         file-regexp-alist
         nomessage-regexp-alist
         (parser compilation-parse-errors-function)
         (name-of-mode "Compilation") outbuf
         (len (length output)))
        
    (save-excursion                                    ;;getting or creating
      (setq outbuf (get-buffer-create "*compilation*"));;the compilation buffer
      (set-buffer outbuf) ;;setting the compilation buffer
      
      ;; In case the compilation buffer is current, make sure we get the global
      ;; values of compilation-error-regexp-alist, etc.
      (kill-all-local-variables))
        (setq error-regexp-alist compilation-error-regexp-alist)
        (setq enter-regexp-alist (if (not jde-xemacsp) 
compilation-enter-directory-regexp-alist))
        (setq leave-regexp-alist (if (not jde-xemacsp) 
compilation-leave-directory-regexp-alist))
        (setq file-regexp-alist (if (not jde-xemacsp) compilation-file-regexp-alist))
        (setq nomessage-regexp-alist (if (not jde-xemacsp) 
compilation-nomessage-regexp-alist))
    
    (let ((thisdir default-directory)
          outwin)
      (save-excursion
        ;; Clear out the compilation buffer and make it writable.
        (set-buffer outbuf)
        (compilation-mode)
        (setq buffer-read-only nil)
        (buffer-disable-undo (current-buffer))
        (erase-buffer)
        (buffer-enable-undo (current-buffer))
        (insert "CompileServer output:\n")
        (insert command "\n")
        (insert "\n" output "\n")
        (set-buffer-modified-p nil))
      ;; If we're already in the compilation buffer, go to the end
      ;; of the buffer, so point will track the compilation output.
      (if (eq outbuf (current-buffer))
          (goto-char (point-max)))
      ;; Pop up the compilation buffer.
      (setq outwin (display-buffer outbuf))
      (save-excursion
        (set-buffer outbuf)
        (compilation-mode name-of-mode)
        ;; (setq buffer-read-only t)  ;;; Non-ergonomic.
        (set (make-local-variable 'compilation-parse-errors-function) parser)
        (set (make-local-variable 'compilation-error-message) error-message)
        (set (make-local-variable 'compilation-error-regexp-alist)
             error-regexp-alist)
        (if (not jde-xemacsp)
            (progn
              (set (make-local-variable 'compilation-enter-directory-regexp-alist)
                   enter-regexp-alist)
              (set (make-local-variable 'compilation-leave-directory-regexp-alist)
                   leave-regexp-alist)
              (set (make-local-variable 'compilation-file-regexp-alist)
                   file-regexp-alist)
              (set (make-local-variable 'compilation-nomessage-regexp-alist)
                   nomessage-regexp-alist)))
;;      (set (make-local-variable 'compilation-arguments)
;;           (list output error-message))
        (setq default-directory thisdir
              compilation-directory-stack (list default-directory))
        (set-window-start outwin (point-min))
        (or (eq outwin (selected-window))
            (set-window-point outwin (point-min)))
        (compilation-set-window-height outwin)
        
        (if (not jde-xemacsp)
            (if compilation-process-setup-function
                (funcall compilation-process-setup-function))))
     
      (if (not jde-xemacsp)
          (jde-ant-scroll-output outwin))
      )
    ;; Make it so the next C-x ` will use this buffer.
    (setq compilation-last-buffer outbuf)))

(defun jde-ant-scroll-output (window)
  (if compilation-scroll-output
      (save-selected-window
        (select-window window)
        (goto-char (point-max))
        (let* ((result (count-lines-page));;Getting the number of lines
               (lines (substring result (+ (string-match "+" result) 1)
                                 (string-match ")" result)))
               ;;number to offsett the scroll up.(formatting reasons)
               (offset (if compilation-window-height
                           (abs (- compilation-window-height 5))
                         (/ (window-height) 2))))
          (scroll-up (- (string-to-number lines);;reducing the number of 
                        offset)))))) ;;lines to scroll

;;;###autoload
(defun jde-ant-projecthelp(buildfile)
  "Display Ant project help for the current project.
This will execute the Ant program with the `-projecthelp' switch to output
available targets with their descriptions for the current buildfile. This
function uses the same rules as `jde-ant-build' for finding the buildfile."
  (interactive
   (list
    (jde-ant-interactive-get-buildfile)))

  (jde-ant-build buildfile nil "-projecthelp"))
  
(defun jde-ant-find-build-file (dir)
  "Find the next Ant build file upwards in the directory tree from DIR.
Returns nil if it cannot find a project file in DIR or an ascendant directory."

  (let ((file (find (cond ((string= jde-ant-buildfile "") "build.xml")
                          (t jde-ant-buildfile))
                    (directory-files dir) :test 'string=)))
    
    (if file
        (setq file (expand-file-name file dir))
      (if (not (jde-root-dir-p dir))
          (setq file (jde-ant-find-build-file (concat dir "../")))))

    file))

(defun jde-ant-get-target-alist (buildfile)
  "Returns asociation list of valid Ant project targets."

  (let ((targets nil )
        (temp-buf (get-buffer-create "*jde-ant-get-target-list-temp-buffer*")))
    (unwind-protect
        (save-excursion
          (set-buffer temp-buf)
          (erase-buffer)
          (insert-file-contents buildfile)
          (goto-char (point-min))
          (while (re-search-forward jde-ant-target-regexp (point-max) t)
            (setq targets (append targets (list (list (match-string 1)))))))
      (kill-buffer temp-buf))

    targets))

(provide 'jde-ant)

;; Change History 

;;
;; $Log: jde-ant.el,v $
;; Revision 1.28  2001/12/03 16:35:44  jslopez
;; Fixes bug when setting jde-ant-invocation-method to Script.
;;
;; Revision 1.27  2001/11/28 13:22:14  jslopez
;; JDE ant uses jde-normalize-path with
;; jde-ant-home and jde-ant-buildfile.
;;
;; Revision 1.26  2001/11/27 14:04:43  jslopez
;; XEmacs compatability fix.
;;
;; Revision 1.25  2001/11/27 02:23:08  jslopez
;; Adds jde-ant-buildfile-arg-history variable.
;; Fixes jde-ant-target-regexp to match the name attribute
;; when it is in a different ine than the target.
;; i.e. <target description="foo"
;;              name="compile">
;; Removes unnecessary messages.
;; XEmacs compatibility fix.
;;
;; Revision 1.24  2001/11/21 15:35:56  jslopez
;; Modifies the jde-ant-target-regexp to
;; match the targets name anywhere in the line.
;; It stills fails if the target name is in a different
;; line.
;;
;; Revision 1.23  2001/11/18 21:42:06  jslopez
;; Updating documentation.
;;
;; Revision 1.22  2001/11/18 21:39:07  jslopez
;; Modifies jde-build-ant-command to get the
;; ant home value from the
;; environment if jde-ant-home is not set.
;;
;; Revision 1.21  2001/11/11 23:27:41  jslopez
;; Fixed bug in jde-ant-build-command, causing jde-ant-args getting
;; appending without a space to the ant command if
;; jde-ant-buildfile is not specified.
;; Update the documentation for the methods jde-ant-invocation-method
;; and jde-ant-home.
;;
;; Revision 1.20  2001/11/09 02:05:36  jslopez
;; Fixing the output's display.
;;
;; Revision 1.19  2001/11/05 02:15:28  jslopez
;; Adds an option to use AntServer for builds.
;;
;; Revision 1.18  2001/11/04 19:22:33  jslopez
;; Fixes bug using Ant target completion
;; cause when jde-ant-enable-find is not enabled.
;;
;; Revision 1.17  2001/10/30 15:20:41  jslopez
;; Replaces the custom variable jde-ant-dir with jde-ant-home.
;; Enclose the classpath with double quotes for Windows machines
;; using cygwin as a shell.
;; Include the flag ant.home as an argument to ant.
;;
;; Revision 1.16  2001/10/29 12:50:29  jslopez
;; Removed the installation instructions from the top of the file
;; since it was obsolete. Jde-ant can be used out of the box with
;; JDE without having to any other installation.
;; Finished moving all the ant customization variables to the
;; customization group jde-ant.
;;
;; Revision 1.15  2001/10/29 06:27:40  paulk
;; Fixed minor bug in last submission.
;;
;; Revision 1.14  2001/10/29 06:21:28  paulk
;; Added support for invoking Ant directly from java or via the ant script.
;; Thanks to Douglas WF Acheson <[EMAIL PROTECTED]> for some help on this.
;;
;; Revision 1.13  2001/10/21 14:36:56  jslopez
;; Added jde-ant customization group and
;; moved all its customization variables under
;; that group.
;;
;; Revision 1.12  2001/10/21 05:52:24  paulk
;; Added support auto completion of Ant targets in mini-buffer.
;; Added the following defuns and variables:
;;     defun jde-ant-find-build-file
;;     defun jde-ant-get-target-alist
;;     defcustom jde-ant-complete-target
;;     defcustom jde-ant-target-regexp
;; Modified defun jde-ant-read-target to use auto-completion, if
;; jde-ant-complete-target is non-nil. Thanks to Stephen Molitor.
;;
;; Revision 1.11  2001/10/21 05:17:54  paulk
;; Restored changes from Revison 1.9.
;;
;; Revision 1.9  2001/10/05 15:04:32  jslopez
;; Removed calls that were setting the defaul-directory in
;; jde-ant-projecthelp and jde-ant-build. There are not needed.
;;
;; Revision 1.8  2001/10/04 04:33:54  paulk
;; Start change history.
;;
;;

;; End of jde-ant.el

- -- 
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - [EMAIL PROTECTED],  Web - http://relativity.yi.org/

... Whereas it is essential, if man is not to be compelled to have recourse, as a
last resort, to rebellion against tyranny and oppression, that human rights
should be protected by the rule of law...
   -- Universal Declaration of Human Rights, United Nations, 1948

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8Q8kvAwM6xb2dfE0RAiuHAJ4pBYiWi+p5cYCxoi+RZwa1P3+I7wCfTWXK
S9Xux9w7uukdLWisicyn7uo=
=ZvIq
-----END PGP SIGNATURE-----

Reply via email to