cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bogdan_voloshincu <bogdan_voloshi...@yahoo.com>
Subject vppconfig - cgen question
Date Mon, 20 Sep 2010 20:50:54 GMT

Hello ! I try to invoke a cgen task programmatically but i get this error
:--- referenced object is not a VPPConfig so i fallow the example from the
cayenne site : http://cayenne.apache.org/doc12/cgen.html  


      "Here is an example of using CGen with vppconfig:

<typedef
    resource="org/objectstyle/cayenne/tools/antlib.xml">
    loaderref="aclasspathloader"
    <classpath refid="aclasspath"/>
</typedef>

<typedef name="vppconfig"
    classname="foundrylogic.vpp.VPPConfig"
    loaderref="aclasspathloader">
    <classpath refid="aclasspath"/>
</typedef>

<vppconfig id="myconfig">
    <context>
        <property key="myPropertyName" value="myPropertyValue" />
        <tool key="myToolName" className="org.myDomain.MyTool" />
    </context>
</vppconfig>

<cgen map="src/datamap.xml"
    destDir="src/doc/web"
    makepairs="false"
    usepkgpath="false"
    template="EntityReport.vm"
    includeEntities="Artist*"
    outputPattern="*Report.html">
    <config refid="myconfig" />
</cgen>
"

but i can't i can't figure out what is the :

1) loaderref="aclasspathloader" from the first and second<typedef>

2) <tool key="myToolName" className="org.myDomain.MyTool" /> -  in the
tutorial myToolName and className would be replace by what classes?? 
untiledDomainMap.java ??




Thank's 



-- 
View this message in context: http://cayenne.195.n3.nabble.com/vppconfig-cgen-question-tp1531454p1531454.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Mime
View raw message