I have a build.xml file that includes a common.xml file that defines some refid values. However, my task cannot see the refid value. I have not been able to find a solution on the web and am looking for some help.

I call the genbeans target in the build.xml file. It fails on the xmlbean taskdef with the message Reference my_classpath_jars not found.


Java Code:
[includes common.xml]

**my_classpath_jars fails to be seen at this point - defined in common.xml**

    <taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean">
        <classpath refid="my_classpath_jars"/>

    <!-- Generate the XMLBeans java code from our source XSD file(s) -->
    <target name="genbeans" description="Generate XML Bean files" depends="build_my_jar_cpath">
        <mkdir dir="${lib}"/>
        <xmlbean destfile="${lib}/${appname}Beans.jar" failonerror="true">
            <classpath refid="my_classpath_jars"/>
            <fileset dir="src/XSD Files" includes="*.xsd, *.wsdl"/>
Java Code:
  <target name="build_my_jar_cpath">
    <path id="my_classpath_jars">
      <fileset dir="${jardir}"  includes="**/*.jar" />
    <pathconvert pathsep="${path.separator}" property="myjar.clpath" refid="my_classpath_jars"/>