allow maven.cruisecontrol.home to be passed in by using more typical check for

missing properties.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
epugh 2004-05-31 15:56:08 +00:00
parent 9fec292aec
commit 561dab8051
3 changed files with 3 additions and 2 deletions

View File

@ -30,8 +30,9 @@
<!-- Validate necessary properties for Cruise Control -->
<!--==================================================================-->
<goal name="cruisecontrol:validate" prereqs="scm:validate">
<j:set var="cruisecontrolHomeX" value="${maven.cruisecontrol.home}X"/>
<j:set var="ccHome" value="${maven.cruisecontrol.home}" />
<j:if test="${ccHome == 'CC_HOME_NOT_SET'}">
<j:if test="${cruisecontrolHomeX == 'X'}">
<ant:fail>You must specify maven.cruisecontrol.home</ant:fail>
</j:if>

View File

@ -19,7 +19,6 @@ maven.cruisecontrol.schedule.interval=300
maven.cruisecontrol.checkout.dir=${basedir}/checkout
maven.cruisecontrol.logs.dir=${maven.build.dir}/cc-logs
maven.cruisecontrol.goals=scm:update-project|clean test|site:deploy
maven.cruisecontrol.home=CC_HOME_NOT_SET
maven.cruisecontrol.mail.host=localhost
maven.cruisecontrol.mail.defaultsuffix=DEFAULT_SUFFIX_NOT_SET
maven.cruisecontrol.mail.subjectprefix=[BUILD]

View File

@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.3" date="n/a">
<action dev="epugh" type="fix">allow the maven.cruisecontrol.home property to be overrided by other plugins via preGoal calls.</action>
<action dev="epugh" type="add">allow user to specify different cc template to use</action>
</release>
<release version="1.2" date="2004-05-15">