[wpkg-users] Using variables and their value
Stefan Pendl
stefan.pendl.71 at gmail.com
Thu May 7 22:53:16 CEST 2015
Am 07.05.2015 um 22:34 schrieb Frank Morawietz:
> Hello fellows,
>
> I started to build my own installer for Java 8 using the information
> from this list and the web site. But very soon I got stuck and came to
> a point where I need somebody else to help me thinking...
>
> I took the first Java 8 installer from <http://wpkg.org/Java> as
> starting point and it still looks very similar:
>
> <package
> id="java"
> name="Java Runtime Environment"
> revision="%VERSION%"
> reboot="false"
> priority="100">
>
> <variable name="UPDATEVER" value="08" />
> <variable name="SHORTUPDATEVER" value="31" />
> <variable name="PREVSHORTUPDATEVER" value="25" /> <!-- Previous
> version -->
> <variable name="VERSION" value="8.0.%SHORTUPDATEVER%" />
> [...]
>
> I make use of variables as I'm used to and do in all my installers.
>
> But this results in the following log messages:
>
> 2015-05-07 18:49:31, DEBUG : Reading variables from package 'Java
> Runtime Environment'.
> 2015-05-07 18:49:31, DEBUG : Got variable 'UPDATEVER' of value '08'
> 2015-05-07 18:49:31, DEBUG : Got variable 'SHORTUPDATEVER' of value
> '31'
> 2015-05-07 18:49:31, DEBUG : Got variable 'PREVSHORTUPDATEVER' of
> value '25'
> 2015-05-07 18:49:31, DEBUG : Got variable 'VERSION' of value
> '8.0.%SHORTUPDATEVER%'
>
> All variables but one get substituted correctly. But why does one fail?
> My only idea from searching the mailing list archives is that it could
> be a matter of order of the variables. But then, it's exactly the
> order as on <http://wpkg.org/Java> and I also use comparable schemes
> in other (working) installers...
>
> Can someone point me to my mistake?
>
> Puzzled,
> Frank
It depends on when the variable value gets printed, before or after the
variable expansion.
How does it look like when it is actually in use?
Which WPKG.js release are you using?
--
*Stefan P.*
Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20150507/c62a04e0/attachment-0002.html>
More information about the wpkg-users
mailing list