ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-ant/proposal/embed test.xml
Date Mon, 30 Dec 2002 05:04:55 GMT
costin      2002/12/29 21:04:55

  Modified:    proposal/embed test.xml
  Log:
  A small test for xmldom and jxpath.
  
  Seems to work fine for me. Make sure you have commons-jxpath.jar in
  ant/lib ( or use <classloader> )
  
  Revision  Changes    Path
  1.9       +14 -0     jakarta-ant/proposal/embed/test.xml
  
  Index: test.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/embed/test.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- test.xml	29 Dec 2002 05:58:48 -0000	1.8
  +++ test.xml	30 Dec 2002 05:04:55 -0000	1.9
  @@ -35,6 +35,20 @@
     
     </target>
   
  +  <target name="xmldom" depends="init">
  +    <taskdef classname="org.apache.tools.ant.taskdefs.optional.JXPath"
  +             name="jxpath" />
  +    <typedef classname="org.apache.tools.ant.taskdefs.XMLDOM"
  +             name="xmlDom" />
  +
  +    <xmlDom id="module.xml" file="/ws/jakarta-gump/project/jakarta-ant.xml"/>
  +    <!-- Enable Jxpath support -->
  +    <jxpath/>
  +    <echo>Name: ${jxpath:/references/module.xml/root/module/project[1]/@name}</echo>
  +
  +  </target>
  +
  +
     <target name="discovery" depends="init">
       <echo message="${commons-discovery.jar}"/>
   
  
  
  

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


Mime
View raw message