RE: Exceptions while executing JUnit

2009-09-08 Thread Kamesh Parameswaran
Hi All, I'm also encountering another sort of exception in the same run. The trace is as follows, Resource com/cisco/cp/engine/sal/unittest/data/TestData.xml loaded from ant loader Class java.io.File loaded from parent loader (parentFirst) Class java.net.URI loaded from parent loader (parentFirst

RE: Exceptions while executing JUnit

2009-09-08 Thread Kamesh Parameswaran
Hi Supareno, The xml files have been added to the classpath. You can see a in my script. This one consists my test case and input xml files. Though I'm encountering this issue. I'm seeing the following sort of message displayed in my console. "Couldn't load resource org/junitext/runners/com/org/b

Re: calculating relative paths

2009-09-08 Thread Andy Stevens
2009/9/8 Francis GALIEGUE : > On Tue, Sep 8, 2009 at 21:03, Andy > Stevens wrote: >> 2009/9/8 Francis GALIEGUE : >>> On Tue, Sep 8, 2009 at 08:41, Andy >>> Stevens wrote: Hi, Is there an easy way to calculate an arbitrary relative path between two files? Part of my Ant scr

Re: access cvs with ssh in windows

2009-09-08 Thread Michael Ludwig
Júlio Cesar Bueno Cotta schrieb am 04.09.2009 um 15:40:16 (-0300): > I am trying t access a cvs server from a ant task (running in a > Windows system)..When a test in a Linux system everything goes > right..but in windows the task doesnot conect in the cvs server.. > How can I install suport for

Re: Delete N directories that match a regexp

2009-09-08 Thread Daniel Steinmann
Matt Benson wrote: > > It may be as simple as using / instead of file.separator. Give it a try! > Yes, this works. Thank you, Daniel -- View this message in context: http://www.nabble.com/Delete-N-directories-that-match-a-regexp-tp22727856p25353970.html Sent from the Ant - Users mailing l

Re: Exceptions while executing JUnit

2009-09-08 Thread supareno
Kamesh, are you sure that your xml file is in the classpath? the xml file MUST be in the classpath. To achieve this goal, you should add it in your classapth definition like this: hope this help :-) supareno Hi All, I'm trying to execute certain test cases as a part of my b

Re: calculating relative paths

2009-09-08 Thread Francis GALIEGUE
On Tue, Sep 8, 2009 at 21:03, Andy Stevens wrote: > 2009/9/8 Francis GALIEGUE : >> On Tue, Sep 8, 2009 at 08:41, Andy >> Stevens wrote: >>> Hi, >>> >>> Is there an easy way to calculate an arbitrary relative path between two >>> files? >>> Part of my Ant script copies a default configuration file

Re: calculating relative paths

2009-09-08 Thread Andy Stevens
2009/9/8 Jan.Materne : > I am not aware of any built in task, but there is a method in FileUtils you > could use. > > Jan > > > > > > > > Strange, that looks like it ought to be just the job, but with build.dir=build buil

Re: calculating relative paths

2009-09-08 Thread Andy Stevens
2009/9/8 Francis GALIEGUE : > On Tue, Sep 8, 2009 at 08:41, Andy > Stevens wrote: >> Hi, >> >> Is there an easy way to calculate an arbitrary relative path between two >> files? >> Part of my Ant script copies a default configuration file to a build >> folder, in the course of which I modify it (w

Re: Delete N directories that match a regexp

2009-09-08 Thread Francis GALIEGUE
On Mon, Sep 7, 2009 at 13:28, Daniel Steinmann wrote: > > > Matt Benson wrote: >> >> >> (given same dirset id=ds) >>   >>     >>   >>   ${includes} >>   >>     >>   >>   >> >> > > Great tip! > > But I have problems with the to= part of the regex pattern on Windows. The > file.separator on Wi

Re: Delete N directories that match a regexp

2009-09-08 Thread Matt Benson
It may be as simple as using / instead of file.separator. Give it a try! -Matt --- On Mon, 9/7/09, Daniel Steinmann wrote: > From: Daniel Steinmann > Subject: Re: Delete N directories that match a regexp > To: user@ant.apache.org > Date: Monday, September 7, 2009, 6:28 AM > > > Matt Benson

[ANN] OptiPNG task

2009-09-08 Thread Ernst de Haan
FYI: An Apache Ant task is now available for OptiPNG, a PNG image optimizer. For more information, see my blog post with a mini-HOWTO: http://ernstdehaan.blogspot.com/2009/09/optipng-ant-task.html The OptiPNG Ant task is licensed under a permissive BSD-style license and can be downloaded her

Re: calculating relative paths

2009-09-08 Thread Dominique Devienne
On Tue, Sep 8, 2009 at 1:41 AM, Andy Stevens wrote: > Is there an easy way to calculate an arbitrary relative path between two > files? Indirectly, with , which computes the rel. path between a set of files and the jar. May be subverted into doing it I think. --DD ---

Exceptions while executing JUnit

2009-09-08 Thread Kamesh Parameswaran
Hi All, I'm trying to execute certain test cases as a part of my build. I'm using the ant's junit task to accomplish this. My build script is as follows,

AW: calculating relative paths

2009-09-08 Thread Jan.Materne
I am not aware of any built in task, but there is a method in FileUtils you could use. Jan or as java code (task) import java.io.File; import org.apache.tools.ant.Task; import org.apache.tools.a

Re: calculating relative paths

2009-09-08 Thread Francis GALIEGUE
On Tue, Sep 8, 2009 at 08:41, Andy Stevens wrote: > Hi, > > Is there an easy way to calculate an arbitrary relative path between two > files? > Part of my Ant script copies a default configuration file to a build > folder, in the course of which I modify it (with xmltask) with the > location of so