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

Support custom config files #212

Merged
merged 25 commits into from
Sep 6, 2023
Merged

Conversation

evie-lau
Copy link
Member

@evie-lau evie-lau commented Sep 1, 2023

Resolves #66

NOTICE: Will require IDE plugins to monitor liberty-plugin-config.xml to send to LCLS, alongside all .properties and .env files

Changes:

LibertyConfigFileManager.java

  • Add support for custom config files from liberty-plugin-config.xml
  • logic to screen env and properties file here, instead of on IDE client-side
  • Add method to normalize paths across OSes

LibertyWorkspaceService.java

  • process liberty-plugin-config.xml when it changes

Various files:

  • use the new LibertyConfigFileManager
  • LibertyLanguageServer now initializes the LibertyConfigFileManager

@evie-lau evie-lau marked this pull request as draft September 1, 2023 21:37
Copy link
Member

@cherylking cherylking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refrained from making comments on the tests for the most part. I will review those once you have finished your updates.

dshimo and others added 4 commits September 5, 2023 12:14
Co-authored-by: David Shi <dshi@utexas.edu>
Co-authored-by: David Shi <dshi@utexas.edu>
@evie-lau evie-lau marked this pull request as ready for review September 5, 2023 22:59
@cherylking
Copy link
Member

@dshimo @evie-lau There is still a build failure on Windows.

… for downloads

Make sure Windows paths are converted to use forward slash

Test different approach for unix/windows systems

Use URI.getPath for windows Paths.get

Try removing initial slash when checking windows path

Fix default file check with File.separator

Fix windows test string
@evie-lau evie-lau merged commit a1b25f2 into OpenLiberty:4q2023 Sep 6, 2023
4 checks passed
dshimo added a commit that referenced this pull request Oct 10, 2023
* Process liberty-plugin-config.xml to parse and store list of custom config files, upon startup and file changes to the XML

* Fix uri string mismatch across all methods and classes.

* Add check for config file path, moved from IDE client-side filewatch filtering

* Make sure Github build/test actions are separate. Suppress progress tracking for downloads

Co-authored-by: David Shi <dshi@utexas.edu>
@evie-lau evie-lau deleted the customConfig branch October 19, 2023 15:36
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

Successfully merging this pull request may close these issues.

3 participants