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

Parsing file with maven placeholders #52

Closed
dwarcake opened this issue Feb 7, 2018 · 2 comments
Closed

Parsing file with maven placeholders #52

dwarcake opened this issue Feb 7, 2018 · 2 comments

Comments

@dwarcake
Copy link

dwarcake commented Feb 7, 2018

We are currently installing our sources with Liquibase via Maven.
In some of our files ( grants, synonyms mostly) we use palceholders so we can dynamicly change the statement.

Now in Jenkins when analyzing the sources, we get errors like this:

[Build develop] ERROR: Parse error at line 1 column 27:
[Build develop] 
[Build develop]   -->  grant all on <table> to ${project_user};

Is there a way to work around this ?

Regards,

Kim

@felipebz
Copy link
Owner

felipebz commented Feb 8, 2018

Hi @dwarcake.

Short answer: with the current release there's no way to work around this.

But... I've just added an error recovery mechanism to the parser. Starting from the next version, the analysis will try to ignore unrecognized commands instead of breaking the analysis of the whole file.

Please see this example:

image

Note that even with the invalid command, the parser was able to continue the analysis and it registered the violations.

@dwarcake
Copy link
Author

dwarcake commented Feb 8, 2018

Hi Felipe,

Thanks for the information.
Looking forward to the next release then :)

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

2 participants