<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
/* | |
* Copyright 2001-2004 The Apache Software Foundation. | |
* | |
* 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. | |
*/ | |
--> | |
<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ --> | |
<project default="jar" | |
xmlns:j="jelly:core" | |
xmlns:u="jelly:util" | |
xmlns:maven="jelly:maven" | |
xmlns:deploy="deploy" | |
xmlns:ant="jelly:ant"> | |
<postGoal name="java:compile"> | |
<!-- Create the sts.aar : STATRT --> | |
<mkdir dir="target/sts/rahas-${rahas_version}/"/> | |
<mkdir dir="target/sts/rahas-${rahas_version}/lib"/> | |
<!-- Copy classes --> | |
<copy todir="target/sts/rahas-${rahas_version}/"> | |
<fileset dir="target/classes"> | |
<include name="**/*.class"/> | |
</fileset> | |
</copy> | |
<!-- copy jars --> | |
<j:if test="${context.getVariable('maven.jar.override').toString().trim().equalsIgnoreCase('on')}"> | |
<copy file="${dependencies.dir}/xmlsec-${xmlsec.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${dependencies.dir}/bcprov-${bcprov.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${dependencies.dir}/opensaml-${opensaml.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${dependencies.dir}/wss4j-${wss4j.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
</j:if> | |
<j:if test="${context.getVariable('maven.jar.override').toString().trim().equalsIgnoreCase('off')}"> | |
<copy file="${maven.repo.local}/xml-security/jars/xmlsec-${xmlsec.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${maven.repo.local}/bouncycastle/jars/bcprov-${bcprov.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${maven.repo.local}/opensaml/jars/opensaml-${opensaml.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
<copy file="${maven.repo.local}/wss4j/jars/wss4j-${wss4j.version}.jar" todir="target/sts/rahas-${rahas_version}/lib"/> | |
</j:if> | |
<copy file="src/META-INF/module.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/module.xml"/> | |
<jar jarfile="target/rahas-${rahas_module_version}.mar" basedir="target/sts/rahas-${rahas_version}/"> | |
<include name="**/*"/> | |
</jar> | |
<delete file="target/sts/META-INF/module.xml"/> | |
<delete includeEmptyDirs="true"> | |
<fileset dir="target/sts/rahas-${rahas_version}/org/apache/rahas/client"/> | |
</delete> | |
<copy file="sts-aar-resources/services.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/services.xml"/> | |
<copy file="sts-aar-resources/sct-issuer-config.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/sct-issuer-config.xml"/> | |
<copy file="sts-aar-resources/saml-issuer-config.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/saml-issuer-config.xml"/> | |
<copy file="sts-aar-resources/token-canceler-config.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/token-canceler-config.xml"/> | |
<copy file="sts-aar-resources/token-dispatcher-configuration.xml" toFile="target/sts/rahas-${rahas_version}/META-INF/token-dispatcher-configuration.xml"/> | |
<copy file="sts-aar-resources/rahas-sts.jks" toFile="target/sts/META-INF/rahas-sts.jks"/> | |
<zip zipfile="target/rahas-${rahas_version}.zip" basedir="target/sts/"> | |
<include name="**/*"/> | |
</zip> | |
<delete includeEmptyDirs="true"> | |
<fileset dir="target/sts"/> | |
</delete> | |
<!-- Create the sts.aar : END --> | |
</postGoal> | |
<postGoal name="test:compile"> | |
<copy file="target/rahas-${rahas_module_version}.mar" tofile="target/modules/rahas-${rahas_module_version}.mar"/> | |
<copy file="target/rahas-${rahas_module_version}.mar" tofile="${maven.repo.local}/org.apache.axis2/mars/rahas-${rahas_module_version}.mar"/> | |
</postGoal> | |
</project> |