xplatform.tech.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="main" default="default">
  3. <basename property="project" file="${basedir}" />
  4. <dirname property="root.dir" file="${basedir}../" />
  5. <property file="${root.dir}/building/build.properties" />
  6. <include file="${root.dir}/building/build_common.xml" as="common" />
  7. <target name="default">
  8. <antcall target="common.clean" />
  9. <antcall target="common.compile" />
  10. <antcall target="common.persistenceXmlWriter" />
  11. <antcall target="common.issue" />
  12. <antcall target="common.httpMethodDescribeWriter" />
  13. <antcall target="common.zipStaticResources" />
  14. </target>
  15. <target name="deployDev" depends="default">
  16. <java classname="com.x.common.core.application.component.${project}" fork="true">
  17. <classpath refid="project.classpath" />
  18. <arg value="{
  19. centerHost:'127.0.0.1',
  20. centerPort:30080,
  21. centerProxyHost:'dev.xplatform.tech',
  22. centerProxyPort:30080,
  23. centerCipher:'xplatform',
  24. 'keepRemoteMeta' : false,
  25. applicationServersFilePath:'${configuration.dir}/dev.xplatform.tech/applicationServers.json',
  26. datasFilePath:'${configuration.dir}/dev.xplatform.tech/datas.json',
  27. dataServersFilePath:'${configuration.dir}/dev.xplatform.tech/dataServers.json',
  28. storagesFilePath:'${configuration.dir}/dev.xplatform.tech/storages.json',
  29. storageServersFilePath:'${configuration.dir}/dev.xplatform.tech/storageServers.json',
  30. webServersFilePath:'${configuration.dir}/dev.xplatform.tech/webServers.json',
  31. distPath:'${dist.dir}',
  32. applicationRepositoryPath:'${applicationRepository.dir}',
  33. webRepositoryPath:'${webRepository.dir}',
  34. resourcesPath:'${configuration.dir}/dev.xplatform.tech/resources'
  35. }" />
  36. </java>
  37. <java classname="com.x.common.core.application.component.Tomcat8Deploy" fork="true">
  38. <classpath refid="project.classpath" />
  39. <arg value="{
  40. 'filePath':'${dist.dir}/${project}.war',
  41. 'server':'dev.xplatform.tech',
  42. 'port':30080,
  43. 'username':'xadmin',
  44. 'password':'xpfadmin'
  45. }" />
  46. </java>
  47. </target>
  48. <target name="deployDemo" depends="default">
  49. <java classname="com.x.common.core.application.component.${project}" fork="true">
  50. <classpath refid="project.classpath" />
  51. <arg value="{
  52. centerHost:'127.0.0.1',
  53. centerPort:30080,
  54. centerProxyHost:'demo.xplatform.tech',
  55. centerProxyPort:30080,
  56. centerCipher:'xplatform',
  57. 'keepRemoteMeta' : false,
  58. resourcesPath:'${configuration.dir}/demo.xplatform.tech/resources',
  59. applicationServersFilePath:'${configuration.dir}/demo.xplatform.tech/applicationServers.json',
  60. datasFilePath:'${configuration.dir}/demo.xplatform.tech/datas.json',
  61. dataServersFilePath:'${configuration.dir}/demo.xplatform.tech/dataServers.json',
  62. storagesFilePath:'${configuration.dir}/demo.xplatform.tech/storages.json',
  63. storageServersFilePath:'${configuration.dir}/demo.xplatform.tech/storageServers.json',
  64. webServersFilePath:'${configuration.dir}/demo.xplatform.tech/webServers.json',
  65. distPath:'${dist.dir}',
  66. applicationRepositoryPath:'${applicationRepository.dir}',
  67. webRepositoryPath:'${webRepository.dir}'
  68. }" />
  69. </java>
  70. <java classname="com.x.common.core.application.component.Tomcat8Deploy" fork="true">
  71. <classpath refid="project.classpath" />
  72. <arg value="{
  73. 'server':'demo.xplatform.tech',
  74. 'port':30080,
  75. 'username':'xadmin',
  76. 'password':'xpfadmin',
  77. 'filePath':'${dist.dir}/${project}.war'
  78. }" />
  79. </java>
  80. </target>
  81. <target name="compileAll">
  82. <java classname="com.x.common.core.application.component.CompileAll" fork="true">
  83. <classpath refid="project.classpath" />
  84. <arg value="{
  85. rootPath:'${root.dir}',
  86. includeAssemble:true,
  87. includeCore:true,
  88. includeService:true,
  89. includeCenter:true,
  90. excludes:[]
  91. }" />
  92. </java>
  93. </target>
  94. <target name="applicationDev">
  95. <java classname="com.x.common.core.application.component.DeployAll" fork="true">
  96. <classpath refid="project.classpath" />
  97. <arg value="{
  98. distPath:'${dist.dir}',
  99. repositoryPath:'${applicationRepository.dir}',
  100. centerHost:null,
  101. centerPort:30080,
  102. centerContext:null,
  103. centerCipher:'xplatform',
  104. configHost:null,
  105. configPort:20080,
  106. configWeight:null,
  107. server:'dev.xplatform.tech',
  108. port:20080,
  109. username:'xadmin',
  110. password:'xpfadmin',
  111. includeAssemble: true,
  112. includeService: true,
  113. excludes:[]
  114. }" />
  115. </java>
  116. </target>
  117. <target name="applicationDemo">
  118. <java classname="com.x.common.core.application.component.DeployAll" fork="true">
  119. <classpath refid="project.classpath" />
  120. <arg value="{
  121. server:'demo.xplatform.tech',
  122. port:20080,
  123. centerCipher:'xplatform',
  124. distPath:'${dist.dir}',
  125. repositoryPath:'${applicationRepository.dir}',
  126. centerHost:null,
  127. centerPort:30080,
  128. centerContext:null,
  129. configHost:null,
  130. configPort:20080,
  131. configWeight:null,
  132. username:'xadmin',
  133. password:'xpfadmin',
  134. includeAssemble: true,
  135. includeService: true,
  136. excludes:[]
  137. }" />
  138. </java>
  139. </target>
  140. </project>