Lets assume that I have next interface:

public interface ClientConstants extends Constants {
    String version();
}

ClientConstants.properties file is placed in src\main\resources
folder. This file contains one string only:
version=Version: ${version}

When I call mvn compile:compile goal, filtered resource file is copied
to target\classes folder. But compile.cmd contains reference to src
\main\resources folder. So, this is the reason why generated sources
from .generated folder include not filtered message from resource
file.

So, how to avoid this problem?

I see one solution:

we can split sourcesOnPath variable to both variables: sourcesOnPath
and resourcesOnPath. It will create implementation of
BuildClasspathUtil.java more obvious:

        // add sources and resources
        if (mojo.getSourcesOnPath()) {
            for (Iterator it =
project.getCompileSourceRoots().iterator(); it.hasNext();) {
                items.add(new File(it.next().toString()));
            }
            for (Iterator it = project.getResources().iterator();
it.hasNext();) {
                Resource r = (Resource) it.next();
                items.add(new File(r.getDirectory()));
            }
        }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-maven" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to