Re: JDE and ANT

2002-04-23 Thread Michael Spazeck

Albert, Jürgen wrote:
 When I try to start JDE-Build with ANT I get the error:
 
 Wrong type argument: char-or-string-p, nil
 
  jde-build-function is set to jde-ant-build in my .emacs:
  '(jde-build-function (quote (jde-ant-build)))

I used to have this problem too. I found out the following: When a file 
prj.el (even of 0 byte size) is present in the root of the project 
directory, the problem disappears.

JDE (2.2.8 at least) tries to execute the shell-command

   cd c:/Java-Projekte/GuiLib/prj.el (in my case)

before executing ant and fails with the above error when the file is not 
there.

 Thanks for any hint,
 juergen

Michael




RE: jde-build-ant-command does not handle Script for jde-ant-invocation-method

2001-12-03 Thread Javier S. López

Thanks for pointing this out.

I just fixed the bug. Feel free to grab jde-ant.el from the repository.
http://sunsite.dk/cvsweb/jde/lisp/

Javier

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of
Max
 Rydahl Andersen
 Sent: Monday, December 03, 2001 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: jde-build-ant-command does not handle Script for jde-ant-
 invocation-method
 
 Using ant to build does work in the latest beta!
 
 jde-build-ant-command does not use the variable jde-ant-program at any
 point, thus it only works if you uses Java as the jde-ant-invocation-
 method.
 I use the script method.
 
 With hope
  Max
 
 





Re: JDE and ant?

2001-01-16 Thread Jason Stell


You might try changing the jde-build-ant-command in jde-ant.el to something
like
(defun jde-build-ant-command (target more-args)
 "Constructs the java ant command."
 (let (ant-command)
 (setq ant-command
 (concat jde-ant-program " -D"))
 (if (not (string= jde-ant-buildfile ""))
(setq ant-command (concat ant-command "-buildfile " jde-ant-buildfile
" "))) ;; --- NOTE THIS LINE!!!
 (if (not (string= target ""))
(setq ant-command (concat ant-command target " ")))
 (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 " ")))

 ant-command))
This effectively adds -Dpath/to/current/buffer> to the ant execution
command.
HTH
Jason

Kevin Jones wrote:
> Hmmm. You could create a simple ant build file
that accepts
> the name of
> your file as an input variable...
>
I already have this - I can do ant -DsomeFile.java, and it will compile
that
file. What I want is to be able to pass the file I am currently editing
to
ant when I'm usinjg JDE/emacs,
Kevin Jones
DevelopMentor
www.develop.com
> -Original Message-
> From: Jason Stell [mailto:[EMAIL PROTECTED]]
> Sent: 16 January 2001 13:17
> To: Kevin Jones
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: JDE and ant?
>
>
> Kevin
>
> Hmmm. You could create a simple ant build file that accepts
> the name of
> your file as an input variable...
>
> But I'm not sure this is really what you want to be using Ant to
do...
>
> Ant, like Make, is a very useful tool for controlling _project_
> builds, not so
> much for compiling individual files (unless you only have 1 file
in your
> project... :) ).
>
> I suggest sticking with the normal jde-compile functionality for
compiling
> individual files, and using Ant to manage the project as a whole.
>
>
> Regards,
> Jason
>
> Kevin Jones wrote:
>
> > Jason,
> >
> > this looks pretty cool. What I'm also trying to do is get JDE to
compile
> > using ant. To do this I need to replace what JDE thinks of as
> the compiler
> > (javac) with ant, then pass ant the current file name as a property,
so
> > ant -Dfiletocompile.java. Is there any way I can get jde to do
this?
> >
> > Kevin Jones
> > DevelopMentor
> > www.develop.com
> >
> > > -Original Message-
> > > From: Jason Stell [mailto:[EMAIL PROTECTED]]
> > > Sent: 12 January 2001 14:01
> > > To: [EMAIL PROTECTED]
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: JDE and ant?
> > >
> > >
> > > Raman
> > >
> > > FWIW-- I've attached jde-ant.el, which I created a few months
back. It
> > > may or may not be useful to you...
> > >
> > > Regards,
> > > Jason
> > >
> > > "T. V. Raman" wrote:
> > >
> > > > I've started playing with ant --this is the build system
> > > > used by the various java.apache projects --and it is very
> > > > nice.
> > > > anyone out there writing jde helpers for ant integration?
> > > > It may not require much --ant consumes a buld.xml file and
> > > > does its work happily --
> > > >
> > > > --
> > > > Best Regards,
> > > > --raman
> > > > 
> > > >
> > > > IBM Research: Human Language Technologies
> > > > Phone: 1 (408) 927
2608
> > > > Fax: 1 (408) 927
3012
> > > > Email: [EMAIL PROTECTED]
> > > > WWW: http://www.cs.cornell.edu/home/raman
> > > > PGP: 
http://cs.cornell.edu/home/raman/raman.asc
> > > > Snail: IBM Almaden
Research Center,
> > > >
650 Harry Road
> > > >
San Jose 95120
> > >
> > >
>
>


begin:vcard 
n:Stell;Jason
tel;pager:800-724-3329 PIN 382-8028
tel;work:(703) 471-2529
x-mozilla-html:FALSE
url:http://www.intelixinc.com
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Consultant (Intelix, Inc.)
fn:Jason Stell
end:vcard



Re: JDE and ant?

2001-01-16 Thread Nic Ferrier

 Paul Kinnucan [EMAIL PROTECTED] 16-Jan-01 8:47:04 PM 

Ant has some nice features that might be useful -- 
especially classpath management.  For instance, 
you can set it up to automatically include all
jars/zips in a particular directory in the build classpath.
This might be a nice feature for JDE -- Paul?

This would be easy to do. Just give my some clue as 
to how the directory should be specified. Customization 
variable? e.g., 
   jde-class-library-dirs

I've done this with my compile stuff. The ant feature is the same as
extdir. So that's what I did... just had the ant compilation module
use the extdir.

I'll be releasing a new vesion of the jde-compile-plus (wish I didn't
have to use that name) stuff soon. The new version includes a macro to
handle relative paths. The compiler funcs revert to tradition funcs
that can be called through a pointer (which allows different funcs to
be used).

The relative path macro could be used across the JDE to apply
relative paths wherever they are needed.


Nic Ferrier



Re: JDE and ant?

2001-01-16 Thread Paul Kinnucan

At 09:18 PM 1/16/01 +, you wrote:
 Paul Kinnucan [EMAIL PROTECTED] 16-Jan-01 9:08:12 PM 

I've updated the JDE to handle environment variables 
in classpaths and was planning on including relative paths 
as well. Both will be included in the next release. 

Cool. So my code was for nothing  /8-


Not if it has helped you. I have decided to revamp the way classpaths are
handled in the JDE in order to more easily and robustly incorporate
features, such as relative paths, environment variables, and
Cygwin-to-Windows path conversion, and now library directories. It has
simply been easier for me to implement the new features from scratch then
to try to figure out how what you have done fits into the new classpath
code, especially as you seem to be focusing on compilation while classpath
handling is also used by the JDE's run, debug, beanshell, and javadoc
generation commands.


Now, at Jason's prompting, I'll probably also add the ability
to include all the jar/lib files in the directories specified by
jde-class-library-dirs.

Why? Why not just use extdirs? It's already there and that's what the
Ant thing means as far as I udnerstand.

I'm not familiar with extdirs. I believe Ant allows you to specify a
directory and one or more regular expresions for including or excluding
files from that directory. I may try to duplicate that capability in a
customization variable setting, i.e., you would be able to specify
something like

jde-class-library-dirs

  Directory Path: d:/foo/bar
Include: in*.jar
Include: fo*.zip
Exclude: ex*.jar

- Paul