> -----Original Message-----
> From: Robert Burrell Donkin [mailto:[email protected]]
> Sent: Tuesday, 16 June 2009 7:33 AM
> To: [email protected]
> Subject: Re: RAT with BuildBot at Apache
> 
> Ross Gardler wrote:
> > 2009/6/15 Gavin <[email protected]>:
> >>
> >>> -----Original Message-----
> >>> From: [email protected] [mailto:[email protected]]
> On
> >>> Behalf Of Ross Gardler
> >>> Sent: Monday, 15 June 2009 10:09 AM
> >>> To: [email protected]
> >>> Subject: Re: RAT with BuildBot at Apache
> >>>
> >>> 2009/6/15 Gavin <[email protected]>:
> >>>
> >>>> Is that possible now, excluding sub-dirs ? If so how as I'd love to
> >>>> implement it so we can have more accurate results to work from for
> >>> refining.
> >>>
> >>> Here's an example from the Simal project (using Maven):
> >>>
> >>>       <plugin>
> >>>         <groupId>org.codehaus.mojo</groupId>
> >>>         <artifactId>rat-maven-plugin</artifactId>
> >>>         <configuration>
> >>>           <excludes>
> >>>             <exclude>.pmd</exclude>
> >>>             <exclude>derby.log</exclude>
> >>>             <exclude>reports/**/*</exclude>
> >>>             <exclude>simal/**/*</exclude>
> >>>             <exclude>build/**/*</exclude>
> >>>             <exclude>simalDOAPFilestore/**/*</exclude>
> >>>             <exclude>simalRepository/**/*</exclude>
> >>>             <exclude>local.simal.properties</exclude>
> >>>             <exclude>local.simal.test.properties</exclude>
> >>>           </excludes>
> >>>         </configuration>
> >>>         <executions>
> >>>           <execution>
> >>>             <phase>verify</phase>
> >>>             <goals>
> >>>               <goal>check</goal>
> >>>             </goals>
> >>>           </execution>
> >>>         </executions>
> >>>       </plugin>
> >> Ah, ok great thanks. My implementations so far have just been command
> line
> >> usage, so I'll have to move over to the Maven or Ant plugin ways then I
> >> guess.
> >
> > It must be in the code, is it not implemented in the CLI? Sounds like
> > a feature if not.
> 
> 
> there's quite a few features in the code that just need some CLI work to
> support on the command line
> 
> would you want it to be something like comma separated list eg
> 
> %rat --excludes="target, build/**/*, *.svn"
> 

Hi Robert, yes that would be great, thanks!

I commented on RAT-2 yesterday saying just that.
I also added that perhaps there could be an

--exclude-file="file-of-excludes"

but that's not essential, your idea will be just fine.

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?

Thanks

Gav...


> - robert


Reply via email to