Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <taskdef name="schematool" classname="org.datanucleus.store.schema.SchemaToolTask"
- classpathref = "xxx.datanucleus.path"/>
- <schematool failonerror="true" verbose="true" mode="create" >
- <classpath refid="schematool.classpath"/>
- <sysproperty key="datanucleus.ConnectionDriverName"
- value="${environ.database.ConnectionDriverName}"/>
- <sysproperty key="datanucleus.ConnectionURL"
- value="${environ.database.ConnectionURL}"/>
- <sysproperty key="datanucleus.ConnectionUserName"
- value="${environ.database.ConnectionUserName}"/>
- <sysproperty key="datanucleus.ConnectionPassword"
- value="${environ.database.ConnectionPassword}"/>
- <sysproperty key="datanucleus.Mapping"
- value="${environ.database.Mapping}"/>
- </schematool>
- <echo message = "Generating DataNucleus 'schema'..." />
- <java failonerrors="yes" classname="org.datanucleus.store.schema.SchemaTool" fork="yes"classpathref = "xxx.datanucleus.path">
- <classpath refids="catch.all.path" />
- <jvmarg value="-DLog4j.configuration=file:{MyConfigurationFile.log4j.properties} />
- <jvmarg value="Ddatanucleus.ConnectionDriverName=${environ.database.driver.name}" />
- <jvmarg value="Ddatanucleus.ConnectionURL=${environ.database.url}" />
- <jvmarg value="Ddatanucleus.ConnectionUserName=${environ.database.driver.username}" />
- <jvmarg value="Ddatanucleus.ConnectionPassword=${environ.database.driver.passwd}" />
- <arg value="-action" />
- <arg value="reflect" />
- <arg value= "-file"
- <arg value="${dir}/xml/expectedSchemaExport.xml" />
- <arg value="-schemainfo" />
- <arg value="DataNucleus" />
- </java>
Add Comment
Please, Sign In to add comment