maven.xml 5.0 KB

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