Author: pskopek(a)redhat.com
Date: 2012-05-02 12:27:08 -0400 (Wed, 02 May 2012)
New Revision: 1556
Modified:
integration-tests/branches/eap6/ant-scripts/ant-build.xml
Log:
ant-run changes
Modified: integration-tests/branches/eap6/ant-scripts/ant-build.xml
===================================================================
--- integration-tests/branches/eap6/ant-scripts/ant-build.xml 2012-05-02 16:24:03 UTC (rev
1555)
+++ integration-tests/branches/eap6/ant-scripts/ant-build.xml 2012-05-02 16:27:08 UTC (rev
1556)
@@ -1,200 +1,347 @@
<project name="PicketLink Federation Integration Test Suite">
- <taskdef resource="net/sf/antcontrib/antlib.xml">
- <classpath path="${depclasspath}"/>
- </taskdef>
-
- <property name="JBAS5_DEPLOY"
location="${basedir}/target/jboss-5.1.0.GA/server/default/deploy/" />
- <property name="JBAS5_DEPLOYER"
location="${basedir}/target/jboss-5.1.0.GA/server/default/deployers/" />
- <property name="JBAS6_DEPLOY"
location="${basedir}/target/jboss-6.0.0.Final/server/default/deploy/" />
- <property name="TOMCAT6"
location="${basedir}/target/apache-tomcat-6.0.26/" />
- <property name="TOMCAT6_DEPLOY"
location="${basedir}/target/apache-tomcat-6.0.26/webapps/" />
- <property name="TOMCAT6_LIB"
location="${basedir}/target/apache-tomcat-6.0.26/lib/" />
- <property name="JBWS_CXF_ZIP"
location="${basedir}/../common-dist/jbossws/3.4.1.GA/jbossws-cxf-3.4.1.GA.zip"/>
- <property name="JBWS_CXF_HOME"
location="${basedir}/target/jbossws-cxf-bin-dist/"/>
- <property environment="env" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath path="${depclasspath}"/>
+ </taskdef>
- <!--
- <property name="EAP_ZIP" value="jboss-eap-noauth-5.1.2-ER1.zip"
/>
- <property name="CXF_INSTALLER_ZIP"
value="jboss-ep-ws-cxf-5.1.2-ER1-installer.zip" />
- <property name="EAP_URL"
value="file:///mnt/jqa/eap/5.1.2.ER1/${EAP_ZIP}" />
- <property name="CXF_INSTALLER_URL"
value="file:///mnt/jqa/eap/5.1.2.ER1/${CXF_INSTALLER_ZIP}" />
- <property name="EAP_DIR" value="jboss-eap-5.1" />
- <property name="jboss.profile" value="default" />
- <property name="pl-fed-webapps-assembly-version"
value="2.0.1.1.final" />
--->
- <property name="DIST_DIR"
value="${basedir}/../common-dist/target" />
- <property name="EAP_DIR" value="jboss-eap-5.1" />
+ <!-- task for easy xml manipulation
+ @see:
http://today.java.net/pub/a/today/2006/11/01/xml-manipulation-using-xmlta...
+ -->
+ <taskdef name="xmltask"
+ classpath="${basedir}/../product-preparation/lib/xmltask.jar"
+ classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
- <target name="download-eap">
- <if>
- <available file="${DIST_DIR}/${EAP_ZIP}"/>
- <then>
- <echo>${EAP_ZIP} is already in place skipping download.</echo>
- </then>
- <else>
- <mkdir dir="${DIST_DIR}" />
- <get dest="${DIST_DIR}">
- <url url="${EAP_URL}"/>
- </get>
- </else>
- </if>
-
- </target>
-
- <target name="download-cxf">
- <if>
- <available file="${DIST_DIR}/${CXF_INSTALLER_ZIP}"/>
- <then>
- <echo>${CXF_INSTALLER_ZIP} is already in place skipping
download.</echo>
- </then>
- <else>
- <mkdir dir="${DIST_DIR}" />
- <get dest="${DIST_DIR}">
- <url url="${CXF_INSTALLER_URL}"/>
- </get>
- </else>
- </if>
- </target>
+ <property name="JBAS5_DEPLOY"
location="${basedir}/target/jboss-5.1.0.GA/server/default/deploy/"/>
+ <property name="JBAS5_DEPLOYER"
location="${basedir}/target/jboss-5.1.0.GA/server/default/deployers/"/>
+ <property name="JBAS6_DEPLOY"
location="${basedir}/target/jboss-6.0.0.Final/server/default/deploy/"/>
+ <property name="TOMCAT6"
location="${basedir}/target/apache-tomcat-6.0.26/"/>
+ <property name="TOMCAT6_DEPLOY"
location="${basedir}/target/apache-tomcat-6.0.26/webapps/"/>
+ <property name="TOMCAT6_LIB"
location="${basedir}/target/apache-tomcat-6.0.26/lib/"/>
+ <property name="JBWS_CXF_ZIP"
location="${basedir}/../common-dist/jbossws/3.4.1.GA/jbossws-cxf-3.4.1.GA.zip"/>
+ <property name="JBWS_CXF_HOME"
location="${basedir}/target/jbossws-cxf-bin-dist/"/>
+ <property environment="env"/>
- <target name="unzip-jboss-distributed-test-deps"
depends="download-eap">
- <unzip src="${DIST_DIR}/${EAP_ZIP}"
- dest="${basedir}/target">
- <patternset>
- <include name="jboss-eap-5.1/picketlink/**"/>
- </patternset>
- </unzip>
-
- </target>
+ <property name="EAP_ZIP"
value="jboss-eap-noauth-5.1.2-ER1.zip"/>
+ <property name="CXF_INSTALLER_ZIP"
value="jboss-ep-ws-cxf-5.1.2-ER1-installer.zip"/>
+ <property name="EAP_URL"
value="file:///mnt/jqa/eap/5.1.2.ER1/${EAP_ZIP}"/>
+ <property name="CXF_INSTALLER_URL"
value="file:///mnt/jqa/eap/5.1.2.ER1/${CXF_INSTALLER_ZIP}"/>
+ <property name="DIST_DIR"
value="${basedir}/../common-dist/target"/>
+ <!-- property name="EAP_DIR" value="jboss-eap-5.1"/ -->
+ <property name="EAP_DIR"
value="jboss-as-7.1.0.CR1-SNAPSHOT"/>
+ <property name="jboss.profile" value="default"/>
+ <property name="pl-fed-webapps-assembly-version"
value="2.0.1.1.final"/>
+
+ <target name="download-eap">
+ <if>
+ <available file="${DIST_DIR}/${EAP_ZIP}"/>
+ <then>
+ <echo>${EAP_ZIP} is already in place skipping
download.</echo>
+ </then>
+ <else>
+ <mkdir dir="${DIST_DIR}"/>
+ <get dest="${DIST_DIR}">
+ <url url="${EAP_URL}"/>
+ </get>
+ </else>
+ </if>
+
+ </target>
+
+ <target name="download-cxf">
+ <if>
+ <available file="${DIST_DIR}/${CXF_INSTALLER_ZIP}"/>
+ <then>
+ <echo>${CXF_INSTALLER_ZIP} is already in place skipping
download.</echo>
+ </then>
+ <else>
+ <mkdir dir="${DIST_DIR}"/>
+ <get dest="${DIST_DIR}">
+ <url url="${CXF_INSTALLER_URL}"/>
+ </get>
+ </else>
+ </if>
+ </target>
+
+ <target name="unzip-jboss-distributed-test-deps"
depends="download-eap">
+ <!--
+ <mkdir dir="${basedir}/target"/>
+ <unzip src="${DIST_DIR}/${EAP_ZIP}"
+ dest="${basedir}/target">
+ <patternset>
+ <include name="jboss-eap-6.0/**"/>
+ </patternset>
+ </unzip>
+ -->
+ </target>
- <target name="init-eap5" depends="download-eap">
- <!-- Unzip JBoss EAP -->
- <echo>Unzip JBOSS EAP: ${EAP_ZIP}</echo>
+ <target name="noop">
+ </target>
- <unzip src="${DIST_DIR}/${EAP_ZIP}"
- dest="${basedir}/target"/>
-
- <chmod file="${basedir}/target/${EAP_DIR}/jboss-as/bin/run.sh"
perm="775"/>
+ <target name="init-eap6">
+ <property name="webapps-binding" value="jboss"/>
+ <property name="webapps-binding-version" value="as7"/>
+
+ <if>
+ <available file="${EAP_DIR}" type="dir"/>
+ <then>
+ <!-- Copy EAP_DIR from dev. env. - use only for development -->
+ <echo>${EAP_DIR} exists copying content to target (not using
${EAP_ZIP}).</echo>
-
- <!-- install PicketLink in versions prior to 5.1.2 -->
- <!-- later as we have EAP 5.1.2 build it has to be build in -->
- <copy
file="${jboss.dist}/picketlink/picketlink-federation/picketlink-core-${version}.jar"
- todir="${basedir}/target/${EAP_DIR}/jboss-as/common/lib"/>
-
- <mkdir
dir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+ <mkdir dir="${basedir}/target/jbossas"/>
+ <copy todir="${basedir}/target/jbossas">
+ <fileset dir="${EAP_DIR}">
+ <include name="**"/>
+ </fileset>
+ </copy>
- <!-- deploy test apps -->
- <unzip
src="${localRepository}/org/picketlink/picketlink-fed-webapps-assembly/${pl-fed-webapps-assembly-version}/picketlink-fed-webapps-assembly-${pl-fed-webapps-assembly-version}.zip"
-
dest="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy">
- <patternset id="pl-fed-webapps-assembly-files"
- excludes="**/pdp.war,**/idp.war,**/picketlink-sts.war"/>
- </unzip>
-
- <copy
file="${basedir}/../picketlink-int-webapps/claims/target/claims.war"
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink/"/>
+ </then>
+ <else>
+ <!-- Unzip JBoss EAP -->
+ <echo>Unzip JBOSS EAP: ${EAP_ZIP}</echo>
- <!-- copy webapps from distribution -->
- <copy
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink">
- <fileset dir="${jboss.dist}/picketlink/picketlink-federation-webapps"
>
- <include name="idp.war/**/*"/>
- </fileset>
- <fileset dir="${jboss.dist}/picketlink/picketlink-federation-webapps"
>
- <include name="pdp.war/**/*"/>
- </fileset>
- <fileset dir="${jboss.dist}/picketlink/picketlink-federation-webapps"
>
- <include name="picketlink-sts.war/**/*"/>
- </fileset>
- </copy>
+ <unzip src="${DIST_DIR}/${EAP_ZIP}"
+ dest="${basedir}/target"/>
+ <move file="${basedir}/target/jboss-eap-6.0"
tofile="${basedir}/target/jbossas" />
+ </else>
+ </if>
- </target>
- <target name="init-eap5-cxf"
depends="init-eap5,download-cxf">
- <!-- Unzip JBoss EAP CXF -->
- <echo>Unzip JBOSS EAP CXF: ${CXF_INSTALLER_ZIP}</echo>
- <unzip src="${DIST_DIR}/${CXF_INSTALLER_ZIP}"
- dest="${basedir}/target/${EAP_DIR}/jboss-as"/>
-
- <!-- Install CXF into EAP -->
- <ant target="install-noauth"
-
antfile="${basedir}/target/${EAP_DIR}/jboss-as/jbossws-cxf-installer/build.xml"
- dir="${basedir}/target/${EAP_DIR}/jboss-as/jbossws-cxf-installer"
- />
+ <mkdir dir="${basedir}/target/picketlink"/>
- </target>
- <target name="copy-sts-props-eap5">
- <copy
file="${basedir}/../picketlink-sts-tests/src/test/resources/sts-config.properties"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf/"/>
- </target>
-
+ <xmltask
source="target/jbossas/standalone/configuration/standalone.xml"
+
dest="target/jbossas/standalone/configuration/standalone-picketlink.xml"
+ report="false"
+ failWithoutMatch="true"
+ >
+ <!-- unsecure the interfaces -->
+ <remove
path="/:server/:management/:management-interfaces/:native-interface/@security-realm"/>
+ <remove
path="/:server/:management/:management-interfaces/:http-interface/@security-realm"/>
- <target name="copy-trust-settings-eap5">
- <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/domains/sts-jboss-beans.xml"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"
/>
- <copy
file="${basedir}/../picketlink-trust-tests/target/picketlink-wstest-tests.jar"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"
/>
- <copy file="${basedir}/../picketlink-trust-tests/target/pojo-test.war"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"
/>
- <copy file="${basedir}/../picketlink-trust-tests/target/binary-test.war"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"
/>
- <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/props/sts-users.properties"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"
/>
- <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/props/sts-roles.properties"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"
/>
+ <!-- disable console logging -->
+ <!-- replace
path="/*[name()='server']/*[name()='profile']/*[name()='subsystem']/*[name()='console-handler']/*[name()='level']/@name"
+ withText="OFF"/ -->
- <!-- copy
file="${localRepository}/org/picketlink/picketlink-trust-jbossws/${pl-trust-version}/picketlink-trust-jbossws-${pl-trust-version}.jar"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/
-->
-
- <!-- TODO: once JBPAPP-7325 is resolved this can be deleted -->
- <copy
file="${basedir}/../common-dist/files/eap/5.1.1/war-deployers-jboss-beans.xml"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deployers/jbossweb.deployer/META-INF"
- overwrite="true"/>
+ <!-- insert security domains need for the tests -->
+ <insert
path="/*[name()='server']/*[name()='profile']/*[name()='subsystem']/*[name()='security-domains']/*[name()='security-domain'][@name='jboss-ejb-policy']"
+ position="after">
+ <![CDATA[
+ <security-domain name="picketlink-sts"
cache-type="default">
+ <authentication>
+ <login-module code="UsersRoles"
flag="required">
+ <module-option name="usersProperties"
value="sts-users.properties"/>
+ <module-option name="rolesProperties"
value="sts-roles.properties"/>
+ </login-module>
+ </authentication>
+ </security-domain>
+ <security-domain name="idp"
cache-type="default">
+ <authentication>
+ <login-module code="UsersRoles"
flag="required">
+ <module-option name="usersProperties"
value="users.properties"/>
+ <module-option name="rolesProperties"
value="roles.properties"/>
+ </login-module>
+ </authentication>
+ </security-domain>
+ <security-domain name="sp"
cache-type="default">
+ <authentication>
+ <login-module
code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule"
flag="required"/>
+ </authentication>
+ </security-domain>
+ ]]>
+ </insert>
- <copy file="${basedir}/../common-dist/files/eap/5.1.1/jboss-log4j.xml"
-
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"
- overwrite="true"/>
-
- </target>
-
- <target name="start-jboss" depends="stop-jboss">
- <echo>Starting Local 8080 </echo>
- <exec executable="${jbossas}/bin/run.sh"
- osfamily="unix" spawn="true" />
- <waitfor maxwait="1" maxwaitunit="minute"
- checkevery="100" checkeveryunit="millisecond">
- <http url="http://localhost:8080" />
- </waitfor>
- <echo>:Local 8080 Started</echo>
- </target>
+ </xmltask>
- <target name="start-eap5" >
- <antcall target="start-jboss">
- <param name="jbossas"
value="${basedir}/target/${EAP_DIR}/jboss-as"/>
- </antcall>
- <!--
- <echo>Starting Local 8080 </echo>
- <exec executable="${basedir}/target/jboss-5.1.0.GA/bin/run.sh"
- osfamily="unix" spawn="true" />
- <waitfor maxwait="1" maxwaitunit="minute"
- checkevery="100" checkeveryunit="millisecond">
- <http url="http://localhost:8080" />
- </waitfor>
- <echo>:Local 8080 Started</echo>
- -->
- </target>
+ <chmod file="${basedir}/target/jbossas/bin/*.sh"
perm="775"/>
+ <!-- missing webapps from old assembly -->
+ <unzip
src="${localRepository}/org/picketlink/picketlink-fed-webapps-as7-assembly/${pl-fed-webapps-assembly-version}/picketlink-fed-webapps-as7-assembly-${pl-fed-webapps-assembly-version}.zip"
+ dest="${basedir}/target">
+ <patternset id="pl-fed-webapps-assembly-files"
+
excludes="**/pdp.war,**/idp.war,**/picketlink-sts.war"/>
+ </unzip>
+
+
+ <!-- unzip test apps - later deployed using Arquillian -->
+ <unzip
src="${localRepository}/org/picketlink/picketlink-quickstarts/${pl-webapps-main-version}/picketlink-quickstarts-${pl-webapps-main-version}-webapps-${webapps-binding}-${webapps-binding-version}.zip"
+ dest="${basedir}/target">
+ <patternset id="pl-fed-webapps-files"
+
includes="**/pdp*.war,**/idp*.war,**/picketlink-sts*.war"/>
+ </unzip>
- <target name="stop-jboss">
- <echo>Stopping Local 8080 </echo>
- <echo>Going to Kill the JBoss Process</echo>
- <exec executable="${basedir}/../common-dist/scripts/stopjboss.sh"
- osfamily="unix" />
- </target>
+
+
+ <echo>using web apps from EAP6 repository mead tagged one</echo>
+ <move
file="${basedir}/target/picketlink/picketlink-sts-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/picketlink-sts.war"/>
+ <move
file="${basedir}/target/picketlink/pdp-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/pdp.war"/>
+ <move
file="${basedir}/target/picketlink/idp-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/idp.war"/>
+ <move
file="${basedir}/target/picketlink/idp-sig-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/idp-sig.war"/>
+ <!--
+ <move
file="${basedir}/target/picketlink/employee-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/employee.war"/>
+ <move
file="${basedir}/target/picketlink/employee-sig-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/employee-sig.war"/>
+ <move
file="${basedir}/target/picketlink/sales-post-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/sales-post.war"/>
+ <move
file="${basedir}/target/picketlink/sales-post-sig-${pl-webapps-main-version}-${webapps-binding}-${webapps-binding-version}.war"
+ tofile="${basedir}/target/picketlink/sales-post-sig.war"/>
+ -->
+
+ <!--
+ <copy
file="${localRepository}/org/picketlink/idp/${pl-webapps-main-version}/idp-${pl-webapps-main-version}.war"
+ tofile="${basedir}/target/picketlink/idp.war"/>
+ <copy
file="${localRepository}/org/picketlink/pdp/${pl-webapps-main-version}/pdp-${pl-webapps-main-version}.war"
+ tofile="${basedir}/target/picketlink/pdp.war"/>
+ <copy
file="${localRepository}/org/picketlink/picketlink-sts/${pl-webapps-main-version}/picketlink-sts-${pl-webapps-main-version}.war"
+ tofile="${basedir}/target/picketlink/picketlink-sts.war"/>
+ -->
+ <!-- additional configuration of picketlink-sts.war to be able to log in -->
+ <jar
destfile="${basedir}/target/picketlink/picketlink-sts-1.war">
+ <zipfileset
src="${basedir}/target/picketlink/picketlink-sts.war"/>
+ <zipfileset
dir="${basedir}/../picketlink-sts-tests/src/test/resources/"
includes="sts-config.properties" prefix="WEB-INF/classes/"/>
+ <zipfileset
dir="${basedir}/../picketlink-trust-tests/src/test/resources/props/"
includes="sts-users.properties" prefix="WEB-INF/classes/"/>
+ <zipfileset
dir="${basedir}/../picketlink-trust-tests/src/test/resources/props/"
includes="sts-roles.properties" prefix="WEB-INF/classes/"/>
+ </jar>
+ <delete file="${basedir}/target/picketlink/picketlink-sts.war"
failonerror="true" verbose="true"/>
+ <move file="${basedir}/target/picketlink/picketlink-sts-1.war"
tofile="${basedir}/target/picketlink/picketlink-sts.war"/>
+ <!-- copy file="/home/pskopek/Downloads/picketlink-sts.war"
tofile="${basedir}/target/picketlink/picketlink-sts.war"/ -->
+
+
+ </target>
- <target name="stop-eap5">
- <antcall target="stop-jboss"/>
- </target>
+ <target name="init-eap5" depends="download-eap">
+ <!-- Unzip JBoss EAP -->
+ <echo>Unzip JBOSS EAP: ${EAP_ZIP}</echo>
+ <unzip src="${DIST_DIR}/${EAP_ZIP}"
+ dest="${basedir}/target"/>
+ <chmod file="${basedir}/target/${EAP_DIR}/jboss-as/bin/run.sh"
perm="775"/>
+
+ <!-- install PicketLink in versions prior to 5.1.2 -->
+ <!-- later as we have EAP 5.1.2 build it has to be build in -->
+ <copy
file="${jboss.dist}/picketlink/picketlink-federation/picketlink-core-${version}.jar"
+ todir="${basedir}/target/${EAP_DIR}/jboss-as/common/lib"/>
+
+ <mkdir
dir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+
+ <!-- deploy test apps -->
+ <unzip
src="${localRepository}/org/picketlink/picketlink-fed-webapps-assembly/${pl-fed-webapps-assembly-version}/picketlink-fed-webapps-assembly-${pl-fed-webapps-assembly-version}.zip"
+
dest="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy">
+ <patternset id="pl-fed-webapps-assembly-files"
+
excludes="**/pdp.war,**/idp.war,**/picketlink-sts.war"/>
+ </unzip>
+
+ <copy
file="${basedir}/../picketlink-int-webapps/claims/target/claims.war"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink/"/>
+
+ <!-- copy webapps from distribution -->
+ <copy
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink">
+ <fileset
dir="${jboss.dist}/picketlink/picketlink-federation-webapps">
+ <include name="idp.war/**/*"/>
+ </fileset>
+ <fileset
dir="${jboss.dist}/picketlink/picketlink-federation-webapps">
+ <include name="pdp.war/**/*"/>
+ </fileset>
+ <fileset
dir="${jboss.dist}/picketlink/picketlink-federation-webapps">
+ <include name="picketlink-sts.war/**/*"/>
+ </fileset>
+ </copy>
+
+
+ </target>
+
+ <target name="init-eap5-cxf"
depends="init-eap5,download-cxf">
+ <!-- Unzip JBoss EAP CXF -->
+ <echo>Unzip JBOSS EAP CXF: ${CXF_INSTALLER_ZIP}</echo>
+ <unzip src="${DIST_DIR}/${CXF_INSTALLER_ZIP}"
+ dest="${basedir}/target/${EAP_DIR}/jboss-as"/>
+
+ <!-- Install CXF into EAP -->
+ <ant target="install-noauth"
+
antfile="${basedir}/target/${EAP_DIR}/jboss-as/jbossws-cxf-installer/build.xml"
+ dir="${basedir}/target/${EAP_DIR}/jboss-as/jbossws-cxf-installer"
+ />
+
+ </target>
+
+ <target name="copy-sts-props-eap5">
+ <copy
file="${basedir}/../picketlink-sts-tests/src/test/resources/sts-config.properties"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf/"/>
+ </target>
+
+
+ <target name="copy-trust-settings-eap5">
+ <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/domains/sts-jboss-beans.xml"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+ <copy
file="${basedir}/../picketlink-trust-tests/target/picketlink-wstest-tests.jar"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+ <copy
file="${basedir}/../picketlink-trust-tests/target/pojo-test.war"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+ <copy
file="${basedir}/../picketlink-trust-tests/target/binary-test.war"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/>
+ <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/props/sts-users.properties"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"/>
+ <copy
file="${basedir}/../picketlink-trust-tests/src/test/resources/props/sts-roles.properties"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"/>
+
+ <!-- copy
file="${localRepository}/org/picketlink/picketlink-trust-jbossws/${pl-trust-version}/picketlink-trust-jbossws-${pl-trust-version}.jar"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deploy/picketlink"/
-->
+
+ <!-- TODO: once JBPAPP-7325 is resolved this can be deleted -->
+ <copy
file="${basedir}/../common-dist/files/eap/5.1.1/war-deployers-jboss-beans.xml"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/deployers/jbossweb.deployer/META-INF"
+ overwrite="true"/>
+
+ <copy
file="${basedir}/../common-dist/files/eap/5.1.1/jboss-log4j.xml"
+
todir="${basedir}/target/${EAP_DIR}/jboss-as/server/${jboss.profile}/conf"
+ overwrite="true"/>
+
+ </target>
+
+ <target name="start-jboss" depends="stop-jboss">
+ <echo>Starting Local 8080</echo>
+ <exec executable="${jbossas}/bin/run.sh"
+ osfamily="unix" spawn="true"/>
+ <waitfor maxwait="1" maxwaitunit="minute"
+ checkevery="100" checkeveryunit="millisecond">
+ <http url="http://localhost:8080"/>
+ </waitfor>
+ <echo>:Local 8080 Started</echo>
+ </target>
+
+ <target name="start-eap5">
+ <antcall target="start-jboss">
+ <param name="jbossas"
value="${basedir}/target/${EAP_DIR}/jboss-as"/>
+ </antcall>
+ <!--
+ <echo>Starting Local 8080 </echo>
+ <exec executable="${basedir}/target/jboss-5.1.0.GA/bin/run.sh"
+ osfamily="unix" spawn="true" />
+ <waitfor maxwait="1" maxwaitunit="minute"
+ checkevery="100" checkeveryunit="millisecond">
+ <http url="http://localhost:8080" />
+ </waitfor>
+ <echo>:Local 8080 Started</echo>
+ -->
+ </target>
+
+
+ <target name="stop-jboss">
+ <echo>Stopping Local 8080</echo>
+ <echo>Going to Kill the JBoss Process</echo>
+ <exec executable="${basedir}/../common-dist/scripts/stopjboss.sh"
+ osfamily="unix"/>
+ </target>
+
+ <target name="stop-eap5">
+ <antcall target="stop-jboss"/>
+ </target>
+
+
</project>