http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/e9062ca0/docs/1.2/ant-tasks.html ---------------------------------------------------------------------- diff --git a/docs/1.2/ant-tasks.html b/docs/1.2/ant-tasks.html new file mode 100644 index 0000000..917ea7e --- /dev/null +++ b/docs/1.2/ant-tasks.html @@ -0,0 +1,295 @@ + + + + + + + + + + Ant Tasks · Apache Cayenne + + + + + + + + + + + +
+
+ +
+
+
+
+
+ +
+ + User Guide + +
+ +
+ + Modeler Guide + +
+ + + +
+ JavaDoc +
+
+
+ +
+ + +
+
+

Cayenne ships with Ant tasks that provide Ant frontend to a number of useful operations in Cayenne. The following tasks are included:

+ +
    +
  • cgen - Java class generator
  • +
  • cdbgen - Database schema generator
  • +
  • cdeploy - Deployment configurator
  • +
  • cdataport - Data porting tool.
  • +
+ + +

Importing Cayenne Tasks in build.xml

+

Cayenne tasks above can be imported individually using Ant taskdef, as described in each task documentation page. However the users of Ant 1.6 and newer can take advantage of Antlib Ant feature. Antlib allows 3rd party tasks and types to be defined easily. Cayenne has an embedded antlib.xml descriptor file in the package org.objectstyle.cayenne.tools. All of Cayenne's Ant tasks can be defined at once using the following definition in your Ant build file:

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

When using the Antlib construct, omit the <taskdef> elements shown in the examples of each task, as the antlib.xml file defines all of the Cayenne Ant tasks.

+ + + +
+
+ +
+
+
+
+ + + + + + +