-
Notifications
You must be signed in to change notification settings - Fork 12
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
groupNameMappingFile is not refreshed #17
Comments
looks like a cool feature, I didn't know about it. That will probably require some changes in m2e-wtp though, which needs to detect filters have been modified outside the eclipse incremental build. But I'm afraid making it work would have a terrible performance impact on incremental builds, since basically, every time you change/optimize one of the web resources, filtering would have to be performed on all webResource directories content. |
Why does m2e-wtp have to detect changes outside of the incremental build? Isn't m2e-wro4j part of said build? According to my tests, m2e-wtp already detects changes in the filters. You can reproduce this with the above steps following these:
m2e-wro4j already refreshes the groupNameMappingFile here. But it just doesn't get through to m2e-wtp somehow. IMO the performance impact of the filtering is negligible in comparison with the build time of wro4j. A wro4j build is already triggered every time I change/optimize a web resource and that step takes "forever". |
An incremental build is caused by a user change. User changes can obviously cause other IDE generated changes, but these are not part of the original change delta. So when you manually modify a known maven filter, as you said, that file exists in the resource delta sent to the maven resource filtering build participant, there we can force a full resource filtering (https://github.com/eclipse/m2e.wtp/blob/master/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/internal/filtering/ResourceFilteringBuildParticipant.java#L167). Simply "refreshing" the groupNameMappingFile is not enough. It merely makes the IDE know it's updated. This change occurs during a build event already, so it won't trigger another one (that would likely cause endless build loops). Now, since the filter change occurs outside a normal build delta, I can see 2 ways to deal with it :
|
I use a filter on my html and jsp files to automatically use the latest css file. Sadly these files are not automatically updated when I make a change in the less files.
Steps to reproduce
Expected behaviour:
Reference to css file B after changing main.less.
You can actually see that naming.properties was changed. If you edit it yourself the login.jsp file is updated.
The text was updated successfully, but these errors were encountered: