cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/acting ResourceExistsAction.java
Date Sat, 08 Feb 2003 14:14:08 GMT
stephan     2003/02/08 06:14:08

  Modified:    src/java/org/apache/cocoon/acting ResourceExistsAction.java
  Log:
  The exists() method is now part of the Source interface.
  
  Revision  Changes    Path
  1.12      +3 -2      xml-cocoon2/src/java/org/apache/cocoon/acting/ResourceExistsAction.java
  
  Index: ResourceExistsAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/acting/ResourceExistsAction.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ResourceExistsAction.java	31 Jan 2003 22:51:20 -0000	1.11
  +++ ResourceExistsAction.java	8 Feb 2003 14:14:08 -0000	1.12
  @@ -75,7 +75,8 @@
           Source src = null;
           try {
               src = resolver.resolveURI(urlstring);
  -            src.getInputStream();
  +            if (src.exists())
  +              return EMPTY_MAP;
           } catch (Exception e) {
               getLogger().warn("Exception", e);
               return null;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message