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

Add an option for user specified sourcepaths for javac. #2972

Closed
ahakanbaba opened this issue Jan 16, 2020 · 1 comment
Closed

Add an option for user specified sourcepaths for javac. #2972

ahakanbaba opened this issue Jan 16, 2020 · 1 comment

Comments

@ahakanbaba
Copy link

ahakanbaba commented Jan 16, 2020

There is already a java_javac_classpath flag to specify custom classpaths. I would like to recommend an equivalent flag for sourcepaths called java_javac_sourcepath.

The currently computed sourcepath would be extended with the user defined java_javac_sourcepath variable.

In some java projects of mine, the tests do not only live in a test directory. For example

├── component-test
│   └── java
│       └── com
├── end2end-test
│   └── java
│       └── com
├── integration-test
│   └── java
│       └── com
├── main
│   ├── java
│   │   └── com
│   └── resources
└── test
    ├── java
    │   └── com

I am looking for a way for ale to include the component-test, integration-test .... directories to the javac linter. If there is a better solution I am open to suggestions.


If there is a quick decision on this, I could spend some cycles for a PR.
Thanks

@w0rp
Copy link
Member

w0rp commented Jun 11, 2020

Now implemented in #3173.

@w0rp w0rp closed this as completed Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants