Gavin wrote:
Hi All,

I see that this has been addressed and committed (RAT-30), however I must be
doing something wrong as it does not work for me.

Not necessarily - it might be you are the first person to actually do it other than me ;-)

I often fall foul of the fact that I run things from within Eclipse which manages the classpath for you and sometimes I forget to test in the command line. Let me see now... (using command line only)...

I only downloaded trunk today so bear with me, this is what I did after the
download of trunk.

ant build (did not work)

Yep, seems there is no build.xml - docs need updating

mvn install (aha now it does)

Good, that's a start then, didn't work for me like that. I tried:

cd rat-trunk/rat
mvn installed

This failed due to a missing dependency on rat-core, so I had to:

cd rat-trunk/rat/rat-core
mvn install

cd /project/to/test
java -jar /path/to/rat-core/target/rat-core-0.6-SNAPSHOT.jar -a .

The above does create filename.ext.new files but they are identical to the
old ones.

Strange, the contribution does have tests with it [2]. The tests are run on a "mvn install":

Running org.apache.rat.annotation.TestLicenceAppender
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec

I've also tested this on my own application here and can't reproduce the problem.

What is the extension of the files you are hoping to relicence? The appender does not work on every file type. Currently supported filetypes are:

.java
.xml
.html
.js
.apt
.properties

There is patch against issue Rat-30 that adds .rdf but it has not yet been applied to head.

I have not come across any docs that tell me what else I should be doing, is
the AL license embedded or does it need to refer to an existing one
somewhere or ?

The licence header is in [1] so it does not need to be added or managed by the user.

I note that the rat website has broken links and old docs for the rat-core module. I assume you are reading the docs from source otherwise the above was a pretty good guess (or perhaps the help option is actually helpful?).

Anyway, docs are pretty sparse aren't they? You're going to add this stuff to the docs, right? (note there is a patch attached to issue Rat-30 that has some extra docs, but nothing more useful to you)

Ross

[1] http://svn.apache.org/repos/asf/incubator/rat/main/trunk/rat/rat-core/src/main/java/org/apache/rat/annotation/ApacheV2LicenceAppender.java [2] http://svn.apache.org/repos/asf/incubator/rat/main/trunk/rat/rat-core/src/test/java/org/apache/rat/annotation/TestLicenceAppender.java

Reply via email to