Finalise Ant removal.
This commit is contained in:
parent
32cd969935
commit
7de909cb5a
2
ant.bat
2
ant.bat
|
@ -1,2 +0,0 @@
|
||||||
%JAVA_HOME%/bin/java -cp lib/ant/ant.jar;lib/ant/ant-launcher.jar;lib/ant/ant-junit.jar;lib/junit/junit.jar;lib/clover/clover.jar;%JAVA_HOME%/lib/tools.jar org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8
|
|
||||||
|
|
1
ant.sh
1
ant.sh
|
@ -1 +0,0 @@
|
||||||
$JAVA_HOME/bin/java -cp lib/ant/ant.jar:lib/ant/ant-launcher.jar:lib/ant/ant-junit.jar:lib/junit/junit.jar:lib/clover/clover.jar:$JAVA_HOME/lib/tools.jar org.apache.tools.ant.Main $1 $2 $3 $4 $5 $6 $7 $8 $9
|
|
590
build.xml
590
build.xml
|
@ -1,590 +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 Acegi Security System for Spring.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<project name="acegi-security-core" default="usage" basedir=".">
|
|
||||||
|
|
||||||
<property file="build.properties"/>
|
|
||||||
<property file="project.properties"/>
|
|
||||||
|
|
||||||
<taskdef resource="clovertasks"/>
|
|
||||||
<typedef resource="clovertypes"/>
|
|
||||||
|
|
||||||
<path id="qa-portalpath">
|
|
||||||
<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="${name} build file"/>
|
|
||||||
<echo message="------------------------------------------------------"/>
|
|
||||||
<echo message=""/>
|
|
||||||
<echo message="Among the available targets are:"/>
|
|
||||||
<echo message=""/>
|
|
||||||
<echo message="build --> build all; don't create JARs"/>
|
|
||||||
<echo message="alljars --> create all JAR files"/>
|
|
||||||
<echo message="format --> format/tidy all source code"/>
|
|
||||||
<echo message="tests --> run tests"/>
|
|
||||||
<echo message="release --> build a distribution ZIP file"/>
|
|
||||||
<echo message=""/>
|
|
||||||
<echo message="To build or test, your lib directory needs to be populated"/>
|
|
||||||
<echo message="To release, you require a code signing certificate setup"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="clean" description="Clean all output dirs (dist, javadocs, classes, test-classes, etc.)">
|
|
||||||
|
|
||||||
<delete dir="${dist.dir}"/>
|
|
||||||
<delete dir="${javadocs.dir}"/>
|
|
||||||
|
|
||||||
<delete dir="${target.classes.dir}"/>
|
|
||||||
<delete dir="${target.junit.reports.dir}"/>
|
|
||||||
<delete dir="${target.otherclasses.dir}"/>
|
|
||||||
<delete dir="${target.release.dir}"/>
|
|
||||||
<delete dir="${target.clover.dir}"/>
|
|
||||||
<delete dir="${target.clover.html.dir}"/>
|
|
||||||
<delete dir="${target.testclasses.dir}"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Compile the main source tree.
|
|
||||||
-->
|
|
||||||
<target name="build"
|
|
||||||
depends=""
|
|
||||||
description="Compile main source tree java files into class files (no-jarring)">
|
|
||||||
|
|
||||||
<mkdir dir="${target.classes.dir}"/>
|
|
||||||
|
|
||||||
<javac destdir="${target.classes.dir}" target="1.3" debug="${debug}"
|
|
||||||
deprecation="false" optimize="false" failonerror="true">
|
|
||||||
<src path="${src.dir}"/>
|
|
||||||
<classpath refid="qa-portalpath"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<copy todir="${target.classes.dir}" preservelastmodified="true">
|
|
||||||
<fileset dir="${src.dir}">
|
|
||||||
<include name="**/*.xml"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
</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>
|
|
||||||
<fileset dir="${test.dir}">
|
|
||||||
<include name="**/*.java"/>
|
|
||||||
</fileset>
|
|
||||||
</jalopy>
|
|
||||||
|
|
||||||
<ant inheritall="no" antfile="build.xml" dir="samples/contacts" target="format"/>
|
|
||||||
<ant inheritall="no" antfile="build.xml" dir="samples/attributes" target="format"/>
|
|
||||||
<ant inheritall="no" antfile="build.xml" dir="integration-test" target="format"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="initdist" description="Initialize the distribution directory">
|
|
||||||
<mkdir dir="${dist.dir}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="fulljar" depends="build,initdist" description="Create JAR file with all Acegi Security System for Spring classes">
|
|
||||||
<delete file="${dist.dir}/${acegi-security.jar}"/>
|
|
||||||
<delete file="${dist.dir}/${acegi-taglib.jar}"/>
|
|
||||||
|
|
||||||
<!-- An all classes JAR file, which is provided for compiling web apps
|
|
||||||
only (at runtime all classes should be from web container) -->
|
|
||||||
<jar jarfile="${dist.dir}/${acegi-security.jar}">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/**"/>
|
|
||||||
<exclude name="net/sf/acegisecurity/taglibs/**"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- The Acegi Security Tag Library JAR -->
|
|
||||||
<jar jarfile="${dist.dir}/${acegi-taglib.jar}">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/taglibs/**"/>
|
|
||||||
<exclude name="**/*.tld"/>
|
|
||||||
</fileset>
|
|
||||||
<zipfileset dir="${src.dir}/net/sf/acegisecurity/taglibs"
|
|
||||||
prefix="META-INF" includes="*.tld" />
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
<attribute name="Sealed" value="true"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- The class that has catalina.jar dependencies and thus belongs in
|
|
||||||
Catalina's "Catalina" classloader ($CATALINA_HOME/server/lib directory) -->
|
|
||||||
<jar jarfile="${dist.dir}/acegi-security-catalina-server.jar">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.class"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- All Acegi Security System for Spring classes that belong in Catalina's
|
|
||||||
"Common" classloader ($CATALINA_HOME/common/lib directory) -->
|
|
||||||
<jar jarfile="${dist.dir}/acegi-security-catalina-common.jar">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/context/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/providers/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/runas/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/vote/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/ui/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/util/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/securechannel/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/intercept/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/jboss/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/catalina/*"/>
|
|
||||||
<exclude name="net/sf/acegisecurity/adapters/catalina/CatalinaAcegiUserRealm.class"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- All Acegi Security System for Spring classes that belong in Jetty's
|
|
||||||
"ext" directory -->
|
|
||||||
<jar jarfile="${dist.dir}/acegi-security-jetty-ext.jar">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/context/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/providers/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/runas/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/vote/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/ui/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/util/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/securechannel/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/intercept/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/jboss/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/jetty/*"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- All Acegi Security System for Spring classes that belong in JBoss'
|
|
||||||
"server/your_config/lib" directory -->
|
|
||||||
<jar jarfile="${dist.dir}/acegi-security-jboss-lib.jar">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/context/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/providers/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/runas/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/vote/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/ui/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/util/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/securechannel/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/intercept/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/jboss/*"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
<!-- All Acegi Security System for Spring classes that belong in
|
|
||||||
Resin's "lib" directory -->
|
|
||||||
<jar jarfile="${dist.dir}/acegi-security-resin-lib.jar">
|
|
||||||
<fileset dir="${target.classes.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/context/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/providers/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/runas/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/vote/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/ui/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/util/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/securechannel/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/intercept/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/jboss/*"/>
|
|
||||||
<include name="net/sf/acegisecurity/adapters/resin/*"/>
|
|
||||||
</fileset>
|
|
||||||
<manifest>
|
|
||||||
<attribute name="Acegi-Security-System-version" value="${acegi-security-version}"/>
|
|
||||||
</manifest>
|
|
||||||
</jar>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="srczip" depends="initdist" description="Create source ZIP (containing all Java sources)">
|
|
||||||
<delete file="${dist.dir}/${acegi-security-src.zip}"/>
|
|
||||||
|
|
||||||
<zip zipfile="${dist.dir}/${acegi-security-src.zip}">
|
|
||||||
<fileset dir="${src.dir}">
|
|
||||||
<include name="net/sf/acegisecurity/**"/>
|
|
||||||
</fileset>
|
|
||||||
</zip>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="alljars" depends="fulljar,srczip" description="Create all JAR files"/>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="javadoc" description="Generate Javadocs.">
|
|
||||||
<mkdir dir="${javadocs.dir}"/>
|
|
||||||
|
|
||||||
<javadoc sourcepath="src" destdir="${javadocs.dir}" windowtitle="Acegi Security System for Spring"
|
|
||||||
defaultexcludes="yes" author="true" version="true" use="true">
|
|
||||||
<doctitle><![CDATA[<h1>Acegi Security System for Spring</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="net/sf/acegisecurity/**"/>
|
|
||||||
<include name="net/sf/acegisecurity/context/**"/>
|
|
||||||
</packageset>
|
|
||||||
</javadoc>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="release" depends="clean,alljars,tests,javadoc,refdoc" description="Generate release zip file">
|
|
||||||
<ant inheritall="no" antfile="build.xml" dir="samples/contacts" target="release"/>
|
|
||||||
<ant inheritall="no" antfile="build.xml" dir="samples/attributes" target="release"/>
|
|
||||||
|
|
||||||
<delete dir="${target.release.dir}"/>
|
|
||||||
<mkdir dir="${target.release.dir}"/>
|
|
||||||
|
|
||||||
<fileset id="main" dir=".">
|
|
||||||
<include name="dist/*.jar"/>
|
|
||||||
<include name="docs/**"/>
|
|
||||||
<exclude name="docs/reference/lib/**"/>
|
|
||||||
<include name="extractor/*"/>
|
|
||||||
<include name="extractor/source/*"/>
|
|
||||||
<include name="integration-test/**"/>
|
|
||||||
<exclude name="integration-test/lib/**"/>
|
|
||||||
<exclude name="integration-test/build.properties"/>
|
|
||||||
<exclude name="integration-test/classes/**"/>
|
|
||||||
<exclude name="integration-test/containers/**"/>
|
|
||||||
<exclude name="integration-test/reports/**"/>
|
|
||||||
<exclude name="integration-test/temporary/**"/>
|
|
||||||
<include name="samples/**"/>
|
|
||||||
<exclude name="samples/contacts/classes/**"/>
|
|
||||||
<exclude name="samples/contacts/build.properties"/>
|
|
||||||
<exclude name="samples/attributes/classes/**"/>
|
|
||||||
<exclude name="samples/attributes/reports/**"/>
|
|
||||||
<exclude name="samples/attributes/generated/**"/>
|
|
||||||
<include name="src/**"/>
|
|
||||||
<include name="test/**"/>
|
|
||||||
<include name="hsqldb/**"/>
|
|
||||||
<include name="*.txt"/>
|
|
||||||
<include name="*.xml"/>
|
|
||||||
<include name="project.properties"/>
|
|
||||||
</fileset>
|
|
||||||
|
|
||||||
<!-- To create your own free signing certificate, see http://www.dallaway.com/acad/webstart/ -->
|
|
||||||
<signjar lazy="true" alias="${signature.alias}" storepass="${signature.storepass}" keystore="${signature.keystore}">
|
|
||||||
<fileset dir="${dist.dir}">
|
|
||||||
<include name="*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</signjar>
|
|
||||||
|
|
||||||
<zip zipfile="${target.release.dir}/${release.zip}">
|
|
||||||
<zipfileset refid="main" prefix="${release.path}"/>
|
|
||||||
</zip>
|
|
||||||
|
|
||||||
<zip zipfile="${target.release.dir}/${release-with-dependencies.zip}">
|
|
||||||
<zipfileset refid="main" prefix="${release.path}"/>
|
|
||||||
<zipfileset dir="." prefix="${release.path}">
|
|
||||||
<include name="lib/**"/>
|
|
||||||
<include name="integration-test/lib/**"/>
|
|
||||||
</zipfileset>
|
|
||||||
</zip>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Compile test cases
|
|
||||||
-->
|
|
||||||
<target name="buildtests" depends="build" description="Compile test source tree Java files into class files">
|
|
||||||
|
|
||||||
<mkdir dir="${target.testclasses.dir}"/>
|
|
||||||
|
|
||||||
<javac destdir="${target.testclasses.dir}" target="1.3" debug="${debug}"
|
|
||||||
deprecation="false" optimize="false" failonerror="true">
|
|
||||||
<src path="${test.dir}"/>
|
|
||||||
<classpath refid="qa-portalpath"/>
|
|
||||||
<classpath location="${target.classes.dir}"/>
|
|
||||||
</javac>
|
|
||||||
|
|
||||||
<!-- Pick up logging config from test directory -->
|
|
||||||
<copy todir="${target.testclasses.dir}" preservelastmodified="true">
|
|
||||||
<fileset dir="${test.dir}">
|
|
||||||
<include name="**/*.properties"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Run tests.
|
|
||||||
-->
|
|
||||||
<target name="tests" depends="buildtests" description="Run tests.">
|
|
||||||
|
|
||||||
<property name="reports.dir" value="${target.junit.reports.dir}"/>
|
|
||||||
|
|
||||||
<delete dir="${reports.dir}"/>
|
|
||||||
<mkdir dir="${reports.dir}"/>
|
|
||||||
|
|
||||||
<junit dir="${test.dir}" printsummary="yes" haltonfailure="yes">
|
|
||||||
|
|
||||||
<!-- Must go first to ensure any jndi.properties files etc take precedence -->
|
|
||||||
<classpath location="${target.testclasses.dir}"/>
|
|
||||||
<classpath location="${target.classes.dir}"/>
|
|
||||||
|
|
||||||
<!-- Need files loaded as resources -->
|
|
||||||
<classpath location="${test.dir}"/>
|
|
||||||
|
|
||||||
<classpath refid="qa-portalpath"/>
|
|
||||||
|
|
||||||
<formatter type="plain"/>
|
|
||||||
|
|
||||||
<batchtest fork="yes" todir="${reports.dir}">
|
|
||||||
<fileset dir="${target.testclasses.dir}" includes="${test.includes}" excludes="${test.excludes}"/>
|
|
||||||
</batchtest>
|
|
||||||
|
|
||||||
</junit>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="clover.setup" description="Setup Clover">
|
|
||||||
|
|
||||||
<mkdir dir="${clover.dbdir}"/>
|
|
||||||
<mkdir dir="${clover.tmpdir}"/>
|
|
||||||
|
|
||||||
<!-- switch on Clover -->
|
|
||||||
<clover-setup initstring="${clover.dbdir}/${clover.dbfile}"
|
|
||||||
tmpdir="${clover.tmpdir}" enabled="true">
|
|
||||||
<files>
|
|
||||||
<exclude name="**/*Exception.java"/>
|
|
||||||
<exclude name="**/*Tests.java"/>
|
|
||||||
<exclude name="**/DenyVoter.java"/>
|
|
||||||
<exclude name="**/DenyAgainVoter.java"/>
|
|
||||||
<exclude name="**/*TargetObject.java"/>
|
|
||||||
<exclude name="**/Mock*.java"/>
|
|
||||||
<exclude name="**/TestLoginModule*.java"/>
|
|
||||||
<exclude name="**/SomeDomain*.java"/>
|
|
||||||
</files>
|
|
||||||
<statementContext id="nolog" regexp="^if \(logger.*\).*}"/>
|
|
||||||
<statementContext id="nojbosslog" regexp="^if \(super.logger.*\).*}"/>
|
|
||||||
</clover-setup>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="clover.tests" depends="clover.setup,build,buildtests,tests" description="Run Clover tests"/>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Run test suite under Clover coverage analysis, and bring up
|
|
||||||
Clover's Swing browser to display the results.
|
|
||||||
-->
|
|
||||||
<target name="clover.swing" depends="clover.tests" description="Run Clover tests and bring up Swing coverage viewer">
|
|
||||||
|
|
||||||
<echo>Launching coverage viewer</echo>
|
|
||||||
|
|
||||||
<clover-view/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<!--
|
|
||||||
Run test suite under Clover coverage analysis, and use Clover
|
|
||||||
to generate Javadoc/style HTML results that may be browsed later.
|
|
||||||
-->
|
|
||||||
<target name="clover.html" depends="clover.tests" description="Generate Clover HTML coverage reports from an existing Clover database">
|
|
||||||
|
|
||||||
<clover-report>
|
|
||||||
<current outfile="${target.clover.html.dir}" title="Acegi Security System for Spring" summary="true">
|
|
||||||
<format type="html" filter="nolog,nojbosslog" />
|
|
||||||
</current>
|
|
||||||
</clover-report>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="docclean" description="Delete temporary and distribution directories for docs">
|
|
||||||
|
|
||||||
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/pdf"/>
|
|
||||||
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html_single"/>
|
|
||||||
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="preparedocs" description="Extra preparation for the documentation">
|
|
||||||
<!-- For now, no dynamic inclusion of the DTD since it looks ugly because of
|
|
||||||
all the extra newlines the replace is mysteriously adding.
|
|
||||||
I'll figure something out for that later on
|
|
||||||
<delete file="${basedir}/${doc.ref.dir}/src/dtd.xml"/>
|
|
||||||
<loadfile
|
|
||||||
property="doc.beansdtd"
|
|
||||||
srcFile="${src.dir}/org/springframework/beans/factory/xml/spring-beans.dtd"/>
|
|
||||||
<copy
|
|
||||||
file="${basedir}/${doc.ref.dir}/src/dtd-template.xml"
|
|
||||||
tofile="${basedir}/${doc.ref.dir}/src/dtd.xml"/>
|
|
||||||
<replace
|
|
||||||
file="${basedir}/${doc.ref.dir}/src/dtd.xml"
|
|
||||||
token="@dtd-include@"
|
|
||||||
value="${doc.beansdtd}">
|
|
||||||
</replace>
|
|
||||||
<replace
|
|
||||||
file="${basedir}/${doc.ref.dir}/src/dtd.xml"
|
|
||||||
token="\\n"
|
|
||||||
value=""/>
|
|
||||||
-->
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="docpdf" depends="preparedocs" description="Compile reference documentation to pdf">
|
|
||||||
|
|
||||||
<mkdir dir="${basedir}/${dist.ref.dir}/pdf/images"/>
|
|
||||||
|
|
||||||
<copy todir="${basedir}/${dist.ref.dir}/pdf/images">
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
|
|
||||||
<include name="*.gif"/>
|
|
||||||
<include name="*.svg"/>
|
|
||||||
<include name="*.jpg"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/lib">
|
|
||||||
<include name="**/*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
<arg value="-o"/>
|
|
||||||
<arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/styles/fopdf.xsl"/>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
<java classname="org.apache.fop.apps.Fop" fork="true" dir="${doc.ref.dir}">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/lib">
|
|
||||||
<include name="**/*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
<arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/>
|
|
||||||
<arg value="${basedir}/${dist.ref.dir}/pdf/acegi-security-reference.pdf"/>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
<delete file="${dist.ref.dir}/pdf/docbook_fop.tmp"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="dochtml" depends="preparedocs" description="Compile reference documentation to chunked html">
|
|
||||||
|
|
||||||
<mkdir dir="${dist.ref.dir}/html/images"/>
|
|
||||||
|
|
||||||
<copy todir="${basedir}/${dist.ref.dir}/html/images">
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
|
|
||||||
<include name="*.gif"/>
|
|
||||||
<include name="*.svg"/>
|
|
||||||
<include name="*.jpg"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${dist.ref.dir}/html/">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/lib">
|
|
||||||
<include name="**/*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/styles/html_chunk.xsl"/>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="dochtmlsingle" description="Compile reference documentation to single html">
|
|
||||||
|
|
||||||
<mkdir dir="${dist.ref.dir}/html_single/images"/>
|
|
||||||
|
|
||||||
<copy todir="${basedir}/${dist.ref.dir}/html_single/images">
|
|
||||||
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
|
|
||||||
<include name="*.gif"/>
|
|
||||||
<include name="*.svg"/>
|
|
||||||
<include name="*.jpg"/>
|
|
||||||
</fileset>
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
|
|
||||||
<classpath>
|
|
||||||
<fileset dir="${basedir}/${doc.dir}/reference/lib">
|
|
||||||
<include name="**/*.jar"/>
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
|
||||||
<arg value="-o"/>
|
|
||||||
<arg value="${basedir}/${dist.ref.dir}/html_single/index.html"/>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
|
|
||||||
<arg value="${basedir}/${doc.ref.dir}/styles/html.xsl"/>
|
|
||||||
</java>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
|
|
||||||
|
|
||||||
<target name="refdoc" depends="dochtml,dochtmlsingle,docpdf" description="Generate and copy reference documentation"/>
|
|
||||||
|
|
||||||
</project>
|
|
|
@ -1,104 +1,21 @@
|
||||||
# Ant properties for building the Acegi Security System for Spring.
|
# $Id$
|
||||||
|
|
||||||
# Values in this file will be overriden by any values with the same name
|
# Values in this file will be overriden by any values with the same name
|
||||||
# in the user-created build.properties file.
|
# in the user-created build.properties file.
|
||||||
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
# Project version
|
|
||||||
acegi-security-version=0.7.0-pre
|
|
||||||
|
|
||||||
# Project name
|
|
||||||
name=acegi-security-system-for-spring
|
|
||||||
|
|
||||||
# Compile settings
|
# Compile settings
|
||||||
maven.compile.debug=on
|
maven.compile.debug=on
|
||||||
maven.compile.target=1.3
|
maven.compile.target=1.3
|
||||||
maven.compile.source=1.3
|
maven.compile.source=1.3
|
||||||
|
|
||||||
# With the exception of 'dist' and 'docs/api', all artifacts produced by
|
|
||||||
# the build go somewhere underneath the target dir
|
|
||||||
target.dir=${basedir}/target
|
|
||||||
|
|
||||||
# Main source tree will be compiled into this directory tree
|
|
||||||
target.classes.dir=${target.dir}/classes
|
|
||||||
|
|
||||||
# Test tree will be compiled into this directory tree
|
|
||||||
target.testclasses.dir=${target.dir}/test-classes
|
|
||||||
|
|
||||||
# Names of distribution jar files
|
|
||||||
acegi-security.jar=acegi-security.jar
|
|
||||||
|
|
||||||
# Names of distribution jar files
|
|
||||||
acegi-taglib.jar=acegi-security-taglib.jar
|
|
||||||
|
|
||||||
# Name of Zip file containing all project sources
|
|
||||||
acegi-security-src.zip=acegi-security-src.zip
|
|
||||||
|
|
||||||
# Library directory within project. Where third party jars reside.
|
|
||||||
lib.dir=${basedir}/lib
|
|
||||||
|
|
||||||
# Source directory under the current root
|
|
||||||
src.dir=${basedir}/src
|
|
||||||
|
|
||||||
# Directory for generated API documentation -->
|
|
||||||
javadocs.dir=${basedir}/docs/api
|
|
||||||
|
|
||||||
# Test directory under the current root
|
|
||||||
test.dir=${basedir}/test
|
|
||||||
|
|
||||||
# Wildcards to be matched by JUnit tests
|
|
||||||
# Convention is that our JUnit test classes have names like XXXXTestSuite or XXXTests
|
|
||||||
test.includes=**/*TestSuite.class **/*Tests.class
|
|
||||||
|
|
||||||
# Wildcards to exclude among JUnit tests
|
|
||||||
test.excludes=
|
|
||||||
|
|
||||||
# Directory where JUnit test reports are written
|
|
||||||
target.junit.reports.dir=${target.dir}/test-reports
|
|
||||||
|
|
||||||
# Directory we generate distribution units such as jars and zips to
|
|
||||||
dist.dir=dist
|
|
||||||
|
|
||||||
# Directory for release ZIPs
|
|
||||||
target.release.dir=${target.dir}/release
|
|
||||||
|
|
||||||
# ZIP file that gets created for a release
|
|
||||||
release.zip=acegi-security-${acegi-security-version}.zip
|
|
||||||
release-with-dependencies.zip=acegi-security-${acegi-security-version}-with-dependencies.zip
|
|
||||||
|
|
||||||
# Path prefix within the ZIP file
|
|
||||||
release.path=acegi-security-${acegi-security-version}
|
|
||||||
|
|
||||||
# This is only used by the ant build to kill this directory, where IDEs may
|
|
||||||
# place other class files (for samples, etc.)
|
|
||||||
target.otherclasses.dir=${target.dir}/other-classes
|
|
||||||
|
|
||||||
# Where to find code formatting rules
|
|
||||||
jalopy.xml=jalopy.xml
|
|
||||||
|
|
||||||
# Clover properties
|
|
||||||
target.clover.dir=${target.dir}/clover
|
|
||||||
clover.dbdir=${target.clover.dir}/db
|
|
||||||
clover.dbfile=acegi_security_coverage.db
|
|
||||||
clover.tmpdir=${target.clover.dir}/tmp
|
|
||||||
target.clover.html.dir=${target.dir}/clover-reports
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
# docbook reference documentation
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
doc.dir=docs
|
|
||||||
doc.ref.dir=docs/reference
|
|
||||||
dist.ref.dir=docs/reference
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------
|
|
||||||
# maven configuration
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
|
|
||||||
# Add this to a build.properties file
|
# Add this to a build.properties file
|
||||||
#maven.username=your_sourceforge_username
|
#maven.username=your_sourceforge_username
|
||||||
|
|
||||||
|
# If you'd like to have generated JARs signed, add these to build.properties
|
||||||
|
#signature.alias=
|
||||||
|
#signature.storepass=
|
||||||
|
#signature.keystore=
|
||||||
|
|
||||||
maven.repo.remote=http://www.ibiblio.org/maven,http://acegisecurity.sourceforge.net/maven,http://maven-plugins.sourceforge.net/repository
|
maven.repo.remote=http://www.ibiblio.org/maven,http://acegisecurity.sourceforge.net/maven,http://maven-plugins.sourceforge.net/repository
|
||||||
|
|
||||||
# Site generation properties
|
# Site generation properties
|
||||||
|
@ -118,6 +35,7 @@ maven.repo.list=acegi
|
||||||
maven.repo.acegi=sftp://shell.sourceforge.net
|
maven.repo.acegi=sftp://shell.sourceforge.net
|
||||||
maven.repo.acegi.directory=/home/groups/a/ac/acegisecurity/htdocs/maven
|
maven.repo.acegi.directory=/home/groups/a/ac/acegisecurity/htdocs/maven
|
||||||
maven.repo.acegi.group=acegisecurity
|
maven.repo.acegi.group=acegisecurity
|
||||||
|
|
||||||
# These must be set elsewhere
|
# These must be set elsewhere
|
||||||
# Useful background: http://jira.codehaus.org/secure/attachment/13459/site-deployment.xml
|
# Useful background: http://jira.codehaus.org/secure/attachment/13459/site-deployment.xml
|
||||||
# List of applicable properties: http://maven.apache.org/reference/plugins/artifact/properties.html
|
# List of applicable properties: http://maven.apache.org/reference/plugins/artifact/properties.html
|
||||||
|
@ -155,13 +73,3 @@ maven.dashboard.runreactor=false
|
||||||
maven.multiproject.site.goals=site,dashboard:report-single
|
maven.multiproject.site.goals=site,dashboard:report-single
|
||||||
# needed to get clover reports running dashboard-single
|
# needed to get clover reports running dashboard-single
|
||||||
maven.clover.report.xml=true
|
maven.clover.report.xml=true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
# Commons Attributes
|
|
||||||
#------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# org.apache.commons.attributes.enable=true
|
|
||||||
# org.apache.commons.attributes.index.enable=true
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue