Re: Making custom tasks globally available

2006-01-24 Thread Stefan Bodewig
On Wed, 25 Jan 2006, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > Quoting the following example from "Extreme Programming with Ant" Unfortunately that advice is not that good anymore. If you are using Ant 1.6.0 or later, use instead of entity includes. > Where can I put files for entities, so t

Re: Again: Checking for non-existence of environment variable

2006-01-24 Thread Stefan Bodewig
On Tue, 24 Jan 2006, Sergei Dubov <[EMAIL PROTECTED]> wrote: > I think this is finally what I've been struggling with. It doesn't > seem to work when the env variable actually exists. Here is my > macro: > > = > > > ${env.DAVINCI_EXT} >

Re: Unit test a build

2006-01-24 Thread Stefan Bodewig
On Tue, 24 Jan 2006, Clifton Craig <[EMAIL PROTECTED]> wrote: > svn co http://svn.apache.org/viewcvs.cgi/ant/antlibs/antunit/trunk/ remove viewcvs.cgim and replace it with repos/asf See . Stefan

Re: Unit test a build

2006-01-24 Thread Stefan Bodewig
On Tue, 24 Jan 2006, Clifton Craig <[EMAIL PROTECTED]> wrote: > Could you or someone knowledgeable help me get my svn client to > retrueve the Ant trunk so I can play with Antunit? Thanx! If all the help others have given didn't work, try . Stefan

Re: Using mapper to rename files included in WAR

2006-01-24 Thread Stefan Bodewig
On Tue, 24 Jan 2006, Keith Hatton <[EMAIL PROTECTED]> wrote: > I skimmed the section on mappers and hoped that the following (this > is in a ) would work: > > > ... > > > > > Neither (or its child ) nor (of which is a variant) support mappers. In order to ac

Making custom tasks globally available

2006-01-24 Thread Tommy Nordgren
Quoting the following example from "Extreme Programming with Ant" ]> . &common; &sales; Where can I put files for entities, so that they are available to ALL my projects? - This sig is ded

Re: Again: Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
Sorry, it's been a really long day I guess. I appreciate your help. It all works. -Serge Burgess, Benjamin wrote: You keep adding the ${} when only the property name is required. I assure you that all you need is this - just copy and paste it and test: Ben -Original Message- From:

RE: Again: Checking for non-existence of environment variable

2006-01-24 Thread Burgess, Benjamin
You keep adding the ${} when only the property name is required. I assure you that all you need is this - just copy and paste it and test: Ben -Original Message- From: Sergei Dubov [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 5:02 PM To: Ant Users List Subject: Again: Che

Again: Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
I think this is finally what I've been struggling with. It doesn't seem to work when the env variable actually exists. Here is my macro: = ${env.DAVINCI_EXT}

Re: Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
Yep, just tried it. That would work too. (I just thought I tried that already). Sorry for confusion. Thanks a lot! -Serge Matt Benson wrote: uh... no. Try it. Then reread http://ant.apache.org/manual/CoreTasks/fail.html . -Matt --- Sergei Dubov <[EMAIL PROTECTED]> wrote: The whole poin

Re: Checking for non-existence of environment variable

2006-01-24 Thread Matt Benson
uh... no. Try it. Then reread http://ant.apache.org/manual/CoreTasks/fail.html . -Matt --- Sergei Dubov <[EMAIL PROTECTED]> wrote: > The whole point is that ${env.NO_VALUE} will return > ${env.NO_VALUE} as > its value if it doesn't exist... > > -Serge. > > Burgess, Benjamin wrote: > > Will

Re: Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
This seems to do the trick on quick test. Thanks so much! Serge. Shatzer, Larry wrote: -Original Message- From: Sergei Dubov [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 12:48 PM To: user@ant.apache.org Subject: Checking for non-existence of environment variable And po

Re: Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
The whole point is that ${env.NO_VALUE} will return ${env.NO_VALUE} as its value if it doesn't exist... -Serge. Burgess, Benjamin wrote: Will work for you? Ben -Original Message- From: Sergei Dubov [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 3:48 PM To: user@ant.apac

RE: Checking for non-existence of environment variable

2006-01-24 Thread Burgess, Benjamin
Will work for you? Ben -Original Message- From: Sergei Dubov [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 3:48 PM To: user@ant.apache.org Subject: Checking for non-existence of environment variable Hi guys, I am sure this question has been asked before. But I did my resea

RE: Checking for non-existence of environment variable

2006-01-24 Thread Shatzer, Larry
> -Original Message- > From: Sergei Dubov [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 24, 2006 12:48 PM > To: user@ant.apache.org > Subject: Checking for non-existence of environment variable > > > And potential check will think it actually HAS value. Is > there any way to make

Checking for non-existence of environment variable

2006-01-24 Thread Sergei Dubov
Hi guys, I am sure this question has been asked before. But I did my research and found no answers whatsoever. Basically I am trying to check for existence of an environment variable. And if it is not defined I want the script to fail. ${env.NO_VALUE} Basically th

Re: Issue warning from task

2006-01-24 Thread Ian Pilcher
Matt Benson wrote: > Better yet, MSG_WARN. ;) > > --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > > >>log ("your message here", Project.MSG_ERR); >> Thanks! -- Ian Pilcher[EMAIL P

Re: Issue warning from task

2006-01-24 Thread Jeffrey E Care
Yeah, whoops; sorry about that. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Matt Benson <[EMAIL PROTECTED]> wrote on 01/24/2006 02:08:59 PM: > Better yet, MSG_WARN. ;) > > --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: >

Re: Issue warning from task

2006-01-24 Thread Matt Benson
Better yet, MSG_WARN. ;) --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > log ("your message here", Project.MSG_ERR); > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > > > Ian Pilcher <[EMAIL PROTECTED]> > Sen

Re: Issue warning from task

2006-01-24 Thread Jeffrey E Care
log ("your message here", Project.MSG_ERR); -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Ian Pilcher <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 01/24/2006 01:28 PM Please respond to "Ant Users List" To user@a

Issue warning from task

2006-01-24 Thread Ian Pilcher
I am writing my first Ant task, and I would like to issue a warning message in certain circumstances. Does Ant provide a way to do this, or should I just print it to System.err (System.out?). Thanks! -- Ian Pilcher

RE: War task

2006-01-24 Thread Burgess, Benjamin
The error is correct - you have managed.class.path defined as a path, not a fileset. Move the id="managed.class.path" attribute to the fileset directly, rather than wrapping it in a path. Ben -Original Message- From: Sommers, Elizabeth [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24

War task

2006-01-24 Thread Sommers, Elizabeth
I am trying to build a war. The files that should be included in the lib are in a fileset defined by ... I can't figure out how to include this. I am getting an error of managed.class.path doesn't denote a zipfileset or a fileset My war targ

Re: Unit test a build

2006-01-24 Thread Clifton Craig
Carp! The snapshot doesn't look like it has the subprojects in it. On Tuesday 24 January 2006 9:59 am, Nicolas Vervelle wrote: > Clifton Craig wrote: > >Stefan, > > > >That sounds like exactly what I'm looking for. Only there's one big > > problem. I'm behind an authenticating HTTP proxy and I can'

AW: AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
Properties are immutable ;-) Jan >-Ursprüngliche Nachricht- >Von: Patrick Martin [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 17:05 >An: Ant Users List >Betreff: Re: AW: AW: loop in ant > >Hello, > >I once tried to implement a while task but I had an issue with >some c

Re: AW: AW: loop in ant

2006-01-24 Thread Patrick Martin
Hello, I once tried to implement a while task but I had an issue with some conditions like equal. ... the property used in equal is evaluated before the call to equal, and only once. So it will never change. Is there a way to avoid that? Here is the code I used: public class WhileTask

AW: Unit test a build

2006-01-24 Thread Jan.Materne
as far I can see http://ant.apache.org/svn.html lists other urls ... Jan >-Ursprüngliche Nachricht- >Von: Clifton Craig [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 16:57 >An: Ant Users List >Betreff: Re: Unit test a build > >This is the error I get on the svn command

Re: Unit test a build

2006-01-24 Thread Clifton Craig
This is the error I get on the svn command line: [EMAIL PROTECTED]:~/neware/subversion/apache-ant-1.6.5$ svn co http://svn.apache.org/viewcvs.cgi/ant/antlibs/antunit/trunk/ svn: PROPFIND request failed on '/viewcvs.cgi/ant/antlibs/antunit/trunk' svn: PROPFIND of '/viewcvs.cgi/ant/antlibs/antunit/t

AW: Unit test a build

2006-01-24 Thread Jan.Materne
You can download a svn snapshot at http://svn.apache.org/snapshots/ant/ But it seems that the snapshots doesnt include the sub projects. Jan >-Ursprüngliche Nachricht- >Von: Clifton Craig [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 15:56 >An: Ant Users List >Betr

Re: Unit test a build

2006-01-24 Thread Nicolas Vervelle
Clifton Craig wrote: Stefan, That sounds like exactly what I'm looking for. Only there's one big problem. I'm behind an authenticating HTTP proxy and I can't seem to get my svn client to get through it. Our in office proxy has traditionally caused me such problems and I faced this about a

Re: Unit test a build

2006-01-24 Thread Clifton Craig
Stefan, That sounds like exactly what I'm looking for. Only there's one big problem. I'm behind an authenticating HTTP proxy and I can't seem to get my svn client to get through it. Our in office proxy has traditionally caused me such problems and I faced this about a month ago when I was tryin

AW: AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
>Ok. Sorry about that. no problem. >But there's no other way to do it? I >cant make my own tasks. It´s not difficult. Basically you can do the same using

Re: AW: AW: loop in ant

2006-01-24 Thread Henrik Gemal
Ok. Sorry about that. But there's no other way to do it? I cant make my own tasks. [EMAIL PROTECTED] wrote: As described in the manual? ;) I wrote a tutorial about that. Jan -Ursprüngliche Nachricht- Von: Henrik Gemal [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 24. Januar 2006

AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
As described in the manual? ;) I wrote a tutorial about that. Jan >-Ursprüngliche Nachricht- >Von: Henrik Gemal [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 14:19 >An: Ant Users List >Betreff: Re: AW: loop in ant > >how do you implement your own task? > >[EMAIL PROTECTE

Re: AW: loop in ant

2006-01-24 Thread Henrik Gemal
how do you implement your own task? [EMAIL PROTECTED] wrote: I would implement my own task... while condition=true dodelete path and maybe running as asynchronous thread Jan -Ursprüngliche Nachricht- Von: Henrik Gemal [mailto:[EMAIL PROTECTED] Gesendet: Diensta

AW: loop in ant

2006-01-24 Thread Jan.Materne
I would implement my own task... while condition=true dodelete path and maybe running as asynchronous thread Jan >-Ursprüngliche Nachricht- >Von: Henrik Gemal [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 13:30 >An: user@ant.apache.org >Betreff: loop i

loop in ant

2006-01-24 Thread Henrik Gemal
I need to loop until I can delete a directory. The directory is locked when the user is running a client. My current code looks like this, but it only checks two times. I really need to loop untill the delete is succesfull. Can it be done?

Using mapper to rename files included in WAR

2006-01-24 Thread Keith Hatton
I'm using Ant 1.6.2 and I need to include deployment descriptor files in the WEB-INF section of my WAR file. However I need to rename them when I include them so that, for example, console-weblogic.xml becomes weblogic.xml and console-orion-web.xml becomes orion-web.xml. I skimmed the section on m

Re: AW: Problem with exec task

2006-01-24 Thread Tommy Nordgren
A perl script IS an EXECUTABLE, if you give it a valid shebang line, and sets execute permission on it. On Jan 24, 2006, at 8:44 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: And is that REALLY an executable? AFAIK a .pl is a perl script which needs the perl interpreter ... Jan