回答編集履歴
3
javac w
answer
CHANGED
@@ -3,21 +3,29 @@
|
|
3
3
|
# 追記
|
4
4
|
|
5
5
|
## junit task の設定
|
6
|
-
|
6
|
+
javacclasspath/path@refid が javac@classpathref の設定と同じくなる(maven で ant タスクつくるからまともに最近かいてないよな)
|
7
7
|
```
|
8
|
+
<javac destdir="${maven.build.testOutputDir}"
|
9
|
+
nowarn="false"
|
10
|
+
debug="true"
|
11
|
+
optimize="false"
|
12
|
+
deprecation="true"
|
13
|
+
target="1.1"
|
14
|
+
verbose="false"
|
15
|
+
fork="false"
|
16
|
+
source="1.3">
|
17
|
+
<src>
|
8
|
-
<
|
18
|
+
<pathelement location="${maven.build.testDir.0}"/>
|
9
|
-
|
19
|
+
</src>
|
10
|
-
|
20
|
+
<classpath>
|
11
21
|
<path refid="build.test.classpath"/>
|
12
22
|
<pathelement location="${maven.build.outputDir}"/>
|
13
|
-
<pathelement location="${maven.build.testOutputDir}"/>
|
14
|
-
|
23
|
+
</classpath>
|
15
|
-
<!-- 中略 -->
|
16
|
-
</
|
24
|
+
</javac>
|
17
25
|
```
|
18
26
|
|
19
27
|
|
20
|
-
で `
|
28
|
+
で `javac@classpathref` や `javac/classpath/path@refid` に設定するのが
|
21
29
|
|
22
30
|
|
23
31
|
```
|
2
めんどーなので maven タスクで自動作成した ant タスク ( goal ant:ant )
answer
CHANGED
@@ -1,1 +1,30 @@
|
|
1
|
-
**classpath** と **classpathref** を間違えてませんか?
|
1
|
+
**classpath** と **classpathref** を間違えてませんか?
|
2
|
+
|
3
|
+
# 追記
|
4
|
+
|
5
|
+
## junit task の設定
|
6
|
+
junit/classpath/path@refid が junit@classpathref の設定と同じくなる(maven で ant タスクつくるからまともに最近かいてないよな)
|
7
|
+
```
|
8
|
+
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
|
9
|
+
<!-- 中略 -->
|
10
|
+
<classpath>
|
11
|
+
<path refid="build.test.classpath"/>
|
12
|
+
<pathelement location="${maven.build.outputDir}"/>
|
13
|
+
<pathelement location="${maven.build.testOutputDir}"/>
|
14
|
+
</classpath>
|
15
|
+
<!-- 中略 -->
|
16
|
+
</junit>
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
で `junit@classpathref` や `junit/classpath/path@refid` に設定するのが
|
21
|
+
|
22
|
+
|
23
|
+
```
|
24
|
+
<path id="build.test.classpath">
|
25
|
+
<pathelement location="${maven.repo.local}/junit/junit/4.12/junit-4.12.jar"/>
|
26
|
+
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/>
|
27
|
+
</path>
|
28
|
+
```
|
29
|
+
|
30
|
+
で指定した `path@id` となります。
|
1
**
answer
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
*classpath* と *classpathref* を間違えてませんか?
|
1
|
+
**classpath** と **classpathref** を間違えてませんか?
|