Re: Failed to copy due to null

2006-08-22 Thread Ben Pracht
Matt, I've put together a small test case in defect 40300 in the ant.apache.org Bugzilla database. I believe I've fixed the problem for my purposes by either eliminating the bad/unexpected bytes in the file, if I can figure out what they are, or changing my LANG environment variable from en_US.U

RE: Groups of filesets

2006-08-22 Thread Chaudhuri, Hiran
Hmmm, that means we might need to keep a 'base' property for the files in a set so we know how to find the file via absolute pathname but sometimes need to work with the relative pathname. I bit tricky -Original Message- From: Thomas Hallgren [mailto:[EMAIL PROTECTED] Sent: Dienstag,

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-22 Thread Jack J. Woehr
On Aug 22, 2006, at 9:14 AM, Peter Reilly wrote: You do (should) not need to build it! If you need to build it, you could try to build bsf as well. I've built bsf 2.3.0 okay already. Okay, I just copied the js.jar from Rhino 1.5.3 and it works. This sort of defeats part of the purpose of

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-22 Thread Peter Reilly
You do (should) not need to build it! If you need to build it, you could try to build bsf as well. Peter On 8/22/06, Jack J. Woehr <[EMAIL PROTECTED]> wrote: On Aug 22, 2006, at 7:12 AM, Peter Reilly wrote: > see: http://ant.apache.org/manual/install.html#librarydependencies > To sum up, yo

Re: Groups of filesets

2006-08-22 Thread Thomas Hallgren
Not sure if arithmetics would help me. I'm dependent on the actual grouping, i.e. the fact that some files reside under 'src1' and others under 'src2' and that this grouping is maintained when the jar is created. Assume the following layout: src1/org/foo/misc/a.class src2/org/foo/util/b.class

RE: Groups of filesets

2006-08-22 Thread Chaudhuri, Hiran
Actually it would be nice to have some set arithmethics implemented. Means a set plus another set is a new set. You could this way add, subtract and whatever you like with filesets without having to modify any of the tasks. For a beginning, a fileset could support the nested element fileset, which

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-22 Thread Jack J. Woehr
On Aug 22, 2006, at 7:12 AM, Peter Reilly wrote: see: http://ant.apache.org/manual/install.html#librarydependencies To sum up, you need to use rhino 1.5R3. That was my first try. But it doesn't build under Java 1.5. --- Jack J. Woehr Director of Development Absolute Performance, Inc. [EMAIL

Groups of filesets

2006-08-22 Thread Thomas Hallgren
I'm lacking a element that would enable a referencing a group of . I'm currently faced with the challenge of passing multiple filesets from a Java program to an ant-script as a source for a jar task. I can't find a good way to do that. Essentially, this is what I'd like to do: (the correspon

RE: Reusing classpath across different Ant files

2006-08-22 Thread David Corley \(AT/LMI\)
You can put the classpath element in it's own build.xml, and use the task to reference that buildfile in every one of your other build files. -Original Message- From: Hans Schwaebli [mailto:[EMAIL PROTECTED] Sent: 22 August 2006 15:26 To: user@ant.apache.org Subject: Reusing classpath

Reusing classpath across different Ant files

2006-08-22 Thread Hans Schwaebli
Can I reuse a classpath across different Ant files? Simple example: This classpath I want to use in different Ant files, without having to copy and paste it. Can I reuse it? If yes, how? - Yahoo! Messenger with Voice.

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-22 Thread Peter Reilly
see: http://ant.apache.org/manual/install.html#librarydependencies To sum up, you need to use rhino 1.5R3. Peter On 8/22/06, Petar Tahchiev <[EMAIL PROTECTED]> wrote: On 22/08/06, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > Hello Jack, > > not sure, maybe rhino.jar ? no, actually, this

Re: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;

2006-08-22 Thread Petar Tahchiev
On 22/08/06, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: Hello Jack, not sure, maybe rhino.jar ? no, actually, this does not mean that a jar is missing, but rather that you do not have the right versions of bsf.jar, js.jar, rhino.jar (meaning matching versions containing each the function ca

RE: How to enable logging when using Ant programatically?

2006-08-22 Thread Chaudhuri, Hiran
Use a build listener to direct messages whereever you need them to. Project.addBuildListener(new DefaultLogger()) will do the job. Maybe you have to set the PrintStreams on the DefaultLogger also. Hiran Chaudhuri -Original Message- From: Hans Schwaebli [mailto:[EMAIL PROTECTED]

RE: Task processing a DirSet one by one?

2006-08-22 Thread Chaudhuri, Hiran
That did it. I just wonder why ant does not have something like this in the distribution. Thanks a lot for that hint. Hiran Chaudhuri -Original Message- From: Mathieu Champlon [mailto:[EMAIL PROTECTED] Sent: Montag, 21. August 2006 12:12 To: Ant Users List Subject: Re: Task processing a

Re: How to enable logging when using Ant programatically?

2006-08-22 Thread Hans Schwaebli
Thank you! It works. Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: Hello Hans, add this to your code : r.getProject().addBuildListener(createLogger()); private static BuildLogger createLogger() { BuildLogger logger = null; logger = new DefaultLogger(); logger.setMessageOutputLevel(Project.

Re: subtasks as arbitary params?

2006-08-22 Thread Antoine Levy-Lambert
Hello Manos, I suppose you want to create a custom task which has nested elements ? You should read the"Develoing with Ant" section of the manual, it is all there. Regards, Antoine On Aug 22, 2006, at 11:35 AM, Emmanouil Batsis wrote: Hi, I was wondering if anyone has any pointers to a

Re: How to enable logging when using Ant programatically?

2006-08-22 Thread Antoine Levy-Lambert
Hello Hans, add this to your code : r.getProject().addBuildListener(createLogger()); private static BuildLogger createLogger() { BuildLogger logger = null; logger = new DefaultLogger(); logger.setMessageOutputLevel(Project.MSG_VERBOSE);

subtasks as arbitary params?

2006-08-22 Thread Emmanouil Batsis
Hi, I was wondering if anyone has any pointers to a howto or sample code for nested subtasks used to pass an arbitary number of properties/params in the form of attribute value pairs, something like the below? Thanks, Manos --

How to enable logging when using Ant programatically?

2006-08-22 Thread Hans Schwaebli
I am using some Ant tasks programatically like: ReplaceRegExp r = new ReplaceRegExp(); r.setProject(new Project()); r.setFile(file); r.setFlags(""); r.setMatch(removal); r.setReplace("-- removed line"); r.execute(); How can I enable logging? If I execute the program, which uses t