Re: Unix commads behaving different in Ant task

2006-05-05 Thread Ivan \"Rambius\" Ivanov
Hello, --- Venkat Kotu <[EMAIL PROTECTED]> wrote: > Hi, > > > > I have a situation where in I need to find all the > .jar files in a > directory and write it to a temp file. You can use a pure Ant solution using and : ${jar.files} > The command from the prompt is : find myDir/*.jar >

Re: file list without directory prepended how to get it

2006-05-05 Thread Ivan \"Rambius\" Ivanov
Hello, --- Narahari 'n' Savitha <[EMAIL PROTECTED]> wrote: > Consider this scenario friends. > > build.xml > | > |lib > | > > |--averyveryverylong.jar > > |--anotherlongjarfile.jar > > now when I

Propogating properties up

2006-05-05 Thread Scott Goldstein
I have the following situation: Build file 1: ... ... Build file 1 in directory subproject: I'd like the property, "junit.fail" to be visible in the first build file. In other words, I want the property to propagate upwards. Is this possible? Thank you

Unix commads behaving different in Ant task

2006-05-05 Thread Venkat Kotu
Hi, I have a situation where in I need to find all the .jar files in a directory and write it to a temp file. The command from the prompt is : find myDir/*.jar and it lists all the .jar files from myDir directory. The ant target defined for the purpose is:

Re: file list without directory prepended how to get it

2006-05-05 Thread ankur1 . a
Hi savitha, have u ever tried antelope jar. It's very good extention of ant and has a lot of interesting tasks. (eg. if -else etc.) now for ur problem. It can be done very easily using fileutil task in antelope.jar something like this: include path is the key

file list without directory prepended how to get it

2006-05-05 Thread Narahari 'n' Savitha
Consider this scenario friends. build.xml | |lib | |--averyveryverylong.jar |--anotherlongjarfile.jar now when I want to build a list of files in the lib folder I am using I then use pathconvert

Re: Removing a file from .jar file

2006-05-05 Thread Scot P. Floess
But wouldn't that imply one could do so with a vanilla jar command (as in from the command line)? I haven't looked at the java.util.jar API in sometime...but I don't recall that being available. Of course, I suppose an implementation could see the resource as a jar and do some appropriate wor

RE: Removing a file from .jar file

2006-05-05 Thread Matt Benson
--- "Burgess, Benjamin" <[EMAIL PROTECTED]> wrote: > Correct me if I am wrong, Okay... ;) > but I believe that in Ant > 1.7 you will be able > to do this because the delete task will allow any > resource, such as a > file in an archive. > It'd be nice, but is one of those tasks that is so what

RE: Removing a file from .jar file

2006-05-05 Thread Burgess, Benjamin
Correct me if I am wrong, but I believe that in Ant 1.7 you will be able to do this because the delete task will allow any resource, such as a file in an archive. Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 10:20 AM To: user@ant.apa

Check null attributes in custom task

2006-05-05 Thread chuanjiang lo
Hi all, I have written an ant custom task.. something like.. . What is the usual practice for checking if NestedTask and NestedNestedTask value is not null. Do i do it in the execute method of MyCustomTask and loop through the vectorsand get the NestedTask obj

AW: Removing a file from .jar file

2006-05-05 Thread Jan.Materne
>I don't think you can delete the class file...but you can >certainly update the jar file with a new class or modified >class. To delete, you will probably need to unjar, delete the >file in question and rejar... > >Leomar Costa wrote: >> Hi ! >> >> How I can remove a file from a jar ?

Re: Removing a file from .jar file

2006-05-05 Thread Scot P. Floess
When I say rejar - I don't mean updating the jar you unpacked...I mean literally creating a new jar file after the class file in question has been deleted from the file system. Otherwise, you will be just be doing an update...and the old class file will still be maintained... Scot P. Floess w

Re: Removing a file from .jar file

2006-05-05 Thread Scot P. Floess
Leomar: I don't think you can delete the class file...but you can certainly update the jar file with a new class or modified class. To delete, you will probably need to unjar, delete the file in question and rejar... Leomar Costa wrote: Hi ! How I can remove a file from a jar ?

ant cvs checkout doesn't work

2006-05-05 Thread john does
Hi, I have a problem with cvs from Ant. Connecting to cvs directly from the commandline works as expected. When I attempt the same cvs incantation running the cvs task from Ant it just seems to hang. I have following error : cvs exited with error code -1 Command line was [Ex