Ant Path Problems

2006-08-16 Thread Steve Motola
One of the difficulties I've always had with Ant is path problems. I'm banging my head over something likely simple and need a leg up. Situation: Running Luntbuild for Continuos Integration. Have it checking out a master build file from Visual Source Safe. This build file in turn calls to p

Re: Task doesn't support the nested * element

2006-08-16 Thread Gerry Healy
I've solved this myself in the end, but it was a little bit tricky. I was creating and instance of ProjectHelperImpl directly, whereas it seems I should have been using the static method ProjectHelper.getProjectHelper(). I only needed an instance of ProjectHelper to avoid the compile warnings

RE: Repeating a task x times

2006-08-16 Thread Allwicher, Klaus
Write you own iterator for the loop produces: 1 2 ... 13 14 15 And here a simple implementation (of course you must add an antlib.xml to your jar) public class NumberGenerator implements Iterator { long start = 0; long incr = 1; lo

Re: classsnotfound exception with junit ant task

2006-08-16 Thread cmose
Well, the answer seems to be my own ignorance of ant. within did the trick (vs. pathelement path="...\*.jar" />) Joel Klein wrote: > > cmose wrote: > >>classpath.project is defined thusly: >> >>--->this is the bin directory for >>class files >>---> a temporary location for >>jar libra

Re: Failed to copy due to null

2006-08-16 Thread Matt Benson
If you've found the basic cause, does that mean it'd be fairly easy for you to put together a working example? If we can see exactly what's taking place, maybe we can do something. -Matt --- Ben Pracht <[EMAIL PROTECTED]> wrote: > I feel like keeping this a secret since only one > person respon

Re: Failed to copy due to null

2006-08-16 Thread Ben Pracht
I feel like keeping this a secret since only one person responded. Nevertheless, the message really means the contents of the file being filtered contain characters which cannot be translated into UTF-8, I believe. It would have been more helpful to just issue a complete stack trace rather tha

Re: classsnotfound exception with junit ant task

2006-08-16 Thread cmose
I mis-spoke in this past message. I hadn't previously attached the source for digester in eclipse. It looks like the error is indeed occuring in the Digester code when it uses a classloader to attempt to load this class in question (class referenced in the classnotfound exception). Still not sur

Re: classsnotfound exception with junit ant task

2006-08-16 Thread cmose
Joel, thanks much for the comments the typo was merely a typo in my transcription of the build file from a printout to here (it's on an isolated development network). There are no classloaders in use elsewhere that I'm familiar with (short of anything in use by junit). I'll check your recommendat

Re: classsnotfound exception with junit ant task

2006-08-16 Thread Joel Klein
cmose wrote: classpath.project is defined thusly: --->this is the bin directory for class files ---> a temporary location for jar libraries Where in this classpath is the missing class supposed to be found? If it's supposed to be in the second pathelement above, there's a couple th

classsnotfound exception with junit ant task

2006-08-16 Thread cmose
Wasn't able to find anything on searching the forum regarding this issue. I turned up a number of items via google but none of them seemed to resolve the problem I've got. I'm using ant 1.6.5 through eclipse 3.1. Specifically I'm using a junit task defined thusly: ...

Re: How to silence javac task?

2006-08-16 Thread Hans Schwaebli
It wouldn't help here because javac.exe writes to error stream both warnings and errors. javac.exe should be quiet regarding warnings if I say so (nowarn=true), but not regarding errors. Thats the problem. James Abley <[EMAIL PROTECTED]> wrote: I run 1.6.5 and haven't looked in SVN to see i

Re: Repeating a task x times

2006-08-16 Thread Scot P. Floess
I wrote something like this a while back using ant contrib and math... Here ya go: description = "This implements a for loop with starting and ending values for the loop.">

ant, rsync and ssh passphrase

2006-08-16 Thread Michael Bauroth
Hi, does there exist an option to use rsync with ssh + password/passphrase from within ANT too? If so, how can I call it? Any help would be great. Regards Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Task doesn't support the nested * element

2006-08-16 Thread Gerry Healy
This may be a repeat as I posted from the wrong address before. I've solved this myself in the end, but it was a little bit tricky. I was creating and instance of ProjectHelperImpl directly, whereas it seems I should have been using the static method ProjectHelper.getProjectHelper(). I only

Re:

2006-08-16 Thread Peter Reilly
On 8/15/06, Gilbert Rebhan <[EMAIL PROTECTED]> wrote: Hi Peter, thanks for another bunch of helpful snippets !! :-) > I have found out how to use File in jruby, so > your example looks something like this: How did you get that, are you already experienced with (j)ruby ? It was in the javaw