RE: why do I get a java FileNotFound when defining a property

2005-09-15 Thread Lasher, James L
I'm using Ant 1.6.2 on Windows. I should have given the precise issue: Where X is a mapped network drive... not that that should make any difference. The exact error I'm getting is: java.io.FileNotFoundException: X:\tmp\success.txt (The system cannot find the path specified) -jim- -Orig

Re: Fileset search file

2005-09-15 Thread Antoine Levy-Lambert
João Augusto Charnet wrote: > Hello, > I'm using Fileset to search through a series o files of the same > extension (say *.jsf). I'd like to know if file set does a depth > search, ou a width search through out the directories. > Example: > Let's say I have the following directory structure: > ...

Re: Concat With Newline

2005-09-15 Thread Antoine Levy-Lambert
Urciolo, Kevin wrote: >I am using concat to write out configuration files. The text is >embedded within the concat. What is the best way to write out a new >line at the end? > >thanks > > > Hello Kevin, jdbc.host=server1.foobar.com jdbc.user=joeking will write a 2 lines file with a line sep

Re: why do I get a java FileNotFound when defining a property

2005-09-15 Thread Ben Stringer
On Fri, 2005-09-16 at 01:09 -0400, Lasher, James L wrote: > I have defined a property: > > > > If the /opt/odi/success.txt file does not yet exist, I get a > java.io.FileNotFound Exception and the build fails. > > Is there any way around this? I'd like to just set this property up > with the n

why do I get a java FileNotFound when defining a property

2005-09-15 Thread Lasher, James L
I have defined a property: If the /opt/odi/success.txt file does not yet exist, I get a java.io.FileNotFound Exception and the build fails. Is there any way around this? I'd like to just set this property up with the name of a file that will exist later. I imagine I could wait to set this up

Re: CVS Checkout fails

2005-09-15 Thread Antoine Levy-Lambert
[EMAIL PROTECTED] wrote: >I'm getting the following error when checking out modules >>from CVS (with label): > >All the files int the CVS module are listed here, >...then >cvs checkout: cannot open CVS/Entries for reading: No such >file or directory > >I don't get this if no label is specifi

RE: "unless" doesn't appear to work for me?

2005-09-15 Thread Greg Akins
Thanks. I was suprised to see that Ant didn't have a way to check for the presence of a file... Obviously I didn't read through the tasks well enough. Quoting "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]>: > > > > > > > > > > > > You might want to look

Re: Fileset search file

2005-09-15 Thread Matt Benson
--- João Augusto Charnet <[EMAIL PROTECTED]> wrote: > Is there any work around I can do to achieve some > kind of ordering until > 1.7 comes out? You could subclass fileset to order things. > Any idea on when 1.7 is coming out ? Nothing concrete, hopefully by the end of the year at the latest.

Using Find Exec In ANT

2005-09-15 Thread Urciolo, Kevin
> Any way to do this with a chgrp and fileset? > > find . -gid 205 -exec chgrp producers {} \; > > If not, how about an exec? I tried an exec with a single arg line, > and get a "missing argument to `-exec'" > > thanks for your help

Re: Fileset search file

2005-09-15 Thread João Augusto Charnet
Is there any work around I can do to achieve some kind of ordering until 1.7 comes out? Any idea on when 1.7 is coming out ? Thanks . John Matt Benson wrote: ;) Correct; 1.7 will have a resource collection and several included resource comparators. I didn't want to disappoint the guy, so

RE: Re(2): Newbie question

2005-09-15 Thread RADEMAKERS Tanguy
>That is strange since I installed Ant and the latest JDK and wrote the >first example described in O'Reilly book about Ant. >If even that first example does not work without downloading additional >classes... That's not what he means - ant has a number of optional tasks that require extra jars, a

Re: Fileset search file

2005-09-15 Thread Matt Benson
;) Correct; 1.7 will have a resource collection and several included resource comparators. I didn't want to disappoint the guy, so hadn't said anything. -Matt --- Jeffrey E Care <[EMAIL PROTECTED]> wrote: > I think some of Matt Benson's work on the HEAD (i.e. > Ant 1.7) branch for > resource

Re: Fileset search file

2005-09-15 Thread Jeffrey E Care
I think some of Matt Benson's work on the HEAD (i.e. Ant 1.7) branch for resource collections can do ordering. Unfortunately that won't help you on 1.6 -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) João Augusto Charnet

Re(2): Newbie question

2005-09-15 Thread Sylvain Perchaud
Le jeudi 15 septembre 2005, à 13:27, Jeffrey E Care a écrit: >Does your build actually fail? in fact my build never ends, I have to stop it. >These types of messages: > >> Could not load a dependent class (com/jcraft/jsch/UserInfo) for type >sshexec >> Could not load a dependent class (com/jcra

Re: Newbie question

2005-09-15 Thread Jeffrey E Care
Does your build actually fail? These types of messages: > Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec > Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp are not that unusual and will not actually break your build; they are just there to

Re: Fileset search file

2005-09-15 Thread João Augusto Charnet
Thanks for the response. Is there any way to guarantee the order of the files returned ? Thanks again ... John Jeffrey E Care wrote: fileset goes not guarantee that the files it matches will be returned in any particular order. I do believe that it will go depth-first, but within any give

Re: Concat With Newline

2005-09-15 Thread Jeffrey E Care
${line.separator} -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Urciolo, Kevin" <[EMAIL PROTECTED]> wrote on 09/15/2005 01:13:39 PM: > I am using concat to write out configuration files. The text is > embedded within the con

Re: Fileset search file

2005-09-15 Thread Jeffrey E Care
fileset goes not guarantee that the files it matches will be returned in any particular order. I do believe that it will go depth-first, but within any given directory there is no guarantee on the order of the files in that directory, as this is dependant on the underlying JVM, native filesyste

Newbie question

2005-09-15 Thread Sylvain Perchaud
Hello, I tried to use Ant (Ant build file created with oXygen) just for a test on my Windows XP machine. Unfortunately I cannot even compile my small test, the system is saying me that some libs are missing. But when I read the libs names, I believe that these libs are not related at all to wh

Concat With Newline

2005-09-15 Thread Urciolo, Kevin
I am using concat to write out configuration files. The text is embedded within the concat. What is the best way to write out a new line at the end? thanks

Fileset search file

2005-09-15 Thread João Augusto Charnet
Hello, I'm using Fileset to search through a series o files of the same extension (say *.jsf). I'd like to know if file set does a depth search, ou a width search through out the directories. Example: Let's say I have the following directory structure: ...     |BaseDir     |   |     |   |Dir1

Re: CVS Checkout fails

2005-09-15 Thread Andrew Goktepe
Look at the line preceding that one in the output. That should tell you the directory CVS was in when it encountered that error. Then take a look at its subdirectories. Look for local versions (created manually, not checked out) of a subdirectory which also exists in the CVS repository. That cou

RE: "unless" doesn't appear to work for me?

2005-09-15 Thread Anderson, Rob (Global Trade)
> > > > > You might want to look at the task to ckeck whether or not the file exists. -Rob A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

CVS Checkout fails

2005-09-15 Thread jstallard
I'm getting the following error when checking out modules from CVS (with label): All the files int the CVS module are listed here, ...then cvs checkout: cannot open CVS/Entries for reading: No such file or directory I don't get this if no label is specified. Is this normal behavior? -

Re: "unless" doesn't appear to work for me?

2005-09-15 Thread Greg Akins
Quoting Matt Benson <[EMAIL PROTECTED]>: > > This is "the Ant way," ordinarily. > I chose "the Ant way";'). Thanks very much for everyones help! - This mail sent through IMP: http://horde.org/imp/ --

Re: Running a task between this hour and this hour

2005-09-15 Thread Troy Daniels
At 05:42 AM 9/15/2005, [EMAIL PROTECTED] wrote: Tx but ... The question was send to the ANT-ML to implement is via ANT... :) Except that the right way to do this is to create a separate task that generates the stats, the create a cron job to run ant and perform that task at night. What doe

Re: ant log

2005-09-15 Thread Robert Clark
On Thursday September 15, 2005 04:31 am, Giuliano Dessì <[EMAIL PROTECTED]> wrote: > I've found an expression that I don't understand: "PR: 11557" > 11557 is certanly a bug because I've found it in Bugzilla's > archieves.. But I don't understand what PR means.. PR == "Problem Report". Another nam

RE: ant log

2005-09-15 Thread Bill Rich
It could also stand for Problem Report ... -Original Message- From: Ramnish Kalsi [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 1:54 AM To: Ant Users List Subject: RE: ant log Previously Reported ? just a guess ... :) -Original Message- From: Giuliano Dessì [ma

Re: Specifying the java runtime for Ant

2005-09-15 Thread Steve Loughran
Andy Wickson wrote: I am really trying to get Ant itself to run using a non-default java runtime (one I specify). The reasons are very convoluted and I won't bore you with them. There seems to be something in the docs about this but I get the feeling things may have changed recently. I have see

Re: "unless" doesn't appear to work for me?

2005-09-15 Thread Andrew Goktepe
Remember that all that matters is that the property is set to something. When you pass , you are setting that parameter for the target you are calling. This means that if file.exists has not been defined previously, you have just set it to the value "${file.exists}", and from that point forward

Re: "unless" doesn't appear to work for me?

2005-09-15 Thread Matt Benson
--- Greg Akins <[EMAIL PROTECTED]> wrote: [SNIP] > > > when="greater" length="0"/> > > >/> > > > value="${destination}"/> > value="${file.exists}" /> > > >

RE: Zip Task to zip multiple files

2005-09-15 Thread Bhadra, Jatin
Minesh, You can use foreach from the ANT contrib. http://ant-contrib.sourceforge.net/ Jatin Bhadra www.cmware.co.uk WebSphere AutoDeploy tool -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 14:06 To: user@ant.apache.org Subject: Zip Task to

Zip Task to zip multiple files

2005-09-15 Thread m.parmar
Hi, im a new user of ant and would like to know if it is possible to zip multiple files in a directory, but for each file create it's own zip archive. (e.g. 10 *.txt files in C:\temp to 10 *.zip files in C:\temp2)?? I don't see any mention of this in the zip task documentation. Is this possible?

Re: Specifying the java runtime for Ant

2005-09-15 Thread Andy Wickson
I am really trying to get Ant itself to run using a non-default java runtime (one I specify). The reasons are very convoluted and I won't bore you with them. There seems to be something in the docs about this but I get the feeling things may have changed recently. I have seen talk of a .antrc fi

Re: "unless" doesn't appear to work for me?

2005-09-15 Thread Greg Akins
Quoting Dominique Devienne <[EMAIL PROTECTED]>: > 1) Thinking if="foo" means "execute the target is foo's property value > is true (or yes, or 1)". It sounds like you're are not making that > mistake. > Here is the target I'm running (this is the only target in this buildfile, and fileToCheck &

Re: incremental builds

2005-09-15 Thread Jeffrey E Care
Many tasks already support incremental builds: javac, copy, move, zip, native2ascii, etc. Plus you can always use dependset & uptodate to munge it for tasks that don't support it. JEC -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Man

Re: Specifying the java runtime for Ant

2005-09-15 Thread Steve Loughran
Andy Wickson wrote: Hi, I know that using I can specify the javac that I want to use for a compilation but is it possible to do this the other way round? I.e., I want to explicitly specify to Ant the runtime to use for itself at startup (one which it won't find as default in the $PATH) and

Re: Specifying the java runtime for Ant

2005-09-15 Thread Barry White
Hi Andy, are you just trying to ensure that your sources will compile to be, say, 1.3 compliant? This was a problem that I faced for a while and I believe it was solved on this mailing list. I thought specifying source/target=1.3 should or would be enough but it is not - you have to specify t

Re: Running a task between this hour and this hour

2005-09-15 Thread duvelbier-tsmets
OK so checking there is a "0" (zero) in the hours would be an good option for what I need. Tx, \T, --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > One way is to use the task with a custom pattern to contain only the > hour (in 24hour > format). Then using the task (from the ant-contrib proje

Re: Running a task between this hour and this hour

2005-09-15 Thread duvelbier-tsmets
Tx but ... The question was send to the ANT-ML to implement is via ANT... :) \T, --- "J. David Boyd" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> writes: > > > Running the stats on our code is a rather lenghty process (currently +/-70 > > minutes)... I therefore consider to run the target

Specifying the java runtime for Ant

2005-09-15 Thread Andy Wickson
Hi, I know that using I can specify the javac that I want to use for a compilation but is it possible to do this the other way round? I.e., I want to explicitly specify to Ant the runtime to use for itself at startup (one which it won't find as default in the $PATH) and then use the default j

RE: ant log

2005-09-15 Thread Ramnish Kalsi
Previously Reported ? just a guess ... :) -Original Message- From: Giuliano Dessì [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 09:32 To: user@ant.apache.org Subject: ant log Hi all. I'm a student and I'm working to a tesi about Open Source Projects. Now I'm parsing ant logs to ext

RE: incremental builds

2005-09-15 Thread hind.lwahhabi
Nicolas, As a matter of fact i am using and with some specific compilers for non-java code. -Original Message- From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thu 9/15/2005 10:04 AM To: Ant Users List Subject: Re: incremental builds Hi, I would say that it depends on the task

ant log

2005-09-15 Thread Giuliano Dessì
Hi all. I'm a student and I'm working to a tesi about Open Source Projects. Now I'm parsing ant logs to extract information about bugs. I've found an expression that I don't understand: "PR: 11557" 11557 is certanly a bug because I've found it in Bugzilla's archieves.. But I don't understand what

Re: incremental builds

2005-09-15 Thread Nicolas Vervelle
Hi, I would say that it depends on the tasks you are using. A few examples : - for , you can use to check dependency - for , by default only newer files are copied You can always use , if/unless in and other tools to do your own up to date tests. Which tasks are you considering to use

incremental builds

2005-09-15 Thread hind.lwahhabi
Hello folks, I am not sure you can do this in Ant but anyway i am asking the question: -Is there a way to perform incremental builds using ant scripts, i.e build only what has changed? If so does it rely on some manual-scripts-timestamp-moulinette or is there a smarter manner to do so? Thanks fo

RE: moving from windows to unix

2005-09-15 Thread hind.lwahhabi
Thanks a lot Andrew. I came nearly to the same conclusions, except that i am willing to use maybe perl scripts instead of batch/shell scripts. -Original Message- From: Andrew Goktepe [mailto:[EMAIL PROTECTED] Sent: Wed 9/14/2005 3:33 PM To: Ant Users List Subject: Re: moving from windo