You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tdk-dev@turbine.apache.org by jv...@apache.org on 2001/10/21 16:13:13 UTC

cvs commit: jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/transformer transformations.xml TransformationsDigester.java

jvanzyl     01/10/21 07:13:13

  Modified:    src/tdk/task/org/apache/tdk/transformer
                        TransformationsDigester.java
  Added:       src/tdk/task/org/apache/tdk/transformer transformations.xml
  Log:
  - transformer now uses body tags to store the targets and results so
    that i can use CDATA blocks if necessary in teh regexes used to
    transform the sources.
  
  - first stab at the transformations.
  
  Revision  Changes    Path
  1.2       +3 -1      jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/transformer/TransformationsDigester.java
  
  Index: TransformationsDigester.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/transformer/TransformationsDigester.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TransformationsDigester.java	2001/10/21 01:15:07	1.1
  +++ TransformationsDigester.java	2001/10/21 14:13:12	1.2
  @@ -10,7 +10,7 @@
   
   /**
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: TransformationsDigester.java,v 1.1 2001/10/21 01:15:07 jvanzyl Exp $
  + * @version $Id: TransformationsDigester.java,v 1.2 2001/10/21 14:13:12 jvanzyl Exp $
    */
   public class TransformationsDigester
       extends Digester
  @@ -107,6 +107,8 @@
           addObjectCreate("transformations/transformation", transformationClass);
           addSetNext("transformations/transformation", "addTransformation", transformationClass);
           addSetProperties("transformations/transformation");
  +        addCallMethod("transformations/transformation/target", "setTarget", 0);
  +        addCallMethod("transformations/transformation/result", "setResult", 0);
   
           // Mark this digester as having been configured
           configured = true;
  
  
  
  1.1                  jakarta-turbine-tdk/src/tdk/task/org/apache/tdk/transformer/transformations.xml
  
  Index: transformations.xml
  ===================================================================
  <transformations>
  
    <!-- Classes that have been made a part of the Turbine
         interface for now. -->
  
    <transformation>
      <target>import org.apache.turbine.util.RunData</target>
      <result>import org.apache.turbine.RunData</result>
    </transformation>
  
    <transformation>
      <target>import org.apache.turbine.util.ParameterParser</target>
      <result>import org.apache.turbine.ParameterParser</result>
    </transformation>
  
    <transformation>
      <target>import org.apache.turbine.util.DynamicURI</target>
      <result>import org.apache.turbine.DynamicURI</result>
    </transformation>
  
    <transformation>
      <target>import org.apache.turbine.util.Log</target>
      <result>import org.apache.turbine.Log</result>
    </transformation>
  
    <transformation>
      <target>import org.apache.turbine.util.db.Criteria</target>
      <result>import org.apache.torque.util.Criteria</result>
    </transformation>
    
  </transformations>
  
  
  

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