maven.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <!--
  2. * ========================================================================
  3. *
  4. * Copyright 2004 Acegi Technology Pty Limited
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * ========================================================================
  19. -->
  20. <project
  21. xmlns:j="jelly:core"
  22. xmlns:ant="jelly:ant"
  23. xmlns:util="jelly:util"
  24. xmlns:maven="jelly:maven"
  25. >
  26. <goal name="acegizip">
  27. <ant:mkdir dir="${maven.build.dir}/zip/acegi-security-${pom.currentVersion}"/>
  28. <ant:copy todir="${maven.build.dir}/zip/acegi-security-${pom.currentVersion}">
  29. <ant:fileset dir="${basedir}/../">
  30. <ant:include name="license.txt"/>
  31. <ant:include name="notice.txt"/>
  32. <ant:include name="readme.txt"/>
  33. <ant:include name="project.xml"/>
  34. </ant:fileset>
  35. <ant:fileset dir="${basedir}/../samples/contacts/target">
  36. <ant:include name="*-filter.war"/>
  37. </ant:fileset>
  38. <ant:fileset dir="${basedir}/../core/target/">
  39. <ant:include name="*.jar"/>
  40. </ant:fileset>
  41. <ant:fileset dir="${basedir}/../core-tiger/target/">
  42. <ant:include name="*.jar"/>
  43. </ant:fileset>
  44. <ant:fileset dir="${basedir}/../adapters/cas/target">
  45. <ant:include name="*.jar"/>
  46. </ant:fileset>
  47. <ant:fileset dir="${basedir}/../adapters/catalina/target">
  48. <ant:include name="*.jar"/>
  49. </ant:fileset>
  50. <ant:fileset dir="${basedir}/../adapters/jboss/target">
  51. <ant:include name="*.jar"/>
  52. </ant:fileset>
  53. <ant:fileset dir="${basedir}/../adapters/jetty/target">
  54. <ant:include name="*.jar"/>
  55. </ant:fileset>
  56. <ant:fileset dir="${basedir}/../adapters/resin/target">
  57. <ant:include name="*.jar"/>
  58. </ant:fileset>
  59. <ant:fileset dir="${maven.build.dir}/">
  60. <ant:include name="docs/**"/>
  61. </ant:fileset>
  62. </ant:copy>
  63. <ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}.zip">
  64. <ant:zipfileset dir="${maven.build.dir}/zip"/>
  65. </ant:zip>
  66. <!-- Source release ZIP does not include an acegi-security-xx directory,
  67. to ease IDE integration when used directly as a ZIP file. -->
  68. <ant:mkdir dir="${maven.build.dir}/zip-src"/>
  69. <ant:copy todir="${maven.build.dir}/zip-src">
  70. <ant:fileset dir="${basedir}/../">
  71. <ant:include name="license.txt"/>
  72. <ant:include name="notice.txt"/>
  73. <ant:include name="src-readme.txt"/>
  74. <ant:include name="project.xml"/>
  75. </ant:fileset>
  76. <ant:fileset dir="${basedir}/../core/src/main/java">
  77. <ant:include name="**/*"/>
  78. </ant:fileset>
  79. <ant:fileset dir="${basedir}/../core-tiger/src/main/java">
  80. <ant:include name="**/*"/>
  81. </ant:fileset>
  82. <ant:fileset dir="${basedir}/../domain/src/main/java">
  83. <ant:include name="**/*"/>
  84. </ant:fileset>
  85. <ant:fileset dir="${basedir}/../adapters/cas/src/main/java">
  86. <ant:include name="**/*"/>
  87. </ant:fileset>
  88. <ant:fileset dir="${basedir}/../adapters/catalina/src/main/java">
  89. <ant:include name="**/*"/>
  90. </ant:fileset>
  91. <ant:fileset dir="${basedir}/../adapters/jboss/src/main/java">
  92. <ant:include name="**/*"/>
  93. </ant:fileset>
  94. <ant:fileset dir="${basedir}/../adapters/jetty/src/main/java">
  95. <ant:include name="**/*"/>
  96. </ant:fileset>
  97. <ant:fileset dir="${basedir}/../adapters/resin/src/main/java">
  98. <ant:include name="**/*"/>
  99. </ant:fileset>
  100. </ant:copy>
  101. <ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}-src.zip">
  102. <ant:zipfileset dir="${maven.build.dir}/zip-src"/>
  103. </ant:zip>
  104. </goal>
  105. <goal name="acegideploy">
  106. <echo>
  107. -----------------------------------------------------------
  108. ACEGI SECURITY OFFICIAL RELEASE ZIP CREATION
  109. -----------------------------------------------------------
  110. First check the following are valid build properties:
  111. Using keystore...: ${signature.keystore}
  112. Using storepass..: ${signature.storepass}
  113. Using alias......: ${signature.alias}
  114. The procedure to generate an official release ZIP is:
  115. 1. cd ACEGI_SECURITY/docs
  116. 2. maven clean multiproject:clean multiproject:artifact
  117. 3. maven multiproject:site
  118. 4. maven acegizip
  119. 5. check ACEGI_SECURITY/target/*.zip looks correct
  120. 6. maven site:sshdeploy
  121. 7. ftp the ACEGI_SECURITY/target/*.zip to SourceForge
  122. 8. release the FTPed file via the File Release System
  123. Failure to follow this procedure will cause out-of-date
  124. content (or missing content) in the official release ZIP.
  125. It would be nice if a single goal could do all this, but
  126. Maven throws an OutOfMemoryError. :-(
  127. </echo>
  128. </goal>
  129. <postGoal name="sdocbook:prepare-filesystem">
  130. <maven:get var="maven.sdocbook.stylesheets.dir"
  131. plugin="maven-sdocbook-plugin"
  132. property="maven.sdocbook.stylesheets.dir"/>
  133. <!-- use custom stylesheets -->
  134. <copy todir="${maven.sdocbook.stylesheets.dir}">
  135. <fileset dir="${maven.sdocbook.src.dir}/styles"/>
  136. </copy>
  137. </postGoal>
  138. <preGoal name="site">
  139. <attainGoal name="sdocbook"/>
  140. </preGoal>
  141. </project>