You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by di...@apache.org on 2004/09/07 03:51:10 UTC

cvs commit: jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant AntTagLibrary.java

dion        2004/09/06 18:51:10

  Modified:    jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant
                        AntTagLibrary.java
  Log:
  Handle null current URL
  
  Revision  Changes    Path
  1.31      +4 -2      jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTagLibrary.java
  
  Index: AntTagLibrary.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTagLibrary.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- AntTagLibrary.java	15 Apr 2004 04:51:24 -0000	1.30
  +++ AntTagLibrary.java	7 Sep 2004 01:51:09 -0000	1.31
  @@ -134,8 +134,10 @@
           
           project.init();
           project.getBaseDir();
  -        project.setProperty("ant.file", 
  -                            context.getCurrentURL().toExternalForm());
  +        if (context.getCurrentURL() != null) {
  +            project.setProperty("ant.file", 
  +                    context.getCurrentURL().toExternalForm());
  +        }
   
           return project;
       }
  
  
  

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