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. -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.
