- Gracefully handle projects with no source

- Fixed <versions> tag in POM + added new version for 1.4 version in HEAD


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115099 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol
2004-04-30 14:24:31 +00:00
parent 1c5fb567e3
commit baabb661f6
3 changed files with 51 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
@@ -17,7 +18,6 @@
*/
-->
<!--
! Maven plugin for Simian
!
@@ -124,17 +124,23 @@
</goal>
<goal name="maven-simian-plugin:report" prereqs="maven-simian-plugin:analyze">
<simian:simianLog
logFile="${maven.build.dir}/generated-xdocs/simian.log"
jellyContext="${context}"
sourceDirectory="${pom.build.sourceDirectory}"
unitTestSourceDirectory="${pom.build.unitTestSourceDirectory}"
/>
<j:set var="simLog" value="${context.getVariable('simianLog')}"/>
<goal name="maven-simian-plugin:report">
<j:choose>
<j:when test="${sourcesPresent}">
<attainGoal name="maven-simian-plugin:analyze"/>
<simian:simianLog
logFile="${maven.build.dir}/generated-xdocs/simian.log"
jellyContext="${context}"
sourceDirectory="${pom.build.sourceDirectory}"
unitTestSourceDirectory="${pom.build.unitTestSourceDirectory}"
/>
<j:set var="simLog" value="${context.getVariable('simianLog')}"/>
<j:file name="${maven.build.dir}/generated-xdocs/simian-report.xml" prettyPrint="true">
<j:whitespace xmlns="dummy">
<j:file name="${maven.build.dir}/generated-xdocs/simian-report.xml" prettyPrint="true">
<j:whitespace xmlns="dummy">
<document>
<properties>
@@ -193,7 +199,14 @@
</body>
</document>
</j:whitespace>
</j:file>
</j:whitespace>
</j:file>
</j:when>
<j:otherwise>
<ant:echo>No sources to run Simian on</ant:echo>
</j:otherwise>
</j:choose>
</goal>
</project>

View File

@@ -34,6 +34,18 @@
<developerConnection>scm:cvs:ext:${maven.username}@cvs.apache.org:/home/cvs:maven-plugins/simian/</developerConnection>
<url>http://cvs.apache.org/viewcvs/maven-plugins/simian/</url>
</repository>
<versions>
<version>
<id>1.3</id>
<name>1.3</name>
<tag>MAVEN_SIMIAN_1_3</tag>
</version>
<version>
<id>1.4</id>
<name>1.4</name>
<tag>HEAD</tag>
</version>
</versions>
<dependencies>
<dependency>
<groupId>redhill</groupId>
@@ -88,6 +100,15 @@
<role>Maven Plugin</role>
</roles>
</developer>
<developer>
<name>Vincent Massol</name>
<id>vmassol</id>
<email>vmassol@pivolis.com</email>
<organization>Pivolis</organization>
<roles>
<role>Maven Plugin</role>
</roles>
</developer>
</developers>
<contributors>
<contributor>
@@ -105,11 +126,4 @@
<report>maven-javadoc-plugin</report>
<report>maven-clover-plugin</report>
</reports>
<versions>
<version>
<id>1.3</id>
<name>1.3</name>
<tag>MAVEN_SIMIAN_1_3</tag>
</version>
</versions>
</project>

View File

@@ -26,9 +26,12 @@
</properties>
<body>
<release version="1.4" date="in CVS">
<action dev="vmassol" type="fix">
Gracefully inform users when the plugin is executed on a project
with no source.
</action>
<action dev="dion" type="fix">Fix issues with DOM classes and jdk1.3</action>
</release>
<release version="1.3" date="2004-03-10">
<action dev="dion" type="fix">Apply MPSIMIAN-4. Fix HTML.</action>
<action dev="epugh" type="add">Allow classes to be included/excluded.</action>