Results 1 to 1 of 1
- 10-26-2012, 04:16 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 5
- Rep Power
- 0
Ant build script not seeing refid
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.
build.xml
----------------------------
common.xmlJava 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"/> </taskdef> <!-- 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"/> </xmlbean> </target>
-----------------------------
Java Code:<target name="build_my_jar_cpath"> <path id="my_classpath_jars"> <fileset dir="${jardir}" includes="**/*.jar" /> </path> <pathconvert pathsep="${path.separator}" property="myjar.clpath" refid="my_classpath_jars"/> </target>
Similar Threads
-
Build Vs Clean Build
By kroy in forum EclipseReplies: 0Last Post: 01-16-2012, 05:59 PM -
Import external jar to lucene ant build script
By seb in forum LuceneReplies: 0Last Post: 01-16-2012, 03:39 AM -
what is a build script?
By gib65 in forum NetBeansReplies: 2Last Post: 07-23-2011, 12:01 AM -
ANT build script, problem with packaging using rapc
By bartosz666 in forum CLDC and MIDPReplies: 0Last Post: 04-19-2011, 02:20 PM -
How build the applicatoin by using Batch file script
By Kishore.Kumar in forum EclipseReplies: 0Last Post: 02-11-2009, 08:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks