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 Fri, 30 Aug 2002 23:08:47 GMT
costin      2002/08/30 16:08:47

  Modified:    proposal/embed test.xml
  Log:
  Added examples for velocity and jexl properties.
  
  Started to add jxpath set ( I also have some work on jndi properties and set,
  but in j-t-c repo ).
  
  Revision  Changes    Path
  1.4       +26 -6     jakarta-ant/proposal/embed/test.xml
  
  Index: test.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/embed/test.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- test.xml	13 Aug 2002 17:12:40 -0000	1.3
  +++ test.xml	30 Aug 2002 23:08:47 -0000	1.4
  @@ -1,14 +1,20 @@
   <project name="embed-test" default="main" basedir=".">
  -  <property name="ant.src" location="../.." />
  -  <property name="junit.jar" location="${ant.src}/lib/junit.jar" />
  -  
  -  <import file="build.xml" />
  -
  +  <property name="ant.src" location="../.."/>
  +        
  +  <import file="build.xml"/>
  +
  +  <target name="main">
  +     <property name="junit.jar" location="${base.path}/junit3.7/junit.jar"/>
  +     <echo>${junit.jar} ${velocity.jar}</echo>
   
  -  <target name="main" >
       <path id="myJars" >
         <pathelement path="${junit.jar}" />
         <pathelement path="${jxpath.jar}" />
  +      <pathelement path="${velocity-dep.jar}" />
  +      <pathelement path="${velocity.jar}" />
  +      <pathelement path="${jexl.jar}" />
  +      <pathelement path="${commons-discovery.jar}" />
  +      <pathelement path="${commons-logging.jar}" />
         <pathelement path="${ant.home}/lib/ant-sax2.jar" />
       </path>
   
  @@ -22,9 +28,21 @@
         -->
       <taskdef classname="org.apache.tools.ant.taskdefs.optional.JXPath"
                name="jxpath" />
  +    <taskdef classname="org.apache.tools.ant.taskdefs.optional.JXPathSet"
  +             name="jxpathSet" />
  +    <taskdef classname="org.apache.tools.ant.taskdefs.optional.VelocityProperties"
  +             name="velocityProperties" />
  +    <taskdef classname="org.apache.tools.ant.taskdefs.optional.JexlProperties"
  +             name="jexlProperties" />
   
       <!-- Init JxPath. '/' is the project -->
       <jxpath/>
  +    <velocityProperties/>
  +    <jexlProperties/>
  +
  +    <echo message="vel /references/myJars: ${vm:$ant.references.myJars}" />
  +
  +    <echo message="jexl /references/myJars: ${jexl:ant.references.myJars}" />
   
       <echo message="jxPath /targets[1]: ${jxpath:/targets[1]}" />
       <echo message="jxPath /references: ${jxpath:/references}" />
  @@ -38,6 +56,8 @@
       <xmldom id="test.xml" file="test.xml"/>  
   
       <echo message="XMLDOM: ${jxpath:/references/test.xml/root/project/@name}" />
  +
  +    
     </target>
   
   
  
  
  

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