Re: jde-ant-build's seperator problem
sorry, I don't config right email address in Gnus. I recently began to use Gnus. I found that I didn't set AntHome when using ant script. Now I use AntServer with AntHome set. It works well and greatly faster than ant script. I use firefox to view javadoc, It's enforced to concate "file:///" before file location such as "c:/api/xxx.html" , or firefox reports unregisterd protocle. *** d:/emacs-22/site-lisp/jde-2.3.5/lisp/jde-help.elFri Mar 11 22:25:38 2005 --- d:/soft/Emacs/jde-help.el.org Fri Dec 17 12:29:38 2004 *** *** 433,439 (princ "\n\n\n"))) (save-buffer) (kill-buffer buff)) ! (setq doc-url (concat "file:///" metafile))) (error "Unable to create a temporary file in %s directory." temporary-file-directory (jde-help-show-document doc-url))) --- 433,439 (princ "\n\n\n"))) (save-buffer) (kill-buffer buff)) ! (setq doc-url metafile)) (error "Unable to create a temporary file in %s directory." temporary-file-directory (jde-help-show-document doc-url))) zhangyin writes: > I'm using nqmacs+jdee2.3.5 on winxp without cygwin. When I use > jde-ant-build, I encounter the compilation buffer that say > "...build.xml does not exist". After I traced jde-ant.el. I found the > problem that file seperator should be " ,not '. > > *** d:/emacs-22/site-lisp/jde-2.3.5/lisp/jde-ant.el Wed Mar 9 11:17:09 2005 > --- d:/emacs-22/site-lisp/jde-2.3.5/lisp/jde-ant.org.el Fri Dec 17 > 12:29:38 2004 > *** > *** 250,257 >(string= (car jde-ant-invocation-method) "Java") >(and (string= (car jde-ant-invocation-method) > "Script") > ! (not (featurep 'xemacs)) > ! (not (eq system-type 'windows-nt;;;zhangyin's > hack > "'" > "\"")) >(ant-program (if (or (string-match "" jde-ant-program) > --- 250,256 >(string= (car jde-ant-invocation-method) "Java") >(and (string= (car jde-ant-invocation-method) > "Script") > ! (not (featurep 'xemacs > "'" > "\"")) >(ant-program (if (or (string-match "" jde-ant-program)
RE: JDE Ant Problem
I have the same set up as you, except that I use cygwin as my shell. It seems to handle the quotes just fine. I would suggest installing it. The build command is constructed in jde-ant.el. If you don't want to install cygwin, a hackish fix would be to change line 254 of this file to be a space rather than a quote. The correct solution would probably be to modify the if statement to see if the jde-ant-program is the .bat file and provide an alternate delimiter (space?) if this is the case. -Jim > -Original Message- > From: Jeba Bhaskaran [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 8:21 AM > To: JDE > Subject: JDE Ant Problem > > > Hello All, > I am using Emacs 21.3 with JDEE 2.3.3 on Win XP Pro. > I am trying to build using ant and getting the > following problem: Emacs puts quotes around the build > file name and ant in interpreting the quotes as part > of the file name. How to tell Emacs or JDEE not to put > quotes around the file name? Example of the error is > pasted below: > > c:/apache-ant-1.6.0/bin/ant.bat > -Dant.home=c:/apache-ant-1.6.0 -buildfile > 'c:/project/ant/build.xml' -emacs build-project-ejb > Buildfile: 'c:\heartbeat\ant\build.xml' does not > exist! > Build failed > > __ > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway > http://promotions.yahoo.com/design_giveaway/ > This E-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply E-mail, and destroy all copies of the original message.
Re: jde-ant-build
Gonçalo de Melo wrote: > Hi, > > I am trying to make the command jde-ant-build to ask for the target for > ant. > > In customize options for ant, I have enabled the "Read Args" option, but > when I execute "jde-ant-build" I get the following message in > mini-buffer: > > Symbol's value as variable is void: jde-ant-interactive-args-history > > > How can I resolve this? > > Thanks, > > Gonçalo Melo. You want to set jde-ant-read-target to have JDE prompt you for the target to build.
Re: jde-ant-program
Paul Kinnucan <[EMAIL PROTECTED]> writes: > Phillip Lord writes: > > > > > > > "Javier" == Javier S Lopez <[EMAIL PROTECTED]> writes: > > > > Javier> I have heard people wanting the path normalized and other > > Javier> people not wanting it normalized (i.e. me). > > > > Javier> I think to suite everyone I should probably add a toggle for > > Javier> normalization that is off by default. If people want > > Javier> jde-ant-program normalize they can toggle it. That should > > Javier> cover all the cases. > > > > > > This is a solution, but it still leaves an inconsistent user > > interface. Why do people want it normalised? Can their requirements be > > achieved in some other way? It would just be nicer if it could all > > work automatically. > > > > Why not invoke jde-normalize-path only if jde-ant-program is a path, > i.e., contains a forward or backslash? This should work for all > cases. You would not have to distinguish between ant and not ant. > > Paul This sounds good, it takes care of most cases. Javier > > --
Re: jde-ant-working-directory patch
Ivan wrote: > Some people in list asked about problem with > jde-ant-working-directory. Patch is below. Thank you, Ivan. Your patch is great, I can finally run my directory-sensitive unit tests from JDE! -- Ryan Shaw <[EMAIL PROTECTED]> Senior Developer Vanten K.K. http://www.vanten.com/ GPG key ID: 0xCF08A67A http://www.gnupg.org/ 01EC B88E 1157 6083 EF54 46F0 9874 E65A CF08 A67A gpg --keyserver pgp.mit.edu --recv-keys CF08A67A
RE: Jde Ant Program not normalized
Paul, Using jde-ant-program and jde-ant-home as you describe would be the better solution although you should get rid of the ` before jde-ant-program. Cheers, Karel -Original Message- From: Paul Kinnucan [mailto:paulk@;mathworks.com] Sent: dinsdag 5 november 2002 7:59 To: Janek Schwarz Cc: [EMAIL PROTECTED] Subject: Jde Ant Program not normalized Janek Schwarz writes: > Hi, > > I just found that in JDEE 2.2.9beta12 the content of the jde- > ant-program variable does not get normalized. I.e., when I set > the variable to "~/src/sico/sico-office/ant" on windows, JDEE > tries to actually execute it as such, resulting in an error that > the program "~/src/sico/sico-office/ant" can't be found. > > Environment: > JDEE 2.2.9beta12 > Emacs 21.1.1 on Windows > Hi Janek, I have second thoughts about making this change. I do not use Ant and other contributors created and have been maintaining Ant. I'd prefer to defer to them as to what the best way is to handle this. There is a variable jde-ant-home that specifies the home directory of ant. Shouldn't the path of the ant program be jde-ant-home/jde-ant-program? Thus wouldn't it be better to construct the path to the program as follows: (expand-file-name 'jde-ant-program (expand-file-name (substitute-in-file-name jde-ant-home)))\ - Paul
Re: jde-ant-build
It looks like this may be an issue with ant. I'll test my config with 1.4.1. I went to 1.5Beta1 due to a reported issue with Windows XP. Jeff - Original Message - From: "Schewe, Jon (MN65)" <[EMAIL PROTECTED]> To: "'Mark Abrams'" <[EMAIL PROTECTED]> Cc: "Jde-List" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:21 AM Subject: RE: jde-ant-build > > Jeff Rancier wrote: > > > > > Hello All. > > > > > > When I run jde-ant-build on a Java buffer, I get the following: > > > > > > cd h:/cvsdev/user/jrancier/lookupgenerator/ > > > h:/usr/pkg/jakarta-ant-1.5Beta1/bin/ant.bat > > -Dant.home=h:/usr/pkg/jakarta-an > > > t-1.5Beta1 -buildfile > > > "h:/cvsdev/user/jrancier/lookupgenerator/build.xml" -emacs > > > Buildfile: > > h:\cvsdev\user\jrancier\lookupgenerator\build.xml -emacs does not > > > exist! > > > Build failed > > > > > > Compilation finished at Tue May 21 15:37:18 > > > > > > If I run it from the command line with the '-emacs' option > > before the build > > > file name, it appears to work. > > > > Yes it does work with '-emacs' before the buildfile name. > > The cmd line you show > > from the emacs buffer places '-emacs' as the target to build > > in file build.xml. > > It looks like you have listed -emacs as the target to run > > instead of an argument > > to ant? > > No, that's what happens when you don't specify a target, meaning using the > default target. Should work just fine, in fact it does with ant 1.4.1.
RE: jde-ant-build
> Jeff Rancier wrote: > > > Hello All. > > > > When I run jde-ant-build on a Java buffer, I get the following: > > > > cd h:/cvsdev/user/jrancier/lookupgenerator/ > > h:/usr/pkg/jakarta-ant-1.5Beta1/bin/ant.bat > -Dant.home=h:/usr/pkg/jakarta-an > > t-1.5Beta1 -buildfile > > "h:/cvsdev/user/jrancier/lookupgenerator/build.xml" -emacs > > Buildfile: > h:\cvsdev\user\jrancier\lookupgenerator\build.xml -emacs does not > > exist! > > Build failed > > > > Compilation finished at Tue May 21 15:37:18 > > > > If I run it from the command line with the '-emacs' option > before the build > > file name, it appears to work. > > Yes it does work with '-emacs' before the buildfile name. > The cmd line you show > from the emacs buffer places '-emacs' as the target to build > in file build.xml. > It looks like you have listed -emacs as the target to run > instead of an argument > to ant? No, that's what happens when you don't specify a target, meaning using the default target. Should work just fine, in fact it does with ant 1.4.1.
Re: jde-ant-build
Jeff Rancier wrote: > Hello All. > > When I run jde-ant-build on a Java buffer, I get the following: > > cd h:/cvsdev/user/jrancier/lookupgenerator/ > h:/usr/pkg/jakarta-ant-1.5Beta1/bin/ant.bat -Dant.home=h:/usr/pkg/jakarta-an > t-1.5Beta1 -buildfile > "h:/cvsdev/user/jrancier/lookupgenerator/build.xml" -emacs > Buildfile: h:\cvsdev\user\jrancier\lookupgenerator\build.xml -emacs does not > exist! > Build failed > > Compilation finished at Tue May 21 15:37:18 > > If I run it from the command line with the '-emacs' option before the build > file name, it appears to work. Yes it does work with '-emacs' before the buildfile name. The cmd line you show from the emacs buffer places '-emacs' as the target to build in file build.xml. It looks like you have listed -emacs as the target to run instead of an argument to ant? Mark
RE: jde-ant-build
That's odd then. It works in 1.4.1, which is what I use. I'd suggest checking the ant developer list to see if the commandline parsing got broken in 1.5betax > -Original Message- > From: Jeff Rancier [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 21, 2002 2:52 PM > To: Schewe, Jon (MN65); Jde List (E-mail) > Subject: Re: jde-ant-build > > > Sorry, it's in the text, but I didn't specify. 1.5Beta1. > Jeff > > > - Original Message - > From: "Schewe, Jon (MN65)" <[EMAIL PROTECTED]> > To: "Jde List (E-mail)" <[EMAIL PROTECTED]>; "'Jeff Rancier'" > <[EMAIL PROTECTED]> > Sent: Tuesday, May 21, 2002 3:49 PM > Subject: RE: jde-ant-build > > > > What version of ant? > > > > > -Original Message- > > > From: Jeff Rancier [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, May 21, 2002 2:47 PM > > > To: Jde-List > > > Subject: jde-ant-build > > > > > > > > > Hello All. > > > > > > When I run jde-ant-build on a Java buffer, I get the following: > > > > > > cd h:/cvsdev/user/jrancier/lookupgenerator/ > > > h:/usr/pkg/jakarta-ant-1.5Beta1/bin/ant.bat > > > -Dant.home=h:/usr/pkg/jakarta-an > > > t-1.5Beta1 -buildfile > > > "h:/cvsdev/user/jrancier/lookupgenerator/build.xml" -emacs > > > Buildfile: h:\cvsdev\user\jrancier\lookupgenerator\build.xml > > > -emacs does not > > > exist! > > > Build failed > > > > > > Compilation finished at Tue May 21 15:37:18 > > > > > > If I run it from the command line with the '-emacs' option > > > before the build > > > file name, it appears to work. Does anyone have any advice > > > to assist me? > > > Thank You. > > > > > > I'm using: > > > > > > GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600) of 2002-03-19 on buffy > > > > > > with the following packages: > > > > > > elib-1.0 > > > eieio-0.17beta3 > > > speedbar-0.14beta1 > > > semantic-1.4beta13 > > > jde-2.2.9beta9 > > > > > > TIA, > > > Jeff > > > >
Re: jde-ant-build
Sorry, it's in the text, but I didn't specify. 1.5Beta1. Jeff - Original Message - From: "Schewe, Jon (MN65)" <[EMAIL PROTECTED]> To: "Jde List (E-mail)" <[EMAIL PROTECTED]>; "'Jeff Rancier'" <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 3:49 PM Subject: RE: jde-ant-build > What version of ant? > > > -Original Message- > > From: Jeff Rancier [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, May 21, 2002 2:47 PM > > To: Jde-List > > Subject: jde-ant-build > > > > > > Hello All. > > > > When I run jde-ant-build on a Java buffer, I get the following: > > > > cd h:/cvsdev/user/jrancier/lookupgenerator/ > > h:/usr/pkg/jakarta-ant-1.5Beta1/bin/ant.bat > > -Dant.home=h:/usr/pkg/jakarta-an > > t-1.5Beta1 -buildfile > > "h:/cvsdev/user/jrancier/lookupgenerator/build.xml" -emacs > > Buildfile: h:\cvsdev\user\jrancier\lookupgenerator\build.xml > > -emacs does not > > exist! > > Build failed > > > > Compilation finished at Tue May 21 15:37:18 > > > > If I run it from the command line with the '-emacs' option > > before the build > > file name, it appears to work. Does anyone have any advice > > to assist me? > > Thank You. > > > > I'm using: > > > > GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600) of 2002-03-19 on buffy > > > > with the following packages: > > > > elib-1.0 > > eieio-0.17beta3 > > speedbar-0.14beta1 > > semantic-1.4beta13 > > jde-2.2.9beta9 > > > > TIA, > > Jeff > >
Re: jde-ant completion and bug-fix ?
XML does not allow whitespace between the '<' of the start tag and the tagname. In section 3.1, the spec says: STag ::= '<' Name (S Attribute)* S? '>' And Ant's parser will not parse XML that does not comply with this restriction. I hacked up a build.xml and got this error message: `The content beginning "< " is not legal markup. Perhaps the " " () character should be a letter.' So this regexp shouldn't look for w/s (even zero-length w/s) in that position. Here is a revised (untested) copy: (defcustom jde-ant-target-regexp "9rbm0i$nu9$[EMAIL PROTECTED]>, "Max Rydahl Andersen" writes: : : I tried to checkout jde-ant.el from CVS and found that the bug-fix regarding : target-completion not being able to complete on targets where the name is : not the first on the line is not in there. : : Here is the fix :) : : (defcustom jde-ant-target-regexp : "<\\s-*target.+name\\s-*=\\s-*\"\\s-*\\([^\"]+\\)" : "*Regular expression used to match target names in Ant build files." : :group 'jde-project : :type 'string) : : : : ""Molitor, Stephen"" <[EMAIL PROTECTED]> wrote in message : A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03">news:A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03... : > Max, : > : > The bug fix and target-completion stuff is in the latest version of : > jde-ant.el, in CVS: : > : > http://sunsite.dk/cvsweb/jde/lisp/jde-ant.el : > : > Paul submitted the chagnes. I don't think this is in the latest JDE beta : > distribution, which was made before these changes were submitted. : > : > However, it would also be really nice to get Douglas WF Acheson's changes : in : > as well, that added the ability to run Ant via Java from the bean shell : JVM : > :) : > : > Steve Molitor : > [EMAIL PROTECTED] : > : > : > : > -Original Message- : > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]] : > Sent: Wednesday, October 24, 2001 2:58 PM : > To: [EMAIL PROTECTED] : > Subject: jde-ant completion and bug-fix ? : > : > : > I'm just wondering wether the maintainers of jde-ant.el have incorporated : > the previously posted bugfixes and addition of target-completion ? It is : not : > in the newest jde-ant.el. : > : > I have taken the liberty to merge the fixes with the newest jde-ant.el and : > appended it to this posting. : > : > Here is the original "log" from the author. : > : > ;; Revision 1.10 2001/10/05 15:04:32 smolitor : > ;; 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. : > ;; Fixed bug in jde-build-ant-command where there was no space between the : > ant : > ;; command and the target. : > : > ;; fixed jde-ant.el : > : > ;; jde-ant.el --- Use Apache Ant to build your JDE projects : > : > ;; $Revision: 1.8 $ $Date: 2001/10/04 04:33:54 $ : > : > ;; : > ;; Author: Jason Stell | [EMAIL PROTECTED] : > ;; Created: 19 Oct 2000 : > ;; Version 1.3 19 June 2001 : > ;; : > : > ;; 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). : > ;; : > ;; : > ;; Installation: : > ;; -- Make sure this file is accessible via your emacs load-path : > ;; -- Add the following to your .emacs : > ;;(require 'jde-ant) : > ;; -- Customize the ant variables, which can be found in the : > ;;jde-project group : > ;; -- Optionally create a keybinding for jde-ant-build : > ;; : > ;; : > ;; 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
RE: jde-ant completion and bug-fix ?
Also note that, even with the fix, it still won't work if the target name is not on the same line as 'mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 7:47 AM To: [EMAIL PROTECTED] Subject: Re: jde-ant completion and bug-fix ? I tried to checkout jde-ant.el from CVS and found that the bug-fix regarding target-completion not being able to complete on targets where the name is not the first on the line is not in there. Here is the fix :) (defcustom jde-ant-target-regexp "<\\s-*target.+name\\s-*=\\s-*\"\\s-*\\([^\"]+\\)" "*Regular expression used to match target names in Ant build files." :group 'jde-project :type 'string) ""Molitor, Stephen"" <[EMAIL PROTECTED]> wrote in message A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03">news:A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03... > Max, > > The bug fix and target-completion stuff is in the latest version of > jde-ant.el, in CVS: > > http://sunsite.dk/cvsweb/jde/lisp/jde-ant.el > > Paul submitted the chagnes. I don't think this is in the latest JDE beta > distribution, which was made before these changes were submitted. > > However, it would also be really nice to get Douglas WF Acheson's changes in > as well, that added the ability to run Ant via Java from the bean shell JVM > :) > > Steve Molitor > [EMAIL PROTECTED] > > > > -Original Message- > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 2:58 PM > To: [EMAIL PROTECTED] > Subject: jde-ant completion and bug-fix ? > > > I'm just wondering wether the maintainers of jde-ant.el have incorporated > the previously posted bugfixes and addition of target-completion ? It is not > in the newest jde-ant.el. > > I have taken the liberty to merge the fixes with the newest jde-ant.el and > appended it to this posting. > > Here is the original "log" from the author. > > ;; Revision 1.10 2001/10/05 15:04:32 smolitor > ;; 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. > ;; Fixed bug in jde-build-ant-command where there was no space between the > ant > ;; command and the target. > > ;; fixed jde-ant.el > > ;; jde-ant.el --- Use Apache Ant to build your JDE projects > > ;; $Revision: 1.8 $ $Date: 2001/10/04 04:33:54 $ > > ;; > ;; Author: Jason Stell | [EMAIL PROTECTED] > ;; Created: 19 Oct 2000 > ;; Version 1.3 19 June 2001 > ;; > > ;; 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). > ;; > ;; > ;; Installation: > ;; -- Make sure this file is accessible via your emacs load-path > ;; -- Add the following to your .emacs > ;;(require 'jde-ant) > ;; -- Customize the ant variables, which can be found in the > ;;jde-project group > ;; -- Optionally create a keybinding for jde-ant-build > ;; > ;; > ;; 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-projec
Re: jde-ant completion and bug-fix ?
I tried to checkout jde-ant.el from CVS and found that the bug-fix regarding target-completion not being able to complete on targets where the name is not the first on the line is not in there. Here is the fix :) (defcustom jde-ant-target-regexp "<\\s-*target.+name\\s-*=\\s-*\"\\s-*\\([^\"]+\\)" "*Regular expression used to match target names in Ant build files." :group 'jde-project :type 'string) ""Molitor, Stephen"" <[EMAIL PROTECTED]> wrote in message A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03">news:A35A461EBB6BD511859E0002A56B89CC44B24C@EXCORP03... > Max, > > The bug fix and target-completion stuff is in the latest version of > jde-ant.el, in CVS: > > http://sunsite.dk/cvsweb/jde/lisp/jde-ant.el > > Paul submitted the chagnes. I don't think this is in the latest JDE beta > distribution, which was made before these changes were submitted. > > However, it would also be really nice to get Douglas WF Acheson's changes in > as well, that added the ability to run Ant via Java from the bean shell JVM > :) > > Steve Molitor > [EMAIL PROTECTED] > > > > -Original Message- > From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 2:58 PM > To: [EMAIL PROTECTED] > Subject: jde-ant completion and bug-fix ? > > > I'm just wondering wether the maintainers of jde-ant.el have incorporated > the previously posted bugfixes and addition of target-completion ? It is not > in the newest jde-ant.el. > > I have taken the liberty to merge the fixes with the newest jde-ant.el and > appended it to this posting. > > Here is the original "log" from the author. > > ;; Revision 1.10 2001/10/05 15:04:32 smolitor > ;; 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. > ;; Fixed bug in jde-build-ant-command where there was no space between the > ant > ;; command and the target. > > ;; fixed jde-ant.el > > ;; jde-ant.el --- Use Apache Ant to build your JDE projects > > ;; $Revision: 1.8 $ $Date: 2001/10/04 04:33:54 $ > > ;; > ;; Author: Jason Stell | [EMAIL PROTECTED] > ;; Created: 19 Oct 2000 > ;; Version 1.3 19 June 2001 > ;; > > ;; 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). > ;; > ;; > ;; Installation: > ;; -- Make sure this file is accessible via your emacs load-path > ;; -- Add the following to your .emacs > ;;(require 'jde-ant) > ;; -- Customize the ant variables, which can be found in the > ;;jde-project group > ;; -- Optionally create a keybinding for jde-ant-build > ;; > ;; > ;; 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 targ
RE: jde-ant and fast ms-dos window
Douglas> I have already done this for Ant back in the summer. If you Douglas> check the archives you will see the patch to jde-ant.el... Douglas; I searched the archive and did indeed find your tweaked version of jde-ant.el. It pretty much did the trick - thank you. I had to make one tiny change to it. It seems that the function jde-ant-build-classpath is not honoring the jde-quote-classpath flag. I looked at jde-build-path-arg in jde.el to try to figure out how to do it right, but my meager lisp skills were stretched too far, so I solved it in this rather inelegant way: (defun jde-ant-build-classpath () "Constructs the classpath used to invoke ant." (interactive) (if (boundp 'jde-ant-classpath) ;; begin LMS MOD ;; (concat "-classpath " (jde-build-classpath jde-ant-classpath)) (concat "-classpath " "\"" (jde-build-classpath jde-ant-classpath) "\"") ;; end LMS MOD "")) Thanks again for your help. -- == Larry Strollo[EMAIL PROTECTED] ==
RE: jde-ant and fast ms-dos window
Hello, I have already done this for Ant back in the summer. If you check the archives you will see the patch to jde-ant.el... dwfa --- "Molitor, Stephen" <[EMAIL PROTECTED]> wrote: > This doesn't happen to me -- I get the ant output in an Emacs buffer, > no > MS-DOS window. I can even click on compile errors and go to the > source. > But I believe you, I'm sure it's (not) working the way you described! > Which > versions of Ant, JDE, etc., are you runnning? > > Eventually, it might be nice to invoke Ant via java (starting a new > JVM), > not ant.bat or ant.sh. > > Steve Molitor > [EMAIL PROTECTED] > > -Original Message- > From: Larry Strollo [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 21, 2001 9:09 PM > To: [EMAIL PROTECTED] > Subject: jde-ant and fast ms-dos window > > > > When I use ant to build within the JDE, a msdos window pops up, the > build > happens, and then the msdos window goes away and I have no idea what > happened. > > Is there some setup for putting the output of the ant command into > some > emacs buffer (the compilation buffer?) ? > > Seems like this would be a FAQ, but I couldn't find anything in the > ant > related customizations, or in the archives. > > -- > == > Larry Strollo > [EMAIL PROTECTED] > == = Douglas WF Acheson __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com
RE: jde-ant and fast ms-dos window
This doesn't happen to me -- I get the ant output in an Emacs buffer, no MS-DOS window. I can even click on compile errors and go to the source. But I believe you, I'm sure it's (not) working the way you described! Which versions of Ant, JDE, etc., are you runnning? Eventually, it might be nice to invoke Ant via java (starting a new JVM), not ant.bat or ant.sh. Steve Molitor [EMAIL PROTECTED] -Original Message- From: Larry Strollo [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 9:09 PM To: [EMAIL PROTECTED] Subject: jde-ant and fast ms-dos window When I use ant to build within the JDE, a msdos window pops up, the build happens, and then the msdos window goes away and I have no idea what happened. Is there some setup for putting the output of the ant command into some emacs buffer (the compilation buffer?) ? Seems like this would be a FAQ, but I couldn't find anything in the ant related customizations, or in the archives. -- == Larry Strollo[EMAIL PROTECTED] ==
Re: jde-ant and fast ms-dos window
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 "Larry Strollo" <[EMAIL PROTECTED]> writes: > When I use ant to build within the JDE, a msdos window pops up, the build > happens, and then the msdos window goes away and I have no idea what happened. Probably because on NT jde-ant is running "ant.bat". There has been some talk about running 'java' directly (but again this could bring up a command prompt). Hm... yet another reason to install Linux. :) Kevin - -- Need a good Engineer? Hire me! ( Java | P2P | XML | Linux | Open Source ) Kevin A. Burton [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ) Location: San Francisco, CA Cell: 415-595-9965 URL: http://relativity.yi.org Technology is the catalyst for Utopia. -- Me -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt iD8DBQE706ZzAwM6xb2dfE0RApuLAJ9iasOEsgZcYkpzdiiHaoGMMJraAgCfU+WL wTibwxHICE+C+PJ9gMPvaxA= =a7/H -END PGP SIGNATURE-
RE: jde-ant Buildfile template
Douglas It's in the works... Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: om> Subject: RE: jde-ant Buildfile template 07/30/01 11:48 AM Hey, I know this is late, but, how about creating a target to create javadoc? Douglas WF Acheson --- Jeff Rancier <[EMAIL PROTECTED]> wrote: > Good idea. > -Original Message- > From: Jason Stell [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 10:53 AM > To: [EMAIL PROTECTED] > Subject: jde-ant Buildfile template > > > I'm playing around with adding some buildfile creation > functionality to > jde-ant and am soliciting input/comments on a standard template for > an Ant > buildfile. Currently, my template produces something like the > following: > > > > basedir="f:/java/project/"> > >value="./src"/> > >value="./build"/> > >value="./lib"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > description="Compile source files" > depends="init"> > > destdir="${build.dir}" >failonerror="no"> > > > > > > > > > > description="Remove built files" > depends="init"> > > > > > > > > > > ... Just a basic buildfile with 'compile' and 'clean' targets. Of > course, > this will be using the same template mechanism (tempo) as jde-gen, so > anyone > can customize the appropriate variable. I just wanted to provide a > default > template that would be relatively useful. Any comments/input? > > Regards > Jason > > = Douglas WF Acheson __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: jde-ant Buildfile template
Hey, I know this is late, but, how about creating a target to create javadoc? Douglas WF Acheson --- Jeff Rancier <[EMAIL PROTECTED]> wrote: > Good idea. > -Original Message- > From: Jason Stell [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 10:53 AM > To: [EMAIL PROTECTED] > Subject: jde-ant Buildfile template > > > I'm playing around with adding some buildfile creation > functionality to > jde-ant and am soliciting input/comments on a standard template for > an Ant > buildfile. Currently, my template produces something like the > following: > > > > basedir="f:/java/project/"> > >value="./src"/> > >value="./build"/> > >value="./lib"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > description="Compile source files" > depends="init"> > > destdir="${build.dir}" >failonerror="no"> > > > > > > > > > > description="Remove built files" > depends="init"> > > > > > > > > > > ... Just a basic buildfile with 'compile' and 'clean' targets. Of > course, > this will be using the same template mechanism (tempo) as jde-gen, so > anyone > can customize the appropriate variable. I just wanted to provide a > default > template that would be relatively useful. Any comments/input? > > Regards > Jason > > = Douglas WF Acheson __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: jde-ant
Great idea! I haven't tried this (the code below) yet, but it seems like a good approach -- it's Emacs, so let the user customize how to invoke Ant! Steve -Original Message- From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 11:15 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: jde-ant Hello, I have completed, the first stage, of the modifications to jde-ant.el which allows a user to select the invocation style, either script or via Java. I have added appropriate comments to the jde-ant.el file to indicate the changes. I will repeat here: added 3 custom variables jde-ant-class indicates which java class to invoke default value is org.apache.tools.ant.Main jde-ant-classpath List of jar files needed to run ant. This needs to be set to include the 3 ant jar files and the tools.jar from Sun. I have chosen to use this instead of using the global classpath as the jar files used to invoke ant is not necessarily needed to compile the classes. I think, IMHO, this makes it cleaner. jde-ant-invocation-style Used to determine how to invoke jde-ant, the default how Jason would like to see it. Added 1 defun jde-ant-build-classpath This defun creates the classpath from the list of jars in jde-ant-classpath. To Do: Add one more customer var to indicate the home directory of Ant. Thereby, automatically creating the required classpath to include the 3 ant jar files and the tools.jar from Sun. This allows the user to include the additional jar files they need to run ant and not worry about the required jars. If I have made a error please let me know. Douglas WF Acheson P.S. If you can come up with better wording for the jde-ant-invocation-style I would be very much appreciated. --- [EMAIL PROTECTED] wrote: > > Douglas > > What if, instead of using the custom string variable jde-ant-program, > a new > custom variable jde-ant-invocation-style is a choice between invoking > a > specific script or invoking a function that generates the appropriate > Ant > command. Perhaps something like: > >Jde Ant Invocation Style: [Hide] > > (*) Use program or script > Script/Program : __ > > ( ) Invoke function > Function : > > > This way, jde-ant is flexible enough to do the things you want. When > jde-ant-build is called, the invocation style variable will be > checked, and > the ant command will be built accordingly... > A standard function could be created to invoke the jvm defined by > 'jde-run-java-vm' using the classpath defined by > 'jde-global-classpath'/'jde-run-option-classpath' and the Ant main > class. > > Thoughts? > > Jason > > > > > > > > Douglas WF > > Acheson To: > [EMAIL PROTECTED] > > <[EMAIL PROTECTED]cc: > > om> Subject: Re: jde-ant > > > > 07/19/01 > > 02:00 PM > > > > > > > > > > Hello, > > I understand your position about running ant. Would it be possible > to allow changes so that you can use it either way? They way you > have > outlined below, via the ant batch/shell script, and invoking a JVM to > run ant. > > Allowing jde-ant to be invoked via a JVM directly allows more > flexible within Emacs. Using this model allows changes to be > controlled within Emacs and not in the batch/shell script. > Therefore, > change need to occur within the
Re: jde-ant
Hello, I have completed, the first stage, of the modifications to jde-ant.el which allows a user to select the invocation style, either script or via Java. I have added appropriate comments to the jde-ant.el file to indicate the changes. I will repeat here: added 3 custom variables jde-ant-class indicates which java class to invoke default value is org.apache.tools.ant.Main jde-ant-classpath List of jar files needed to run ant. This needs to be set to include the 3 ant jar files and the tools.jar from Sun. I have chosen to use this instead of using the global classpath as the jar files used to invoke ant is not necessarily needed to compile the classes. I think, IMHO, this makes it cleaner. jde-ant-invocation-style Used to determine how to invoke jde-ant, the default how Jason would like to see it. Added 1 defun jde-ant-build-classpath This defun creates the classpath from the list of jars in jde-ant-classpath. To Do: Add one more customer var to indicate the home directory of Ant. Thereby, automatically creating the required classpath to include the 3 ant jar files and the tools.jar from Sun. This allows the user to include the additional jar files they need to run ant and not worry about the required jars. If I have made a error please let me know. Douglas WF Acheson P.S. If you can come up with better wording for the jde-ant-invocation-style I would be very much appreciated. --- [EMAIL PROTECTED] wrote: > > Douglas > > What if, instead of using the custom string variable jde-ant-program, > a new > custom variable jde-ant-invocation-style is a choice between invoking > a > specific script or invoking a function that generates the appropriate > Ant > command. Perhaps something like: > >Jde Ant Invocation Style: [Hide] > > (*) Use program or script > Script/Program : __ > > ( ) Invoke function > Function : > > > This way, jde-ant is flexible enough to do the things you want. When > jde-ant-build is called, the invocation style variable will be > checked, and > the ant command will be built accordingly... > A standard function could be created to invoke the jvm defined by > 'jde-run-java-vm' using the classpath defined by > 'jde-global-classpath'/'jde-run-option-classpath' and the Ant main > class. > > Thoughts? > > Jason > > > > > > > > Douglas WF > > Acheson To: > [EMAIL PROTECTED] > > <[EMAIL PROTECTED] cc: > > om> Subject: Re: jde-ant > > > > 07/19/01 > > 02:00 PM > > > > > > > > > > Hello, > > I understand your position about running ant. Would it be possible > to allow changes so that you can use it either way? They way you > have > outlined below, via the ant batch/shell script, and invoking a JVM to > run ant. > > Allowing jde-ant to be invoked via a JVM directly allows more > flexible within Emacs. Using this model allows changes to be > controlled within Emacs and not in the batch/shell script. > Therefore, > change need to occur within the environment of the project and not to > the batch/shell script. > > I have made the necessary changes to jde-ant.el to invoke the JVM. > It was not hard, and very little changes required. > > I was thinking have a boolean switch (jde-ant-use-jvm) that is > checked to see how to invoke ant. This allows users to invoke it the > way
Re: jde-ant
Douglas What if, instead of using the custom string variable jde-ant-program, a new custom variable jde-ant-invocation-style is a choice between invoking a specific script or invoking a function that generates the appropriate Ant command. Perhaps something like: Jde Ant Invocation Style: [Hide] (*) Use program or script Script/Program : __ ( ) Invoke function Function : This way, jde-ant is flexible enough to do the things you want. When jde-ant-build is called, the invocation style variable will be checked, and the ant command will be built accordingly... A standard function could be created to invoke the jvm defined by 'jde-run-java-vm' using the classpath defined by 'jde-global-classpath'/'jde-run-option-classpath' and the Ant main class. Thoughts? Jason Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: om> Subject: Re: jde-ant 07/19/01 02:00 PM Hello, I understand your position about running ant. Would it be possible to allow changes so that you can use it either way? They way you have outlined below, via the ant batch/shell script, and invoking a JVM to run ant. Allowing jde-ant to be invoked via a JVM directly allows more flexible within Emacs. Using this model allows changes to be controlled within Emacs and not in the batch/shell script. Therefore, change need to occur within the environment of the project and not to the batch/shell script. I have made the necessary changes to jde-ant.el to invoke the JVM. It was not hard, and very little changes required. I was thinking have a boolean switch (jde-ant-use-jvm) that is checked to see how to invoke ant. This allows users to invoke it the way you intended or to allow customization totally in Emacs. I believe this is a natural evolution in jde-ant. I have no hesitation to provide my services to make the changes and help maintain those changes. What do you think? Is it viable? Douglas WF Acheson --- [EMAIL PROTECTED] wrote: > > Douglas > > Invoking the jvm from jde-ant is something that has been discussed > and > considered. However, my main objection is that Ant is a > cross-platform > project build tool that has no (and should have no) dependencies on > Emacs > or JDE. Developers need to be able to provide clear build > instructions to > the CM/build teams. Simpler instructions are better. Typically (or, > at > least, in my experience) a shell script is used to hide some of the > complexity of passing arguments to java/Ant. Most teams probably > just use > the default shell scripts that are provided with Ant (I do :). > > I don't want to seem stubborn/bull-headed/pedantic, but my > inclination is > to keep jde-ant simple, but convenient, as far as invoking Ant > builds. > Once you have jde-ant invoking Ant through the vm, you introduce all > kinds > of additional complexity--what VM to use?, should one use Beanshell > to do > the invocation?, where are the required .jar files (ant.jar, > xerces.jar...)? etc.--that I think is desirable to avoid. > > In your case, I think the best options are: >1) put your custom tasks in a jar and add it to the ANT_HOME/lib >directory, or >2) set your CLASSPATH environment variable to include the > appropriate >items >3) edit the ant(.bat) shell script to include your classpath > config, > > > > > > > > > > Douglas WF > > Ac
Re: jde-ant
Douglas Invoking the jvm from jde-ant is something that has been discussed and considered. However, my main objection is that Ant is a cross-platform project build tool that has no (and should have no) dependencies on Emacs or JDE. Developers need to be able to provide clear build instructions to the CM/build teams. Simpler instructions are better. Typically (or, at least, in my experience) a shell script is used to hide some of the complexity of passing arguments to java/Ant. Most teams probably just use the default shell scripts that are provided with Ant (I do :). I don't want to seem stubborn/bull-headed/pedantic, but my inclination is to keep jde-ant simple, but convenient, as far as invoking Ant builds. Once you have jde-ant invoking Ant through the vm, you introduce all kinds of additional complexity--what VM to use?, should one use Beanshell to do the invocation?, where are the required .jar files (ant.jar, xerces.jar...)? etc.--that I think is desirable to avoid. In your case, I think the best options are: 1) put your custom tasks in a jar and add it to the ANT_HOME/lib directory, or 2) set your CLASSPATH environment variable to include the appropriate items 3) edit the ant(.bat) shell script to include your classpath config, Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: [EMAIL PROTECTED] om> Subject: Re: jde-ant 07/18/01 02:23 PM Jason, I think I finally understand :-) The jde-ant calls the ant.bat script. Why not just have the jde-build-ant-command invoke the jvm using the Ant.class. This way the call to ant is total customizable, I believe. In addition, all you have to to is change custom variables and do not worry about the bat/sh file. Douglas WF Acheson --- Douglas WF Acheson <[EMAIL PROTECTED]> wrote: > Thanks for the reply Jason, > > I do not mean to be a pain in the ass. > > Option #1, IMO, will not work as the custom variable jde-ant-args is > used to pass args to ant. I need to modify the classpath for the JVM > that runs ant. > > Option #2, totally agree, too much work. > > Option #3, IMO, is the chicken and egg problem. Need to find the > class > before using the class. > > Currently I get a class not found error when running ant as the JVM > class loader cannot find my classes. > > I need to do the following: > > java -classpath > antPath/ant.jar;antPath/jaxp.jar;antPath/parser.jar;myPath/my.jar ant > -emacs .. > > What I want to do is modify the classpath that is used by the JVM to > run ant. I have looked at the code in jde-ant.el, but do not see > where > the classpath is constructed. SO, I was wondering if you could add > or > help me add the ability to have a customer variable where users can > add > there own things to the classpath that is used to by the JVM when > running ant. > > If this not clear please let me know. > > Douglas WF Acheson > > --- [EMAIL PROTECTED] wrote: > > > > Douglas > > > > Options: > > > > 1 - You can use the jde-ant-args custom variable to pass in the > > classpath > > you want to use. > > > > 2 - There is a custom variable jde-ant-program that points to the > > script > > that runs Ant. You could also edit the script (or create a new one) > > that > > passes in the classpath you want to use; however, this isn't > > particularly > > elegant (or portable), and I generally discourage doing anything > > fancy in > > the script you use to run Ant. > > > > 3 - Modify your custom Ant tasks to allow sp
Re: jde-ant
Douglas Options: 1 - You can use the jde-ant-args custom variable to pass in the classpath you want to use. 2 - There is a custom variable jde-ant-program that points to the script that runs Ant. You could also edit the script (or create a new one) that passes in the classpath you want to use; however, this isn't particularly elegant (or portable), and I generally discourage doing anything fancy in the script you use to run Ant. 3 - Modify your custom Ant tasks to allow specification of the classpath (for an example, look at how the javac task is implemented). HTH Jason Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: [EMAIL PROTECTED] om> Subject: Re: jde-ant 07/18/01 11:30 AM Hello, Thanks for the reply. I was under the impression that the custom tasks, the ones that I have developed need to be part of the classpath that ant uses. So, if I were to start ant from the command line (not under Emacs) I would include the ant.jar, parser.jar, and jaxp.jar plus my.jar in the -classpath option to java. I believe that the example below will not work correctly. Am I missing something? Thanks ... Douglas WF Acheson --- [EMAIL PROTECTED] wrote: > > Douglas > > Regarding your second issue, I typically do something like the > following in > my ant build.xml file > > > > > > > > > Then, in my javac task, I have something like the following > > > > > > > BTW: I am in the process of making some (relatively extensive) > changes to > jde-ant (jmode-ant). One of the new features will be the ability to > create > a new build definition file from a template. > > > Regards > Jason > > > > > > Douglas WF > > Acheson To: [EMAIL PROTECTED] > > <[EMAIL PROTECTED]cc: > > om> Subject: jde-ant > > > > 07/18/01 > > 09:29 AM > > > > > > > > > > Hello, > >After finally moving to ant to build my java apps I would like to > use the jde-ant feature (new name jmode-ant :-) I have played with > it > for the last few days. I found a potential problem using XEmacs. I > had to add the following code > from > (let ((temp last-nonmen-event)) > to > (let ((temp (if (boundp 'last-nonmenu-event) > last-nonmen-event > nil))) > to avoid getting a >Symbol's value as variable is void: last-nonmenu-event > error. > > Anyways, it works -- if someone can let me know what I can do to not > use this hack, that would be good. > > Another interesting problem, I have custom targets in the ant build > project. How do I adjust the classpath for ant so I can add my jar > files. > > Any help would be very appreciated. > > Douglas WF Acheson > > > = > Douglas WF Acheson > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > > > > = Douglas WF Acheson __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: jde-ant
Hello, Thanks for the reply. I was under the impression that the custom tasks, the ones that I have developed need to be part of the classpath that ant uses. So, if I were to start ant from the command line (not under Emacs) I would include the ant.jar, parser.jar, and jaxp.jar plus my.jar in the -classpath option to java. I believe that the example below will not work correctly. Am I missing something? Thanks ... Douglas WF Acheson --- [EMAIL PROTECTED] wrote: > > Douglas > > Regarding your second issue, I typically do something like the > following in > my ant build.xml file > > > > > > > > > Then, in my javac task, I have something like the following > > > > > > > BTW: I am in the process of making some (relatively extensive) > changes to > jde-ant (jmode-ant). One of the new features will be the ability to > create > a new build definition file from a template. > > > Regards > Jason > > > > > > Douglas WF > > Acheson To: [EMAIL PROTECTED] > > <[EMAIL PROTECTED]cc: > > om> Subject: jde-ant > > > > 07/18/01 > > 09:29 AM > > > > > > > > > > Hello, > >After finally moving to ant to build my java apps I would like to > use the jde-ant feature (new name jmode-ant :-) I have played with > it > for the last few days. I found a potential problem using XEmacs. I > had to add the following code > from > (let ((temp last-nonmen-event)) > to > (let ((temp (if (boundp 'last-nonmenu-event) > last-nonmen-event > nil))) > to avoid getting a >Symbol's value as variable is void: last-nonmenu-event > error. > > Anyways, it works -- if someone can let me know what I can do to not > use this hack, that would be good. > > Another interesting problem, I have custom targets in the ant build > project. How do I adjust the classpath for ant so I can add my jar > files. > > Any help would be very appreciated. > > Douglas WF Acheson > > > = > Douglas WF Acheson > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > > > > = Douglas WF Acheson __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: jde-ant
Hi Douglas, This is also kind of a hack, but basically I advise the function `compile-internal' to put the value of `jde-global-classpath' in $CLASSPATH for the duration of the compilation. Has anyone else solved this problem of propagating jde-global-classpath to compiles more elegantly than this? (defadvice compile-internal (around njs-apply-jde-global-classpath-to-make compile activate) "Hack compile-internal to apply the current jde-global-classpath as the make process's classpath. Also force load of jde project if not already loaded." (let ((process-environment process-environment)) (if (and (string-equal "default" jde-project-name) (jde-find-project-file default-directory)) (jde-load-project-file)) (setq process-environment (remove-if (lambda (x) (string-match "^CLASSPATH=" x)) process-environment)) (add-to-list 'process-environment (concat "CLASSPATH=" (jde-global-classpath))) ad-do-it)) Now if you're going to need several different classpaths depending on the target, you're probably best off coding those classpaths into the ant build file. Best, /Nick -Original Message- From: Douglas WF Acheson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 8:29 AM To: [EMAIL PROTECTED] Subject: jde-ant Hello, After finally moving to ant to build my java apps I would like to use the jde-ant feature (new name jmode-ant :-) I have played with it for the last few days. I found a potential problem using XEmacs. I had to add the following code from (let ((temp last-nonmen-event)) to (let ((temp (if (boundp 'last-nonmenu-event) last-nonmen-event nil))) to avoid getting a Symbol's value as variable is void: last-nonmenu-event error. Anyways, it works -- if someone can let me know what I can do to not use this hack, that would be good. Another interesting problem, I have custom targets in the ant build project. How do I adjust the classpath for ant so I can add my jar files. Any help would be very appreciated. Douglas WF Acheson = Douglas WF Acheson __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: jde-ant
Douglas Regarding your second issue, I typically do something like the following in my ant build.xml file Then, in my javac task, I have something like the following BTW: I am in the process of making some (relatively extensive) changes to jde-ant (jmode-ant). One of the new features will be the ability to create a new build definition file from a template. Regards Jason Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: om> Subject: jde-ant 07/18/01 09:29 AM Hello, After finally moving to ant to build my java apps I would like to use the jde-ant feature (new name jmode-ant :-) I have played with it for the last few days. I found a potential problem using XEmacs. I had to add the following code from (let ((temp last-nonmen-event)) to (let ((temp (if (boundp 'last-nonmenu-event) last-nonmen-event nil))) to avoid getting a Symbol's value as variable is void: last-nonmenu-event error. Anyways, it works -- if someone can let me know what I can do to not use this hack, that would be good. Another interesting problem, I have custom targets in the ant build project. How do I adjust the classpath for ant so I can add my jar files. Any help would be very appreciated. Douglas WF Acheson = Douglas WF Acheson __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: jde-ant
Douglas last-nonmenu-event is supposed to help determine if the command was invoked by menu. In this case, the value is temporarily changed in order to force save-some-buffers to work properly. Actually, it probably isn't necessary for jde-ant (or jmode-ant) since jde-ant currently isn't integrated into the menu. However, since this bit of code was probably scraped from jde-compile, the issue probably also exists there and will need to be addressed. Do you have any similar problems when invoking jde-compile under XEmacs? Jason Douglas WF Acheson To: [EMAIL PROTECTED] <[EMAIL PROTECTED]cc: om> Subject: jde-ant 07/18/01 09:29 AM Hello, After finally moving to ant to build my java apps I would like to use the jde-ant feature (new name jmode-ant :-) I have played with it for the last few days. I found a potential problem using XEmacs. I had to add the following code from (let ((temp last-nonmen-event)) to (let ((temp (if (boundp 'last-nonmenu-event) last-nonmen-event nil))) to avoid getting a Symbol's value as variable is void: last-nonmenu-event error. Anyways, it works -- if someone can let me know what I can do to not use this hack, that would be good. Another interesting problem, I have custom targets in the ant build project. How do I adjust the classpath for ant so I can add my jar files. Any help would be very appreciated. Douglas WF Acheson = Douglas WF Acheson __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: jde-ant
Jeff Are you able to run ant to build your project from the command line? I've no idea why emacs would bomb entirely if the ant process died. Jason "Jeff Rancier" hnics.com> cc: Subject: jde-ant 07/10/01 04:46 PM Hi Jason, Is there any way to kick off ant on the build.xml file? I have my source in a package com/aaa/bbb/appl, but have my build directory in ./, as well as my jar dist dirs, etc. Currently when I run jde-ant-build on my build.xml file, emacs ends fatally, giving me a windows error dialog. Jeff