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

Working with non-standard directory structure #37

Closed
Dominator008 opened this issue Nov 17, 2015 · 4 comments
Closed

Working with non-standard directory structure #37

Dominator008 opened this issue Nov 17, 2015 · 4 comments

Comments

@Dominator008
Copy link

Does the module description have to be "src/main/module.gwt.xml"? Can I get this plugin to work with a handwritten .gwt.xml file in an arbitrary location?

@ibaca
Copy link
Contributor

ibaca commented Nov 17, 2015

Explained in the migration guide just add <skipModule>true</skipModule> to disable the gwt:generate-module goal and point moduleName to your handwritten module. For example https://github.com/ibaca/rxjava-gwt/blob/master/pom.xml#L82

@tbroyer
Copy link
Owner

tbroyer commented Nov 17, 2015

And if you want to benefit from gwt:generate-module but put your module file somewhere else, you can set moduleTemplate (be careful if you set moduleTemplate somewhere in your src/main/java or src/main/resources, resources:resources is likely to overwrite the generated file so you'll have to declare an explicit <resource> that <excludes> it.

@tbroyer tbroyer closed this as completed Nov 17, 2015
@Dominator008
Copy link
Author

Thanks, moduleTemplate seems to work.
Another question: can you include an arbitrary .html page in the compiled .war archive? Right now it only consists of the compiled .js file, but not the .html file under public/.
My use case is here:
https://github.com/google/closure-compiler/pull/1258/files

@tbroyer
Copy link
Owner

tbroyer commented Nov 19, 2015

For reference, see discussion in #8 (and in the Closure Compiler PR you linked to).

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