Skip to content

Is there any way to add source folder? #266

Answered by niloc132
turych asked this question in Q&A
Discussion options

You must be logged in to vote

Legacy isn't going to work here - j2cl is much pickier about how it works than GWT is.

GWT is not just a compiler, its a whole build system. The .gwt.xml "module files" help you define the structure of your code, how dependencies work, what packages can be compiled, which packages replace other packages. GWT only runs once, and is fed all of the sources at the same time, compiles each and optimizes them all at once.

J2CL doesn't support any of that, it is just "Feed me source to compile, and the bytecode if its dependencies", the same way that javac itself works. In turn, you run it once on each dependency you rely on and each module in your project (Google encourages that to be as small …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@turych
Comment options

@niloc132
Comment options

Answer selected by turych
@turych
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants