Wednesday, August 31, 2011

Re: GWT does not use resource properties file from target, but the once in src/main/resources. How to make it with placeholders?

Check http://mojo.codehaus.org/build-helper-maven-plugin/. With this plugin you can add sources folder. Try add a folder where you have the file processed by maven.

2011/8/31 mariyan nenchev <nenchev.mariyan@gmail.com>
Yes, this is exactly the same problem.

But the last post does not resolve it.

On Wed, Aug 31, 2011 at 3:14 PM, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
check the last post, perhaps help to you
http://www.sencha.com/forum/showthread.php?114000-gwt-maven-plugin-and-the-filtering-issue

2011/8/31 mariyan nenchev <nenchev.mariyan@gmail.com>
Hi,

I have gwt web project, which must use application.properties (on client side) loaded as TextResource in the code. Everything works fine, but now i want to centralize all properties values in maven pom.xml. So i made application.properties with placeholders like key1=${param1} and in the pom.xml i configured property param1Value

So, what happening is that maven replaces the placeholders in application.properties in target dir, but it seems that gwt compiler uses the application.properties file from src/main/resources. I checked the compiled js files and i there i can see that the placeholder is not replaced with its value from the pom.xml (target's application.properties is correct).

Regards.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment