2004-11-19 18:03:26 -05:00
|
|
|
<!--
|
|
|
|
* ========================================================================
|
|
|
|
*
|
|
|
|
* Copyright 2004 Acegi Technology Pty Limited
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
* ========================================================================
|
|
|
|
-->
|
|
|
|
|
2004-11-14 16:49:18 -05:00
|
|
|
<project
|
|
|
|
xmlns:j="jelly:core"
|
|
|
|
xmlns:ant="jelly:ant"
|
|
|
|
xmlns:util="jelly:util"
|
|
|
|
xmlns:maven="jelly:maven"
|
|
|
|
>
|
|
|
|
|
2004-12-23 21:53:58 -05:00
|
|
|
<goal name="acegizip">
|
|
|
|
<ant:mkdir dir="${maven.build.dir}/zip/acegi-security-${pom.currentVersion}"/>
|
|
|
|
|
|
|
|
<ant:copy todir="${maven.build.dir}/zip/acegi-security-${pom.currentVersion}">
|
|
|
|
<ant:fileset dir="${basedir}/../">
|
|
|
|
<ant:include name="license.txt"/>
|
|
|
|
<ant:include name="notice.txt"/>
|
|
|
|
<ant:include name="readme.txt"/>
|
|
|
|
<ant:include name="project.xml"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../samples/contacts/target">
|
|
|
|
<ant:include name="*-filter.war"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../core/target/">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/cas/target">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/catalina/target">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/jboss/target">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/jetty/target">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/resin/target">
|
|
|
|
<ant:include name="*.jar"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${maven.build.dir}/">
|
|
|
|
<ant:include name="docs/**"/>
|
|
|
|
</ant:fileset>
|
|
|
|
</ant:copy>
|
|
|
|
|
|
|
|
<ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}.zip">
|
|
|
|
<ant:zipfileset dir="${maven.build.dir}/zip"/>
|
|
|
|
</ant:zip>
|
2005-01-23 20:05:00 -05:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Source release ZIP does not include an acegi-security-xx directory,
|
|
|
|
to ease IDE integration when used directly as a ZIP file. -->
|
|
|
|
<ant:mkdir dir="${maven.build.dir}/zip-src"/>
|
|
|
|
|
|
|
|
<ant:copy todir="${maven.build.dir}/zip-src">
|
|
|
|
<ant:fileset dir="${basedir}/../">
|
|
|
|
<ant:include name="license.txt"/>
|
|
|
|
<ant:include name="notice.txt"/>
|
|
|
|
<ant:include name="src-readme.txt"/>
|
|
|
|
<ant:include name="project.xml"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../core/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/cas/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/catalina/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/jboss/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/jetty/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
<ant:fileset dir="${basedir}/../adapters/resin/src/main/java">
|
|
|
|
<ant:include name="**/*"/>
|
|
|
|
</ant:fileset>
|
|
|
|
</ant:copy>
|
|
|
|
|
|
|
|
<ant:zip zipfile="${maven.build.dir}/acegi-security-${pom.currentVersion}-src.zip">
|
|
|
|
<ant:zipfileset dir="${maven.build.dir}/zip-src"/>
|
|
|
|
</ant:zip>
|
|
|
|
|
2004-12-23 21:53:58 -05:00
|
|
|
</goal>
|
|
|
|
|
|
|
|
<goal name="acegideploy">
|
|
|
|
<echo>
|
|
|
|
-----------------------------------------------------------
|
|
|
|
ACEGI SECURITY OFFICIAL RELEASE ZIP CREATION
|
|
|
|
-----------------------------------------------------------
|
|
|
|
|
|
|
|
First check the following are valid build properties:
|
|
|
|
|
|
|
|
Using keystore...: ${signature.keystore}
|
|
|
|
Using storepass..: ${signature.storepass}
|
|
|
|
Using alias......: ${signature.alias}
|
|
|
|
|
|
|
|
The procedure to generate an official release ZIP is:
|
|
|
|
|
|
|
|
1. cd ACEGI_SECURITY/docs
|
|
|
|
2. maven clean multiproject:clean multiproject:artifact
|
|
|
|
3. maven multiproject:site
|
|
|
|
4. maven acegizip
|
|
|
|
5. check ACEGI_SECURITY/target/*.zip looks correct
|
|
|
|
6. maven site:sshdeploy
|
|
|
|
7. ftp the ACEGI_SECURITY/target/*.zip to SourceForge
|
|
|
|
8. release the FTPed file via the File Release System
|
|
|
|
|
|
|
|
Failure to follow this procedure will cause out-of-date
|
|
|
|
content (or missing content) in the official release ZIP.
|
|
|
|
|
|
|
|
It would be nice if a single goal could do all this, but
|
|
|
|
Maven throws an OutOfMemoryError. :-(
|
|
|
|
</echo>
|
|
|
|
</goal>
|
|
|
|
|
2004-11-14 16:49:18 -05:00
|
|
|
<postGoal name="sdocbook:prepare-filesystem">
|
2004-12-30 19:30:05 -05:00
|
|
|
|
2004-12-30 19:31:24 -05:00
|
|
|
<maven:get var="maven.sdocbook.stylesheets.dir"
|
|
|
|
plugin="maven-sdocbook-plugin"
|
|
|
|
property="maven.sdocbook.stylesheets.dir"/>
|
|
|
|
|
2005-01-08 19:44:39 -05:00
|
|
|
<!-- use custom stylesheets -->
|
|
|
|
<copy todir="${maven.sdocbook.stylesheets.dir}">
|
|
|
|
<fileset dir="${maven.sdocbook.src.dir}/styles"/>
|
2004-12-30 19:31:24 -05:00
|
|
|
</copy>
|
2004-11-14 16:49:18 -05:00
|
|
|
|
|
|
|
</postGoal>
|
|
|
|
|
2004-11-19 19:14:34 -05:00
|
|
|
<preGoal name="site">
|
|
|
|
<attainGoal name="sdocbook"/>
|
|
|
|
</preGoal>
|
|
|
|
|
2004-11-14 16:49:18 -05:00
|
|
|
</project>
|