Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails to process scriptlet with ${a} substitutions #4

Open
sco3 opened this issue Jul 8, 2016 · 0 comments
Open

Build fails to process scriptlet with ${a} substitutions #4

sco3 opened this issue Jul 8, 2016 · 0 comments

Comments

@sco3
Copy link

sco3 commented Jul 8, 2016

Steps to reproduce:

  • create scriptlet preinstall.sh:
a=${b}
  • include scriplet in pom.xml:
<preInstallScriptFile>preinstall.sh</preInstallScriptFile>
  • expected result: scriptle included into rpm
  • actual result: buld fails with exception
[ERROR] ...[Error: unresolvable property or identifier: b]
[ERROR] [Near : {...  ....}]
[ERROR] ^
[ERROR] [Line: 1, Column: 5]
[ERROR] -> [Help 1]

Another example of scriptlet, which is not processed correctly:

PORT=${PORT:-8080}

These substitutions are very typical for rpms and sh scripts in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant