summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-09-20 08:16:58 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2023-09-23 08:48:41 +0200
commit041a879a0864c0036629b93b728d657e2481ba6a (patch)
tree018235f3463c88d28cb7afcd7964069388119243 /dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch
parentsec-keys/openpgp-keys-apache-creadur: new package, add 20230123 (diff)
downloadgentoo-041a879a0864c0036629b93b728d657e2481ba6a.tar.gz
gentoo-041a879a0864c0036629b93b728d657e2481ba6a.tar.bz2
gentoo-041a879a0864c0036629b93b728d657e2481ba6a.zip
dev-java/apache-rat: new package, add 0.15
remaned from dev-java/rat also replaces dev-java/apache-rat-{core.tasks} Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/32959 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch')
-rw-r--r--dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch b/dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch
new file mode 100644
index 000000000000..b9cb73648008
--- /dev/null
+++ b/dev-java/apache-rat/files/apache-rat-0.15-fix-tests.patch
@@ -0,0 +1,39 @@
+--- a/apache-rat-tasks/src/test/resources/antunit/report-junit.xml
++++ b/apache-rat-tasks/src/test/resources/antunit/report-junit.xml
+@@ -48,7 +48,7 @@
+ <target name="all"/>
+
+ <target name="testWithReportSentToFile">
+- <property name="report.file" location="${output.dir}/selftest.report"/>
++ <property name="report.file" location="../../../../target/anttasks/selftest.report"/>
+ <rat:report reportFile="${report.file}">
+ <file file="${ant.file}"/>
+ </rat:report>
+@@ -88,22 +88,22 @@
+ <target name="testAddLicenseHeaders">
+ <delete dir="${output.dir}/it-sources"/>
+ <mkdir dir="${output.dir}/it-sources"/>
+- <copy file="src/test/resources/antunit/index.apt" tofile="${output.dir}/it-sources/index.apt"/>
++ <copy file="index.apt" tofile="../../../../target/anttasks/it-sources/index.apt"/>
+ <rat:report addLicenseHeaders="true">
+- <file file="${output.dir}/it-sources/index.apt"/>
++ <file file="../../../../target/anttasks/it-sources/index.apt"/>
+ </rat:report>
+ </target>
+
+ <target name="testISO88591">
+ <rat:report format="xml">
+- <file file="src/test/resources/org/example/iso-8859-1.html"/>
++ <file file="../../../../src/test/resources/org/example/iso-8859-1.html"/>
+ </rat:report>
+ </target>
+
+ <target name="testISO88591WithReportFile">
+- <property name="report.file" location="${output.dir}/selftest.report"/>
++ <property name="report.file" location="../../../../target/anttasks/selftest.report"/>
+ <rat:report reportFile="${report.file}" format="xml">
+- <file file="src/test/resources/org/example/iso-8859-1.html"/>
++ <file file="../../../../src/test/resources/org/example/iso-8859-1.html"/>
+ </rat:report>
+ </target>
+ </project>