With Maven, non compiled files should be in src/main/resources
The quickstart archetype actually does the *wrong* thing and puts them
in with the java files.
- Brill Pappin
On 18-Mar-09, at 4:19 PM, Trent Larson wrote:
Thanks for the suggestion.
For posterity's sake: my problem was actually with the Maven 2
build, where
it ignored the properties file (located in with the Java files) when
it
built the jar project.
Trent
On Mon, Mar 16, 2009 at 5:02 PM, Igor Vaynberg <[email protected]
>wrote:
see iresourcesettings#addstringresourceloader()
make one that loads your properties from some file you keep on the
classpath
-igor
On Mon, Mar 16, 2009 at 4:00 PM, Trent Larson <[email protected]>
wrote:
I have 2 web applications, and I would like to allow them to share
the
same
text files. The only way I've found is to make each
WebApplication class
extend a common ParentApplication class and make a
ParentApplication.properties file to contain the common text; then I
package
the common ParentApplication class and properties in a separate jar
project
and include that in each of the web projects. This works great in
Eclipse
in an exploded environment; unfortunately, it looks like it does
not work
when I include the ParentApplication artifacts inside a separate
jar. I
get
the following error:
Caused by: java.util.MissingResourceException: Unable to find
property: '
squeeze.presented.by' for component:
[class=com.max.web.page.bizopp1Page]
at org.apache.wicket.Localizer.getString(Localizer.java:269)
.....
Is there any way to make this work? Is there another approach
where I
can
share the text between these projects?
Thanks for any suggestions.
Trent
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]