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

Copy libraries from project directory functionality seems not working #552

Open
remal opened this issue Feb 17, 2022 · 5 comments
Open

Copy libraries from project directory functionality seems not working #552

remal opened this issue Feb 17, 2022 · 5 comments

Comments

@remal
Copy link

remal commented Feb 17, 2022

We have a custom checkstyle-extensions.jar at the root of our project.

Our .idea/checkstyle-idea.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CheckStyle-IDEA">
    <option name="configuration">
      <map>
        <entry key="active-configuration" value="PROJECT_RELATIVE:C:/Users/remal/project/checkstyle.xml:Project checkstyle" />
        <entry key="checkstyle-version" value="9.3" />
        <entry key="copy-libs" value="true" />
        <entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
        <entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
        <entry key="location-2" value="PROJECT_RELATIVE:C:/Users/remal/project/checkstyle.xml:Project checkstyle" />
        <entry key="scan-before-checkin" value="false" />
        <entry key="scanscope" value="JavaOnlyWithTests" />
        <entry key="suppress-errors" value="true" />
        <entry key="thirdparty-classpath" value="$PROJECT_DIR$/checkstyle-extensions.jar" />
      </map>
    </option>
  </component>
</project>

When we change checkstyle-extensions.jar we see that this file is locked by a Java process, that's why I think "Copy libraries from project directory" functionality isn't working.

Are there any ideas?
How can I debug this functionality myself?

Operation system: Windows
Project path: C:\Users\remal\project

@tsjensen
Copy link
Contributor

The copy libraries feature only deals with the module classpath, which is basically the libraries your application uses.
If you also want your third-party Checkstyle addons outside the project, you must simply place them outside the project. 😄

@remal
Copy link
Author

remal commented Feb 17, 2022

We commit third-party checks in our Git repository. Is it possible to copy them too?

@jshiell
Copy link
Owner

jshiell commented Feb 18, 2022

It's not at present, support would need to be added. We know the paths, so it shouldn't be too hard in principle.

@remal
Copy link
Author

remal commented Feb 21, 2022

Sorry if I didn't understand you correctly. If it's not so hard, are you going to implement it?

@jshiell
Copy link
Owner

jshiell commented Feb 21, 2022

No current plans myself, given I don't have a Windows machine to test on, nor much inclination to work on this. But it should be easy enough in principle if someone wants to submit a PR.

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

3 participants