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 Sat, 27 Jul 2002 02:18:34 GMT
costin      2002/07/26 19:18:34

  Modified:    proposal/embed test.xml
  Log:
  Fixed the loading of JXPath.
  
  Added more samples of how it can be used.
  
  Revision  Changes    Path
  1.2       +19 -4     jakarta-ant/proposal/embed/test.xml
  
  Index: test.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/embed/test.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- test.xml	26 Jul 2002 16:46:14 -0000	1.1
  +++ test.xml	27 Jul 2002 02:18:34 -0000	1.2
  @@ -6,11 +6,10 @@
   
   
     <target name="main" >
  -    <antcall target="embed.main" />
  -
       <path id="myJars" >
         <pathelement path="${junit.jar}" />
         <pathelement path="${jxpath.jar}" />
  +      <pathelement path="${ant.home}/lib/ant-sax2.jar" />
       </path>
   
       <systemPath pathRef="myJars"/>
  @@ -18,10 +17,26 @@
       <junit id="replacedJunit" />
     
       <echo message="toString sample: ${toString:replacedJunit}" />
  -    <echo message="${jxpath.jar}" />
  + 
  +    <!-- This is Taksdef2.java - it'll use the systemPath as parent loader
  +      -->
  +    <taskdef classname="org.apache.tools.ant.taskdefs.optional.JXPath"
  +             name="jxpath" />
   
  +    <!-- Init JxPath. '/' is the project -->
       <jxpath/>
  -    <echo message="jxPath sample: ${jxpath:/}" />
  +
  +    <echo message="jxPath /targets[1]: ${jxpath:/targets[1]}" />
  +    <echo message="jxPath /references: ${jxpath:/references}" />
  +    <echo message="jxPath /references[@name='myJars']: ${jxpath:/references[@name='myJars']}"
/>
  +    <echo message="jxPath /references/myJars: ${jxpath:/references/myJars}" />
  +
     </target>
  +
  +
  +  <target name="test-import" >
  +    <antcall target="embed.main" />
  +  </target>
  +
   
   </project>
  
  
  

--
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