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

Custom input directory #34

Open
schwichti opened this issue Oct 12, 2021 · 1 comment
Open

Custom input directory #34

schwichti opened this issue Oct 12, 2021 · 1 comment

Comments

@schwichti
Copy link

Hi,

in my project I am using Xtend source files that are in the directory src. The Xtend files are transcompiled to Java and stored in build/xtend/main. Can I configure the jsweet-gradle-plugin that it uses Java files from that folder?
I see the following error message:

Execution failed for task ':jsweet'.
> java.lang.IllegalStateException: basedir src\main\java does not exist
@lgrignon
Copy link
Owner

Hi,

It's not properly documented, but you can specify another source set:
https://github.com/lgrignon/jsweet-gradle-plugin/blob/master/src/main/java/org/jsweet/gradle/JSweetPlugin.java#L50

If it works, could you please create a PR to enhance README for this aspect? Or at least post here your build.gradle to show an example of a working case of alternative source set :)

I hope it will work for you! Bye

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