Author: thomas.diesler(a)jboss.com
Date: 2006-12-22 07:49:37 -0500 (Fri, 22 Dec 2006)
New Revision: 1725
Added:
trunk/integration-jboss42/build.xml
trunk/integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/SecurityAssociationAdaptorFactoryImpl.java
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/services/
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/services/org.jboss.ws.extensions.security.SecurityAssociationAdaptorFactory
Modified:
trunk/integration-jboss42/
Log:
restructure build
Property changes on: trunk/integration-jboss42
___________________________________________________________________
Name: svn:ignore
-
output-eclipse
+
output-eclipse
output
Added: trunk/integration-jboss42/build.xml
===================================================================
--- trunk/integration-jboss42/build.xml 2006-12-22 12:49:33 UTC (rev 1724)
+++ trunk/integration-jboss42/build.xml 2006-12-22 12:49:37 UTC (rev 1725)
@@ -0,0 +1,157 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at
http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+
+<project default="main" basedir="../integration-jboss42"
name="JBossWS-JBoss42">
+
+ <import file="${basedir}/../build/import/build-setup.xml"/>
+ <import file="${basedir}/../build/import/build-thirdparty.xml"/>
+
+ <target name="jboss42-init" depends="prepare, thirdparty">
+ <path id="core.classpath">
+ <path refid="library.classpath"/>
+ <path refid="jboss.core.classpath"/>
+ <path path="${jbossws.dir}/output/lib/jbossws-client.jar"/>
+ </path>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compile -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Compile everything.
+ |
+ | This target should depend on other compile-* targets for each
+ | different type of compile that needs to be performed, short of
+ | documentation compiles.
+ -->
+
+ <target name="jboss42-compile"
depends="jboss42-compile-classes,jboss42-compile-etc" description="Compile
all source files."/>
+
+ <!-- Compile integration java sources -->
+ <target name="jboss42-compile-classes"
depends="jboss42-init">
+ <mkdir dir="${output.classes.dir}"/>
+ <ant antfile="${jbossws.dir}/build.xml" target="jbossws-jars"
dir="${jbossws.dir}" inheritall="false"/>
+ <javac srcdir="${integration.jboss42.dir}/src/main/java"
sourcepath="" destdir="${output.classes.dir}"
encoding="utf-8" debug="${javac.debug}"
verbose="${javac.verbose}"
+ deprecation="${javac.deprecation}"
failonerror="${javac.fail.onerror}">
+ <include name="org/jboss/ws/integration/jboss42/**"/>
+ <classpath path="${output.classes14.dir}"/>
+ <classpath refid="jboss42.integration.classpath"/>
+ <classpath refid="core.classpath"/>
+ </javac>
+ </target>
+
+ <!-- Compile etc files (manifests and such) -->
+ <target name="jboss42-compile-etc" depends="jboss42-init">
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Archives -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Build all jar files.
+ -->
+ <target name="jboss42-jars"
depends="jboss42-compile,jboss42-module-jars" description="Builds all jar
files.">
+ </target>
+
+ <!--
+ | Build all jar files.
+ -->
+ <target name="jboss42-module-jars">
+
+ <!-- Build jbossws-jboss42-integration.jar -->
+ <mkdir dir="${output.lib.dir}"/>
+ <jar jarfile="${output.lib.dir}/jbossws-jboss42-integration.jar"
manifest="${output.etc.dir}/default.mf">
+ <fileset dir="${output.classes.dir}">
+ <include name="org/jboss/ws/integration/*.class"/>
+ <include name="org/jboss/ws/integration/jboss42/**"/>
+ </fileset>
+ <metainf
dir="${integration.jboss42.dir}/src/resources/jbossws-jboss42-integration.jar/META-INF"/>
+ </jar>
+
+ <!-- Build jbossws42.sar -->
+ <jar jarfile="${output.lib.dir}/jbossws42.sar"
manifest="${output.etc.dir}/default.mf">
+ <fileset dir="${output.lib.dir}">
+ <include name="jbossws-jboss42-integration.jar"/>
+ <include name="jbossws-core.jar"/>
+ <include name="jboss-jaxws.jar"/>
+ <include name="jbossws-context.war"/>
+ </fileset>
+ <fileset dir="${thirdparty.dir}">
+ <include name="jaxb-api.jar"/>
+ <include name="jaxb-impl.jar"/>
+ <include name="policy-1.0.jar"/>
+ <include name="sjsxp.jar"/>
+ <include name="stax-api-1.0.jar"/>
+ <include name="wstx-lgpl-2.9.3.jar"/>
+ <include name="xmlsec.jar"/>
+ </fileset>
+ <fileset dir="${integration.jboss42.dir}/src/resources">
+ <include name="jbossws.beans/META-INF/jboss-beans.xml"/>
+ </fileset>
+ <metainf dir="${jbossws.resources.dir}/jbossws.sar/META-INF">
+ <include name="standard-jaxrpc-client-config.xml"/>
+ <include name="standard-jaxrpc-endpoint-config.xml"/>
+ <include name="standard-jaxws-client-config.xml"/>
+ <include name="standard-jaxws-endpoint-config.xml"/>
+ </metainf>
+ <metainf
dir="${integration.jboss42.dir}/src/resources/jbossws.sar/META-INF">
+ <include name="jboss-service.xml"/>
+ </metainf>
+ </jar>
+
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Deployment -->
+ <!-- ================================================================== -->
+
+ <!-- Deploy jbossws to the jboss42 -->
+ <target name="deploy-jboss42" depends="jboss42-jars"
description="Deploy jbossws">
+ <copy todir="${jboss42.home}/client"
file="${thirdparty.dir}/jboss-xml-binding.jar" overwrite="true"/>
+ <copy todir="${jboss42.home}/lib"
file="${thirdparty.dir}/jboss-xml-binding.jar" overwrite="true"/>
+ <copy todir="${jboss42.home}/client" overwrite="true">
+ <fileset dir="${output.lib.dir}">
+ <include name="jboss-jaxrpc.jar"/>
+ <include name="jboss-saaj.jar"/>
+ <include name="jbossws-client.jar"/>
+ </fileset>
+ </copy>
+ <copy todir="${jboss42.home}/server/${jboss.server.instance}/lib"
overwrite="true">
+ <fileset dir="${output.lib.dir}">
+ <include name="jboss-jaxrpc.jar"/>
+ <include name="jboss-saaj.jar"/>
+ </fileset>
+ </copy>
+ <delete
dir="${jboss42.home}/server/${jboss.server.instance}/deploy/jbossws.sar"/>
+ <mkdir
dir="${jboss42.home}/server/${jboss.server.instance}/deploy/jbossws.sar"/>
+ <unjar
dest="${jboss42.home}/server/${jboss.server.instance}/deploy/jbossws.sar"
src="${output.lib.dir}/jbossws42.sar"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Miscellaneous -->
+ <!-- ================================================================== -->
+
+ <target name="clean" depends="prepare" description="Cleans
up most generated files.">
+ <delete dir="${output.dir}"/>
+ </target>
+
+ <target name="main" description="Executes the default target
(most)." depends="most"/>
+
+ <target name="most" description="Builds almost everything."
depends="jboss42-jars"/>
+
+ <target name="all" description="Create a distribution zip file"
depends="main">
+ </target>
+
+</project>
\ No newline at end of file
Property changes on: trunk/integration-jboss42/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/SecurityAssociationAdaptorFactoryImpl.java
===================================================================
---
trunk/integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/SecurityAssociationAdaptorFactoryImpl.java 2006-12-22
12:49:33 UTC (rev 1724)
+++
trunk/integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/SecurityAssociationAdaptorFactoryImpl.java 2006-12-22
12:49:37 UTC (rev 1725)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., 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.
+ */
+package org.jboss.ws.integration.jboss42;
+
+// $Id$
+
+import java.security.Principal;
+
+import org.jboss.security.SecurityAssociation;
+import org.jboss.ws.extensions.security.SecurityAssociationAdaptor;
+import org.jboss.ws.extensions.security.SecurityAssociationAdaptorFactory;
+
+/**
+ * A JBoss specific SecurityAdaptorFactory
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 05-May-2006
+ */
+public class SecurityAssociationAdaptorFactoryImpl implements
SecurityAssociationAdaptorFactory
+{
+ public SecurityAssociationAdaptor getSecurityAssociationAdaptor()
+ {
+ return new SecurityAccociationAdaptorImpl();
+ }
+
+ public class SecurityAccociationAdaptorImpl implements SecurityAssociationAdaptor
+ {
+ public void setPrincipal(Principal pricipal)
+ {
+ SecurityAssociation.setPrincipal(pricipal);
+ }
+
+ public void setCredential(Object credential)
+ {
+ SecurityAssociation.setCredential(credential);
+ }
+ }
+}
Property changes on:
trunk/integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/SecurityAssociationAdaptorFactoryImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/services/org.jboss.ws.extensions.security.SecurityAssociationAdaptorFactory
===================================================================
---
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/services/org.jboss.ws.extensions.security.SecurityAssociationAdaptorFactory 2006-12-22
12:49:33 UTC (rev 1724)
+++
trunk/integration-jboss42/src/resources/jbossws-jboss42-integration.jar/META-INF/services/org.jboss.ws.extensions.security.SecurityAssociationAdaptorFactory 2006-12-22
12:49:37 UTC (rev 1725)
@@ -0,0 +1 @@
+org.jboss.ws.integration.jboss42.SecurityAssociationAdaptorFactoryImpl
\ No newline at end of file