Don't compile tests classes if junit isn't present.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dffcfbfcbe
commit
c4e1261286
@ -227,14 +227,17 @@
|
||||
|
||||
<target
|
||||
name="junit-present"
|
||||
depends="compile-tests"
|
||||
depends="init"
|
||||
unless="Junit.present">
|
||||
<echo>Junit isn't present in your $${ANT_HOME}/lib directory. Tests not done.</echo>
|
||||
<echo>================================= WARNING ================================</echo>
|
||||
<echo>Junit isn't present in your $${ANT_HOME}/lib directory. Tests not executed.</echo>
|
||||
<echo>==========================================================================</echo>
|
||||
</target>
|
||||
|
||||
<target
|
||||
name="compile-tests"
|
||||
depends="compile">
|
||||
depends="junit-present,compile"
|
||||
if="Junit.present">
|
||||
<j:if test="${unitTestSourcesPresent}">
|
||||
<mkdir dir="$${testclassesdir}"/>
|
||||
<javac
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user