portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy JetspeedWebApplicationRewriter.java
Date Thu, 05 Aug 2004 23:30:31 GMT
taylor      2004/08/05 16:30:31

  Modified:    components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy
  allow empty web.xml
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  Revision  Changes    Path
  1.6       +3 -2      jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java
  Index: JetspeedWebApplicationRewriter.java
  RCS file: /home/cvs/jakarta-jetspeed-2/components/deploy-tool/src/java/org/apache/jetspeed/tools/deploy/JetspeedWebApplicationRewriter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JetspeedWebApplicationRewriter.java	5 Aug 2004 18:54:47 -0000	1.5
  +++ JetspeedWebApplicationRewriter.java	5 Aug 2004 23:30:30 -0000	1.6
  @@ -115,9 +115,10 @@
               Object jetspeedServlet = XPath.selectSingleNode(document, JETSPEED_SERVLET_XPATH);
               Object jetspeedServletMapping = XPath.selectSingleNode(document, JETSPEED_SERVLET_MAPPING_XPATH);
  -            if (document.getRootElement().getChildren().size() == 0)
  +            if (!document.hasRootElement())
  -                throw new Exception("Source web.xml has no content!!!");
  +                root = new Element("web-app");
  +                document.setRootElement(root);
               if (jetspeedServlet == null)

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org

View raw message