Skip to content

Commit c8e1f9b

Browse files
authored
Throw error when provisioning.file is provided but not found (#1340)
* Throw error when provisioning.file is provided but not found.
1 parent 4bc31e8 commit c8e1f9b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

ant/project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ javafx.version=19_monocle
5252
javafx.mirror=https://download2.gluonhq.com/openjfx
5353

5454
# Provisioning
55-
provision.file=${basedir}/provision.json
55+
# provision.file=${basedir}/provision.json
5656
provision.dir=${dist.dir}/provision
5757

5858
# Mask tray toggle (Apple only)

build.xml

+4-6
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,11 @@
281281
<echo level="warn">The "include-assets" task is deprecated, please use "build-demo" instead.</echo>
282282
</target>
283283

284-
<target name="check-provision">
284+
<target name="check-provision" if="provision.file">
285+
<property description="suppress property warning" name="provision.file" value=""/>
285286
<available file="${provision.file}" property="provision.file.exists"/>
286-
<condition property="provision.message" value="Found provision file '${provision.file}' calling 'provision --json [...]'">
287-
<isset property="provision.file.exists"/>
288-
</condition>
289-
<property description="Fallback value" name="provision.message" value="Skipping provisioning, '${provision.file}' does not exist."/>
290-
<echo level="info">${provision.message}</echo>
287+
<fail message="Provision file was provided but not found: '${provision.file}'" unless="provision.file.exists"/>
288+
<echo level="info">Found provision file '${provision.file}' calling 'provision --json [...]'</echo>
291289
</target>
292290

293291
<target name="clean-provision" depends="check-provision" unless="skip.clean.provision">

0 commit comments

Comments
 (0)