The export task extracts a schema from a database. It will examine the schema at the specified location (if any), compare it against the database and export all differences as definitions (i.e., an XML file will only be overwritten if the definition doesn’t match the corresponding object in the database).
The following nested elements are supported:
To define where the schema is located you add a nested schema element. The path should point to a folder into which you want the schema to be exported. If the path doesn’t exist it will be created.
To define how to connect to the database you add one of the server or database nested elements.
To define that only items modified after a certain date should be exported you add the optional modifiedafter element.
To filter which items should be exported you add the optional filter element.
To define which items should not be exported, you add the optional exclude element.
To further customize the export behavior you can add the optional ignore element.
<schema:export>
<schema location="schema" />
<server host="http://localhost:8080/enovia">
<user name="creator" password="" />
<classpath>
<pathelement location="lib/eMatrixServletRMI.jar" />
</classpath>
<javahome location="C:/apps/jdk/6u45" />
<memory size="small" />
</server>
</schema:export>
The following example will directly connect to the ENOVIA database using the specified ENOVIA server installation and bootstrap file. Note that the <javahome />
and <memory />
elements are optional.
<schema:export>
<schema location="schema" />
<database enoviahome="C:/apps/enovia/V6R2010x/server" bootstrap="boots/MATRIX-R">
<user name="creator" password="" encrypted="false"/>
<javahome location="C:/apps/jdk/6u45" />
<memory size="small" />
</database>
</schema:export>