maven.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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}/../samples/tutorial/target">
  39. <ant:include name="*.war"/>
  40. </ant:fileset>
  41. <ant:fileset dir="${basedir}/../core/target/">
  42. <ant:include name="*.jar"/>
  43. </ant:fileset>
  44. <ant:fileset dir="${basedir}/../core-tiger/target/">
  45. <ant:include name="*.jar"/>
  46. </ant:fileset>
  47. <ant:fileset dir="${basedir}/../adapters/cas/target">
  48. <ant:include name="*.jar"/>
  49. </ant:fileset>
  50. <ant:fileset dir="${basedir}/../adapters/catalina/target">
  51. <ant:include name="*.jar"/>
  52. </ant:fileset>
  53. <ant:fileset dir="${basedir}/../adapters/jboss/target">
  54. <ant:include name="*.jar"/>
  55. </ant:fileset>
  56. <ant:fileset dir="${basedir}/../adapters/jetty/target">
  57. <ant:include name="*.jar"/>
  58. </ant:fileset>
  59. <ant:fileset dir="${basedir}/../adapters/resin/target">
  60. <ant:include name="*.jar"/>
  61. </ant:fileset>
  62. <ant:fileset dir="${maven.build.dir}/">
  63. <ant:include name="docs/**"/>
  64. </ant:fileset>
  65. </ant:copy>
  66. <ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}.zip">
  67. <ant:zipfileset dir="${maven.build.dir}/zip"/>
  68. </ant:zip>
  69. <!-- Source release ZIP does not include an acegi-security-xx directory,
  70. to ease IDE integration when used directly as a ZIP file. -->
  71. <ant:mkdir dir="${maven.build.dir}/zip-src"/>
  72. <ant:copy todir="${maven.build.dir}/zip-src">
  73. <ant:fileset dir="${basedir}/../">
  74. <ant:include name="license.txt"/>
  75. <ant:include name="notice.txt"/>
  76. <ant:include name="src-readme.txt"/>
  77. <ant:include name="project.xml"/>
  78. </ant:fileset>
  79. <ant:fileset dir="${basedir}/../core/src/main/java">
  80. <ant:include name="**/*"/>
  81. </ant:fileset>
  82. <ant:fileset dir="${basedir}/../core-tiger/src/main/java">
  83. <ant:include name="**/*"/>
  84. </ant:fileset>
  85. <!-- These are deprecated, not part of Acegi Security, and shouldn't be included
  86. <ant:fileset dir="${basedir}/../domain/src/main/java">
  87. <ant:include name="**/*"/>
  88. </ant:fileset>
  89. -->
  90. <ant:fileset dir="${basedir}/../adapters/cas/src/main/java">
  91. <ant:include name="**/*"/>
  92. </ant:fileset>
  93. <ant:fileset dir="${basedir}/../adapters/catalina/src/main/java">
  94. <ant:include name="**/*"/>
  95. </ant:fileset>
  96. <ant:fileset dir="${basedir}/../adapters/jboss/src/main/java">
  97. <ant:include name="**/*"/>
  98. </ant:fileset>
  99. <ant:fileset dir="${basedir}/../adapters/jetty/src/main/java">
  100. <ant:include name="**/*"/>
  101. </ant:fileset>
  102. <ant:fileset dir="${basedir}/../adapters/resin/src/main/java">
  103. <ant:include name="**/*"/>
  104. </ant:fileset>
  105. </ant:copy>
  106. <ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}-src.zip">
  107. <ant:zipfileset dir="${maven.build.dir}/zip-src"/>
  108. </ant:zip>
  109. </goal>
  110. <goal name="acegideploy">
  111. <echo>
  112. -----------------------------------------------------------
  113. ACEGI SECURITY OFFICIAL RELEASE ZIP CREATION
  114. -----------------------------------------------------------
  115. First check the following are valid build properties:
  116. Using keystore...: ${signature.keystore}
  117. Using storepass..: ${signature.storepass}
  118. Using alias......: ${signature.alias}
  119. The procedure to generate an official release ZIP is:
  120. 1. cd ACEGI_SECURITY/docs
  121. 2. maven clean multiproject:clean multiproject:artifact
  122. 3. maven multiproject:site
  123. 4. maven acegizip
  124. 5. check ACEGI_SECURITY/target/*.zip looks correct
  125. 6. maven site:sshdeploy
  126. 7. ftp the ACEGI_SECURITY/target/*.zip to SourceForge
  127. 8. release the FTPed file via the File Release System
  128. Failure to follow this procedure will cause out-of-date
  129. content (or missing content) in the official release ZIP.
  130. It would be nice if a single goal could do all this, but
  131. Maven throws an OutOfMemoryError. :-(
  132. </echo>
  133. </goal>
  134. <postGoal name="sdocbook:prepare-filesystem">
  135. <maven:get var="maven.sdocbook.stylesheets.dir"
  136. plugin="maven-sdocbook-plugin"
  137. property="maven.sdocbook.stylesheets.dir"/>
  138. <!-- use custom stylesheets -->
  139. <copy todir="${maven.sdocbook.stylesheets.dir}">
  140. <fileset dir="${maven.sdocbook.src.dir}/styles"/>
  141. </copy>
  142. </postGoal>
  143. <preGoal name="site">
  144. <attainGoal name="sdocbook"/>
  145. </preGoal>
  146. </project>