2 changed files with 0 additions and 281 deletions
@ -1,279 +0,0 @@
@@ -1,279 +0,0 @@
|
||||
<?xml version="1.0"?> |
||||
<!-- |
||||
* 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. |
||||
* |
||||
* |
||||
* $Id$ |
||||
--> |
||||
|
||||
<!-- |
||||
Build file for the "contacts" sample application. |
||||
--> |
||||
|
||||
<project name="contacts-sample" basedir="." default="usage"> |
||||
|
||||
<property file="build.properties"/> |
||||
<property file="project.properties"/> |
||||
|
||||
<path id="qa-portalpath"> |
||||
<fileset dir="${dist.lib.dir}"> |
||||
<include name="acegi-security.jar"/> |
||||
</fileset> |
||||
<fileset dir="${lib.dir}"> |
||||
<include name="**/**.jar"/> |
||||
</fileset> |
||||
</path> |
||||
|
||||
<path id="jalopy-classpath"> |
||||
<fileset dir="${lib.dir}/jalopy"> |
||||
<include name="**/*.jar"/> |
||||
</fileset> |
||||
</path> |
||||
|
||||
<target name="usage"> |
||||
<echo message=""/> |
||||
<echo message="Contacts sample application build file"/> |
||||
<echo message="*** Make sure you've followed the instructions for your container in the reference documentation."/> |
||||
<echo message="------------------------------------------------------"/> |
||||
<echo message=""/> |
||||
<echo message="Available targets are:"/> |
||||
<echo message=""/> |
||||
<echo message="clean --> Clean output dirs"/> |
||||
<echo message="build --> Compile main Java sources and copy libraries"/> |
||||
<echo message="warfile --> Create WAR deployment units"/> |
||||
<echo message="javadoc --> Create API documentation"/> |
||||
<echo message=""/> |
||||
</target> |
||||
|
||||
|
||||
<target name="clean" description="Clean output dirs (build, dist)"> |
||||
<delete dir="${build.dir}"/> |
||||
<delete dir="${dist.dir}"/> |
||||
<delete dir="${war.dir}/WEB-INF/lib"/> |
||||
</target> |
||||
|
||||
|
||||
<target name="build" description="Compile main source tree java files into class files"> |
||||
<mkdir dir="${build.dir}"/> |
||||
|
||||
<javac destdir="${build.dir}" target="1.3" debug="true" deprecation="false" |
||||
optimize="false" failonerror="true"> |
||||
<src path="${src.dir}"/> |
||||
<classpath refid="qa-portalpath"/> |
||||
</javac> |
||||
|
||||
<jar jarfile="${client.dir}/contacts.jar"> |
||||
<fileset dir="${build.dir}"> |
||||
<include name="sample/contact/Contact.class"/> |
||||
<include name="sample/contact/ContactManager.class"/> |
||||
<include name="sample/contact/ClientApplication.class"/> |
||||
</fileset> |
||||
</jar> |
||||
|
||||
</target> |
||||
|
||||
<target name="format" description="Formats all project source code"> |
||||
<taskdef name="jalopy" classname="de.hunsicker.jalopy.plugin.ant.AntPlugin"> |
||||
<classpath refid="jalopy-classpath"/> |
||||
</taskdef> |
||||
|
||||
<jalopy fileformat="unix" |
||||
convention="${jalopy.xml}" |
||||
history="file" |
||||
historymethod="adler32" |
||||
loglevel="error" |
||||
threads="2" |
||||
classpathref="qa-portalpath"> |
||||
<fileset dir="${src.dir}"> |
||||
<include name="**/*.java"/> |
||||
</fileset> |
||||
</jalopy> |
||||
</target> |
||||
|
||||
<target name="warfile" depends="build" description="Build the web application archives"> |
||||
|
||||
<mkdir dir="${dist.dir}"/> |
||||
<delete dir="${tmp.dir}"/> |
||||
|
||||
<!-- Make WAR suitable for deployment into containers WITHOUT container adapters --> |
||||
<delete file="${dist.dir}/${name.filter}.war"/> |
||||
<mkdir dir="${tmp.dir}/${name.filter}"/> |
||||
<copy todir="${tmp.dir}/${name.filter}"> |
||||
<fileset dir="${war.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
<fileset dir="${etc.dir}/filter"> |
||||
<include name="acegilogin.jsp"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.filter}/classes"> |
||||
<fileset dir="${build.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.filter}/WEB-INF"> |
||||
<fileset dir="${etc.dir}/filter"> |
||||
<include name="web.xml"/> |
||||
<include name="applicationContext.xml"/> |
||||
</fileset> |
||||
</copy> |
||||
<war warfile="${dist.dir}/${name.filter}.war" webxml="${tmp.dir}/${name.filter}/WEB-INF/web.xml"> |
||||
<!-- Include the files which are not under WEB-INF --> |
||||
<fileset dir="${tmp.dir}/${name.filter}"> |
||||
<exclude name="WEB-INF/**"/> |
||||
<exclude name="classes/**"/> |
||||
</fileset> |
||||
|
||||
<!-- Bring in various XML configuration files --> |
||||
<webinf dir="${tmp.dir}/${name.filter}/WEB-INF"> |
||||
<exclude name="web.xml"/> |
||||
</webinf> |
||||
|
||||
<!-- Include the compiled classes --> |
||||
<classes dir="${tmp.dir}/${name.filter}/classes"/> |
||||
|
||||
<!-- Include required libraries --> |
||||
<lib dir="${lib.dir}/jakarta-taglibs" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/spring" includes="spring.jar"/> |
||||
<lib dir="${lib.dir}/aopalliance" includes="aopalliance-*.jar"/> |
||||
<lib dir="${lib.dir}/regexp" includes="jakarta-oro.jar"/> |
||||
<lib dir="${lib.dir}/j2ee" includes="jstl.jar"/> |
||||
<lib dir="${lib.dir}/caucho" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/jakarta-commons" includes="commons-codec.jar"/> |
||||
<lib dir="${lib.dir}/jakarta-commons" includes="commons-collections.jar"/> |
||||
<lib dir="${lib.dir}/ehcache" includes="*.jar"/> |
||||
<lib dir="${dist.lib.dir}" includes="acegi-security-taglib.jar"/> |
||||
<lib dir="${dist.lib.dir}" includes="acegi-security.jar"/> |
||||
</war> |
||||
|
||||
<!-- Make WAR suitable for deployment into containers using JA-SIG CAS --> |
||||
<delete file="${dist.dir}/${name.cas}.war"/> |
||||
<mkdir dir="${tmp.dir}/${name.cas}"/> |
||||
<copy todir="${tmp.dir}/${name.cas}"> |
||||
<fileset dir="${war.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
<fileset dir="${etc.dir}/cas"> |
||||
<include name="casfailed.jsp"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.cas}/classes"> |
||||
<fileset dir="${build.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.cas}/WEB-INF"> |
||||
<fileset dir="${etc.dir}/cas"> |
||||
<include name="web.xml"/> |
||||
<include name="applicationContext.xml"/> |
||||
</fileset> |
||||
</copy> |
||||
<war warfile="${dist.dir}/${name.cas}.war" webxml="${tmp.dir}/${name.cas}/WEB-INF/web.xml"> |
||||
<!-- Include the files which are not under WEB-INF --> |
||||
<fileset dir="${tmp.dir}/${name.cas}"> |
||||
<exclude name="WEB-INF/**"/> |
||||
<exclude name="classes/**"/> |
||||
</fileset> |
||||
|
||||
<!-- Bring in various XML configuration files --> |
||||
<webinf dir="${tmp.dir}/${name.cas}/WEB-INF"> |
||||
<exclude name="web.xml"/> |
||||
</webinf> |
||||
|
||||
<!-- Include the compiled classes --> |
||||
<classes dir="${tmp.dir}/${name.cas}/classes"/> |
||||
|
||||
<!-- Include required libraries --> |
||||
<lib dir="${lib.dir}/jakarta-taglibs" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/spring" includes="spring.jar"/> |
||||
<lib dir="${lib.dir}/aopalliance" includes="aopalliance-*.jar"/> |
||||
<lib dir="${lib.dir}/regexp" includes="jakarta-oro.jar"/> |
||||
<lib dir="${lib.dir}/j2ee" includes="jstl.jar"/> |
||||
<lib dir="${lib.dir}/caucho" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/jakarta-commons" includes="commons-codec.jar"/> |
||||
<lib dir="${lib.dir}/jakarta-commons" includes="commons-collections.jar"/> |
||||
<lib dir="${lib.dir}/cas" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/ehcache" includes="ehcache.jar"/> |
||||
<lib dir="${dist.lib.dir}" includes="acegi-security-taglib.jar"/> |
||||
<lib dir="${dist.lib.dir}" includes="acegi-security.jar"/> |
||||
</war> |
||||
|
||||
<!-- Make WAR suitable for deployment into containers WITH container adapters --> |
||||
<delete file="${dist.dir}/${name.ca}.war"/> |
||||
<mkdir dir="${tmp.dir}/${name.ca}"/> |
||||
<copy todir="${tmp.dir}/${name.ca}"> |
||||
<fileset dir="${war.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
<fileset dir="${etc.dir}/ca"> |
||||
<include name="login.jsp"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.ca}/classes"> |
||||
<fileset dir="${build.dir}"> |
||||
<include name="**"/> |
||||
</fileset> |
||||
<fileset dir="${etc.dir}/ca"> |
||||
<include name="resin-acegisecurity.xml"/> |
||||
</fileset> |
||||
</copy> |
||||
<copy todir="${tmp.dir}/${name.ca}/WEB-INF"> |
||||
<fileset dir="${etc.dir}/ca"> |
||||
<include name="jboss-web.xml"/> |
||||
<include name="resin-web.xml"/> |
||||
<include name="web.xml"/> |
||||
<include name="applicationContext.xml"/> |
||||
</fileset> |
||||
</copy> |
||||
<war warfile="${dist.dir}/${name.ca}.war" webxml="${tmp.dir}/${name.ca}/WEB-INF/web.xml"> |
||||
<!-- Include the files which are not under WEB-INF --> |
||||
<fileset dir="${tmp.dir}/${name.ca}"> |
||||
<exclude name="WEB-INF/**"/> |
||||
<exclude name="classes/**"/> |
||||
</fileset> |
||||
|
||||
<!-- Bring in various XML configuration files --> |
||||
<webinf dir="${tmp.dir}/${name.ca}/WEB-INF"> |
||||
<exclude name="web.xml"/> |
||||
</webinf> |
||||
|
||||
<!-- Include the compiled classes --> |
||||
<classes dir="${tmp.dir}/${name.ca}/classes"/> |
||||
|
||||
<!-- Include required libraries --> |
||||
<lib dir="${lib.dir}/jakarta-taglibs" includes="*.jar"/> |
||||
<lib dir="${lib.dir}/j2ee" includes="jstl.jar"/> |
||||
<lib dir="${dist.lib.dir}" includes="acegi-security-taglib.jar"/> |
||||
</war> |
||||
|
||||
</target> |
||||
|
||||
<target name="javadoc" description="Generate Javadocs."> |
||||
<mkdir dir="${javadocs.dir}"/> |
||||
|
||||
<javadoc sourcepath="src" destdir="${javadocs.dir}" windowtitle="Contact Sample Application" |
||||
defaultexcludes="yes" author="true" version="true" use="true"> |
||||
<doctitle><![CDATA[<h1>Acegi Security System for Spring Contacts Sample</h1>]]></doctitle> |
||||
<bottom><![CDATA[<A HREF="http://acegisecurity.sourceforge.net">Acegi Security System for Spring Project]]></bottom> |
||||
<classpath refid="qa-portalpath"/> |
||||
<packageset dir="${src.dir}"> |
||||
<include name="sample/contact/**"/> |
||||
</packageset> |
||||
</javadoc> |
||||
</target> |
||||
|
||||
<target name="release" depends="clean,warfile,javadoc" description="Builds a clean release file"/> |
||||
|
||||
</project> |
||||
Loading…
Reference in new issue