RE: Basic question about ant

2009-08-31 Thread Martin Gainty
you'll want try to locate the main class of the jar cd SomeFolder jar -xvf wsgen.jar cd SomeFolder javap *.class | grep main //when you see a 'main' method in one of the classes //then assign the main class to classname attribute of taskdef as described here //now you can call the t

Re: path env variable for fedora 10 and 11

2009-08-31 Thread chris chriss
Any thoughts? On Sun, Aug 23, 2009 at 2:14 PM, wrote: > I'm trying to append something to the PATH env variable in fedora 10 and > fedora 11. It doesn't seem to work. (Fedora 8 and 9 work as expected, as > well as ubuntu with the same versions of ant 1.7.1). My example below > should > echo out

Re: Basic question about ant

2009-08-31 Thread veena pandit
Since wsgen is in a jar file, I put the complete path of the jar file in the exec. So if anttasks.jar was in C:/eclipse/plugins/anttasks.jar then my exec looks like this: On Mon, Aug 31, 2009 at 1:01 PM, Gilbert Rebhan wrote: > veena pandit schrieb: > > Hi, > > > > I was able to fix the envir

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Gilles Scokart
You can write ... Gilles Scokart 2009/8/31 Francis GALIEGUE > On Mon, Aug 31, 2009 at 12:59, Gilles Scokart wrote: > > This is indeed as designed, and it is pretty usefull because you can set > the > > property p in t1 or t2. This pattern is quiet often used. > > > > > > Doe

Re: Basic question about ant

2009-08-31 Thread Gilbert Rebhan
veena pandit schrieb: > Hi, > > I was able to fix the environment variable and run ant from the command > line. I tried the things you listed below but from eclipse it still gives > me an error saying it does not recognize the program wsgen. > did you try the absolute path, f.e. ... ... ??

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread David Weintraub
Ant is not a programming language! Ant is not a programming language! Repeat that. Ant build system. And yes, there is a major difference. In a programming language, you set the exact order you want everything executed in. In a build system, the build system builds a dependency matrix and then dec

Re: Basic question about ant

2009-08-31 Thread veena pandit
Hi, I was able to fix the environment variable and run ant from the command line. I tried the things you listed below but from eclipse it still gives me an error saying it does not recognize the program wsgen. Thanks, Veena On Fri, Aug 28, 2009 at 5:12 PM, Gilbert Rebhan wrote: > veena pandit

RE: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Rebhan, Gilbert
-Original Message- From: Francis GALIEGUE [mailto:f...@one2team.com] Sent: Monday, August 31, 2009 1:24 PM To: Ant Users List Subject: Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5) /* Maybe this pattern is often used, but as I said, it looks pretty much counteri

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
On Mon, Aug 31, 2009 at 13:19, Rebhan, Gilbert wrote: [...] > > f.e. = > > >   >     >   > > > > ... > > Yes, but that's one usage scenario. My scenario is not this at all. To be precise, I'd have liked to write: This way, if nomail was set, the coverage report would have been generated

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
On Mon, Aug 31, 2009 at 12:59, Gilles Scokart wrote: > This is indeed as designed, and it is pretty usefull because you can set the > property p in t1 or t2.  This pattern is quiet often used. > > Does this mean that you can: or: ? Maybe this pattern is often used, but as I said, it looks p

RE: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Rebhan, Gilbert
-Original Message- From: Gilles Scokart [mailto:gscok...@gmail.com] Sent: Monday, August 31, 2009 1:00 PM To: Ant Users List Subject: Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5) /* 2009/8/31 Francis GALIEGUE > Which means that the dependencies of a target a

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Gilles Scokart
This is indeed as designed, and it is pretty usefull because you can set the property p in t1 or t2. This pattern is quiet often used. Gilles Scokart 2009/8/31 Francis GALIEGUE > Hello everyone, > > I have noticed something strange in the if="" and unless="" attributes > of targets. > > Let'

Reg: Code too large

2009-08-31 Thread M White
Hi,     I am compiling some files and i am getting the error -   Code too large for try . Code too large for catch   But ultimately in the logs its printing ... Build Successful.   What are these errors about  ... " Code too large .." What should i do ? Thanks & Regards

s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
Hello everyone, I have noticed something strange in the if="" and unless="" attributes of targets. Let's say that I have: If I: ant -Dp2=1 then, as expected, t1 triggers via t but not t2. However, if I: ant -Dp=1 I'd have expected none of t1 and t2 to execute, but both are executed!