|
9 | 9 |
|
10 | 10 | ant -Dslf4jVersion=1.5.4-SNAPSHOT
|
11 | 11 | -->
|
12 |
| - |
| 12 | + |
| 13 | + <echo message="project.version: ${project.version}" /> |
13 | 14 | <echo message="slf4j.version: ${slf4j.version}" />
|
14 | 15 | <echo message="hamcrest: ${org.hamcrest:hamcrest-core:jar}" />
|
15 | 16 |
|
16 | 17 | <path id="basicClasspath">
|
17 | 18 | <!-- post junit version 4.12, we need to add hamcrest manually to the
|
18 | 19 | classpath, even though the m-ant-plugin declares a dependency on hamcrest! -->
|
19 | 20 | <pathelement location="${org.hamcrest:hamcrest-core:jar}" />
|
20 |
| - <pathelement location="../logback-core/target/classes/" /> |
| 21 | + <pathelement location="../logback-core/target/logback-core-${project.version}.jar/" /> |
21 | 22 | <pathelement location="../logback-core/target/test-classes/" />
|
22 | 23 | <pathelement location="./target/classes/" />
|
23 | 24 | <pathelement location="./target/test-classes/" />
|
24 | 25 | <pathelement location="./lib/slf4j-api-${slf4j.version}.jar" />
|
25 |
| - <pathelement location="./src/test/input/integration/autoInit/" /> |
| 26 | + <pathelement location="./src/test/input/integration/autoInit/" /> |
26 | 27 | </path >
|
27 | 28 |
|
28 | 29 |
|
|
33 | 34 | <target name="init" depends="copySLF4J_JAR">
|
34 | 35 | <echo message="in init"/>
|
35 | 36 | <mkdir dir="target/unit-reports" />
|
36 |
| - </target> |
37 |
| - |
38 |
| - <target name="copySLF4J_JAR"> |
39 |
| - <echo>Making lib/ folder in case it does not already exist.</echo> |
40 |
| - <mkdir dir="lib/"/> |
41 |
| - <echo>Copying ${org.slf4j:slf4j-api:jar} to lib/</echo> |
42 |
| - <!-- sneak in a cleanup procedure of the ../logback-examples/lib/ folder--> |
43 |
| - <delete quiet="true"> |
44 |
| - <fileset dir="../logback-examples/lib/" includes="slf4j-*SNAPSHOT.jar" /> |
45 |
| - </delete> |
46 |
| - <copy file="${org.slf4j:slf4j-api:jar}" todir="lib/" /> |
47 |
| - </target> |
| 37 | + </target> |
48 | 38 |
|
| 39 | + <target name="copySLF4J_JAR"> |
| 40 | + <echo>Making lib/ folder in case it does not already exist.</echo> |
| 41 | + <mkdir dir="lib/"/> |
| 42 | + <echo>Copying ${org.slf4j:slf4j-api:jar} to lib/</echo> |
| 43 | + <!-- sneak in a cleanup procedure of the ../logback-examples/lib/ folder--> |
| 44 | + <delete quiet="true"> |
| 45 | + <fileset dir="../logback-examples/lib/" includes="slf4j-*SNAPSHOT.jar" /> |
| 46 | + </delete> |
| 47 | + <copy file="${org.slf4j:slf4j-api:jar}" todir="lib/" /> |
| 48 | + </target> |
| 49 | + |
49 | 50 |
|
50 | 51 | <target name="testWithoutGroovy" unless="maven.test.skip">
|
51 |
| - <junit printsummary="yes" fork="no" haltonfailure="yes"> |
52 |
| - <classpath refid="basicClasspath" /> |
53 |
| - <formatter type="plain" /> |
54 |
| - <test fork="yes" todir="target/unit-reports" |
55 |
| - outfile="TEST-NoGroovy" |
56 |
| - name="ch.qos.logback.classic.util.InitializationIntegrationTest" /> |
57 |
| - </junit> |
| 52 | + <junit printsummary="yes" fork="no" haltonfailure="yes"> |
| 53 | + <classpath refid="basicClasspath" /> |
| 54 | + <formatter type="plain" /> |
| 55 | + <test fork="yes" todir="target/unit-reports" |
| 56 | + outfile="TEST-NoGroovy" |
| 57 | + name="ch.qos.logback.classic.util.InitializationIntegrationTest" /> |
| 58 | + </junit> |
58 | 59 | </target>
|
59 | 60 |
|
60 | 61 |
|
|
0 commit comments