AW: Ant Tutorial - Question

2005-02-14 Thread Jan . Materne
Maybe you should start reading the tutorial from the beginning: "Tutorial: Writing Tasks This document provides a step by step tutorial for writing tasks." That´s a tutorial about writing tasks - not simple java apps. The techniques are the same: code, compile, test ... But that java class is not

Re: Maven style project description delegating to Ant.

2005-02-14 Thread Yves Martin
"Donald Strong" <[EMAIL PROTECTED]> writes: > Hi all, > > Has anyone done any work on or know of a project that uses a build > configuration similar to Maven but then delegates to Ant targets? > > Perhaps thats what Maven does now, it has been a while since I looked at > it. Last time we tried

Re: Ant Tutorial - Question

2005-02-14 Thread Erik Hatcher
On Feb 14, 2005, at 5:56 PM, Anderson, Rob (Global Trade) wrote: I think this should say... public class HelloWorld extends org.apache.tools.ant.Task { An Ant task only needs a "public void execute()" method though. Extending from Task is handy (to get the Project instance and log things) but no

RE: Ant Tutorial - Question

2005-02-14 Thread Anderson, Rob (Global Trade)
I think this should say... public class HelloWorld extends org.apache.tools.ant.Task { ... This is an Ant task, not a stantalone java program. Ant contains the main method somewhere. It's not necessary to know for writing tasks. If you really want to find out though, look at the script ant or a

Re: Ant Tutorial - Question

2005-02-14 Thread Douglas Kramer
Venki, Try this instead. Yes, you need a method named "main" as follows: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } More details: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html -Doug [EMAIL PROTE

Maven style project description delegating to Ant.

2005-02-14 Thread Donald Strong
Hi all, Has anyone done any work on or know of a project that uses a build configuration similar to Maven but then delegates to Ant targets? Perhaps thats what Maven does now, it has been a while since I looked at it. Last time we tried it Maven was ideal for building and publishing java libr

Ant Tutorial - Question

2005-02-14 Thread venkats
Hello: I am trying to do the Ant tutorial to understand how it works. According to the tutorial, I have to create a HelloWorld.java with the following code: public class HelloWorld { public void execute() { System.out.println("Hello World"); } } I am also new to java. My underst

Invoking builds remotely (Rant, antserver, sshexec)

2005-02-14 Thread alexander . buccino
I need to execute ant builds on a remote machine and I'm trying to decide on the best method. I've written off Rant because it looks like a dead project. I tried the antserver from ant-contrib and found it was a piece of cake to get working, but seems to suffer from a huge problem in that no i

RE: Parsing file. It works but...

2005-02-14 Thread Dick, Brian E.
That's much better. Process Source=${source} Target=${target} -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 5:19 PM To: Ant Users List Subject:

Re: AW: Two targets with the same depends-target

2005-02-14 Thread Alexey N. Solofnenko
- Alexey. Kasparek, Bernadette wrote: I need the following behavivor: Ant all --> common, one, common, two What can I do? Bernadette -- / Alexey N. Solofnenko home: http://trelony.cjb.net/ /

RE: Two targets with the same depends-target

2005-02-14 Thread Keith Hatton
Keith -Original Message- From: Kasparek, Bernadette [mailto:[EMAIL PROTECTED] Sent: 14 February 2005 12:51 To: 'Ant Users List' Subject: AW: Two targets with the same depends-target I need the following behavivor: Ant all --> common, one, common, two What can I do? Ber

RE: Parsing file. It works but...

2005-02-14 Thread Matt Benson
--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: > Was the message supposed to have an attachment? Yeah, did it not come through? Ha... I'll send it to you off-list since I'm assuming the list may have stripped it. -Matt __ Do you Yahoo!? All

Re: AW: Parsing file. It works but...

2005-02-14 Thread Matt Benson
--- Peter Reilly <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > >> project.setProperty("target", > items[items.length-1]); > >> > >> > > > >Nice solution for setting that value (second value > if there is a 2nd) :-) > > Yeah, that is pretty cool, but... > > > Yep,

Re: AW: Null pointer Exception..

2005-02-14 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: [SNIP] > For Matt, because he loves ?:-notations :-) > urls = (matches!=null) ? new URL[matches.length] : > new URL[0]; What can I say? I like terseness (in code, anyway) ... -Matt __ Do you Yahoo!? Yahoo! Mail -

RE: file & directory name property corrupted

2005-02-14 Thread Conelly, Luis (GE Energy, Non GE, GENE)
escape the backslashes (\\) or use forward slash (/) as separator in your property value -Original Message- From: David W. Brown [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 2:54 AM To: user@ant.apache.org Subject: file & directory name property corrupted Hello ant gurus (de

Re: Class org.apache.tools.ant.types.PatternSet$NameEntry doesn't support the "value" attribute.

2005-02-14 Thread Stefan Bodewig
On Fri, 11 Feb 2005, Travis Cripps <[EMAIL PROTECTED]> wrote: > Hi. I've got a strange error in my build script, and I've been > unable to find references to the error code in extensive searches on > the internet. >From your subject line, I'd say you have an include or exclude element with a val

AW: Two targets with the same depends-target

2005-02-14 Thread Kasparek, Bernadette
I need the following behavivor: Ant all --> common, one, common, two What can I do? Bernadette -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 14. Februar 2005 13:44 An: user@ant.apache.org Betreff: AW: Two targets with the same depends-ta

Re: Two targets with the same depends-target

2005-02-14 Thread David A. Bartmess
Set a property in mkdir-1 and mkdir-2, and check for its existence in prepare-common. That will stop it from running again. e.g.; On Monday 14 February 2005 05:26 am, Kasparek, Bernadette wrote: > Hi everybody, > > I want two targets to have the same depend-target, b

RE: Parsing file. It works but...

2005-02-14 Thread Dick, Brian E.
Was the message supposed to have an attachment? -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 5:17 PM To: Ant Users List Subject: RE: Parsing file. It works but... --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: > That's a bit better. >

AW: Two targets with the same depends-target

2005-02-14 Thread Jan . Materne
Maybe you´re expecting the wrong thing ... The current behaviour is that: Common one two ant one --> common, one ant one two --> common, one, common, two ant all --> common, one, two What do you expect? Jan > -Ursprüng

Two targets with the same depends-target

2005-02-14 Thread Kasparek, Bernadette
Hi everybody, I want two targets to have the same depend-target, but the second target doesn't call the depend-target again. Example: make something Make something Here "prepare-common" is only called for "mkdir-1"

Re: AW: Parsing file. It works but...

2005-02-14 Thread Peter Reilly
[EMAIL PROTECTED] wrote: project.setProperty("target", items[items.length-1]); Nice solution for setting that value (second value if there is a 2nd) :-) Yep, I wanted to write something that Matt would approve of :-D Peter. --

AW: Parsing file. It works but...

2005-02-14 Thread Jan . Materne
> project.setProperty("target", items[items.length-1]); Nice solution for setting that value (second value if there is a 2nd) :-) Jan

Re: Parsing file. It works but...

2005-02-14 Thread Peter Reilly
Disregard, I have just noticed that you do use a var at the end of the iteration to "unset" the property! Peter Peter Reilly wrote: This will not work as each iteration of the for loop happens in the same project, so source and target will be set only once. You will need to do something like (note

Re: Parsing file. It works but...

2005-02-14 Thread Peter Reilly
This will not work as each iteration of the for loop happens in the same project, so source and target will be set only once. You will need to do something like (note the override attribute on the and the use of instead of ): ... (Yes it is even ugler!). You could use a scri

AW: AW: Null pointer Exception..

2005-02-14 Thread Jan . Materne
Yep, checked on WinXP, too. - created a directory "restricted" - forbit for everyone to do anything - ant -lib restricted Jan > -Ursprüngliche Nachricht- > Von: Peter Reilly [mailto:[EMAIL PROTECTED] > Gesendet am: Montag, 14. Februar 2005 10:47 > An: Ant Users List > Betreff: Re: AW: Nul

Re: inheritRefs only handles one level - bug or luser error?

2005-02-14 Thread Peter Reilly
The attachment did not make it tru the mailing list. You can create a bug and if it the same as 4066, it will be marked as such. Peter Scott Dunbar wrote: Before I open a bug can someone check what I have attached to see if there is some obvious problem? The basic issue is that I have an ant file

Re: AW: Null pointer Exception..

2005-02-14 Thread Peter Reilly
Yes, this is a bug. It has happened before where a directory exists but the user does not have read-access (or execute-access ?) on the directory. http://marc.theaimsgroup.com/?l=ant-user&m=109819243121238&w=2 I forgot to make the neccessary change. - it probally needs a warning but it is too early

AW: Null pointer Exception..

2005-02-14 Thread Jan . Materne
Oh, sorry - Workaround: use AntContribs around that area in your buildfile. Jan > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Montag, 14. Februar 2005 10:16 > An: user@ant.apache.org > Betreff: AW: Null pointer Exception.. > > Mmh, could

AW: Null pointer Exception..

2005-02-14 Thread Jan . Materne
Mmh, could be a bug. In revision 1.1.5 [1] I found 0230: public static URL[] getLocationURLs(File location, final String[] extensions) ... 0251: File[] matches = location.listFiles( 0252: new FilenameFilter() { 0253: public boolean accept(File dir, String name)

Null pointer Exception..

2005-02-14 Thread Akash Jain \(akasjain\)
hi ant gurus.. i'm having some problem in running ANT.. seems 2 b some problem with the installation.. everytime i run Ant it gives java.lang.NullPointerException at org.apache.tools.ant.launch.Locator.getLocationURLs(Locator.java:262) at org.apache.tools.ant.launch.Locator.get

file & directory name property corrupted

2005-02-14 Thread David W. Brown
Hello ant gurus (dev too), I have a very curious problem: for a couple of weeks I have been using a hand tweeked build.xml acquired from a Tomcat servlet server download as a template to compile servlet and jsp base projects that run under Tomcat. Maybe this is a Tomcat mail list problem but sin