File: 01-fix-wrong-junit-path.patch

package info (click to toggle)
maven-compiler-plugin 3.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,348 kB
  • sloc: xml: 4,203; java: 4,111; makefile: 3; sh: 1
file content (21 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix wrong junit patch in Compiler test.
 The compiler testcase sets an absolute path to junit's jar file
 version 3.8.1 even though the pom.xml file now depends on 4.12
 (4.x on Debian).
 .
 This patch fixes it and set the fixed path to a current junit jar
 file.
Author: Tiago Stürmer Daitx <tiago.daitx@ubuntu.com>
Last-Update: 2017-09-08

--- a/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
+++ b/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java
@@ -425,7 +425,7 @@
         String localRepository = System.getProperty( "localRepository" );
         if ( localRepository != null )
         {
-            artifactFile = new File( localRepository, "junit/junit/3.8.1/junit-3.8.1.jar" );
+            artifactFile = new File( localRepository, "junit/junit/4.x/junit-4.x.jar" );
         }
         else
         {