Author: mwringe
Date: 2008-11-06 14:05:26 -0500 (Thu, 06 Nov 2008)
New Revision: 12257
Added:
modules/deployer/
modules/deployer/trunk/
modules/deployer/trunk/.classpath
modules/deployer/trunk/.project
modules/deployer/trunk/.settings/
modules/deployer/trunk/.settings/org.eclipse.jdt.core.prefs
modules/deployer/trunk/.settings/org.maven.ide.eclipse.prefs
modules/deployer/trunk/bin/
modules/deployer/trunk/bin/org/
modules/deployer/trunk/bin/org/jboss/
modules/deployer/trunk/bin/org/jboss/portal/
modules/deployer/trunk/bin/org/jboss/portal/deployer/
modules/deployer/trunk/bin/org/jboss/portal/deployer/PortalDeployerPre.class
modules/deployer/trunk/build/
modules/deployer/trunk/build/.cvsignore
modules/deployer/trunk/build/.project
modules/deployer/trunk/build/pom.xml
modules/deployer/trunk/deployer/
modules/deployer/trunk/deployer/.classpath
modules/deployer/trunk/deployer/.cvsignore
modules/deployer/trunk/deployer/.project
modules/deployer/trunk/deployer/pom.xml
modules/deployer/trunk/deployer/src/
modules/deployer/trunk/deployer/src/assemble/
modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer-components.xml
modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer.xml
modules/deployer/trunk/deployer/src/main/
modules/deployer/trunk/deployer/src/main/deployer/
modules/deployer/trunk/deployer/src/main/deployer/META-INF/
modules/deployer/trunk/deployer/src/main/deployer/META-INF/deployer-jboss-beans.xml
modules/deployer/trunk/deployer/src/main/deployer/dtd/
modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portal-app_2_6.dtd
modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portlet_2_6.dtd
modules/deployer/trunk/deployer/src/main/java/
modules/deployer/trunk/deployer/src/main/java/org/
modules/deployer/trunk/deployer/src/main/java/org/jboss/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/Deployment.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/PortalEntityResolver.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/parsing/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/LibDirectoryStructure.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalPostWebDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/WebDeploymentListener.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModule.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModuleMBean.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletWarDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.java
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/structure/
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/structure/PortletStructure.java
modules/deployer/trunk/deployer/src/main/resources/
modules/deployer/trunk/deployer/src/test/
modules/deployer/trunk/deployer/target/
modules/deployer/trunk/deployer/target/archive-tmp/
modules/deployer/trunk/deployer/target/classes/
modules/deployer/trunk/deployer/target/classes/org/
modules/deployer/trunk/deployer/target/classes/org/jboss/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/Deployment.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/PortalEntityResolver.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/portlet/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/portlet/parsing/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/LibDirectoryStructure.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/PortalPostWebDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/WebDeploymentListener.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModule.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModuleMBean.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletWarDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.class
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/structure/
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/structure/PortletStructure.class
modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT-sources.jar
modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/.deployer-jboss-beans.xml.swp
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/deployer-jboss-beans.xml
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/deployer-deployer-trunk-SNAPSHOT.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portal-app_2_6.dtd
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portlet_2_6.dtd
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/metadata-metadata-trunk-SNAPSHOT.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-lib.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-portal-lib.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-portlet-lib.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-web-lib.jar
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portlet-mc-2.1.0-SNAPSHOT.jar
modules/deployer/trunk/pom.xml
Log:
Initial deployer module creation
Added: modules/deployer/trunk/.classpath
===================================================================
--- modules/deployer/trunk/.classpath (rev 0)
+++ modules/deployer/trunk/.classpath 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target-eclipse/classes"
path="deployer/src/main/java"/>
+ <classpathentry excluding="**" kind="src"
output="deployer/src/main/resources"
path="deployer/src/main/resources"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target-eclipse/classes"/>
+</classpath>
Added: modules/deployer/trunk/.project
===================================================================
--- modules/deployer/trunk/.project (rev 0)
+++ modules/deployer/trunk/.project 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>module-deployer</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: modules/deployer/trunk/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- modules/deployer/trunk/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++ modules/deployer/trunk/.settings/org.eclipse.jdt.core.prefs 2008-11-06 19:05:26 UTC
(rev 12257)
@@ -0,0 +1,13 @@
+#Mon Sep 29 16:30:59 EDT 2008
+eclipse.preferences.version=1
+instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: modules/deployer/trunk/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- modules/deployer/trunk/.settings/org.maven.ide.eclipse.prefs
(rev 0)
+++ modules/deployer/trunk/.settings/org.maven.ide.eclipse.prefs 2008-11-06 19:05:26 UTC
(rev 12257)
@@ -0,0 +1,10 @@
+#Mon Sep 29 16:00:35 EDT 2008
+activeProfiles=
+eclipse.preferences.version=1
+filterResources=false
+includeModules=true
+instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+useMavenFolders=false
+version=1
Added: modules/deployer/trunk/bin/org/jboss/portal/deployer/PortalDeployerPre.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/bin/org/jboss/portal/deployer/PortalDeployerPre.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/deployer/trunk/build/.cvsignore
===================================================================
--- modules/deployer/trunk/build/.cvsignore (rev 0)
+++ modules/deployer/trunk/build/.cvsignore 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,3 @@
+build.log
+local.properties
+build.iml
Property changes on: modules/deployer/trunk/build/.cvsignore
___________________________________________________________________
Name: svn:executable
+
Added: modules/deployer/trunk/build/.project
===================================================================
--- modules/deployer/trunk/build/.project (rev 0)
+++ modules/deployer/trunk/build/.project 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>build</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Property changes on: modules/deployer/trunk/build/.project
___________________________________________________________________
Name: svn:executable
+
Added: modules/deployer/trunk/build/pom.xml
===================================================================
--- modules/deployer/trunk/build/pom.xml (rev 0)
+++ modules/deployer/trunk/build/pom.xml 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,110 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal</groupId>
+ <artifactId>jboss-portal-parent</artifactId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.deployer</groupId>
+ <artifactId>module-parent</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Portal Deployer</name>
+ <version>trunk-SNAPSHOT</version>
+ <
url>http://labs.jboss.com/jbossportal</url>
+
+ <properties>
+ <version.assembly>2.2-beta-2</version.assembly>
+ <version.jboss-deployers>2.0.0.CR1</version.jboss-deployers>
+ <version.jboss-metadata>1.0.0.CR1</version.jboss-metadata>
+
<version.jboss.portal.metadata>trunk-SNAPSHOT</version.jboss.portal.metadata>
+ <version.jboss.portal.web>1.2.0-SNAPSHOT</version.jboss.portal.web>
+
<version.jboss.portal.portlet>2.1.0-SNAPSHOT</version.jboss.portal.portlet>
+ <version.jboss-as>5.0.0.CR2</version.jboss-as>
+ <version.saxon>6.5.3</version.saxon>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>repository.jboss.org</id>
+ <name>JBoss Repository</name>
+ <layout>default</layout>
+ <
url>http://repository.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshots Repository</name>
+ <layout>default</layout>
+ <
url>http://snapshots.jboss.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-spi</artifactId>
+ <version>${version.jboss-deployers}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-vfs</artifactId>
+ <version>${version.jboss-deployers}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata</artifactId>
+ <version>${version.jboss-metadata}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-server</artifactId>
+ <version>${version.jboss-as}</version>
+ </dependency>
+ <dependency>
+ <groupId>saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <version>${version.saxon}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>metadata-metadata</artifactId>
+ <version>${version.jboss.portal.metadata}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.web</groupId>
+ <artifactId>web-web</artifactId>
+ <version>${version.jboss.portal.web}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-portlet</artifactId>
+ <version>${version.jboss.portal.portlet}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-mc</artifactId>
+ <version>${version.jboss.portal.portlet}</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+</project>
Added: modules/deployer/trunk/deployer/.classpath
===================================================================
--- modules/deployer/trunk/deployer/.classpath (rev 0)
+++ modules/deployer/trunk/deployer/.classpath 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib"
path="/thirdparty/apache-ant/lib/ant.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/oswego-concurrent/lib/concurrent.jar"/>
+ <classpathentry kind="lib" path="/tools/lib/xalan.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/sun-jaf/lib/activation.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/jbossas/core-libs/lib/jboss-common.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/jbossas/core-libs/lib/jboss-j2ee.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/jbossas/core-libs/lib/jboss-jmx.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/jbossas/core-libs/lib/jboss-system.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/junit/lib/junit.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/apache-log4j/lib/log4j.jar"/>
+ <classpathentry kind="lib"
path="/tools/lib/cargo-core-uberjar-0.8.jar"/>
+ <classpathentry kind="lib" path="/tools/lib/ant-junit.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/apache-httpclient/lib/commons-httpclient.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/jboss/backport-concurrent/lib/jboss-backport-concurrent.jar"/>
+ <classpathentry kind="lib"
path="/thirdparty/sun-servlet/lib/servlet-api.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: modules/deployer/trunk/deployer/.classpath
___________________________________________________________________
Name: svn:executable
+
Added: modules/deployer/trunk/deployer/.cvsignore
===================================================================
--- modules/deployer/trunk/deployer/.cvsignore (rev 0)
+++ modules/deployer/trunk/deployer/.cvsignore 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,2 @@
+output
+bin
Property changes on: modules/deployer/trunk/deployer/.cvsignore
___________________________________________________________________
Name: svn:executable
+
Added: modules/deployer/trunk/deployer/.project
===================================================================
--- modules/deployer/trunk/deployer/.project (rev 0)
+++ modules/deployer/trunk/deployer/.project 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>common</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: modules/deployer/trunk/deployer/.project
___________________________________________________________________
Name: svn:executable
+
Added: modules/deployer/trunk/deployer/pom.xml
===================================================================
--- modules/deployer/trunk/deployer/pom.xml (rev 0)
+++ modules/deployer/trunk/deployer/pom.xml 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,98 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.jboss.portal.deployer</groupId>
+ <artifactId>module-parent</artifactId>
+ <version>trunk-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>deployer-deployer</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Portal Modules Deployer</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-spi</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.deployers</groupId>
+ <artifactId>jboss-deployers-vfs</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.metadata</groupId>
+ <artifactId>jboss-metadata</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-server</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.metadata</groupId>
+ <artifactId>metadata-metadata</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.web</groupId>
+ <artifactId>web-web</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-portlet</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.portal.portlet</groupId>
+ <artifactId>portlet-mc</artifactId>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <encoding>iso-8859-1</encoding>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>${version.assembly}</version>
+ <configuration>
+ <finalName>jboss-portal.deployer</finalName>
+ <descriptors>
+
<descriptor>src/assemble/jboss-portal-deployer.xml</descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+
+
+ </plugins>
+
+
+ </build>
+
+ <properties/>
+</project>
Added: modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer-components.xml
===================================================================
--- modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer-components.xml
(rev 0)
+++
modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer-components.xml 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,13 @@
+<component>
+
+ <fileSets>
+
+ <fileSet>
+ <directory>src/main/deployer</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+
+ </fileSets>
+
+</component>
+
Added: modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer.xml
===================================================================
--- modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer.xml
(rev 0)
+++ modules/deployer/trunk/deployer/src/assemble/jboss-portal-deployer.xml 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,39 @@
+<assembly>
+ <id>jboss50</id>
+ <formats>
+ <format>dir</format>
+ </formats>
+ <baseDirectory>jboss-portal.deployer</baseDirectory>
+
+ <componentDescriptors>
+
<componentDescriptor>src/assemble/jboss-portal-deployer-components.xml</componentDescriptor>
+ </componentDescriptors>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/</outputDirectory>
+ <useProjectArtifact>true</useProjectArtifact>
+ <includes>
+ <include>org.jboss.portal.deployer:deployer-deployer</include>
+ <include>org.jboss.portal.metadata:metadata-metadata</include>
+ <include>org.jboss.portal.common:common-common</include>
+ <include>org.jboss.portal.common:common-portal</include>
+ <include>org.jboss.portal.web:web-web</include>
+ <include>org.jboss.portal.portlet:portlet-portlet</include>
+ <include>org.jboss.portal.portlet:portlet-mc</include>
+
+ <include>javax.ccpp:ccpp</include>
+ <include>javax.portlet:portlet-api</include>
+
+ </includes>
+ </dependencySet>
+ <dependencySet>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include></include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+
+</assembly>
+
Added:
modules/deployer/trunk/deployer/src/main/deployer/META-INF/deployer-jboss-beans.xml
===================================================================
--- modules/deployer/trunk/deployer/src/main/deployer/META-INF/deployer-jboss-beans.xml
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/deployer/META-INF/deployer-jboss-beans.xml 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_2_0.xsd"
+ xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!--
+
*********************************************************************************************************************
+ Portal deployment
+
+
*********************************************************************************************************************
-->
+
+ <!-- portal custom dtd's -->
+ <bean name="PortalEntityResolver"
class="org.jboss.portal.deployer.PortalEntityResolver">
+ <property name="DTDMapping">
+ <map class="java.util.Properties"
keyClass="java.lang.String" valueClass="java.lang.String">
+ <entry>
+ <key>-//JBoss Portal//DTD JBoss Portlet 2.6//EN</key>
+ <value>dtd/jboss-portlet_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD JBoss Portal Application
2.6//EN</key>
+ <value>dtd/jboss-portal-app_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD Portal Object 2.6//EN</key>
+ <value>dtd/portal-object_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD Portlet Instances 2.6//EN</key>
+ <value>dtd/portlet-instances_2_6.dtd</value>
+ </entry>
+ </map>
+ </property>
+ </bean>
+
+
+<!-- initial fake deployer only used to get JBoss AS 5 working with Portal 2.7 -->
+ <bean name="PortalPostWebDeployer"
class="org.jboss.portal.deployer.portal.PortalPostWebDeployer">
+ <property name="warDeployerOrder"><inject
bean="WarDeployer" property="relativeOrder"/></property>
+ <property name="warDeployer"><inject
bean="WarDeployer"/></property>
+ <depends>WarDeployer</depends>
+ </bean>
+<!-- end fake deployer -->
+
+
+ <!-- Portal Deployer -->
+ <bean name="LibDirectoryStructure"
class="org.jboss.portal.deployer.portal.LibDirectoryStructure">
+ </bean>
+
+
+ <!-- Portlet Deployer -->
+<!-- <bean name="PortletStructure"
class="org.jboss.portal.deployer.portlet.structure.PortletStructure">
+ </bean> -->
+
+ <bean name="PortalAppParsingDeployer"
class="org.jboss.portal.deployer.portlet.parsing.PortalAppParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+ <bean name="PortletParsingDeployer"
class="org.jboss.portal.deployer.portlet.parsing.PortletParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+ <bean name="JBossPortletParsingDeployer"
class="org.jboss.portal.deployer.jboss.portlet.parsing.JBossPortletParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+<!-- <bean name="PortletWarDeployer"
class="org.jboss.portal.deployer.portlet.PortletWarDeployer"/> -->
+
+ <bean name="PortletDeployer"
class="org.jboss.portal.deployer.portlet.PortletDeployer">
+ <property name="warDeployerOrder"><inject
bean="WarDeployer" property="relativeOrder"/></property>
+ </bean>
+
+</deployment>
Added: modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portal-app_2_6.dtd
===================================================================
--- modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portal-app_2_6.dtd
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portal-app_2_6.dtd 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,42 @@
+<?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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!--
+<!DOCTYPE jboss-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Web Application 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-app_2_6.dtd">
+-->
+
+<!ELEMENT jboss-portal-app (app-name?)>
+
+<!--
+When a web application is deployed, the context path under wich it is deployed
+is taken as application name. The application name value in this descriptor is
+used to override it. When a component references a references a portlet, it needs to
+reference the application too and if the portlet application war file is renammed
+the reference is not valid anymore. Therefore this tag is used to have an application
+name that does not depend upon the context path under which the application is deployed.
+-->
+<!ELEMENT app-name (#PCDATA)>
Added: modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portlet_2_6.dtd
===================================================================
--- modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portlet_2_6.dtd
(rev 0)
+++ modules/deployer/trunk/deployer/src/main/deployer/dtd/jboss-portlet_2_6.dtd 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,290 @@
+<?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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!-- The additional configuration elements of the JBoss portlet container.
+
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
+-->
+
+<!--
+The remotable element is used to configure the default behavior of the portlets with
+respect to WSRP exposure.
+
+For each portlet defined in portlet.xml, it is possible to configure specific
+settings of the portlet container.
+
+It is also possible to inject services in the portlet context of the application
+using the service elements.
+-->
+<!ELEMENT portlet-app (app-id?, remotable?,portlet*,service*)>
+
+<!--
+The portlet application id that will be used by the portlet container instead of the
context path.
+-->
+<!ELEMENT app-id (#PCDATA)>
+
+<!--
+Additional configuration for a portlet.
+
+The portlet-name defines the name of the portlet. It must match a portlet defined
already
+in portlet.xml of the same web application.
+
+The remotable element configures the portlet exposure to WSRP. If no value is present
+then the value considered is either the value defined globally at the portlet
+application level or false.
+
+The trans-attribute value specifies the behavior of the portlet when it is invoked at
+runtime with respect to the transactionnal context. According to how the portlet is
+invoked a transaction may exist or not before the portlet is invoked. Usually in the
+local context the portal transaction could be present. By default the value considered
is
+ NotSupported which means that the portal transaction will be suspended for the duration
+ of the portlet invocation.
+
+Example:
+
+<portlet>
+ <portlet-name>MyPortlet</portlet-name>
+ <remotable>true</remotable>
+ <trans-attribute>Required</trans-attribute>
+</portlet>
+
+-->
+<!ELEMENT portlet (portlet-name,remotable?,ajax?,session-config?,transaction?,
+ header-content?,portlet-info?)>
+
+<!--
+The portlet name.
+-->
+<!ELEMENT portlet-name (#PCDATA)>
+
+<!--
+The remotable value is used for WSRP exposure. The accepted values are the
+litterals true of false.
+-->
+<!ELEMENT remotable (#PCDATA)>
+
+<!--
+The ajax tag allows to configure the ajax capabilities of the portlet. If
+the portlet is tagged as partial-refresh then the portal may use partial page
+refreshing and render only that portlet. If the portlet partial-refresh value
+is false, then the portal will perform a full page refresh when the portlet is
refreshed.
+-->
+<!ELEMENT ajax (partial-refresh)>
+
+<!--
+The authorized values for the partial-refresh element are true or false.
+-->
+<!ELEMENT partial-refresh (#PCDATA)>
+
+<!--
+Additional portlet information
+-->
+<!ELEMENT portlet-info (icon?)>
+
+<!--
+Defines icons for the portlet, they can be used by the administration portlet
+to represent a particular portlet.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+
+<!--
+A small icon image, usually 16x16, gif, jpg and png are usually supported.
+An absolute URL or a URL starting with a '/' in the context of the webapp are
accepted:
+eg.
http://www.example.com/images/smallIcon.png
+eg. /images/smallIcon.png
+-->
+<!ELEMENT small-icon (#PCDATA)>
+
+<!--
+A large icon image, usually 32x32, gif, jpg and png are usually supported.
+An absolute URL or a URL starting with a '/' in the context of the webapp are
accepted:
+eg.
http://www.example.com/images/smallIcon.png
+eg. /images/smallIcon.png
+-->
+<!ELEMENT large-icon (#PCDATA)>
+
+<!--
+This element configure the portlet session of the portlet.
+
+The distributed element instructs the container to distribute the session attributes
+using the portal session replication. It applies only to local portlets are not to
+remote portlets. The default value is false.
+
+Example:
+
+<session-config>
+ <distributed>true</distributed>
+</session-config>
+
+-->
+<!ELEMENT session-config (distributed)>
+
+<!--
+The authorized values for the distributed element are true or false.
+-->
+<!ELEMENT distributed (#PCDATA)>
+
+<!--
+Defines how the portlet behaves with the transactionnal context. The default value
+is Never.
+
+Example:
+
+<transaction>
+ <trans-attribute>Required</transaction>
+<transaction>
+-->
+<!ELEMENT transaction (trans-attribute)>
+
+<!--
+The trans-attribute value defines the transactionnal behavior. The accepted values
+are Required, Mandatory, Never, Supports, NotSupported and RequiresNew.
+-->
+<!ELEMENT trans-attribute (#PCDATA)>
+
+<!--
+Specify content which should be included in the portal aggregated page when the portlet
+is present on that page. This setting only applies when the portlet is used in the local
mode.
+-->
+<!ELEMENT header-content (link|script|meta)*>
+
+<!--
+Creates a header markup element for linked resources,
+see
http://www.w3.org/TR/html401/struct/links.html#h-12.3
+
+At runtime the href attribute value will be prefixed with the context path
+of the web application.
+
+Example:
+
+<link rel="stylesheet" type="text/css" href="/style.css"
media="screen"/>
+
+will produce at runtime the following markup
+
+<link rel="stylesheet" type="text/css"
href="/my-web-application/style.css" media="screen"/>
+-->
+<!ATTLIST link
+ href CDATA #IMPLIED
+ rel CDATA #IMPLIED
+ type CDATA #IMPLIED
+ media CDATA #IMPLIED
+ title CDATA #IMPLIED>
+
+<!--
+No content is allowed inside an link element.
+-->
+<!ELEMENT link EMPTY>
+
+<!--
+Creates a header markup for scripting,
+see
http://www.w3.org/TR/html401/interact/scripts.html
+
+At runtime the src attribute value will be prefixed with the context path
+of the web application.
+
+Example 1:
+
+<script type="text/javascript"
src="/myscript.js"></script>
+
+will produce at runtime the following markup
+
+<script type="text/javascript"
src="/my-web-application/myscript.js"></script>
+
+Example 2:
+
+<script type="text/javascript">
+ function hello() {
+ alert('Hello');
+ }
+</script>
+-->
+<!ATTLIST script
+ src CDATA #IMPLIED
+ type CDATA #IMPLIED
+ language CDATA #IMPLIED>
+
+<!--
+The script header element can contain inline script definitions.
+-->
+<!ELEMENT script (#PCDATA)>
+
+<!--
+Creates a header markup for adding meta data to a page,
+see
http://www.w3.org/TR/html401/struct/global.html#h-7.4.4
+
+Example:
+
+<meta name="keywords" content="jboss, portal, redhat"/>
+-->
+<!ATTLIST meta
+ name CDATA #REQUIRED
+ content CDATA #REQUIRED>
+
+<!--
+No content is allowed for meta element.
+-->
+<!ELEMENT meta EMPTY>
+
+<!--
+Declare a service that will be injected by the portlet container as an
+attribute of the portlet context.
+
+Example:
+
+<service>
+ <service-name>UserModule</service-name>
+ <service-class>org.jboss.portal.identity.UserModule</service-class>
+ <service-ref>:service=Module,type=User</service-ref>
+</service>
+
+In the portlet it is then possible to use it by doing a lookup on the service
+name, for example in the init() lifecycle method :
+
+public void init()
+{
+ UserModule userModule =
(UserModule)getPortletContext().getAttribute("UserModule");
+}
+
+-->
+<!ELEMENT service (service-name,service-class,service-ref)>
+
+<!--
+The service name that will be used to bind the service as a portlet context attribute.
+-->
+<!ELEMENT service-name (#PCDATA)>
+
+<!--
+The full qualified name of the interface that the service implements.
+-->
+<!ELEMENT service-class (#PCDATA)>
+
+<!--
+The reference to the service. In the JMX Microkernel environment it consist of the JMX
+name of the service MBean. For an MBean reference if the domain is left out, then the
+current domain of the portal will be used.
+-->
+<!ELEMENT service-ref (#PCDATA)>
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/Deployment.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/Deployment.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/Deployment.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,139 @@
+/******************************************************************************
+ * 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. *
+ ******************************************************************************/
+package org.jboss.portal.deployer;
+
+import org.jboss.deployment.DeploymentException;
+import org.jboss.logging.Logger;
+import org.jboss.mx.loading.RepositoryClassLoader;
+
+import javax.management.MBeanServer;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 8784 $
+ */
+public class Deployment
+{
+
+ /** The logger. */
+ protected final Logger log = Logger.getLogger(getClass());
+
+ /** The deployment URL. */
+ protected final URL url;
+
+ /** The optional web app abstraction. */
+ // protected final PortalWebApp pwa;
+
+ /** The JMX server. */
+ protected final MBeanServer mbeanServer;
+
+ /**
+ * Create a deployment that is not nested within a web application archive.
+ *
+ * @param url the deployment URL
+ * @param mbeanServer the JMX mbean server
+ */
+ public Deployment(URL url, MBeanServer mbeanServer)
+ {
+ this.url = url;
+// this.pwa = null;
+ this.mbeanServer = mbeanServer;
+ }
+
+ /**
+ * Create a deployment nested within a web application archive
+ *
+ * @param url the deployment URL
+ * @param pwa the web application
+ * @param mbeanServer the JMX mbean server
+ */
+// public Deployment(URL url, PortalWebApp pwa, MBeanServer mbeanServer)
+// {
+// this.url = url;
+// this.pwa = pwa;
+// this.mbeanServer = mbeanServer;
+// }
+
+ public void create() throws DeploymentException
+ {
+ }
+
+ public void start() throws DeploymentException
+ {
+ }
+
+ public void stop() throws DeploymentException
+ {
+ }
+
+ public void destroy() throws DeploymentException
+ {
+ }
+
+ /** Find the URL of the WEB-INF directory in the war file. */
+ public static URL findWEBINFURL(URL warURL) throws DeploymentException
+ {
+ try
+ {
+ if ("file".equals(warURL.getProtocol()))
+ {
+ File f = new File(warURL.getFile());
+ f = new File(f, "WEB-INF");
+ // this dir doesn't exist on exploded deployments and would miss the
trailing slash then [JBPORTAL-1648]
+ if (f.exists())
+ {
+ return f.toURL();
+ }
+ else
+ {
+ return new URL(warURL + "WEB-INF/");
+ }
+ }
+ else
+ {
+ throw new DeploymentException("Deployment URL not found " +
warURL);
+ }
+ }
+ catch (MalformedURLException e)
+ {
+ throw new DeploymentException(e);
+ }
+ }
+
+ /** Find the repository classloader reltated to the argument classloader. */
+ public static RepositoryClassLoader findRepositoryClassLoader(ClassLoader loader)
throws DeploymentException
+ {
+ while (loader != null)
+ {
+ if (loader instanceof RepositoryClassLoader)
+ {
+ return (RepositoryClassLoader)loader;
+ }
+ loader = loader.getParent();
+ }
+ throw new DeploymentException("No repository class loader found");
+ }
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/PortalEntityResolver.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/PortalEntityResolver.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/PortalEntityResolver.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,83 @@
+/******************************************************************************
+ * 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. *
+ ******************************************************************************/
+package org.jboss.portal.deployer;
+
+import org.w3c.dom.Element;
+import org.xml.sax.InputSource;
+import org.xml.sax.SAXException;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Properties;
+
+public class PortalEntityResolver implements org.xml.sax.EntityResolver
+{
+
+ /** . */
+ private Properties dtdMapping;
+
+ public Properties getDTDMapping()
+ {
+ return dtdMapping;
+ }
+
+ public void setDTDMapping(Properties dtdMapping)
+ {
+ this.dtdMapping = dtdMapping;
+ }
+
+ public InputSource resolveEntity(String publicId, String systemId) throws
SAXException, IOException
+ {
+
+ // Let the parser open a regular URI connection to systemId
+ if (publicId == null)
+ {
+ return null;
+ }
+
+ //
+ String dtdResourceName = (String)dtdMapping.get(publicId);
+ if (dtdResourceName != null)
+ {
+
+ //log.debug("Looking up resource " + dtdResourceName + " for dtd
publicId=" + publicId + ", systemId=" + systemId);
+ InputStream dtdStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(dtdResourceName);
+ if (dtdStream != null)
+ {
+ return new InputSource(dtdStream);
+ }
+ else
+ {
+ //log.debug("No resource found for dtd publicId=" + publicId +
", systemId=" + systemId);
+ }
+ }
+ else
+ {
+ //log.debug("No resource name found for dtd publicId=" + publicId +
", systemId=" + systemId);
+ }
+
+ //
+ return null;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,61 @@
+package org.jboss.portal.deployer.jboss.portlet.parsing;
+
+import java.io.InputStream;
+
+import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
+import org.jboss.deployers.vfs.spi.deployer.SecurityActions;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.portal.deployer.PortalEntityResolver;
+import org.jboss.portal.metadata.jboss.portlet.JBossApplicationMetaData;
+import org.jboss.portal.metamodel.jboss.portlet.JBossApplicationMetaDataFactory;
+//import org.jboss.portal.metadata.jboss.portlet.JBossApplicationMetaData;
+//import org.jboss.portal.metamodel.jboss.portlet.JBossApplicationMetaDataFactory;
+import org.jboss.util.xml.JBossEntityResolver;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory;
+import org.xml.sax.InputSource;
+
+public class JBossPortletParsingDeployer extends
SchemaResolverDeployer<JBossApplicationMetaData>
+{
+
+ private PortalEntityResolver entityResolver;
+
+ public void setEntityResolver (PortalEntityResolver entityResolver)
+ {
+ this.entityResolver = entityResolver;
+ }
+
+ public JBossPortletParsingDeployer()
+ {
+ super(JBossApplicationMetaData.class);
+ setName("jboss-portlet.xml");
+ }
+
+ public void setXmlPath(String xmlPath)
+ {
+ this.setName(xmlPath);
+ }
+
+ public String getXmlPath()
+ {
+ return getName();
+ }
+
+ protected JBossApplicationMetaData parse(VFSDeploymentUnit unit, VirtualFile file,
JBossApplicationMetaData root) throws Exception
+ {
+ InputStream stream = file.openStream();
+
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ unmarshaller.setEntityResolver(this.entityResolver);
+
+ JBossApplicationMetaData jbossPortletMetaData =
(JBossApplicationMetaData)unmarshaller.unmarshal(stream, new
JBossApplicationMetaDataFactory(), root );
+
+ System.out.println("JBOSSPORTLETS : " + jbossPortletMetaData.getPortlets());
+
+ return jbossPortletMetaData;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/LibDirectoryStructure.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/LibDirectoryStructure.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/LibDirectoryStructure.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,63 @@
+package org.jboss.portal.deployer.portal;
+
+import java.util.List;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer;
+import org.jboss.deployers.vfs.spi.structure.StructureContext;
+import org.jboss.deployers.vfs.spi.structure.VFSStructuralDeployers;
+import org.jboss.virtual.VirtualFile;
+
+public class LibDirectoryStructure extends AbstractVFSStructureDeployer
+{
+
+ public LibDirectoryStructure()
+ {
+ setRelativeOrder(Integer.MAX_VALUE);
+ }
+
+ /**
+ * Add jars from with a lib subdirectory.
+ *
+ * @param context The StrucutureContext to use
+ * @return Always returns false
+ */
+ public boolean determineStructure(StructureContext context)
+ throws DeploymentException
+ {
+ try
+ {
+ VirtualFile file = context.getFile();
+ if (context.isTopLevel() == false && isLeaf(file) == false
+ && context.getName().equals("lib"))
+ {
+ try
+ {
+ List<VirtualFile> children = context.getFile().getChildren();
+ if (children != null && children.isEmpty() == false)
+ {
+ for (int i = 0; i < children.size(); i++)
+ {
+ VFSStructuralDeployers structuralDeployers = context.getDeployers();
+
+ structuralDeployers.determineStructure(children.get(i),
context.getParentContext());
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+
+ }
+ }
+ catch (Exception e)
+ {
+ throw DeploymentException.rethrowAsDeploymentException(
+ "Error determining Structure", e);
+ }
+ // always return false
+ return false;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,61 @@
+//package org.jboss.portal.deployer.portal;
+//
+//import java.util.ArrayList;
+//import java.util.Iterator;
+//
+//import org.jboss.deployers.spi.DeploymentException;
+//import org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer;
+//import org.jboss.deployers.structure.spi.DeploymentUnit;
+//import org.jboss.portal.metadata.portlet.PortalAppMetaData;
+//import org.jboss.web.WebApplication;
+//import org.jboss.web.deployers.AbstractWarDeployer;
+//
+//public class PortalDeployer extends AbstractComponentDeployer
+//{
+//
+// //the relative order of the war deployer in the main deployer.
+// private int warDeployerOrder;
+//
+// private AbstractWarDeployer warDeployer;
+//
+//
+// private ArrayList listeners = new ArrayList();
+//
+// public PortalDeployer()
+// {
+// addInput(PortalAppMetaData.class);
+// System.out.println("CREATE PORTALDEPLOYER");
+// }
+//
+// public void setWarDeployer(AbstractWarDeployer warDeployer)
+// {
+// this.warDeployer = warDeployer;
+// }
+//
+// public void setWarDeployerOrder(int order)
+// {
+// System.out.println("WARDEPLOYERORDER : " + order);
+// this.warDeployerOrder = order;
+// }
+//
+// public int getRelativeOrder()
+// {
+// return warDeployerOrder + 1;
+// }
+//
+// @Override
+// public void internalDeploy(DeploymentUnit unit) throws DeploymentException
+// {
+// System.out.println("PORTALDEPLOYER : " + unit);
+// PortalAppMetaData metaData = unit.getAttachment(PortalAppMetaData.class);
+// if (metaData != null)
+// {
+// System.out.println("INTERNALDEPLOYAPPNAME : " +
metaData.getAppName());
+// }
+// }
+//
+// @Override
+// public void internalUndeploy(DeploymentUnit unit)
+// {
+// }
+//}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalPostWebDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalPostWebDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/PortalPostWebDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,91 @@
+package org.jboss.portal.deployer.portal;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.web.WebApplication;
+import org.jboss.web.deployers.AbstractWarDeployer;
+
+/*
+ * Initial testing deployer used to get JBoss 2.7 working on JBoss AS 5
+ * This should be replaced with a full deployer.
+ *
+ * TODO: remove this file once full deployment has been done.
+ */
+public class PortalPostWebDeployer extends AbstractComponentDeployer
+{
+
+ //the relative order of the war deployer in the main deployer.
+ private int warDeployerOrder;
+
+ private AbstractWarDeployer warDeployer;
+
+
+ private ArrayList listeners = new ArrayList();
+
+ public PortalPostWebDeployer()
+ {
+ //addInput(PortalMetaData.class);
+ }
+
+ public void setWarDeployer(AbstractWarDeployer warDeployer)
+ {
+ this.warDeployer = warDeployer;
+ }
+
+ public void setWarDeployerOrder(int order)
+ {
+ this.warDeployerOrder = order;
+ }
+
+ public int getRelativeOrder()
+ {
+ //return the order just after the war deployer
+ //note: should really be +1 but other portal deployer is getting in the way right now
+ return warDeployerOrder + 2;
+ }
+
+ @Override
+ public void internalDeploy(DeploymentUnit unit) throws DeploymentException
+ {
+ WebApplication webapp = warDeployer.getDeployedApp(unit.getName());
+
+ if (webapp != null)
+ {
+ Iterator<WebDeploymentListener> iter = listeners.listIterator();
+ while (iter.hasNext())
+ {
+ iter.next().portalDeployed(webapp);
+ }
+ }
+ }
+
+ @Override
+ public void internalUndeploy(DeploymentUnit unit)
+ {
+ WebApplication webapp = warDeployer.getDeployedApp(unit.getName());
+
+ if (webapp != null)
+ {
+ Iterator<WebDeploymentListener> iter = listeners.listIterator();
+ while (iter.hasNext())
+ {
+ iter.next().portalUndeployed(webapp);
+ }
+ }
+ }
+
+ public void addDeploymentListener (WebDeploymentListener deploymentListener)
+ {
+ listeners.add(deploymentListener);
+ }
+
+ public void removeDeploymentListener (WebDeploymentListener deploymentListener)
+ {
+ listeners.remove(deploymentListener);
+ }
+
+}
\ No newline at end of file
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/WebDeploymentListener.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/WebDeploymentListener.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portal/WebDeploymentListener.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,15 @@
+package org.jboss.portal.deployer.portal;
+
+import org.jboss.web.WebApplication;
+
+/*
+ * This is only to get portal 2.7 working with JBoss AS 5 intially, should be replaced
with a
+ * full deployment implementation.
+ *
+ * TODO: remove this file once full deployment has been done.
+ */
+public interface WebDeploymentListener
+{
+ public void portalDeployed(WebApplication webapp);
+ public void portalUndeployed(WebApplication webapp);
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,131 @@
+package org.jboss.portal.deployer.portlet;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import javax.management.ObjectName;
+
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.metadata.web.jboss.JBossWebMetaData;
+import org.jboss.portal.metadata.jboss.app.PortalAppMetaData;
+import org.jboss.portal.metadata.jboss.portlet.JBossApplicationMetaData;
+//import org.jboss.portal.metadata.jboss.portlet.JBossApplicationMetaData;
+//import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+//import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+import org.jboss.system.metadata.ServiceConstructorMetaData;
+import org.jboss.system.metadata.ServiceMetaData;
+import org.jboss.web.WebApplication;
+import org.jboss.web.deployers.AbstractWarDeployer;
+
+public class PortletDeployer extends AbstractComponentDeployer
+{
+
+ //the relative order of the war deployer in the main deployer.
+ private int warDeployerOrder;
+
+ private AbstractWarDeployer warDeployer;
+
+
+ private ArrayList listeners = new ArrayList();
+
+ public PortletDeployer()
+ {
+ setAllInputs(false);
+ setInput(PortalAppMetaData.class);
+ addInput(PortalAppMetaData.class);
+ addInput(PortletApplication10MetaData.class);
+ addInput(JBossApplicationMetaData.class);
+ setOutput(ServiceMetaData.class);
+ }
+
+ public void setWarDeployerOrder(int order)
+ {
+ this.warDeployerOrder = order;
+ }
+
+ public int getRelativeOrder()
+ {
+ return warDeployerOrder + 1;
+ }
+
+ @Override
+ public void internalDeploy(DeploymentUnit unit) throws DeploymentException
+ {
+ //super.internalDeploy(unit);
+ MainDeployer md = unit.getMainDeployer();
+
+ PortalAppMetaData metaData = unit.getAttachment(PortalAppMetaData.class);
+ if (metaData != null)
+ {
+ System.out.println("INTERNALDEPLOYAPPNAME : " + metaData.getAppName());
+ }
+ else
+ {
+ System.out.println("NO PORTAL-APP.XML FILE");
+ }
+
+ PortletApplication10MetaData portletMetaData =
unit.getAttachment(PortletApplication10MetaData.class);
+ if (portletMetaData != null)
+ {
+ System.out.println("INTERNALDEPLOYPORTLETS : " +
portletMetaData.getPortlets());
+ }
+ else
+ {
+ System.out.println("NO PORTLET.XML FILE");
+ }
+
+ JBossApplicationMetaData jbossPortletMetaData =
unit.getAttachment(JBossApplicationMetaData.class);
+ if (portletMetaData != null)
+ {
+ System.out.println("INTERNALDEPLOYJBOSSPORTLETS : " +
jbossPortletMetaData.getPortlets());
+ }
+ else
+ {
+ System.out.println("NO JBOSS-PORTLET.XML FILE");
+ }
+
+
+ if (portletMetaData != null)
+ {
+ try
+ {
+ ServiceMetaData portletModule = new ServiceMetaData();
+
+ JBossWebMetaData jbosswebMD = unit.getAttachment(JBossWebMetaData.class);
+
+ //todo: fix situation for empty context root (ie for the ROOT war)
+ String name = "jboss.portal.deployment:war="
+ + jbosswebMD.getContextRoot();
+ ObjectName objectName = new ObjectName(name);
+
+ portletModule.setObjectName(objectName);
+
+ portletModule.setCode(PortletModule.class.getName());
+ ServiceConstructorMetaData scMD = new ServiceConstructorMetaData();
+ //scMD.setSignature(new String[] {String.class.getName()});
+ //scMD.setParameters(new Object[] {"Hello"});
+
+ scMD.setSignature(new String[] {});
+ scMD.setParameters(new Object[] {});
+ portletModule.setConstructor(scMD);
+
+ unit.addAttachment("PortletModule", portletModule,
+ ServiceMetaData.class);
+
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ @Override
+ public void internalUndeploy(DeploymentUnit unit)
+ {
+ }
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModule.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModule.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModule.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,56 @@
+package org.jboss.portal.deployer.portlet;
+
+import org.jboss.portal.metadata.jboss.app.PortalAppMetaData;
+import org.jboss.portal.metadata.jboss.portlet.JBossApplicationMetaData;
+import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+
+public class PortletModule implements PortletModuleMBean
+{
+
+ protected PortalAppMetaData portalAppMetaData;
+ protected PortletApplication10MetaData portletAppMetaData;
+ protected JBossApplicationMetaData jbossAppMetaData;
+
+ public PortletModule(PortalAppMetaData portalAppMetaData, PortletApplication10MetaData
portletAppMetaData, JBossApplicationMetaData jbossAppMetaData)
+ {
+ this.portalAppMetaData = portalAppMetaData;
+ this.portletAppMetaData = portletAppMetaData;
+ this.jbossAppMetaData = jbossAppMetaData;
+ }
+
+ public void create() throws Exception
+ {
+ /*
+ * import tld (should probably be done in some sort of deployer, but I don't know
exactly how. VFSDeployer + VFS file.getRoot.getChildren().add(vfsfile);
+ *
+ * merge and manipulate metadata stuff (should be done in a merged metadata deployer
and this class should use that data)
+ * create default metadata values if needed (also should be done in the merged metadata
deployer class).
+ *
+ */
+ }
+
+ public void destroy() throws Exception
+ {
+ /*
+ *
+ */
+
+ }
+
+ public void start() throws Exception
+ {
+ /*
+ * inject services
+ * - add attibutes to the servlet context of the portalwebapp
+ * - should be done in a separate deployer? can a deployer manipulate the servlet
context?
+ *
+ *
+ */
+
+ }
+
+ public void stop() throws Exception
+ {
+
+ }
+}
\ No newline at end of file
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModuleMBean.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModuleMBean.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletModuleMBean.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,9 @@
+package org.jboss.portal.deployer.portlet;
+
+public interface PortletModuleMBean
+{
+ public void create() throws Exception;
+ public void start() throws Exception;
+ public void stop() throws Exception;
+ public void destroy() throws Exception;
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletWarDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletWarDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/PortletWarDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,70 @@
+package org.jboss.portal.deployer.portlet;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.DeploymentStage;
+import org.jboss.deployers.spi.deployer.DeploymentStages;
+import org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.metadata.web.jboss.JBossServletMetaData;
+import org.jboss.metadata.web.jboss.JBossWebMetaData;
+import org.jboss.metadata.web.spec.ServletMappingMetaData;
+import org.jboss.metadata.web.spec.ServletMetaData;
+import org.jboss.portal.web.command.CommandServlet;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.virtual.spi.VirtualFileHandler;
+
+public class PortletWarDeployer extends
AbstractSimpleVFSRealDeployer<JBossWebMetaData>
+{
+
+ public PortletWarDeployer()
+ {
+ super(JBossWebMetaData.class);
+ setStage(DeploymentStages.POST_PARSE);
+ }
+
+ @Override
+ public void deploy(VFSDeploymentUnit unit, JBossWebMetaData metadata)
+ throws DeploymentException
+ {
+
+ addCommandServlet(metadata);
+
+ CommandServlet cs = new CommandServlet();
+ try
+ {
+ //Thread.currentThread().getContextClassLoader().getSystemClassLoader().loadClass(this.getClass().toString());
+ //Thread.currentThread().getContextClassLoader().loadClass(this.getClass().toString());
+
Thread.currentThread().getContextClassLoader().loadClass(CommandServlet.class.toString());
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+ protected void addCommandServlet(JBossWebMetaData webmetadata)
+ {
+ JBossServletMetaData servletMD = new JBossServletMetaData();
+ servletMD.setServletName("CommandServlet");
+ servletMD.setServletClass(CommandServlet.class.toString());
+ servletMD.setLoadOnStartup(0);
+
+ ServletMappingMetaData servletMappingMD = new ServletMappingMetaData();
+ servletMappingMD.setServletName("CommandServlet");
+ List<String> urlPatterns = new ArrayList();
+ urlPatterns.add("/jbossportal");
+ servletMappingMD.setUrlPatterns(urlPatterns);
+
+ webmetadata.getServlets().add(servletMD);
+ webmetadata.getServletMappings();
+ }
+
+ protected void setCookiepath(String path)
+ {
+
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,59 @@
+package org.jboss.portal.deployer.portlet.parsing;
+
+import java.io.InputStream;
+
+import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
+import org.jboss.deployers.vfs.spi.deployer.SecurityActions;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.portal.deployer.PortalEntityResolver;
+import org.jboss.portal.metadata.jboss.app.PortalAppMetaData;
+import org.jboss.portal.metamodel.jboss.app.PortalAppObjectModelFactory;
+//import org.jboss.portal.metadata.jboss.app.PortalAppMetaData;
+//import org.jboss.portal.metamodel.jboss.app.PortalAppObjectModelFactory;
+import org.jboss.util.xml.JBossEntityResolver;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory;
+import org.xml.sax.InputSource;
+
+public class PortalAppParsingDeployer extends
SchemaResolverDeployer<PortalAppMetaData>
+{
+
+ private PortalEntityResolver entityResolver;
+
+ public void setEntityResolver (PortalEntityResolver entityResolver)
+ {
+ this.entityResolver = entityResolver;
+ }
+
+ public PortalAppParsingDeployer()
+ {
+ super(PortalAppMetaData.class);
+ setName("jboss-portal-app.xml");
+ }
+
+ public void setXmlPath(String xmlPath)
+ {
+ this.setName(xmlPath);
+ }
+
+ public String getXmlPath()
+ {
+ return getName();
+ }
+
+ protected PortalAppMetaData parse(VFSDeploymentUnit unit, VirtualFile file,
PortalAppMetaData root) throws Exception
+ {
+ InputStream stream = file.openStream();
+
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ unmarshaller.setEntityResolver(this.entityResolver);
+
+ PortalAppMetaData portalMetaData = (PortalAppMetaData)unmarshaller.unmarshal(stream,
new PortalAppObjectModelFactory(), root );
+
+ return portalMetaData;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,61 @@
+package org.jboss.portal.deployer.portlet.parsing;
+
+import java.io.InputStream;
+
+import org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.portal.deployer.PortalEntityResolver;
+import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+import org.jboss.portal.portlet.mc.metadata.factory.PortletApplicationModelFactory;
+// note: these are the metadata from the metadata model
+//import org.jboss.portal.metadata.portlet.PortletApplication10MetaData;
+//import org.jboss.portal.metadata.portlet.portlet.PortletMetaData;
+//import org.jboss.portal.metamodel.portlet.PortletApplicationModelFactory;
+//import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+//import org.jboss.portal.portlet.impl.metadata.PortletApplication10MetaData;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+
+public class PortletParsingDeployer extends
SchemaResolverDeployer<PortletApplication10MetaData>
+{
+
+ private PortalEntityResolver entityResolver;
+
+ public void setEntityResolver (PortalEntityResolver entityResolver)
+ {
+ this.entityResolver = entityResolver;
+ }
+
+ public PortletParsingDeployer()
+ {
+ super(PortletApplication10MetaData.class);
+ setName("portlet.xml");
+ }
+
+ public void setXmlPath(String xmlPath)
+ {
+ this.setName(xmlPath);
+ }
+
+ public String getXmlPath()
+ {
+ return getName();
+ }
+
+ protected PortletApplication10MetaData parse(VFSDeploymentUnit unit, VirtualFile file,
PortletApplication10MetaData root) throws Exception
+ {
+ //super.parse(unit, file, root);
+ InputStream stream = file.openStream();
+
+ Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+ unmarshaller.setEntityResolver(this.entityResolver);
+
+ PortletApplication10MetaData portletMetaData =
(PortletApplication10MetaData)unmarshaller.unmarshal(stream, new
PortletApplicationModelFactory(), root );
+
+ System.out.println("PORTLETS : " + portletMetaData.getPortlets());
+
+ return portletMetaData;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/structure/PortletStructure.java
===================================================================
---
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/structure/PortletStructure.java
(rev 0)
+++
modules/deployer/trunk/deployer/src/main/java/org/jboss/portal/deployer/portlet/structure/PortletStructure.java 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,54 @@
+package org.jboss.portal.deployer.portlet.structure;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer;
+import org.jboss.deployers.vfs.spi.structure.StructureContext;
+import org.jboss.virtual.VirtualFile;
+
+public class PortletStructure extends AbstractVFSStructureDeployer
+{
+
+ @Override
+ public void setRelativeOrder(int order)
+ {
+ super.setRelativeOrder(order);
+ }
+
+ @Override
+ public int getRelativeOrder()
+ {
+ // TODO Auto-generated method stub
+ //return super.getRelativeOrder();
+ return 0;
+ }
+
+ public boolean determineStructure(StructureContext context)
+ throws DeploymentException
+ {
+ try
+ {
+ VirtualFile file = context.getFile();
+ if (file.isLeaf() == false)
+ {
+ if (file.getName().endsWith(".war"))
+ {
+ if (file.getChild("WEB-INF/portlet.xml")!= null ||
file.getChild("WEB-INF/jboss-portlet,xml")!= null)
+ {
+ return false;
+ }
+ else
+ {
+ System.out.println ("MISSING A PORTLET.XML OR A JBOSS-PORTLET.XML");
+ }
+ }
+
+ }
+ }
+ catch (Exception e)
+ {
+
+ }
+ return false;
+ }
+
+}
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/Deployment.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/Deployment.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/PortalEntityResolver.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/PortalEntityResolver.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/jboss/portlet/parsing/JBossPortletParsingDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/LibDirectoryStructure.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/LibDirectoryStructure.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/PortalPostWebDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/PortalPostWebDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/WebDeploymentListener.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portal/WebDeploymentListener.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModule.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModule.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModuleMBean.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletModuleMBean.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletWarDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/PortletWarDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortalAppParsingDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/parsing/PortletParsingDeployer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/structure/PortletStructure.class
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/classes/org/jboss/portal/deployer/portlet/structure/PortletStructure.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT-sources.jar
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT-sources.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/deployer-deployer-trunk-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/.deployer-jboss-beans.xml.swp
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/.deployer-jboss-beans.xml.swp
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/deployer-jboss-beans.xml
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/deployer-jboss-beans.xml
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/META-INF/deployer-jboss-beans.xml 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_2_0.xsd"
+ xmlns="urn:jboss:bean-deployer:2.0">
+
+ <!--
+
*********************************************************************************************************************
+ Portal deployment
+
+
*********************************************************************************************************************
-->
+
+ <!-- portal custom dtd's -->
+ <bean name="PortalEntityResolver"
class="org.jboss.portal.deployer.PortalEntityResolver">
+ <property name="DTDMapping">
+ <map class="java.util.Properties"
keyClass="java.lang.String" valueClass="java.lang.String">
+ <entry>
+ <key>-//JBoss Portal//DTD JBoss Portlet 2.6//EN</key>
+ <value>dtd/jboss-portlet_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD JBoss Portal Application
2.6//EN</key>
+ <value>dtd/jboss-portal-app_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD Portal Object 2.6//EN</key>
+ <value>dtd/portal-object_2_6.dtd</value>
+ </entry>
+ <entry>
+ <key>-//JBoss Portal//DTD Portlet Instances 2.6//EN</key>
+ <value>dtd/portlet-instances_2_6.dtd</value>
+ </entry>
+ </map>
+ </property>
+ </bean>
+
+
+<!-- initial fake deployer only used to get JBoss AS 5 working with Portal 2.7 -->
+ <bean name="PortalPostWebDeployer"
class="org.jboss.portal.deployer.portal.PortalPostWebDeployer">
+ <property name="warDeployerOrder"><inject
bean="WarDeployer" property="relativeOrder"/></property>
+ <property name="warDeployer"><inject
bean="WarDeployer"/></property>
+ <depends>WarDeployer</depends>
+ </bean>
+<!-- end fake deployer -->
+
+
+ <!-- Portal Deployer -->
+ <bean name="LibDirectoryStructure"
class="org.jboss.portal.deployer.portal.LibDirectoryStructure">
+ </bean>
+
+
+ <!-- Portlet Deployer -->
+<!-- <bean name="PortletStructure"
class="org.jboss.portal.deployer.portlet.structure.PortletStructure">
+ </bean> -->
+
+ <bean name="PortalAppParsingDeployer"
class="org.jboss.portal.deployer.portlet.parsing.PortalAppParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+ <bean name="PortletParsingDeployer"
class="org.jboss.portal.deployer.portlet.parsing.PortletParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+ <bean name="JBossPortletParsingDeployer"
class="org.jboss.portal.deployer.jboss.portlet.parsing.JBossPortletParsingDeployer">
+ <property name="entityResolver"><inject
bean="PortalEntityResolver"/></property>
+ </bean>
+
+<!-- <bean name="PortletWarDeployer"
class="org.jboss.portal.deployer.portlet.PortletWarDeployer"/> -->
+
+ <bean name="PortletDeployer"
class="org.jboss.portal.deployer.portlet.PortletDeployer">
+ <property name="warDeployerOrder"><inject
bean="WarDeployer" property="relativeOrder"/></property>
+ </bean>
+
+</deployment>
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/deployer-deployer-trunk-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/deployer-deployer-trunk-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portal-app_2_6.dtd
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portal-app_2_6.dtd
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portal-app_2_6.dtd 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,42 @@
+<?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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!--
+<!DOCTYPE jboss-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Web Application 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-app_2_6.dtd">
+-->
+
+<!ELEMENT jboss-portal-app (app-name?)>
+
+<!--
+When a web application is deployed, the context path under wich it is deployed
+is taken as application name. The application name value in this descriptor is
+used to override it. When a component references a references a portlet, it needs to
+reference the application too and if the portlet application war file is renammed
+the reference is not valid anymore. Therefore this tag is used to have an application
+name that does not depend upon the context path under which the application is deployed.
+-->
+<!ELEMENT app-name (#PCDATA)>
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portlet_2_6.dtd
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portlet_2_6.dtd
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/dtd/jboss-portlet_2_6.dtd 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1,290 @@
+<?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. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
+<!-- The additional configuration elements of the JBoss portlet container.
+
+<!DOCTYPE portlet-app PUBLIC
+ "-//JBoss Portal//DTD JBoss Portlet 2.6//EN"
+ "http://www.jboss.org/portal/dtd/jboss-portlet_2_6.dtd">
+-->
+
+<!--
+The remotable element is used to configure the default behavior of the portlets with
+respect to WSRP exposure.
+
+For each portlet defined in portlet.xml, it is possible to configure specific
+settings of the portlet container.
+
+It is also possible to inject services in the portlet context of the application
+using the service elements.
+-->
+<!ELEMENT portlet-app (app-id?, remotable?,portlet*,service*)>
+
+<!--
+The portlet application id that will be used by the portlet container instead of the
context path.
+-->
+<!ELEMENT app-id (#PCDATA)>
+
+<!--
+Additional configuration for a portlet.
+
+The portlet-name defines the name of the portlet. It must match a portlet defined
already
+in portlet.xml of the same web application.
+
+The remotable element configures the portlet exposure to WSRP. If no value is present
+then the value considered is either the value defined globally at the portlet
+application level or false.
+
+The trans-attribute value specifies the behavior of the portlet when it is invoked at
+runtime with respect to the transactionnal context. According to how the portlet is
+invoked a transaction may exist or not before the portlet is invoked. Usually in the
+local context the portal transaction could be present. By default the value considered
is
+ NotSupported which means that the portal transaction will be suspended for the duration
+ of the portlet invocation.
+
+Example:
+
+<portlet>
+ <portlet-name>MyPortlet</portlet-name>
+ <remotable>true</remotable>
+ <trans-attribute>Required</trans-attribute>
+</portlet>
+
+-->
+<!ELEMENT portlet (portlet-name,remotable?,ajax?,session-config?,transaction?,
+ header-content?,portlet-info?)>
+
+<!--
+The portlet name.
+-->
+<!ELEMENT portlet-name (#PCDATA)>
+
+<!--
+The remotable value is used for WSRP exposure. The accepted values are the
+litterals true of false.
+-->
+<!ELEMENT remotable (#PCDATA)>
+
+<!--
+The ajax tag allows to configure the ajax capabilities of the portlet. If
+the portlet is tagged as partial-refresh then the portal may use partial page
+refreshing and render only that portlet. If the portlet partial-refresh value
+is false, then the portal will perform a full page refresh when the portlet is
refreshed.
+-->
+<!ELEMENT ajax (partial-refresh)>
+
+<!--
+The authorized values for the partial-refresh element are true or false.
+-->
+<!ELEMENT partial-refresh (#PCDATA)>
+
+<!--
+Additional portlet information
+-->
+<!ELEMENT portlet-info (icon?)>
+
+<!--
+Defines icons for the portlet, they can be used by the administration portlet
+to represent a particular portlet.
+-->
+<!ELEMENT icon (small-icon?, large-icon?)>
+
+<!--
+A small icon image, usually 16x16, gif, jpg and png are usually supported.
+An absolute URL or a URL starting with a '/' in the context of the webapp are
accepted:
+eg.
http://www.example.com/images/smallIcon.png
+eg. /images/smallIcon.png
+-->
+<!ELEMENT small-icon (#PCDATA)>
+
+<!--
+A large icon image, usually 32x32, gif, jpg and png are usually supported.
+An absolute URL or a URL starting with a '/' in the context of the webapp are
accepted:
+eg.
http://www.example.com/images/smallIcon.png
+eg. /images/smallIcon.png
+-->
+<!ELEMENT large-icon (#PCDATA)>
+
+<!--
+This element configure the portlet session of the portlet.
+
+The distributed element instructs the container to distribute the session attributes
+using the portal session replication. It applies only to local portlets are not to
+remote portlets. The default value is false.
+
+Example:
+
+<session-config>
+ <distributed>true</distributed>
+</session-config>
+
+-->
+<!ELEMENT session-config (distributed)>
+
+<!--
+The authorized values for the distributed element are true or false.
+-->
+<!ELEMENT distributed (#PCDATA)>
+
+<!--
+Defines how the portlet behaves with the transactionnal context. The default value
+is Never.
+
+Example:
+
+<transaction>
+ <trans-attribute>Required</transaction>
+<transaction>
+-->
+<!ELEMENT transaction (trans-attribute)>
+
+<!--
+The trans-attribute value defines the transactionnal behavior. The accepted values
+are Required, Mandatory, Never, Supports, NotSupported and RequiresNew.
+-->
+<!ELEMENT trans-attribute (#PCDATA)>
+
+<!--
+Specify content which should be included in the portal aggregated page when the portlet
+is present on that page. This setting only applies when the portlet is used in the local
mode.
+-->
+<!ELEMENT header-content (link|script|meta)*>
+
+<!--
+Creates a header markup element for linked resources,
+see
http://www.w3.org/TR/html401/struct/links.html#h-12.3
+
+At runtime the href attribute value will be prefixed with the context path
+of the web application.
+
+Example:
+
+<link rel="stylesheet" type="text/css" href="/style.css"
media="screen"/>
+
+will produce at runtime the following markup
+
+<link rel="stylesheet" type="text/css"
href="/my-web-application/style.css" media="screen"/>
+-->
+<!ATTLIST link
+ href CDATA #IMPLIED
+ rel CDATA #IMPLIED
+ type CDATA #IMPLIED
+ media CDATA #IMPLIED
+ title CDATA #IMPLIED>
+
+<!--
+No content is allowed inside an link element.
+-->
+<!ELEMENT link EMPTY>
+
+<!--
+Creates a header markup for scripting,
+see
http://www.w3.org/TR/html401/interact/scripts.html
+
+At runtime the src attribute value will be prefixed with the context path
+of the web application.
+
+Example 1:
+
+<script type="text/javascript"
src="/myscript.js"></script>
+
+will produce at runtime the following markup
+
+<script type="text/javascript"
src="/my-web-application/myscript.js"></script>
+
+Example 2:
+
+<script type="text/javascript">
+ function hello() {
+ alert('Hello');
+ }
+</script>
+-->
+<!ATTLIST script
+ src CDATA #IMPLIED
+ type CDATA #IMPLIED
+ language CDATA #IMPLIED>
+
+<!--
+The script header element can contain inline script definitions.
+-->
+<!ELEMENT script (#PCDATA)>
+
+<!--
+Creates a header markup for adding meta data to a page,
+see
http://www.w3.org/TR/html401/struct/global.html#h-7.4.4
+
+Example:
+
+<meta name="keywords" content="jboss, portal, redhat"/>
+-->
+<!ATTLIST meta
+ name CDATA #REQUIRED
+ content CDATA #REQUIRED>
+
+<!--
+No content is allowed for meta element.
+-->
+<!ELEMENT meta EMPTY>
+
+<!--
+Declare a service that will be injected by the portlet container as an
+attribute of the portlet context.
+
+Example:
+
+<service>
+ <service-name>UserModule</service-name>
+ <service-class>org.jboss.portal.identity.UserModule</service-class>
+ <service-ref>:service=Module,type=User</service-ref>
+</service>
+
+In the portlet it is then possible to use it by doing a lookup on the service
+name, for example in the init() lifecycle method :
+
+public void init()
+{
+ UserModule userModule =
(UserModule)getPortletContext().getAttribute("UserModule");
+}
+
+-->
+<!ELEMENT service (service-name,service-class,service-ref)>
+
+<!--
+The service name that will be used to bind the service as a portlet context attribute.
+-->
+<!ELEMENT service-name (#PCDATA)>
+
+<!--
+The full qualified name of the interface that the service implements.
+-->
+<!ELEMENT service-class (#PCDATA)>
+
+<!--
+The reference to the service. In the JMX Microkernel environment it consist of the JMX
+name of the service MBean. For an MBean reference if the domain is left out, then the
+current domain of the portal will be used.
+-->
+<!ELEMENT service-ref (#PCDATA)>
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/metadata-metadata-trunk-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/metadata-metadata-trunk-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-lib.jar
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-lib.jar
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-lib.jar 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1 @@
+link
/home/mwringe/Projects/workspaces/workspace-portal-deployer/portal-2-7-branch/core/output/resources/jboss-portal.sar/lib/portal-common-lib.jar
\ No newline at end of file
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-lib.jar
___________________________________________________________________
Name: svn:special
+ *
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-portal-lib.jar
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-portal-lib.jar
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-portal-lib.jar 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1 @@
+link
/home/mwringe/Projects/workspaces/workspace-portal-deployer/portal-2-7-branch/core/output/resources/jboss-portal.sar/lib/portal-common-portal-lib.jar
\ No newline at end of file
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-common-portal-lib.jar
___________________________________________________________________
Name: svn:special
+ *
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-portlet-lib.jar
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-portlet-lib.jar
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-portlet-lib.jar 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1 @@
+link
/home/mwringe/Projects/workspaces/workspace-portal-deployer/portal-2-7-branch-test/core/output/resources/jboss-portal.sar/lib/portal-portlet-lib.jar
\ No newline at end of file
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-portlet-lib.jar
___________________________________________________________________
Name: svn:special
+ *
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-web-lib.jar
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-web-lib.jar
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-web-lib.jar 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1 @@
+link
/home/mwringe/Projects/workspaces/workspace-portal-deployer/portal-2-7-branch/core/output/resources/jboss-portal.sar/lib/portal-web-lib.jar
\ No newline at end of file
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portal-web-lib.jar
___________________________________________________________________
Name: svn:special
+ *
Added:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portlet-mc-2.1.0-SNAPSHOT.jar
===================================================================
---
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portlet-mc-2.1.0-SNAPSHOT.jar
(rev 0)
+++
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portlet-mc-2.1.0-SNAPSHOT.jar 2008-11-06
19:05:26 UTC (rev 12257)
@@ -0,0 +1 @@
+link
/home/mwringe/.m2/repository/org/jboss/portal/portlet/portlet-mc/2.1.0-SNAPSHOT/portlet-mc-2.1.0-SNAPSHOT.jar
\ No newline at end of file
Property changes on:
modules/deployer/trunk/deployer/target/jboss-portal.deployer-jboss50.dir/jboss-portal.deployer/portlet-mc-2.1.0-SNAPSHOT.jar
___________________________________________________________________
Name: svn:special
+ *
Added: modules/deployer/trunk/pom.xml
===================================================================
--- modules/deployer/trunk/pom.xml (rev 0)
+++ modules/deployer/trunk/pom.xml 2008-11-06 19:05:26 UTC (rev 12257)
@@ -0,0 +1,41 @@
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.portal.deployer</groupId>
+ <artifactId>module-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>JBoss Portal Deployer</name>
+ <version>trunk-SNAPSHOT</version>
+
+ <distributionManagement>
+ <repository>
+ <!--Copy the distribution jar file to a local checkout of the maven
repository
+ - This variable can be set in $MAVEN_HOME/conf/settings.xml-->
+ <id>repository.jboss.org</id>
+ <url>file://${jboss.repository.root}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots.jboss.org</id>
+ <name>JBoss Snapshot Repository</name>
+ <
url>dav:https://snapshots.jboss.org/maven2</url>
+ <uniqueVersion>true</uniqueVersion>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <modules>
+ <module>build</module>
+ <module>deployer</module>
+ </modules>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <aggregate>true</aggregate>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>