AW: AW: generate file list with parameterized regexp

2008-05-20 Thread Jan.Materne
Ok, I had a look into the source of org.apache.tools.ant.types.selectors.ContainsRegexpSelector. It checks the 'content' of the file ... - directories are always selected - files are selected its content matches the regexp expression I'll update the manual to make this more clear. After that I

Re: AW: antrc & ant.conf files

2008-05-20 Thread David Weintraub
It appears that the $HOME/.ant/ant.conf and $HOME/.antrc files are just two different ways to do the same thing. $HOME/.ant/ant.conf is executed firsrt, so if something is defined in both files, only the one in $HOME/.antrc is used. However, this isn't a feature as much as someone has to be execute

Re: Defining ant target to run junit tests using dbunit

2008-05-20 Thread tmni
I appreciate both attempts to help. I had already viewed that other web page and tried to follow it. It doesn't provide quite enough detail for me. I did try using some of the sample code provided. I was able to eliminate the error about not finding the oracle driver. But now when I try to inc

Re: AW: antrc & ant.conf files

2008-05-20 Thread David J. B. Hollis
Hi, David Ironically, the one which ISN'T exported, DITA_HOME, IS used in the Ant builds. But it's passed as parameter dita.dir. Obviously anything on ANT_ARGS is passed, so ought not need exporting as well. I don't think the others are, but I know the builds pick up the environment. The

Re: Strip directory from fileset includesfile jar location

2008-05-20 Thread Peter Reilly
The reason that it is a bad idea to place log4j.properties in a jar file is that it may be in multiple jar files, - so which one is the correct log4j. For example there is a log4j.properties in bsf.jar (2.4) and in cobertura.jar. As to where else to place the log4j properties file - it depends! 1

Re: Strip directory from fileset includesfile jar location

2008-05-20 Thread Tom Corcoran
Thanks a lot Peter. We were putting it in the top level as log4j needs to find it on the class path. is there another way of setting log4j up? Peter Reilly-2 wrote: > > 1) placing log4j.properties in the top level of a jar file is a crime > against good practice > > 2) do it by: > >

Re: Defining ant target to run junit tests using dbunit

2008-05-20 Thread Carlos Alonso
Hi tmni, About the authentication exception that you're getting, I cannot guess neither cause nor solution, but I think the following source code could be helpful. The first point is the problem you're getting with the oracle driver load. I think that the point is that you have not defined w

Re: AW: generate file list with parameterized regexp

2008-05-20 Thread msorens
Yes I have tried "containsregexp". As far as I could tell, there is no way to parameterize the regexp within the fileset, so that does not work. [EMAIL PROTECTED] writes: Have you tried http://ant.apache.org/manual/CoreTypes/selectors.html#regexpselect ? Then you got the 'problem' of correct

AW: Defining ant target to run junit tests using dbunit

2008-05-20 Thread Knuplesch, Juergen
If I read this http://www.dbunit.org/anttask.html right, than you have to use operation, export or compare. I use JUNIT but not dbunit. I guess somewhere you have to tell the task, what test you are running. -- Jürgen Von: tmni [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Mai 2008 17

Defining ant target to run junit tests using dbunit

2008-05-20 Thread tmni
I am relatively new to ant and am having trouble setting up a target to run a series of junit tests. These tests all run fine when I launch them via eclipse. But if I try to run ant directly via command prompt, I get errors. First, I was getting error like: Error 'Unexpected failure during bean

Re: AW: antrc & ant.conf files

2008-05-20 Thread David Weintraub
On Tue, May 20, 2008 at 3:05 AM, David J. B. Hollis <[EMAIL PROTECTED]> wrote: > I've ended up with this in an ant.conf file: > > #!/bin/sh > > DITA_HOME=~/DITA-OT1.4.2.1 > DITA_HOME=`cd "$DITA_HOME" && pwd` > > #export ANT_HOME="$DITA_HOME"/tools/ant > export ANT_HOME=/Developer/Java/Ant > export

Re: Strip directory from fileset includesfile jar location

2008-05-20 Thread Peter Reilly
1) placing log4j.properties in the top level of a jar file is a crime against good practice 2) do it by: Peter On Mon, May 19, 2008 at 5:29 PM, Tom Corcoran <[EMAIL PROTECTED]> wrote: > > Doing the following creates a sub directory properties in my jar with my > groo

RE: Strip directory from fileset includesfile jar location

2008-05-20 Thread Tom Corcoran
Thanks for tip. I had a play. The interesting attributes are: prefix - all files in the fileset are prefixed with that path in the archive. fullpath - the file described by the fileset is placed at that exact location in the archive. i wasn't able to come up with anything that 'removed' the prope

Re: AW: antrc & ant.conf files

2008-05-20 Thread David J. B. Hollis
Hi, David, Jan Many thanks for taking the trouble to explain all this! I've ended up with this in an ant.conf file: #!/bin/sh DITA_HOME=~/DITA-OT1.4.2.1 DITA_HOME=`cd "$DITA_HOME" && pwd` #export ANT_HOME="$DITA_HOME"/tools/ant export ANT_HOME=/Developer/Java/Ant export ANT_OPTS="-Xmx512m" e