You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by lu...@apache.org on 2003/08/12 20:36:46 UTC

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources messages.properties

luehe       2003/08/12 11:36:46

  Modified:    jasper2/src/share/org/apache/jasper JspC.java
               jasper2/src/share/org/apache/jasper/resources
                        messages.properties
  Log:
  Replaced error message with localizable error code
  
  Revision  Changes    Path
  1.54      +5 -4      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java
  
  Index: JspC.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- JspC.java	9 Aug 2003 19:03:15 -0000	1.53
  +++ JspC.java	12 Aug 2003 18:36:46 -0000	1.54
  @@ -810,7 +810,8 @@
           try {
   	    if (uriRoot == null) {
   		if( pages.size() == 0 ) {
  -		    throw new JasperException("No uriRoot or files");
  +		    throw new JasperException(
  +                        Localizer.getMessage("jsp.error.jspc.missingTarget"));
   		}
   		String firstJsp=(String)pages.elementAt( 0 );
                   File firstJspF = new File( firstJsp );
  
  
  
  1.128     +2 -1      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties
  
  Index: messages.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties,v
  retrieving revision 1.127
  retrieving revision 1.128
  diff -u -r1.127 -r1.128
  --- messages.properties	11 Aug 2003 21:11:07 -0000	1.127
  +++ messages.properties	12 Aug 2003 18:36:46 -0000	1.128
  @@ -200,6 +200,7 @@
   jsp.warning.compiler.class.notfound=Specified compiler plugin class {0} not found. Will default to Sun Java Compiler.
   jsp.warning.compiler.path.notfound=Specified compiler path {0} not found. Will default to system PATH.
   jsp.error.jspc.uriroot_not_dir=The -uriroot option must specify a pre-existing directory
  +jsp.error.jspc.missingTarget=Missing target: Must specify -webapp or -uriroot, or one or more JSP pages
   jsp.error.jspc.no_uriroot=The uriroot is not specified and cannot be located with the specified JSP file(s)
   jspc.implicit.uriRoot=uriRoot implicitly set to "{0}"
   jspc.usage=Usage: jspc <options> [--] <jsp files>\n\
  
  
  

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