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

How to read java constant or property file from jslt file #297

Open
joel19913 opened this issue Jun 21, 2023 · 2 comments
Open

How to read java constant or property file from jslt file #297

joel19913 opened this issue Jun 21, 2023 · 2 comments
Labels
support Users asking how to solve a specific issue

Comments

@joel19913
Copy link

Is there a way to read java constant or property file from jslt file. To avoid hardcoding in jslt file.

@larsga larsga added the support Users asking how to solve a specific issue label Jun 21, 2023
@larsga
Copy link
Collaborator

larsga commented Jun 21, 2023

You don't have direct access to any Java concepts from JSLT, but the processor API allows you to pass parameters in to the transform. Those are available as variables inside the transform. So that's probably the easiest way for you to do this.

@joel19913
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Users asking how to solve a specific issue
Projects
None yet
Development

No branches or pull requests

2 participants