[ http://issues.apache.org/jira/browse/CACTUS-90?page=comments#action_63362 ] Felipe Leme commented on CACTUS-90: -----------------------------------
Vincent, I'm working on this bug and came to the following fix: 1.Change CactifyWarTask.getOriginalWebXml() to return null instead of throwing an exception when there is not web.xml defined 2.Change the main if statemente on CactifyWarTask.execute() to incorporate such change These seems to be fixed the problem on the Ant side (of course, I added some test cases for these new scenarios :-); I haven't committed the code yet though as I couldn't test it on Maven (I'm having some JDK 5.0 issues on my maven setup - I cannot even run the old testcases). What do you think? -- Felipe > Create empty web.xml file when one does not exist > ------------------------------------------------- > > Key: CACTUS-90 > URL: http://issues.apache.org/jira/browse/CACTUS-90 > Project: Cactus > Type: Improvement > Components: Ant Integration > Environment: Operating System: All > Platform: All > Reporter: Archimedes Trajano > Assignee: Felipe Leme > Attachments: cactus-90.zip > > Instead of getting this output when cactifying the war > BUILD FAILED > File...... file:/C:/Documents and > Settings/trajano/.maven/plugins/cactus-maven- > 1 > .6dev-20040115/ > Element... cactifywar > Line...... 231 > Column.... 70 > The source file does not contain a deployment descriptor > Total time: 30 seconds > Finished at: Mon Feb 09 17:34:36 EST 2004 > Cactus should assume an empty web.xml file instead of patching it so that the > project would have src/webapp/WEB-INF/web.xml file that contains <web-app /> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]