From: sergio d. a. <se...@sb...> - 2005-12-21 17:07:47
|
hi, some of you told me about loading files in my existe db integrated in cocoon by means of ant task. I am new to ant task so i am trying but without success. i added a target entry to my build.xml of /usr/local/exist/build.xml file. <target name="store"> <taskdef resource="org/exist/ant/antlib.xml"> <classpath refid="classpath.core"/> </taskdef> <xdbstore uri="xmldb:exist://localhost:8080/cocoon/exist/xmlrpc/db/collections/photos"> <fileset dir="/photos"> <include name="*.xml"/> </fileset> </xdbstore> </target> but when i do $> ant store insted of storing my xml files under photos folder into my photos collections i get ]# ant store Buildfile: build.xml store: Trying to override old definition of task move Trying to override old definition of task copy Trying to override old definition of task chmod Trying to override old definition of task chown BUILD FAILED /usr/local/exist/build.xml:1116: Could not create task or type of type: xdbstore. Can anyone help how to do this. I really need to store those xml files quickly and i am getting desperate because i have been trying the whole day with success. thanks in advanced, Sergio |