Check maven.nsis.exe exists before using it.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2004-07-08 04:34:14 +00:00
parent b4787eae68
commit 6207bb18f4
2 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,6 @@
<project
xmlns:j="jelly:core"
xmlns:ant="jelly:ant"
xmlns:dist="dist"
xmlns:license="license"
xmlns:maven="jelly:maven"
xmlns:util="jelly:util">
@ -77,6 +76,10 @@
<j:set var="script" value="${maven.build.dir}/setup.nsi"/>
<util:file var="nsisExeFile" name="${maven.nsis.exe}" />
<j:if test="${!nsisExeFile.exists()}">
<fail>The NSIS executable '${maven.nsis.exe}' could not be found</fail>
</j:if>
<maven:get var="maven.dist.dir" plugin="maven-dist-plugin" property="maven.dist.dir"/>
<mkdir dir="${maven.dist.dir}"/>
<!-- call makensis.exe with the setup.nsi file -->

View File

@ -26,6 +26,7 @@
<body>
<release version="1.2-SNAPSHOT" date="Unreleased">
<action dev="dion" type="fix" due-to="Geoffrey">Check maven.nsis.exe exists before using it.</action>
<action dev="dion" type="add" due-to="Geoffrey">Add faq</action>
<action dev="dion" type="update">
Add back license to project.xml after the scm plugin removed it.