users@glassfish.java.net

ScatteredAchive flattens metadata

From: Mark Petrovic <mspetrovic_at_gmail.com>
Date: Sat, 21 May 2011 08:56:11 -0700

Hi.

For embedded GF programming, I'm hoping there is a way to prevent a
call such as this on a ScatteredArchive

archive.addMetadata(new File("src/main/webapp", "WEB-INF/tiles/tiles-def.xml"));

from flattening the full path to the tiles-def.xml file such that the
resultant archive contains this

WEB-INF/tiles-def.xml

I'm trying to test a Struts app in a unit test that uses embedded GF
as a servlet harness. And via web.xml config, Struts wants to find
the tiles-def.xml descriptor in WEB-INF/tiles/tiles-def.xml.

Any suggestions?

Thanks.

-- 
Mark