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
"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
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
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
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
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
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
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
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:
- 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/
/
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
--- "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
--- 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,
--- [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 -
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
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
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
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
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.
>
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
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"
[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.
--
> project.setProperty("target", items[items.length-1]);
Nice solution for setting that value (second value if there is a 2nd) :-)
Jan
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
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
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
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
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
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
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)
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
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
32 matches
Mail list logo