[ 
https://issues.apache.org/jira/browse/RAT-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560791#comment-16560791
 ] 

Stefan Bodewig commented on RAT-228:
------------------------------------

OK, running Ant via Maven overrides JAVA_HOME. In my setup

 {code}
[au:antunit] Perhaps JAVA_HOME does not point to the JDK.
[au:antunit] It is currently set to "/usr/lib/jvm/java-8-oracle/jre"
[au:antunit]    took 0.013 sec
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.389 s
[INFO] Finished at: 2018-07-28T17:49:38+02:00
[INFO] Final Memory: 36M/552M
[INFO] ------------------------------------------------------------------------
stefan@numpad:~/devel/ASF/rat/apache-rat-tasks$ echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle
{code}

and I have no idea how to fix it. I have barely used the Maven Antrun plugin 
and as long as I contributed to RAT I have used Ant to build the Ant tasks, not 
Maven.

{code}
stefan@numpad:~/devel/ASF/rat/apache-rat-tasks$ ant -f run-antunit.xml 
Buildfile: /home/stefan/devel/ASF/rat/apache-rat-tasks/run-antunit.xml

antunit:

allTests:
...
[au:antunit] Target: testCustomMatcherSentToFile took 0.317 sec

BUILD SUCCESSFUL
Total time: 1 second
{code}

with

{code}
$ svn diff
Index: run-antunit.xml
===================================================================
--- run-antunit.xml     (revision 1836930)
+++ run-antunit.xml     (working copy)
@@ -29,7 +29,7 @@
     <pathelement location="${jar.name}"/>
     <pathelement location="../apache-rat-core/target/classes"/>
     <pathelement location="target/test-classes"/>
-    <pathelement 
location="${user.home}/.m2/repository/org/apache/ant/ant-antunit/1.1/ant-antunit-1.1.jar"/>
+    <pathelement 
location="${user.home}/.m2/repository/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar"/>
     <pathelement 
location="${user.home}/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar"/>
     <pathelement 
location="${user.home}/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar"/>
     <pathelement 
location="${user.home}/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar"/>
{code}

So all I can say is the tests pass if you use Ant to run them and fail if you 
use Maven. Unfortunately I'm not the right person to help with the Maven side 
of things.

> Test failures in antunit does not break the maven build / ANT does not seem 
> to recognize additional licenses
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: RAT-228
>                 URL: https://issues.apache.org/jira/browse/RAT-228
>             Project: Apache Rat
>          Issue Type: Bug
>          Components: antlib
>    Affects Versions: 0.12
>            Reporter: Philipp Ottlinger
>            Priority: Blocker
>             Fix For: 0.13
>
>
> When I was working on RAT-226 I realized that there's a test failure within 
> the apache-rat-tasks submodule:
> {code}
> cd apache-rat-tasks
> mvn clean test
> [INFO] --- maven-antrun-plugin:1.7:run (default) @ apache-rat-tasks ---
> [INFO] Executing tasks
> main:
> allTests:
> [au:antunit] Build File: 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
> [au:antunit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0,291 sec
> [au:antunit] Target: testNoStylesheet took 0,003 sec
> [au:antunit] Target: testNoResources took 0,001 sec
> [au:antunit] Target: testSubstringMatcherRequiresFamilyName took 0,087 sec
> [au:antunit] Target: testFullTextMatcherRequiresFamilyName took 0,024 sec
> [au:antunit] Target: testUnusedStylesheet took 0,042 sec
> [au:antunit] Target: testFullTextMatcherRequiresText took 0,019 sec
> [au:antunit] Target: testSubstringMatcherRequiresFamilyCategory took 0,023 sec
> [au:antunit] Target: testSubstringMatcherRequiresPattern took 0,026 sec
> [au:antunit] Target: testNoLicenseMatchers took 0,001 sec
> [au:antunit] Target: testFullTextMatcherRequiresFamilyCategory took 0,016 sec
>     [mkdir] Created dir: 
> /home/user/ws/rat-trunk/apache-rat-tasks/target/testoutput/dest
> allTests:
> [au:antunit] Build File: 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] Tests run: 11, Failures: 0, Errors: 6, Time elapsed: 1,293 sec
> [au:antunit] Target: testFullTextMatcherNotApprovedSentToFile  caused an ERROR
> [au:antunit]  at line 209, column 55
> [au:antunit]  Message: The following error occurred while executing this line:
> [au:antunit] 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml:282:
>  expected report to contain '!YASL1 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml'
>  but was '
> [au:antunit] *****************************************************
> [au:antunit] Summary
> [au:antunit] -------
> [au:antunit] Generated at: 2017-02-06T23:12:54+01:00
> [au:antunit] 
> [au:antunit] Notes: 0
> [au:antunit] Binaries: 0
> [au:antunit] Archives: 0
> [au:antunit] Standards: 1
> [au:antunit] 
> [au:antunit] Apache Licensed: 0
> [au:antunit] Generated Documents: 0
> [au:antunit] 
> [au:antunit] JavaDocs are generated, thus a license header is optional.
> [au:antunit] Generated files do not require license headers.
> [au:antunit] 
> [au:antunit] 1 Unknown Licenses
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] Files with unapproved licenses:
> [au:antunit] 
> [au:antunit]   
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit]   Files with Apache License headers will be marked AL
> [au:antunit]   Binary files (which do not require any license headers) will 
> be marked B
> [au:antunit]   Compressed archives will be marked A
> [au:antunit]   Notices, licenses etc. will be marked N
> [au:antunit]  !????? 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit]  
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit]  Printing headers for text files without a valid license 
> header...
> [au:antunit]  
> [au:antunit] =====================================================
> [au:antunit] == File: 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] =====================================================
> [au:antunit] <?xml version='1.0'?>
> [au:antunit] <!--
> [au:antunit] 
> [au:antunit]  Licensed to the Apache Software Foundation (ASF) under one   *
> [au:antunit]  or more contributor license agreements.  See the NOTICE file *
> [au:antunit]  distributed with this work for additional information        *
> [au:antunit]  regarding copyright ownership.  The ASF licenses this file   *
> [au:antunit]  to you under the Apache License, Version 2.0 (the            *
> [au:antunit]  "License"); you may not use this file except in compliance   *
> [au:antunit]  with the License.  You may obtain a copy of the License at   *
> [au:antunit]                                                               *
> [au:antunit]    http://www.apache.org/licenses/LICENSE-2.0                 *
> [au:antunit]                                                               *
> [au:antunit]  Unless required by applicable law or agreed to in writing,   *
> [au:antunit]  software distributed under the License is distributed on an  *
> [au:antunit]  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
> [au:antunit]  KIND, either express or implied.  See the License for the    *
> [au:antunit]  specific language governing permissions and limitations      *
> [au:antunit]  under the License.                                           *
> [au:antunit] 
> [au:antunit] -->
> [au:antunit] 
> [au:antunit] <project name='report-normal-operation'
> [au:antunit]     default="allTests"
> [au:antunit]     xmlns:au="antlib:org.apache.ant.antunit"
> [au:antunit]     xmlns:rat="antlib:org.apache.rat.anttasks">
> [au:antunit] 
> [au:antunit]   <property name="output.dir" 
> location="../../../../target/testoutput"/>
> [au:antunit]   <mkdir 
> dir="/home/user/ws/rat-trunk/apache-rat-tasks/target/testoutput/dest"/>
> [au:antunit]   <path id="all-classes-needed-for-tests">
> [au:antunit]     <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/target/classes" />
> [au:antunit]     <pathelement 
> path="/home/user/ws/rat-trunk/apache-rat-tasks/target/test-classes:/home/user/ws/rat-trunk/apache-rat-tasks/target/classes:/home/user/.m2/repository/org/apache/rat/apache-rat-core/0.13-SNAPSHOT/apache-rat-core-0.13-SNAPSHOT.jar:/home/user/.m2/repository/org/apache/rat/apache-rat-api/0.13-SNAPSHOT/apache-rat-api-0.13-SNAPSHOT.jar:/home/user/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/user/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/user/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/user/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/user/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/user/.m2/repository/org/apache/ant/ant/1.9.9/ant-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-antunit/1.3/ant-antunit-1.3.jar:/home/user/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/user/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/user/.m2/repository/org/apache/ant/ant-testutil/1.9.7/ant-testutil-1.9.7.jar"
>  />
> [au:antunit]     <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/target/testoutput/dest" />
> [au:antunit]   </path>
> [au:antunit] 
> [au:antunit]   <taskdef uri="antlib:org.apache.ant.antunit" 
> [au:antunit]            resource="org/apache/ant/antunit/antlib.xml" 
> [au:antunit]            classpathref="all-classes-needed-for-tests"
> [au:antunit]            loaderref="testloader"/>
> [au:antunit] 
> [au:antunit]   <taskdef uri="antlib:org.apache.rat.anttasks"
> [au:antunit]            resource="org/apache/rat/anttasks/antlib.xml"
> [au:antunit]            classpathref="all-classes-needed-for-tests"
> [au:antunit]            loaderref="testloader"/>
> [au:antunit] 
> [au:antunit]   <target name="setUp">
> [au:antunit]     <pathconvert dirsep="/" property="file.name">
> [au:antunit]       <path>
> [au:antunit]         <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml"/>
> [au:antunit]       </path>
> [au:antunit] '
> [au:antunit]  took 0,101 sec
> [au:antunit] Target: testFullTextMatcherSentToFileNoMatch took 0,094 sec
> [au:antunit] Target: testFullTextMatcherApprovedSentToFile  caused an ERROR
> [au:antunit]  at line 227, column 55
> [au:antunit]  Message: The following error occurred while executing this line:
> [au:antunit] 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml:282:
>  expected report to contain ' YASL1 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml'
>  but was '
> [au:antunit] *****************************************************
> [au:antunit] Summary
> [au:antunit] -------
> [au:antunit] Generated at: 2017-02-06T23:12:54+01:00
> [au:antunit] 
> [au:antunit] Notes: 0
> [au:antunit] Binaries: 0
> [au:antunit] Archives: 0
> [au:antunit] Standards: 1
> [au:antunit] 
> [au:antunit] Apache Licensed: 0
> [au:antunit] Generated Documents: 0
> [au:antunit] 
> [au:antunit] JavaDocs are generated, thus a license header is optional.
> [au:antunit] Generated files do not require license headers.
> [au:antunit] 
> [au:antunit] 1 Unknown Licenses
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] Files with unapproved licenses:
> [au:antunit] 
> [au:antunit]   
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit]   Files with Apache License headers will be marked AL
> [au:antunit]   Binary files (which do not require any license headers) will 
> be marked B
> [au:antunit]   Compressed archives will be marked A
> [au:antunit]   Notices, licenses etc. will be marked N
> [au:antunit]  !????? 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit]  
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit]  Printing headers for text files without a valid license 
> header...
> [au:antunit]  
> [au:antunit] =====================================================
> [au:antunit] == File: 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] =====================================================
> [au:antunit] <?xml version='1.0'?>
> [au:antunit] <!--
> [au:antunit] 
> [au:antunit]  Licensed to the Apache Software Foundation (ASF) under one   *
> [au:antunit]  or more contributor license agreements.  See the NOTICE file *
> [au:antunit]  distributed with this work for additional information        *
> [au:antunit]  regarding copyright ownership.  The ASF licenses this file   *
> [au:antunit]  to you under the Apache License, Version 2.0 (the            *
> [au:antunit]  "License"); you may not use this file except in compliance   *
> [au:antunit]  with the License.  You may obtain a copy of the License at   *
> [au:antunit]                                                               *
> [au:antunit]    http://www.apache.org/licenses/LICENSE-2.0                 *
> [au:antunit]                                                               *
> [au:antunit]  Unless required by applicable law or agreed to in writing,   *
> [au:antunit]  software distributed under the License is distributed on an  *
> [au:antunit]  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
> [au:antunit]  KIND, either express or implied.  See the License for the    *
> [au:antunit]  specific language governing permissions and limitations      *
> [au:antunit]  under the License.                                           *
> [au:antunit] 
> [au:antunit] -->
> [au:antunit] 
> [au:antunit] <project name='report-normal-operation'
> [au:antunit]     default="allTests"
> [au:antunit]     xmlns:au="antlib:org.apache.ant.antunit"
> [au:antunit]     xmlns:rat="antlib:org.apache.rat.anttasks">
> [au:antunit] 
> [au:antunit]   <property name="output.dir" 
> location="../../../../target/testoutput"/>
> [au:antunit]   <mkdir 
> dir="/home/user/ws/rat-trunk/apache-rat-tasks/target/testoutput/dest"/>
> [au:antunit]   <path id="all-classes-needed-for-tests">
> [au:antunit]     <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/target/classes" />
> [au:antunit]     <pathelement 
> path="/home/user/ws/rat-trunk/apache-rat-tasks/target/test-classes:/home/user/ws/rat-trunk/apache-rat-tasks/target/classes:/home/user/.m2/repository/org/apache/rat/apache-rat-core/0.13-SNAPSHOT/apache-rat-core-0.13-SNAPSHOT.jar:/home/user/.m2/repository/org/apache/rat/apache-rat-api/0.13-SNAPSHOT/apache-rat-api-0.13-SNAPSHOT.jar:/home/user/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/user/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/user/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/user/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/user/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/user/.m2/repository/org/apache/ant/ant/1.9.9/ant-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-antunit/1.3/ant-antunit-1.3.jar:/home/user/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/user/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/user/.m2/repository/org/apache/ant/ant-testutil/1.9.7/ant-testutil-1.9.7.jar"
>  />
> [au:antunit]     <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/target/testoutput/dest" />
> [au:antunit]   </path>
> [au:antunit] 
> [au:antunit]   <taskdef uri="antlib:org.apache.ant.antunit" 
> [au:antunit]            resource="org/apache/ant/antunit/antlib.xml" 
> [au:antunit]            classpathref="all-classes-needed-for-tests"
> [au:antunit]            loaderref="testloader"/>
> [au:antunit] 
> [au:antunit]   <taskdef uri="antlib:org.apache.rat.anttasks"
> [au:antunit]            resource="org/apache/rat/anttasks/antlib.xml"
> [au:antunit]            classpathref="all-classes-needed-for-tests"
> [au:antunit]            loaderref="testloader"/>
> [au:antunit] 
> [au:antunit]   <target name="setUp">
> [au:antunit]     <pathconvert dirsep="/" property="file.name">
> [au:antunit]       <path>
> [au:antunit]         <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml"/>
> [au:antunit]       </path>
> [au:antunit] '
> [au:antunit]  took 0,067 sec
> [au:antunit] Target: testFullTextMatcherExpandsProperties  caused an ERROR
> [au:antunit]  at line 270, column 59
> [au:antunit]  Message: The following error occurred while executing this line:
> [au:antunit] 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml:282:
>  expected report to contain '!YASL1 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml'
>  but was '
> [au:antunit] *****************************************************
> [au:antunit] Summary
> [au:antunit] -------
> [au:antunit] Generated at: 2017-02-06T23:12:54+01:00
> [au:antunit] 
> [au:antunit] Notes: 0
> [au:antunit] Binaries: 0
> [au:antunit] Archives: 0
> [au:antunit] Standards: 1
> [au:antunit] 
> [au:antunit] Apache Licensed: 0
> [au:antunit] Generated Documents: 0
> [au:antunit] 
> [au:antunit] JavaDocs are generated, thus a license header is optional.
> [au:antunit] Generated files do not require license headers.
> [au:antunit] 
> [au:antunit] 1 Unknown Licenses
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] Files with unapproved licenses:
> [au:antunit] 
> [au:antunit]   
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit]   Files with Apache License headers will be marked AL
> [au:antunit]   Binary files (which do not require any license headers) will 
> be marked B
> [au:antunit]   Compressed archives will be marked A
> [au:antunit]   Notices, licenses etc. will be marked N
> [au:antunit]  !????? 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
> [au:antunit]  
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit]  Printing headers for text files without a valid license 
> header...
> [au:antunit]  
> [au:antunit] =====================================================
> [au:antunit] == File: 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
> [au:antunit] =====================================================
> [au:antunit] <?xml version='1.0'?>
> [au:antunit] <!--
> [au:antunit] 
> [au:antunit]  Licensed to the Apache Software Foundation (ASF) under one   *
> [au:antunit]  or more contributor license agreements.  See the NOTICE file *
> [au:antunit]  distributed with this work for additional information        *
> [au:antunit]  regarding copyright ownership.  The ASF licenses this file   *
> [au:antunit]  to you under the Apache License, Version 2.0 (the            *
> [au:antunit]  "License"); you may not use this file except in compliance   *
> [au:antunit]  with the License.  You may obtain a copy of the License at   *
> [au:antunit]                                                               *
> [au:antunit]    http://www.apache.org/licenses/LICENSE-2.0                 *
> [au:antunit]                                                               *
> [au:antunit]  Unless required by applicable law or agreed to in writing,   *
> [au:antunit]  software distributed under the License is distributed on an  *
> [au:antunit]  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
> [au:antunit]  KIND, either express or implied.  See the License for the    *
> [au:antunit]  specific language governing permissions and limitations      *
> [au:antunit]  under the License.                                           *
> [au:antunit] 
> [au:antunit] -->
> [au:antunit] 
> [au:antunit] <project default="allTests"
> [au:antunit]     name='report-bad-configurations'
> [au:antunit]     xmlns:au="antlib:org.apache.ant.antunit"
> [au:antunit]     xmlns:rat="antlib:org.apache.rat.anttasks">
> [au:antunit]     
> [au:antunit]   <taskdef uri="antlib:org.apache.ant.antunit"
> [au:antunit]       resource="org/apache/ant/antunit/antlib.xml"
> [au:antunit]       
> classpath="/home/user/ws/rat-trunk/apache-rat-tasks/target/test-classes:/home/user/ws/rat-trunk/apache-rat-tasks/target/classes:/home/user/.m2/repository/org/apache/rat/apache-rat-core/0.13-SNAPSHOT/apache-rat-core-0.13-SNAPSHOT.jar:/home/user/.m2/repository/org/apache/rat/apache-rat-api/0.13-SNAPSHOT/apache-rat-api-0.13-SNAPSHOT.jar:/home/user/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/user/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/user/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/user/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/user/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/user/.m2/repository/org/apache/ant/ant/1.9.9/ant-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-antunit/1.3/ant-antunit-1.3.jar:/home/user/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/user/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/user/.m2/repository/org/apache/ant/ant-testutil/1.9.7/ant-testutil-1.9.7.jar"
>  />
> [au:antunit] 
> [au:antunit]   <taskdef uri="antlib:org.apache.rat.anttasks" 
> resource="org/apache/rat/anttasks/antlib.xml">
> [au:antunit]     <classpath>
> [au:antunit]       <pathelement 
> location="/home/user/ws/rat-trunk/apache-rat-tasks/target/classes" />
> [au:antunit]       <pathelement 
> path='/home/user/ws/rat-trunk/apache-rat-tasks/target/test-classes:/home/user/ws/rat-trunk/apache-rat-tasks/target/classes:/home/user/.m2/repository/org/apache/rat/apache-rat-core/0.13-SNAPSHOT/apache-rat-core-0.13-SNAPSHOT.jar:/home/user/.m2/repository/org/apache/rat/apache-rat-api/0.13-SNAPSHOT/apache-rat-api-0.13-SNAPSHOT.jar:/home/user/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/home/user/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/home/user/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar:/home/user/.m2/repository/org/apache/commons/commons-compress/1.11/commons-compress-1.11.jar:/home/user/.m2/repository/commons-cli/commons-cli/1.3.1/commons-cli-1.3.1.jar:/home/user/.m2/repository/org/apache/ant/ant/1.9.9/ant-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-launcher/1.9.9/ant-launcher-1.9.9.jar:/home/user/.m2/repository/org/apache/ant/ant-antunit/1.3/ant-antunit-1.3.jar:/home/user/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/user/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/user/.m2/repository/org/apache/ant/ant-testutil/1.9.7/ant-testutil-1.9.7.jar'
>  />
> [au:antunit]     </classpath>
> [au:antunit]   </taskdef>
> [au:antunit] 
> [au:antunit]   <target name="allTests">
> [au:antunit]     <au:antunit xmlns:au="antlib:org.apache.ant.antunit"
> [au:antunit]                 failonerror="false" 
> errorproperty="antunit.failed">
> [au:antunit]       <file 
> file="/home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml"/>
> [au:antunit]       <au:plainlistener />
> [au:antunit]     </au:antunit>
> [au:antunit]   </target>
> [au:antunit] 
> [au:antunit]   <target name="testNoResources">
> [au:antunit]     <au:expectfailure expectedMessage="at least one file">
> [au:antunit]       <rat:report/>
> [au:antunit]     </au:expectfailure>
> [au:antunit] '
> [au:antunit]  took 0,084 sec
> [au:antunit] Target: testXMLReportSentToFile took 0,061 sec
> [au:antunit] Target: testSubstringMatcherApprovedSentToFile  caused an ERROR
> [au:antunit]  at line 173, column 55
> [au:antunit]  Message: The following error occurred while executing this line:
> [au:antunit] 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml:282:
>  expected report to contain ' YASL1 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml'
>  but was '
> [au:antunit] *****************************************************
> [au:antunit] Summary
> [au:antunit] -------
> [au:antunit] Generated at: 2017-02-06T23:12:54+01:00
> [au:antunit] 
> [au:antunit] Notes: 0
> [au:antunit] Binaries: 0
> [au:antunit] Archives: 0
> [au:antunit] Standards: 1
> [au:antunit] 
> [au:antunit] Apache Licensed: 0
> [au:antunit] Generated Documents: 0
> [au:antunit] 
> [au:antunit] JavaDocs are generated, thus a license header is optional.
> [au:antunit] Generated files do not require license headers.
> [au:antunit] 
> [au:antunit] 1 Unknown Licenses
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] Files with unapproved licenses:
> [au:antunit] 
> [au:antunit]   
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit] 
> [au:antunit] *****************************************************
> [au:antunit]   Files with Apache License headers will be marked AL
> [au:antunit]   Binary files (which do not require any license headers) will 
> be marked B
> [au:antunit]   Compressed archives will be marked A
> [au:antunit]   Notices, licenses etc. will be marked N
> [au:antunit]  !????? 
> /home/user/ws/rat-trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
> [au:antunit]  
> [au:antunit] *****************************************************
> .....
> {code}
> It's not clear how long the problem has been there but it does not have to do 
> with upgrading to the latest compatible ant.
> Can anyone with more ANT-foo help? Maybe it's just a configuration issue?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to