Nascif Abousalh-Neto writes: > That would be a nice extension to JDE. > > Would it be possible to extend the Ant Server or the Compile Server to make them > generic enough to run Maven, or other Java-based tools like PMD, CheckStyle, etc., > etc? I found that the code in AntServer.java and CompileServer.java is very > similar; the differences could be refactored to a separate file, and a generic > interface be defined. New Java-based plugins could implement this interface and > thus be added to the JDE "server" support (through the BeanShell), instead of > calling new JVMs on demand.
Hi Nascif, JDEE 2.3.4 already has this capability: jde-jeval-cm is a Lisp function in `jde'. (jde-jeval-cm JAVA-EXPR &optional BUFFER-HEAD FINISH-FCN) Evaluate JAVA-EXPR and display the result in a compilation-mode buffer. The optional argument BUFFER-HEAD specifies text to appear at the head of the compilation buffer. The optional argument FINISH-FCN specifies a function to be called when the compilation is finished. This function is intended to be used to invoke Java development utilities, such as source code style checkers, that emit compiler-like error messages. Displaying the output in a compilation-mode buffer enables the user to use compilation-mode's error message navigation and hyperlinking capabilities. The following example uses this function to invoke the javac compiler on a file in the current directory: (jde-bsh-compile-mode-eval "jde.util.CompileServer.compile(\"Test.java\");" "Compile Test.java" 'jde-compile-finish-kill-buffer) Paul > > Regards, > Nascif > > > > > -----Original Message----- > > From: Dominik Dahlem [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 24, 2004 7:15 AM > > To: [EMAIL PROTECTED] > > Subject: maven contribution > > > > Hi all, > > > > I'm curious to know whether there are plans to add > > jde-maven.el under the hood of JDEE? There are two versions > > of jde-maven.el around [1,2] but they have not been > > contributed to the JDE CVS. > > > > > > Thanks, > > Dominik > > > > > > [1]-http://lists.gnu.org/archive/html/gnu-emacs-sources/2004-0 > > 5/msg00032.html > > [2]-http://www.mail-archive.com/[EMAIL PROTECTED]/msg06674.html > > > > > > -- > > Dominik Dahlem <[EMAIL PROTECTED]> > > ------------------------------------------------------- > > Trinity College Dublin > > Department of Computer Science, > > Dublin 2, Ireland > > > > tel: (+353) 1-608 1539 > > fax: (+353) 1-677 2204 > > www: http://www.cs.tcd.ie/Dominik.Dahlem/ > > ------------------------------------------------------- > > > > > > > > > >
