> -----Original Message----- > From: David Crossley [mailto:[email protected]] > Sent: Thursday, 15 October 2009 10:25 AM > To: [email protected] > Subject: Re: RAT with BuildBot at Apache > > Gav... wrote: > > David Crossley wrote: > > > David Crossley wrote: > > >> Gavin wrote: > > >> > > > >> > While I'm here, I'm now just playing with ant-task-examples.xml but > I > > >> > can't > > >> > get it working. I renamed it to build.xml and tried to use it as > is. > > >> > > > >> > The error I get is :- > > >> > > > >> > D:\Apache2\rat-trunk>ant javasources > > >> > Buildfile: build.xml > > >> > > > >> > -taskdef: > > >> > > > >> > javasources: > > >> > > > >> > BUILD FAILED > > >> > D:\Apache2\rat-trunk\build.xml:33: Problem: failed to create task > or > > >> > type > > >> > antlib > > >> > :org.apache.rat.anttasks:report > > >> > Cause: The name is undefined. > > >> > Action: Check the spelling. > > >> > Action: Check that any custom tasks/types have been declared. > > >> > Action: Check that any <presetdef>/<macrodef> declarations have > taken > > >> > place. > > >> > No types or tasks have been defined in this namespace yet > > >> > > > >> > This appears to be an antlib declaration. > > >> > Action: Check that the implementing library exists in one of: > > >> > -D:\Apache2\forrest\tools\ant\lib > > >> > -C:\Documents and Settings\Gavin\.ant\lib > > >> > -a directory added on the command line with the -lib > argument > > >> > > > >> > I'm assuming user error, any clues? > > >> > > >> Looking at that file (i don't have Maven or RAT locally > > >> so cannot really help) ... > > >> > > >> In the "-taskdef" target, do you have the specifed jars installed? > > >> > > >> <include name="**/apache-rat*.jar"/> > > >> <include name="**/commons-*.jar"/> > > >> > > >> Look at the top-level rat/main/trunk/pom.xml > > >> to get hints about those dependencies. > > > > > > Ping. Gavin, did my comments here (and Giridharan's at RAT-63) > > > assist you with this? > > > > I dont think this is related any more. The problem is that I can not > > specify excludes from the command line below the first level. > > I was trying to help you with the Ant task, not > the commandline. > > It seems to me that the Ant task would have better > abilities to "exclude" stuff.
Ok, I give in, I'll do it that way. I would have preferred to have specified the excludes in a command line argument from within the python build script. This way I have to create separate build.xml files on the filesystem, messy in my opinion, as all the build directories for the builds are wiped clean each time and a fresh svn checkout provided, so I can not place the ant tasks file in the same place as the rest of the build. Working on it now, thanks for the hints. Gav... > > -David > > > RAT63 will already be applied as Buildbot always compiles the latest > > snapshot from RAT trunk, so buildbot is using the latest, including > > the above fix. > > > > so, > > > > --exlcude somefile.name somefirstLevelDir/ someotherdir/ > > > > does work > > > > but, > > > > --exclude firstLevel/secondlevel/file.name firstLevel/secondLevel/** > > > > does not. > > > > I can not use the maven way I dont think. > > > > > I am keen to help because Buildbot/RAT is giving > > > Forrest a bad rap due to known exclusions not being > > > sufficiently configured. > > > > Yes, and now having mentioned it on the infra list again this is my > > number one priority, I apologise,but I have mentioned the problem above > > on this list before and not had a specific reply to cure it. I hope > > someone can offer ideas, but i will try again to get it working myself. > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.421 / Virus Database: 270.14.17/2436 - Release Date: 10/14/09 > 18:32:00
