commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant AntTagLibrary.java
Date Wed, 28 Aug 2002 14:33:42 GMT
jstrachan    2002/08/28 07:33:42

  Modified:    jelly/src/java/org/apache/commons/jelly/tags/ant
                        AntTagLibrary.java
  Log:
  Added setter method so that Ant Project's can be registered for a given context, allowing
customized Ant Projects to be installed.
  
  Revision  Changes    Path
  1.20      +9 -0      jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTagLibrary.java
  
  Index: AntTagLibrary.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTagLibrary.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- AntTagLibrary.java	27 Aug 2002 14:04:29 -0000	1.19
  +++ AntTagLibrary.java	28 Aug 2002 14:33:41 -0000	1.20
  @@ -169,6 +169,15 @@
       }
   
       /**
  +     * Sets the Ant Project to be used for this JellyContext.
  +     * 
  +     * #### this method could move to an AntUtils class.
  +     */
  +    public static void setProject(JellyContext context, Project project) {
  +        context.setVariable( PROJECT_CONTEXT_HANDLE, project );
  +    }
  +
  +    /**
        * A helper method to create a new project
        * 
        * #### this method could move to an AntUtils class.
  
  
  

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


Mime
View raw message