Hi Team,

Am getting the below error while using xmltask. Please help me to find the
cause of issue.


*ERROR:*

UILD FAILED/opt/Tomcat/apache-ant-1.9.6/build.xml:111: Problem: failed
to create task or type propertyselector
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 30 seconds
Build step 'Invoke Ant' marked build as failure



*Script:*


<!-- referring to the jars needed for updating the configuration file
                depends="Export.XML" -->
<target name="init"
depends="Export.Original.XML,CopyDeploymentFilesfromAdminServer">
        <property file="${propertyFile.Name}"/>
        <taskdef name="xmltask"
classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
        <taskdef resource="net/sf/antcontrib/antlib.xml" />
        <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
 </target>


 <!-- update XML based on Property file" -->

<target name="UpdateXML" description="update the generated XML
configuration values based on  Property file values " depends="init">
          <property file="${propertyFile.Name}" prefix="x"/>
          <local name="propertyList"/>
          <propertyselector property="propertyList" delimiter=","
select="\1" match="x\.([^\.]*)\.xpath" casesensitive="true"
distinct="true"/>
          <for list="${propertyList}" param="sequence">
            <sequential>
                <echo> @{sequence} </echo>
                <echo> @{sequence}.xpath = ${x.@{sequence}.xpath} </echo>
                <echo> @{sequence}.value = ${x.@{sequence}.value} </echo>
                
                        <xmltask dest="${Updated.xml.Path}">
                         <fileset file="${Updated.xml.Path}"/>
                         <replace
                        path="${x.@{sequence}.xpath}"
                        withText="${x.@{sequence}.value}"/>
                </xmltask>

            </sequential>
          </for>
    </target>


Regards,

Makesh Boopathi.
------------------------------------------------------------------------------
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to