Closed GoogleCodeExporter closed 9 years ago
This is a function of the war plugin, not the gwt plugin. We don't actually copy
anything relative to the webapp folder. All we do is adjust the web.xml for
servlet
mounting.
If you want resource filtering on the webapp stuff, you should consult the war
plugins docs or try doing it with an antrun task.
Original comment by keber...@gmail.com
on 7 Apr 2008 at 7:30
That's not correct. The war plugin allows additional resource filtering. I just
use
standard resource filtering with. And if you read the war plugin documentation
you
see that filtered resources end up in target/classes/*. There I can find the
filtered
resource but in the gwt compile the original file and not the filtered one can
be found.
So why is this a war plugin thing?
Original comment by codingfr...@gmail.com
on 7 Apr 2008 at 7:40
Filtered resources that end up in target/classes are a separate issue.
I think I see what you are saying now..
A) Nothing in src/main/webapp do we touch, ever.
B) If you have something in, say, src/resources/mypackage/public/index.html it
will
end up in target classes filtered by the java compile goal, however, the
GWTCompiler
will use the original source file.
C) If you are trying to do src/main/webapp/mypackage.MyModule/index.html then
yes,
GWTCompiler will overwrite that, but we can't actually control that.
The problem is, all of the source paths have to be the preferred classpathing
for the
GWTShell and GWTCompile classes and won't see your finished output.
Couple of options here. First, move your HTML out of a module target and use
the path
reference to change the module root directory when you include it. Second, make
another pass over it after the gwt:compile task. Since this is a compile phase
task
and not a package phase, I assume you could do this sometime before war:webapp
runs.
Original comment by keber...@gmail.com
on 7 Apr 2008 at 7:47
Ok thanks. With a second filtering it works :)
Original comment by codingfr...@gmail.com
on 7 Apr 2008 at 8:26
Original issue reported on code.google.com by
codingfr...@gmail.com
on 7 Apr 2008 at 7:27