Re: exec task with *

2008-09-11 Thread glenn opdycke-hansen
Do you intent to create a zip or a jar file? What is the value of ${usr}? I suggest that the script be written to use the appropriate task, either or For example, usr = ${usr} --glenn On Thu, Sep 11, 2008 at 3:04 PM, I am Who i am <[EMAIL PROTECTED]> wrote: > Hi All > > I'm trying to zip one

Re: exec task with *

2008-09-11 Thread I am Who i am
Thanks for your reply, I think failonerror is not supported, coz i tried that already On Thu, Sep 11, 2008 at 4:30 PM, Christoph Dittberner < [EMAIL PROTECTED]> wrote: > hi you are who you are, > > I guess this problem occurs because YOU (your script) ignores the errorcode > of the cd-command. >

Using target properties in tasks

2008-09-11 Thread Gary . Krone
Is it possible to use the name of the target in the tasks for that target? Below is an example of what I would like to do. The first target spells everything out, but since I have named the target the same as the directory I want to work on I want to make that a part of the tasks.

Re: exec task with *

2008-09-11 Thread Christoph Dittberner
hi you are who you are, I guess this problem occurs because YOU (your script) ignores the errorcode of the cd-command. Try something like that: cd /home/${usr}/doc && zip -ll doc.jar *.properties I am Who i am schrieb: Hi All I'm trying to zip one folder, with some specific files from i

exec task with *

2008-09-11 Thread I am Who i am
Hi All I'm trying to zip one folder, with some specific files from it as part of build like but this throws error zip warning: name not matched: *.properties so i tried to use task from ant-contrib cd /home/${usr}/doc zip -ll doc.jar *.properties This works, but i have probl

Re: Filtering on ${} instead of @@

2008-09-11 Thread David Weintraub
Can you use without first creating a filterset? I always thought it was this: When you define a filterset, you can define a begintoken and endtoken:

Filtering on ${} instead of @@

2008-09-11 Thread robert lazarski
Hi all, I searched the archives but couldn't find a solution. For example, I have a file named filter_me.txt with its contents: ${foo} In filter_me.properties I have: foo=bar I'd like to use a simple filter like: Is the

Re: Nosuchmethod error with latest trunk

2008-09-11 Thread Dave
Not that I can tell. I've re-run the build with -debug, and all Ivy classes are loaded from the recently compiled jar. On Thu, Sep 11, 2008 at 3:19 PM, Maarten Coene <[EMAIL PROTECTED]>wrote: > Maybe you also have an old ivy.jar in your classpath? > > Maarten > > > > > - Original Message

Re: Nosuchmethod error with latest trunk

2008-09-11 Thread Maarten Coene
Maybe you also have an old ivy.jar in your classpath? Maarten - Original Message From: Dave <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thursday, September 11, 2008 4:13:11 PM Subject: Nosuchmethod error with latest trunk Saw the following with a self-generated jar from the lates

Nosuchmethod error with latest trunk

2008-09-11 Thread Dave
Saw the following with a self-generated jar from the latest trunk source. ## C:\CC\workareas\410\INT\framework>ant -Dbuild.type=INT init Buildfile: build.xml [echo] BUILD TYPE= INT [ivy:resolve] :: Ivy 2.0.0-rc1-local-20080911102012 -

Re: Custom element for jar task.

2008-09-11 Thread John5342
Hi, Thanks. That does indeed work. Might be worth documenting though. Unfortunately my aim was to make things simpler and cleaner by only extending Service and not extending Jar aswel and having to add that ant-type attribute everywhere autoservice is used kind of defeats the point but thats life.

Re: Custom element for jar task.

2008-09-11 Thread Peter Reilly
Opps, yes you are correct. the code is addConfiguredService() and not addConfigured(). You will need to use the undocumented ant-type magic attribute: Peter On Thu, Sep 11, 2008 at 2:27 PM, John5342 <[EMAIL PROTECTED]> wrote: > Hi, > >>You need to do a and not a to define the n

Re: Custom element for jar task.

2008-09-11 Thread John5342
Hi, >You need to do a and not a to define the new type. I am already using a typedef. As in my original email: Any more ideas? Thanks, John 2008/9/11 Peter Reilly <[EMAIL PROTECTED]> > You need to do a and not a to define the new type. > > Looking at the

Re: Custom element for jar task.

2008-09-11 Thread Peter Reilly
You need to do a and not a to define the new type. Looking at the code: Jar: public void addConfiguredService(Service service) {} the new type should work. The reason that does not work is that the Sevice class does not extend Task and using will cause ant to use a proxy class, which wi

Re: Custom element for jar task.

2008-09-11 Thread John5342
Hi, Thanks for the reply. >Does it produce a classpath?? > >What do you expect should the jar task do with the element? I explained in my first email but will clarify. My aim is to create an enhanced service element for the jar task. I subclassed the Service class because i know the jar task al

Re: svn-ant how to get latest revision?

2008-09-11 Thread Mark Reibert
Use svn info on the repository itself (not your working copy). Something like: svn info $( svn info | grep 'Root:' | awk -F': ' '{print $2}' ) \ | grep Revision | awk '{print $2}' On Tue, 2008-09-09 at 23:54 -0700, Fu-Tung Cheng wrote: > Hi, > > I am trying to figure out which command I can

Re: svn-ant how to get latest revision?

2008-09-11 Thread Mark Reibert
Use svn info on the repository itself (not your working copy). Something like: svn info $( svn info | grep 'Root:' | awk -F': ' '{print $2}' ) \ | grep Revision | awk '{print $2}' On Tue, 2008-09-09 at 23:54 -0700, Fu-Tung Cheng wrote: > Hi, > > I am trying to figure out which command I can