Skip to content

Commit 3e7883e

Browse files
committed
Fix release version fallbacks and enable attribute substitution
1 parent 33c9340 commit 3e7883e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/developer-guide/Maven-Getting-Started.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Let's consider a concrete example, now. Download the KitchenSink Ant project fr
210210

211211
The following is a bash script that uses curl to download this project as a zip file, and then converts it to a fully-functional Maven project.
212212

213-
[source,bash]
213+
[source,bash,subs="+attributes"]
214214
----
215215
CN1_VERSION={cn1-plugin-release-version}
216216
curl -L https://github.com/codenameone/KitchenSink/archive/v1.0-cn7.0.11.zip > master.zip

docs/developer-guide/developer-guide.asciidoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@
2828
:copyright: Codename One, all rights reserved
2929
:publication-type: book
3030
:producer: Codename One Ltd.
31-
:cn1-release-version: {env:CN1_RELEASE_VERSION}
32-
ifeval::["{cn1-release-version}" == ""]
33-
:cn1-release-version: 7.0.21
34-
endif::[]
31+
:cn1-release-version: 7.0.210
32+
ifdef::env-CN1_RELEASE_VERSION[:cn1-release-version: {env:CN1_RELEASE_VERSION}]
3533

36-
:cn1-plugin-release-version: {env:CN1_PLUGIN_RELEASE_VERSION}
37-
ifeval::["{cn1-plugin-release-version}" == ""]
3834
:cn1-plugin-release-version: {cn1-release-version}
39-
endif::[]
35+
ifdef::env-CN1_PLUGIN_RELEASE_VERSION[:cn1-plugin-release-version: {env:CN1_PLUGIN_RELEASE_VERSION}]
4036

4137
:cn1-snapshot-version: {cn1-release-version}-SNAPSHOT
4238

0 commit comments

Comments
 (0)