Author: sohil.shah(a)jboss.com
Date: 2007-09-19 07:43:44 -0400 (Wed, 19 Sep 2007)
New Revision: 8358
Added:
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/META-INF/
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/META-INF/jboss-service.xml
Modified:
modules/identity/trunk/
modules/identity/trunk/build/
modules/identity/trunk/sso/
modules/identity/trunk/sso/build.xml
Log:
portal-cas integration packaging/deployment
Property changes on: modules/identity/trunk
___________________________________________________________________
Name: svn:ignore
- thirdparty
+ thirdparty
bin
Property changes on: modules/identity/trunk/build
___________________________________________________________________
Name: svn:ignore
+ local.properties
Property changes on: modules/identity/trunk/sso
___________________________________________________________________
Name: svn:ignore
+ output
Modified: modules/identity/trunk/sso/build.xml
===================================================================
--- modules/identity/trunk/sso/build.xml 2007-09-19 11:41:38 UTC (rev 8357)
+++ modules/identity/trunk/sso/build.xml 2007-09-19 11:43:44 UTC (rev 8358)
@@ -240,5 +240,54 @@
<target name="most" depends="_default:most"/>
<target name="help" depends="_default:help"/>
-
+
+ <!--
+ Deploying the CAS SSO Framework integration
+
+ These tasks deploy the JBoss Portal CAS integration as a separate service packaged as
+ portal-cas-sso.sar archive
+
+ It also deploys any custom configuration/dependencies into the CAS war file which is
the
+ CAS Authentication Server
+ -->
+ <target name="deploy-cas" depends="output">
+ <require file="${jboss.home}/server/${portal.deploy.dir}"/>
+ <delete
file="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/lib/casclient-lenient.jar"/>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/META-INF"
overwrite="true">
+ <fileset dir="${build.resources}/portal-cas-sso-sar/META-INF"
includes="jboss-service.xml"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/lib"
overwrite="true">
+ <fileset dir="${cas.cas.lib}" includes="casclient.jar"/>
+ <fileset dir="${build.lib}"
includes="portal-identity-sso-lib.jar"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/cas.war/WEB-INF/lib"
overwrite="true">
+ <fileset dir="${build.lib}"
includes="portal-identity-sso-lib.jar"/>
+ </copy>
+ <copy todir="${jboss.home}/server/${portal.deploy.dir}/cas.war/WEB-INF"
overwrite="true">
+ <fileset dir="${build.etc}/cas"
includes="deployerConfigContext.xml"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/jboss-portal.sar/portal-server.war/WEB-INF"
overwrite="true">
+ <fileset dir="${build.etc}/cas" includes="context.xml"/>
+ </copy>
+ </target>
+ <target name="deploy-cas-lenient" depends="output">
+ <require file="${jboss.home}/server/${portal.deploy.dir}"/>
+ <delete
file="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/lib/casclient.jar"/>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/META-INF"
overwrite="true">
+ <fileset dir="${build.resources}/portal-cas-sso-sar/META-INF"
includes="jboss-service.xml"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/portal-cas-sso.sar/lib"
overwrite="true">
+ <fileset dir="${cas.cas.lib}"
includes="casclient-lenient.jar"/>
+ <fileset dir="${build.lib}"
includes="portal-identity-sso-lib.jar"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/cas.war/WEB-INF/lib"
overwrite="true">
+ <fileset dir="${build.lib}"
includes="portal-identity-sso-lib.jar"/>
+ </copy>
+ <copy todir="${jboss.home}/server/${portal.deploy.dir}/cas.war/WEB-INF"
overwrite="true">
+ <fileset dir="${build.etc}/cas"
includes="deployerConfigContext.xml"/>
+ </copy>
+ <copy
todir="${jboss.home}/server/${portal.deploy.dir}/jboss-portal.sar/portal-server.war/WEB-INF"
overwrite="true">
+ <fileset dir="${build.etc}/cas" includes="context.xml"/>
+ </copy>
+ </target>
</project>
Added:
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/META-INF/jboss-service.xml
===================================================================
---
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/META-INF/jboss-service.xml
(rev 0)
+++
modules/identity/trunk/sso/src/resources/portal-cas-sso-sar/META-INF/jboss-service.xml 2007-09-19
11:43:44 UTC (rev 8358)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2006, Red Hat Middleware, LLC, and individual ~
+ ~ contributors as indicated by the @authors tag. See the ~
+ ~ copyright.txt in the distribution for a full listing of ~
+ ~ individual contributors. ~
+ ~ ~
+ ~ This is free software; you can redistribute it and/or modify it ~
+ ~ under the terms of the GNU Lesser General Public License as ~
+ ~ published by the Free Software Foundation; either version 2.1 of ~
+ ~ the License, or (at your option) any later version. ~
+ ~ ~
+ ~ This software is distributed in the hope that it will be useful, ~
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ~
+ ~ Lesser General Public License for more details. ~
+ ~ ~
+ ~ You should have received a copy of the GNU Lesser General Public ~
+ ~ License along with this software; if not, write to the Free ~
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ~
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<server>
+ <mbean
+ code="org.jboss.portal.identity.sso.cas.CASAuthenticationService"
+ name="portal:service=Module,type=CASAuthenticationService"
+ xmbean-dd=""
+ xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
+ <xmbean/>
+ <depends>portal:service=Module,type=IdentityServiceController</depends>
+ <attribute name="HavingRole"></attribute>
+ </mbean>
+</server>
\ No newline at end of file