Re: Failed to copy due to null

2006-08-14 Thread Ben Pracht
Matt, That's a good suggestion. I've upgraded to 1.6.5, but it didn't help. Any other ideas? Thanks, Ben Pracht Matt Benson wrote: You should probably start by making sure that upgrading to Ant 1.6.5 (the current version) doesn't fix the problem. -Matt --- Ben Pracht <[EMAIL PROTECTED]> wr

RE: Detecting failure!

2006-08-14 Thread timujain
Hi Gilbert, Many many thanks for your clear and easy to follow help! Very much appreciated. Thanks, Timujain Rebhan, Gilbert wrote: > > > Hi, > > 1. ant-contrib has a ... task > > see http://ant-contrib.sourceforge.net/tasks/tasks/index.html > and Logic Tasks / Trycatch > > 2. some t

Re: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Martin Gainty
You can govern who touches what, what is touched and more specifically how Java Processes touches directories via the policy files But then again you already knew that right? Viel Gluck * This email message and any files transmit

Re: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Alexey N. Solofnenko
Usually when a file is overwritten, its permissions are not changed. Executable permission can be lost when the file first deleted, then created again. Carlton, if you have a special file extension or folder, you can run task after newlines are fixed. - Alexey. Dominique Devienne wrote: I'm a

Re: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Alexey N. Solofnenko
Usually when a file is overwritten, its permissions are not changed. Executable permission can be lost when the file first deleted, then created again. Carlton, if you have a special file extension or folder, you can run task after newlines are fixed. - Alexey. Dominique Devienne wrote: I

Calling Ant within a servlet/webapp

2006-08-14 Thread Marc Farrow
I have some servlet and I am trying to call an Ant script within the class to compile a "project". All of the references in the build script are not relative, therefore some of the classpath references are not correct. I know I can change the properties, etc to fix this. However, due to the nat

RE: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Brown, Carlton
That's not a terribly attractive option because it would require storing a list of the desired permissions of every file in my source tree, and it also becomes nonportable due to its dependence on chmod. Normally when I get that recommendation, I rely on the powers of to set permissions. It woul

Re: Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Dominique Devienne
I'm afraid there's no fix, as Java is not permission-aware. probably creates a new file when it does something, and there's no way in Java to preserve the permissions. You could 'fix' the permissions after the fact, using which simply forks to the command line chmod executable, assuming you know

Unwanted behavior - fixcrlf changes files to un-executable

2006-08-14 Thread Brown, Carlton
Recently I started observing some very undesirable behavior in my Ant scripts. Specifically, when does its fixing, it also changes the file permissions to be non-executable. Now, I recognize this might be a very Clever Thing because binaries could be corruped by . But with regard to shell scrip

Re:

2006-08-14 Thread Gilbert Rebhan
Hi Peter, thanks a lot for your snippets !!, that helps me starting with jruby+ant > Check the ant manual! > > Example: > > > xmlfiles = Dir.new(".").entries.delete_if { |i| ! (i =~ /\.xml$/) } > xmlfiles.sort.each { |i| $self.log(i) } > i already saw that, but doesn't deal w

RE: Multiple .properties in the same ANT

2006-08-14 Thread LIRA Olavo
Thank you all for the advices, I'll do a research (see if I can find some examples) on how can I work with fileset, for, ant-contrib and antcall and I'll tell you the results. Thanks again!! Olavo Lira -Original Message- From: glenn opdyc

Re:

2006-08-14 Thread Peter Reilly
Check the ant manual! Example: xmlfiles = Dir.new(".").entries.delete_if { |i| ! (i =~ /\.xml$/) } xmlfiles.sort.each { |i| $self.log(i) } However, jruby is still new and a (large) number of things do not work, for example I could not get (java.io.)File to work - it seems to c

Re: Failed to copy due to null

2006-08-14 Thread Matt Benson
You should probably start by making sure that upgrading to Ant 1.6.5 (the current version) doesn't fix the problem. -Matt --- Ben Pracht <[EMAIL PROTECTED]> wrote: > I'm receiving a "Failed to copy " "due to > null" message. I'm > using ant 1.6.2, and the task is: > >

Re: Multiple .properties in the same ANT

2006-08-14 Thread glenn opdycke-hansen
I agree with the comment that ant-contrib can be useful here. I believe this an appropriate place to use antcall, for these reasons. 1. antcall takes a param element that can be used to specify the name of the .properties file you want processed. 2. properties that are assigned in the targe

Failed to copy due to null

2006-08-14 Thread Ben Pracht
I'm receiving a "Failed to copy " "due to null" message. I'm using ant 1.6.2, and the task is:

user@ant.apache.org

2006-08-14 Thread Rebhan, Gilbert
Hi, just learning ruby and i like it :-) Until now i used javascript and groovy for scripting I'm searching examples of ruby in ant. f.e. what's the equivalent of =

RE: Multiple .properties in the same ANT

2006-08-14 Thread Burgess, Benjamin
I think Ant-Contrib would be the best answer here. A fileset containing the properties files would be passed to the 'for' task which would do the appropriate thing. Ben -Original Message- From: LIRA Olavo [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 10:34 AM To: Ant Users Lis

Re: Task doesn't support the nested * element

2006-08-14 Thread Gerry Healy
I have just tried ant 1.6.5, which also fails but with a null pointer exception build.xml:215: java.lang.NullPointerException Note: the error only occurs when running ant from the API, when running ant in command line it works as expected. --Gerry David Corley (AT/LMI) wrote: Have you tr

RE: Multiple .properties in the same ANT

2006-08-14 Thread LIRA Olavo
Hi Ben, Did you had a chance to look into my Build.xml? I understand what you have said about passing the .properties dynamically, this I can do, what I don't know how to do is to run "n" times the same ANT with different .properties each time... Is it possible? In Eclipse for in

Re: How to create a classpath dynamicaly

2006-08-14 Thread wohlgemuth
you don need to modify it. just define for subprojects a folder called libs and incluse in your classpath the content of all these folders. I using this method to work on 10 project depending on each other with sub projects. an example you can find under: https://sourceforge.net/projects/bbcs/

Re: How to create a classpath dynamicaly

2006-08-14 Thread Willy Reinhardt
Hi, I can't because the application is buildup from several sub projects and I would a avoid to modify the script when someone add a jars. Thanks Willy >>> On Mon, Aug 14, 2006 at No 4:05 PM, in message <[EMAIL PROTECTED]>, wohlgemuth <[EMAIL PROTECTED]> wrote: just define a normal classpath

Re: How to create a classpath dynamicaly

2006-08-14 Thread wohlgemuth
just define a normal classpath on this directory after you moved your stuff there. or you want todo this during the runtime of your programm? /gert On 8/14/06, Willy Reinhardt <[EMAIL PROTECTED]> wrote: Hi, I have an ant task which create and copy jar files into a structure of directories. Nex

How to create a classpath dynamicaly

2006-08-14 Thread Willy Reinhardt
Hi, I have an ant task which create and copy jar files into a structure of directories. Next to this task I would create dynamically a property which is the classpath use as token for the script to start the application. Use like: java -cp @unix-classpath@ -jar org.toto.Main Is an ant task hel

RE: Task doesn't support the nested * element

2006-08-14 Thread David Corley \(AT/LMI\)
Have you tried running the task with ant 1.6.5? And are you using the latest ant-contrib version (1.0b2)? /Dave -Original Message- From: Gerry Healy [mailto:[EMAIL PROTECTED] Sent: 14 August 2006 12:53 To: user@ant.apache.org Subject: Task doesn't support the nested * element Hi there,

Task doesn't support the nested * element

2006-08-14 Thread Gerry Healy
Hi there, I am having trouble using third party ant tasks with nested elements, from the Ant API. For example the ant-contrib IfTask and the svnant SvnTask. I am able to use both of these tasks in build scripts without a problem, when running ant from the command line. But I want to use them f