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:
parent
b4787eae68
commit
6207bb18f4
@ -21,7 +21,6 @@
|
|||||||
<project
|
<project
|
||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
xmlns:ant="jelly:ant"
|
xmlns:ant="jelly:ant"
|
||||||
xmlns:dist="dist"
|
|
||||||
xmlns:license="license"
|
xmlns:license="license"
|
||||||
xmlns:maven="jelly:maven"
|
xmlns:maven="jelly:maven"
|
||||||
xmlns:util="jelly:util">
|
xmlns:util="jelly:util">
|
||||||
@ -77,6 +76,10 @@
|
|||||||
|
|
||||||
<j:set var="script" value="${maven.build.dir}/setup.nsi"/>
|
<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"/>
|
<maven:get var="maven.dist.dir" plugin="maven-dist-plugin" property="maven.dist.dir"/>
|
||||||
<mkdir dir="${maven.dist.dir}"/>
|
<mkdir dir="${maven.dist.dir}"/>
|
||||||
<!-- call makensis.exe with the setup.nsi file -->
|
<!-- call makensis.exe with the setup.nsi file -->
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<release version="1.2-SNAPSHOT" date="Unreleased">
|
<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="add" due-to="Geoffrey">Add faq</action>
|
||||||
<action dev="dion" type="update">
|
<action dev="dion" type="update">
|
||||||
Add back license to project.xml after the scm plugin removed it.
|
Add back license to project.xml after the scm plugin removed it.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user