Problems with jswat and application options

"Pascal Quesseveur" <[email protected]> Thu, 8 Mar 2007 11:40:26 +0100
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Hello,

I am encountering problems using jswat (version 4.0) and
JDEE (version 2.3.5.1) with jswat.el (version 0.3)[1] on
Linux system (FC3, GNU bash version 3.00.14). Application
args are not correctly passed to jswat. I already get the
problem when using jswat on the command line, so that
problem is not related to jswat.el.

,----
| > jswat ... -J-Djswat.launch="appli.MainClass -debug"
| 
| Ignored unknown option: -debug
`----

I have looked into jswat and jswat.el and found a way to get
options be correctly transmitted to the application. I am
not on the jswat mailing list, so I post my remarks here in
the hope to get some feedback.

  - In the jswat script the command args are put in a
    variable named args and that variable is then added to
    the netbeans command.
  - The syntax $args in the netbeans command doesn't
    preserve whitespaces in args.
  - I have coded a workaround but it is specific to bash as
    it uses an array.
  - I am not a shell guru.

I also made a modification in jswat.el: I had to suppress
the quotes around jswat.launch option in
(jswat-make-command) to make it work. Without that
modification the error message about the unknown option is
no more displayed but the option is not send to the
application.

[1] That version of jswat.el has been modified to support JSwat
    version 3.x. It is not the one which is on
    EmacsWiki. Modifications have not been made by Nascif
    A. Abousalh Neto and I haven't kept the URL. Perhaps I
    got it on the JDEE mailing list.


-- 
Pascal Quesseveur, [email protected]