From: <ji...@co...> - 2007-07-03 09:25:17
|
[ http://jira.codehaus.org/browse/JETTY-381?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:comment-tabpanel#action_101124 ]=20 R=E9my Sanlaville commented on JETTY-381: --------------------------------------- I agree that this feature is very useful when you want to separate the sour= ce files and the generated sources files. I also found no solution for this need.=20 For the moment, we have to merge the generate source (like generate files = from xdoclet ) with our source files, but it's unsatisfactory. > Multiple Web Application Source Directory > ----------------------------------------- > > Key: JETTY-381 > URL: http://jira.codehaus.org/browse/JETTY-381 > Project: Jetty > Issue Type: Improvement > Reporter: Jeremy Lauture > > Context > ----------- > I want to use maven-jetty-pling in hotdeploy mode. > My web app use Struts Framework. > I also use Xdoclet in order to generate the struts-config.xml and validat= ion.xml > But I want to generate these files in a target directory in order to sepa= rate the source and generated files > Unfortunatly, this does seems not possible yet because I need to inform j= etty that my web app source directory is split in two differents paths (src= /main/webapp and target/xdoclet/) > In fact, I need to configure the struts servlet in the web.xml like this = :=20 > <init-param> > <param-name>config</param-name> > <param-value>/generated/struts-config.xml</param-value> > </init-param> > It's important to notice that the solution adding the path (target/xdocle= t/) in the classpath do not solve my problem. In fact, the problem is not r= elated to the classpath but rather to the web app source directory. > Need > -------- > The only solution seems to add a new feature to jetty in order to be able= to use multiple web application source directories. > In our case, we would like to have something like that: > <Call name=3D"addLifeCycle"> > <Arg> > =09<New class=3D"org.mortbay.jetty.deployer.WebAppDeployer"> > =09 <Set name=3D"contexts"><Ref id=3D"Contexts"/></Set> > =09 <Set name=3D"webAppDirs"> > =09=09 <Array type=3D"java.lang.String"> > =09=09=09=09<Item>src/main/webapp</Item> > =09=09=09=09<Item>target/xdoclet/</Item> > =09=09 </Array> > =09 </Set> > =09 [...] > =09</New> > </Arg> > </Call> --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |