MPECLIPSE-29. Fix classpath generation when tests are not present.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
da87ff32ed
commit
8b64c0fa0f
3 files changed
+19
-9
No files matched your search
@@ -47,6 +47,21 @@
|
||||
</j:forEach>
|
||||
<classpathentry kind="src" path="${srcDir}" excluding="${excluding}" />
|
||||
</j:if>
|
||||
|
||||
|
||||
<!-- Moved out from unitTestSourcePrsent condition since 1.12-->
|
||||
|
||||
<!-- Add the list of additional directories for the classpath from ${maven.eclipse.classpath.include}-->
|
||||
|
||||
<u:tokenize var="maven.eclipse.classpath.include.split" delim=",">${maven.eclipse.classpath.include}</u:tokenize>
|
||||
|
||||
<!-- add extra directories to be included in the classpath -->
|
||||
<j:forEach var="res" items="${maven.eclipse.classpath.include.split}">
|
||||
<classpathentry kind="src" path="${res}"/>
|
||||
</j:forEach>
|
||||
|
||||
|
||||
|
||||
|
||||
<j:if test="${unitTestSourcesPresent}">
|
||||
<ant:echo>Contains JUnit tests</ant:echo>
|
||||
@@ -63,14 +78,6 @@
|
||||
<ant:echo>Setting compile of ${testSrcDir} to ${testOutputDir}</ant:echo>
|
||||
<classpathentry kind="src" path="${testSrcDir}" output="${testOutputDir}"/>
|
||||
|
||||
<!-- split the list of additional directories for the classpath -->
|
||||
|
||||
<u:tokenize var="maven.eclipse.classpath.include.split" delim=",">${maven.eclipse.classpath.include}</u:tokenize>
|
||||
|
||||
<!-- add extra directories to be included in the classpath -->
|
||||
<j:forEach var="res" items="${maven.eclipse.classpath.include.split}">
|
||||
<classpathentry kind="src" path="${res}"/>
|
||||
</j:forEach>
|
||||
|
||||
<!-- Here are the rules:
|
||||
If the project has maven.eclipse.junit property, add that ver of junit
|
||||
|
||||
Reference in new issue
Block a user