You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Janning Vygen <vy...@planwerk6.de> on 2007/08/12 21:04:41 UTC

TestCase and resources in src/main/webapp

Hi,

i have placed some message files in src/main/webapp/WEB-INF/messages/ in order 
to use Springs ReloadableResourceBundleMessageSource

No i want to use this property files in a test class:

	protected void setUp ( ) throws Exception
	{
		messageSource = new ResourceBundleMessageSource();
		String basename = "WEB-INF/messages/mail";
		messageSource.setBasename(basename);
		setMessageSource(messageSource);
		super.setUp();
	}

this doesn't work as "src/main/webapp/" is not on the classpath. Is there a 
way to tell maven to have src/main/webapp on its classpath? Or what else is 
best practice to test resources in src/main/webapp?

kind regards,
janning

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org