You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/05/24 23:04:14 UTC

cvs commit: ant/src/main/org/apache/tools/ant/util XMLFragment.java

mbenson     2005/05/24 14:04:14

  Modified:    src/main/org/apache/tools/ant/util XMLFragment.java
  Log:
  Oops need this for echoxml task.
  
  Revision  Changes    Path
  1.11      +3 -2      ant/src/main/org/apache/tools/ant/util/XMLFragment.java
  
  Index: XMLFragment.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/XMLFragment.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XMLFragment.java	1 Dec 2004 15:07:27 -0000	1.10
  +++ XMLFragment.java	24 May 2005 21:04:14 -0000	1.11
  @@ -23,8 +23,9 @@
   import org.w3c.dom.Node;
   import org.w3c.dom.Text;
   
  -import org.apache.tools.ant.DynamicConfiguratorNS;
   import org.apache.tools.ant.DynamicElementNS;
  +import org.apache.tools.ant.ProjectComponent;
  +import org.apache.tools.ant.DynamicConfiguratorNS;
   
   /**
    * Use this class as a nested element if you want to get a literal DOM
  @@ -37,7 +38,7 @@
    *
    * @since Ant 1.7
    */
  -public class XMLFragment implements DynamicElementNS {
  +public class XMLFragment extends ProjectComponent implements DynamicElementNS {
   
       private Document doc;
       private DocumentFragment fragment;
  
  
  

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


Re: cvs commit: ant/src/main/org/apache/tools/ant/util XMLFragment.java

Posted by Stefan Bodewig <bo...@apache.org>.
On 24 May 2005, <mb...@apache.org> wrote:

>   Oops need this for echoxml task.
>
>   -public class XMLFragment implements DynamicElementNS {
>   +public class XMLFragment extends ProjectComponent implements
>   +DynamicElementNS {

with this it would make sense to move it to the types package (insetad
of util).  I vaguely recall Steve wanted to do so some months ago.

This class is not part of the 1.6 branch, so we can savely move it
without breaking BC (well, please patch the trunk of the dotnet antlib
at the same time).

Stefan

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