Guest User

Untitled

a guest
Apr 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <taskdef name="schematool" classname="org.datanucleus.store.schema.SchemaToolTask"
  2. classpathref = "xxx.datanucleus.path"/>
  3.  
  4. <schematool failonerror="true" verbose="true" mode="create" >
  5. <classpath refid="schematool.classpath"/>
  6. <sysproperty key="datanucleus.ConnectionDriverName"
  7. value="${environ.database.ConnectionDriverName}"/>
  8. <sysproperty key="datanucleus.ConnectionURL"
  9. value="${environ.database.ConnectionURL}"/>
  10. <sysproperty key="datanucleus.ConnectionUserName"
  11. value="${environ.database.ConnectionUserName}"/>
  12. <sysproperty key="datanucleus.ConnectionPassword"
  13. value="${environ.database.ConnectionPassword}"/>
  14. <sysproperty key="datanucleus.Mapping"
  15. value="${environ.database.Mapping}"/>
  16. </schematool>
  17.  
  18. <echo message = "Generating DataNucleus 'schema'..." />
  19. <java failonerrors="yes" classname="org.datanucleus.store.schema.SchemaTool" fork="yes"classpathref = "xxx.datanucleus.path">
  20. <classpath refids="catch.all.path" />
  21. <jvmarg value="-DLog4j.configuration=file:{MyConfigurationFile.log4j.properties} />
  22. <jvmarg value="Ddatanucleus.ConnectionDriverName=${environ.database.driver.name}" />
  23. <jvmarg value="Ddatanucleus.ConnectionURL=${environ.database.url}" />
  24. <jvmarg value="Ddatanucleus.ConnectionUserName=${environ.database.driver.username}" />
  25. <jvmarg value="Ddatanucleus.ConnectionPassword=${environ.database.driver.passwd}" />
  26. <arg value="-action" />
  27. <arg value="reflect" />
  28. <arg value= "-file"
  29. <arg value="${dir}/xml/expectedSchemaExport.xml" />
  30. <arg value="-schemainfo" />
  31. <arg value="DataNucleus" />
  32. </java>
Add Comment
Please, Sign In to add comment