commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant AntTagLibrary.java
Date Tue, 07 Sep 2004 01:51:10 GMT
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


Mime
View raw message