maven.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. </goal>
  64. <goal name="acegideploy">
  65. <echo>
  66. -----------------------------------------------------------
  67. ACEGI SECURITY OFFICIAL RELEASE ZIP CREATION
  68. -----------------------------------------------------------
  69. First check the following are valid build properties:
  70. Using keystore...: ${signature.keystore}
  71. Using storepass..: ${signature.storepass}
  72. Using alias......: ${signature.alias}
  73. The procedure to generate an official release ZIP is:
  74. 1. cd ACEGI_SECURITY/docs
  75. 2. maven clean multiproject:clean multiproject:artifact
  76. 3. maven multiproject:site
  77. 4. maven acegizip
  78. 5. check ACEGI_SECURITY/target/*.zip looks correct
  79. 6. maven site:sshdeploy
  80. 7. ftp the ACEGI_SECURITY/target/*.zip to SourceForge
  81. 8. release the FTPed file via the File Release System
  82. Failure to follow this procedure will cause out-of-date
  83. content (or missing content) in the official release ZIP.
  84. It would be nice if a single goal could do all this, but
  85. Maven throws an OutOfMemoryError. :-(
  86. </echo>
  87. </goal>
  88. <postGoal name="sdocbook:prepare-filesystem">
  89. <maven:get var="maven.sdocbook.stylesheets.dir"
  90. plugin="maven-sdocbook-plugin"
  91. property="maven.sdocbook.stylesheets.dir"/>
  92. <!-- use a custom fo stylesheet -->
  93. <copy todir="${maven.sdocbook.stylesheets.dir}/fo">
  94. <fileset dir="${maven.sdocbook.src.dir}/styles/fo"/>
  95. </copy>
  96. <!-- use a custom html stylesheet -->
  97. <copy todir="${maven.sdocbook.stylesheets.dir}/html">
  98. <fileset dir="${maven.sdocbook.src.dir}/styles/html"/>
  99. </copy>
  100. <!-- copy images -->
  101. <copy todir="${maven.sdocbook.stylesheets.dir}/images">
  102. <fileset dir="${maven.sdocbook.src.dir}/images"/>
  103. </copy>
  104. </postGoal>
  105. <postGoal name="sdocbook:generate-html">
  106. <j:if test="${chunk != true}">
  107. <move file="${maven.sdocbook.target.dir}/index.html"
  108. tofile="${maven.sdocbook.target.dir}/index-all.html"/>
  109. </j:if>
  110. </postGoal>
  111. <goal name="sdocbook:generate-htmlchunk">
  112. <j:set var="maven.sdocbook.html.xsl" value="${maven.sdocbook.stylesheets.dir}/html/acegi-chunk.xsl"/>
  113. <j:set var="maven.sdocbook.generated.html" value="${maven.build.dir}/generated-docbooks/html-chunk"/>
  114. <j:set var="chunk" value="true"/>
  115. <attainGoal name="sdocbook:generate-html"/>
  116. </goal>
  117. <postGoal name="sdocbook">
  118. <attainGoal name="sdocbook:generate-htmlchunk"/>
  119. </postGoal>
  120. <preGoal name="site">
  121. <attainGoal name="sdocbook"/>
  122. </preGoal>
  123. </project>