portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwat...@apache.org
Subject svn commit: r373723 [2/3] - in /portals/jetspeed-2/trunk: ./ commons/ components/capability/ components/cm/ components/deploy-tool/ components/file-cache/ components/header-resource/ components/id-generator/ components/jetspeed/ components/locator/ com...
Date Tue, 31 Jan 2006 05:45:18 GMT
Modified: portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java?rev=373723&r1=373722&r2=373723&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java (original)
+++ portals/jetspeed-2/trunk/components/registry/src/test/org/apache/jetspeed/components/portletentity/TestPortletEntityDAO.java Mon Jan 30 21:45:02 2006
@@ -56,383 +56,6 @@
  */
 public class TestPortletEntityDAO extends DatasourceEnabledSpringTestCase
 {
-
-    /**
-     * Dummy ContentFragment wrapper around Fragment as using the real ContentFragmentImpl would introduce a circular
-     * dependency between the registry and page-manager components. Probably should be replaced by a Mock but I don't
-     * know how to setup that quickly and the whole ContentFragment construction is bound to be replaced soon anyway...
-     */
-     private static class ContentFragmentImpl implements Fragment, ContentFragment
-     {
-        private Fragment f;
-
-        /**
-         * @param f
-         * @param list
-         */
-        public ContentFragmentImpl(Fragment f, HashMap list)
-        {
-            super();
-            this.f = f;
-        }
-
-        /**
-         * @param actions
-         * @throws SecurityException
-         */
-        public void checkAccess(String actions) throws SecurityException
-        {
-            f.checkAccess(actions);
-        }
-
-        /**
-         * @param actions
-         * @throws SecurityException
-         */
-        public void checkConstraints(String actions) throws SecurityException
-        {
-            f.checkConstraints(actions);
-        }
-
-        /**
-         * @param mask
-         * @throws SecurityException
-         */
-        public void checkPermissions(int mask) throws SecurityException
-        {
-            f.checkPermissions(mask);
-        }
-        
-        public SecurityConstraint newSecurityConstraint()
-        {
-            return f.newSecurityConstraint();
-        }
-
-        public SecurityConstraints newSecurityConstraints()
-        {
-            return f.newSecurityConstraints();
-        }
-
-        /** 
-         * @see java.lang.Object#equals(java.lang.Object)
-         */
-        public boolean equals(Object obj)
-        {
-            return f.equals(obj);
-        }
-
-        /**
-         * @return contraints enabled
-         */
-        public boolean getConstraintsEnabled()
-        {
-            return f.getConstraintsEnabled();
-        }
-
-        /**
-         * @return decorator name
-         */
-        public String getDecorator()
-        {
-            return f.getDecorator();
-        }
-
-        /**
-         * @return list of fragments
-         */
-        public List getFragments()
-        {
-            return f.getFragments();
-        }
-
-        /**
-         * @return id
-         */
-        public String getId()
-        {
-            return f.getId();
-        }
-
-        /**
-         * @return name
-         */
-        public String getName()
-        {
-            return f.getName();
-        }
-
-        /**
-         * @return permissions enabled
-         */
-        public boolean getPermissionsEnabled()
-        {
-            return f.getPermissionsEnabled();
-        }
-
-
-        /**
-         * @return security constraints
-         */
-        public SecurityConstraints getSecurityConstraints()
-        {
-            return f.getSecurityConstraints();
-        }
-
-        /**
-         * @return  short title
-         */
-        public String getShortTitle()
-        {
-            return f.getShortTitle();
-        }
-
-        /**
-         * @return skin name
-         */
-        public String getSkin()
-        {
-            return f.getSkin();
-        }
-
-        /**
-         * @return state string
-         */
-        public String getState()
-        {
-            return f.getState();
-        }
-
-        /**
-         * @return title
-         */
-        public String getTitle()
-        {
-            return f.getTitle();
-        }
-
-        /**
-         * @return type string
-         */
-        public String getType()
-        {
-            return f.getType();
-        }
-
-        /** 
-         * @see java.lang.Object#hashCode()
-         */
-        public int hashCode()
-        {
-            return f.hashCode();
-        }
-
-        /**
-         * @return if its a reference
-         */
-        public boolean isReference()
-        {
-            return f.isReference();
-        }
-
-        /**
-         * @param decoratorName
-         */
-        public void setDecorator(String decoratorName)
-        {
-            f.setDecorator(decoratorName);
-        }
-
-        /**
-         * @param name
-         */
-        public void setName(String name)
-        {
-            f.setName(name);
-        }
-
-        /**
-         * @param constraints
-         */
-        public void setSecurityConstraints(SecurityConstraints constraints)
-        {
-            f.setSecurityConstraints(constraints);
-        }
-
-        /**
-         * @param title
-         */
-        public void setShortTitle(String title)
-        {
-            f.setShortTitle(title);
-        }
-
-        /**
-         * @param skinName
-         */
-        public void setSkin(String skinName)
-        {
-            f.setSkin(skinName);
-        }
-
-        /**
-         * @param state
-         */
-        public void setState(String state)
-        {
-            f.setState(state);
-        }
-
-        /**
-         * @param title
-         */
-        public void setTitle(String title)
-        {
-            f.setTitle(title);
-        }
-
-        /**
-         * @param type
-         */
-        public void setType(String type)
-        {
-            f.setType(type);
-        }
-
-        /** 
-         * @see java.lang.Object#toString()
-         */
-        public String toString()
-        {
-            return f.toString();
-        }
-
-        /** 
-         * @see org.apache.jetspeed.om.page.ContentFragment#getContentFragments()
-         */
-        public List getContentFragments()
-        {
-            return null;
-        }
-
-        /** 
-         * @see org.apache.jetspeed.om.page.ContentFragment#getRenderedContent()
-         */
-        public String getRenderedContent() throws IllegalStateException
-        {
-            return null;
-        }
-
-        /** 
-         * @see org.apache.jetspeed.om.page.ContentFragment#overrideRenderedContent(java.lang.String)
-         */
-        public void overrideRenderedContent(String contnent)
-        {
-        }
-
-        /** 
-         * @see org.apache.jetspeed.om.page.ContentFragment#setPortletContent(org.apache.jetspeed.aggregator.PortletContent)
-         */
-        public void setPortletContent(PortletContent portletContent)
-        {
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getLayoutColumn()
-         */
-        public int getLayoutColumn()
-        {
-            return 0;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getLayoutRow()
-         */
-        public int getLayoutRow()
-        {
-            return 0;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getLayoutSizes()
-         */
-        public String getLayoutSizes()
-        {
-            return null;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#setLayoutColumn(int)
-         */
-        public void setLayoutColumn(int column)
-        {            
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#setLayoutRow(int)
-         */
-        public void setLayoutRow(int row)
-        {            
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#setLayoutSizes(java.lang.String)
-         */
-        public void setLayoutSizes(String sizes)
-        {            
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getIntProperty(java.lang.String)
-         */
-        public int getIntProperty(String propName)
-        {
-            return 0;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getPreferences()
-         */
-        public List getPreferences()
-        {
-            return null;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#setPreferences(java.util.List)
-         */
-        public void setPreferences(List preferences)
-        {
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getProperties()
-         */
-        public Map getProperties()
-        {
-            return null;
-        }
-
-        /**
-         * @see org.apache.jetspeed.om.page.Fragment#getProperty(java.lang.String)
-         */
-        public String getProperty(String propName)
-        {
-            return null;
-        }
-
-        public Decoration getDecoration()
-        {
-            // TODO Auto-generated method stub
-            return null;
-        }
-
-        public void setDecoration(Decoration decoration)
-        {
-            // TODO Auto-generated method stub
-            
-        }        
-    }
-
     private static final String TEST_APP = "EntityTestApp";
 
     private static final String TEST_PORTLET = "EntityTestPortlet";
@@ -482,10 +105,10 @@
         Mock mockf1 = new Mock(Fragment.class);
         mockf1.expects(new InvokeAtLeastOnceMatcher()).method("getName").will(new ReturnStub(pd.getUniqueName()));
         mockf1.expects(new InvokeAtLeastOnceMatcher()).method("getId").will(new ReturnStub(TEST_ENTITY));
-        ContentFragment f1 = new ContentFragmentImpl((Fragment) mockf1.proxy(), new HashMap());
+        ContentFragment f1 = new ContentFragmentTestImpl((Fragment) mockf1.proxy(), new HashMap());
 
         MutablePortletEntity entity = entityAccess
-                .generateEntityFromFragment(new ContentFragmentImpl(f1, new HashMap()));
+                .generateEntityFromFragment(new ContentFragmentTestImpl(f1, new HashMap()));
         PreferenceSetComposite prefs = (PreferenceSetComposite) entity.getPreferenceSet();
         prefs.remove("pref1");
         assertNotNull(prefs);
@@ -581,7 +204,7 @@
 
         Mock mockf2 = new Mock(Fragment.class);
         mockf2.expects(new InvokeAtLeastOnceMatcher()).method("getName").will(new ReturnStub(pd.getUniqueName()));
-        ContentFragment f2 = new ContentFragmentImpl((Fragment) mockf2.proxy(), new HashMap());
+        ContentFragment f2 = new ContentFragmentTestImpl((Fragment) mockf2.proxy(), new HashMap());
 
         MutablePortletEntity entity5 = entityAccess.newPortletEntityInstance(pd);
 

Added: portals/jetspeed-2/trunk/components/rewriter/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/rewriter/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/rewriter/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/rewriter/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-rewriter</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Rewriter Component</name>
+    <description>
+        Rewriter Component
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-httpclient</groupId>
+            <artifactId>commons-httpclient</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>castor</groupId>
+            <artifactId>castor</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xerces</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>nekohtml</groupId>
+            <artifactId>nekohtml</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>portlet-api</groupId>
+            <artifactId>portlet-api</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/rewriter</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/rewriter</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/rewriter/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/search/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/search/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/search/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/search/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-search</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Search Component</name>
+    <description>
+        Search component for Jetspeed.
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-collections</groupId>
+            <artifactId>commons-collections</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-httpclient</groupId>
+            <artifactId>commons-httpclient</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>lucene</groupId>
+            <artifactId>lucene</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/search</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/search</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/search/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/security-schema/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/security-schema/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/security-schema/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/security-schema/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-security-schema</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Security LDAP Schema Components</name>
+    <description>
+        Security Components
+    </description>
+
+    <!-- Build Configuration -->
+
+    <build>
+
+        <!-- Resources -->
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+        </resources>
+
+        <!-- Schema Generation Plugin -->
+        <plugins>
+            <plugin>
+                <groupId>directory</groupId>
+                <artifactId>maven-directory-plugin</artifactId>
+            </plugin>
+        </plugins>
+
+    </build>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/security-schema</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/security-schema</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/security-schema/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/security/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/security/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/security/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/security/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-security</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Security Components</name>
+    <description>
+        Security Components
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-cm</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-prefs</artifactId>
+        </dependency>
+        <dependency>        
+            <groupId>commons-codec</groupId>
+            <artifactId>commons-codec</artifactId>
+        </dependency>
+        <dependency>        
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>        
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>ojb</groupId>
+            <artifactId>db-ojb</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Build Configuration -->
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <!--
+                        Bug: excludes dont work with multilevel test
+                             directory: no tests are run. Using multiple
+                             includes in its place
+                    <excludes>
+                        <exclude>**/spi/ldap/TestLdap*.java</exclude>
+                    </excludes>
+                    -->
+                    <includes>
+                        <include>**/security/Test*.java</include>
+                        <include>**/security/spi/Test*.java</include>
+                    </includes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/security</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/security</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/security/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/serializer/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/serializer/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/serializer/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/serializer/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-serializer</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Serializer</name>
+    <description>
+        Jetspeed Serializer
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-cm</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>xstream</groupId>
+            <artifactId>xstream</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/serializer</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/serializer</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/serializer/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/sso/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/sso/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/sso/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/sso/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-sso</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Single Sign On SSO Components</name>
+    <description>
+        Single Sign On SSO Components
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-cm</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-security</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.portals.bridges</groupId>
+            <artifactId>portals-bridges-common</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.portals.bridges</groupId>
+            <artifactId>portals-bridges-velocity</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-httpclient</groupId>
+            <artifactId>commons-httpclient</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/sso</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/sso</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/sso/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/statistics/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/statistics/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/statistics/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/statistics/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-statistics</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Portal Statistics Components</name>
+    <description>
+         Portal Statistics Components
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-rdbms</artifactId>
+        </dependency>
+
+        <!-- Test Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-registry</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-security</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>mockrunner</groupId>
+            <artifactId>mockrunner</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/statistics</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/statistics</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/statistics/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/components/web-content/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/web-content/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/web-content/pom.xml (added)
+++ portals/jetspeed-2/trunk/components/web-content/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-web-content</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Web Content</name>
+    <description>
+        Web content service and portlet implementations.
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-commons</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-sso</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>jetspeed-rewriter</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>velocity</groupId>
+            <artifactId>velocity</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/web-content</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/components/web-content</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/web-content/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/content-server/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/content-server/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/content-server/pom.xml (added)
+++ portals/jetspeed-2/trunk/content-server/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>content-server</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Content Server</name>
+    <description>
+        Content Server
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>servletapi</groupId>
+            <artifactId>servletapi</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.pluto</groupId>
+            <artifactId>pluto</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/content-server</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/content-server</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/content-server/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/etc/build.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/etc/build.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/etc/build.xml (added)
+++ portals/jetspeed-2/trunk/etc/build.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,282 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<project name="etc" default="help">
+
+    <!-- Properties -->
+
+    <property name="org.apache.jetspeed.database.default.name" value=""/>
+    <property name="org.apache.jetspeed.database.url" value=""/>
+    <property name="org.apache.jetspeed.database.jdbc.drivers.path" value=""/>
+    <property name="org.apache.jetspeed.database.driver" value=""/>
+    <property name="org.apache.jetspeed.database.user" value=""/>
+    <property name="org.apache.jetspeed.database.password" value=""/>
+
+    <property name="org.apache.jetspeed.source.sql" value="${basedir}/sql"/>
+    <property name="org.apache.jetspeed.database.source.sql" value="${org.apache.jetspeed.source.sql}/${org.apache.jetspeed.database.default.name}"/>
+    <property name="org.apache.jetspeed.target.sql" value="${basedir}/target/sql"/>
+    <property name="org.apache.jetspeed.database.target.sql" value="${org.apache.jetspeed.target.sql}/${org.apache.jetspeed.database.default.name}"/>
+
+    <property name="torque.contextProperties" value=""/>
+    <property name="torque.runOnlyOnSchemaChange" value="true"/>
+    <property name="torque.idTableXMLFile" value=""/>
+    <property name="torque.project" value="phase1"/>
+    <property name="torque.schema.dir" value="${basedir}/schema"/>
+    <property name="torque.schema.sql.excludes" value=""/>
+    <property name="torque.schema.sql.includes" value="*-schema.xml"/>
+    <property name="torque.template.sql" value="sql/base/Control.vm"/>
+    <property name="torque.templatePath" value=""/>
+    <property name="torque.useClasspath" value="true"/>
+    <property name="torque.sql.dir" value="${org.apache.jetspeed.database.target.sql}/schema"/>
+
+    <!-- Usage -->
+
+    <target name="help">
+        <echo message="Buildfile for the etc maven POM."/>
+        <echo message="Usage: ant [ schema | populate ]"/>
+        <echo message="Where:"/>
+        <echo message="    schema - build schema for database."/>
+        <echo message="    populate - build and populate database instance."/>
+        <echo message="Configuration:"/>
+        <echo message="    org.apache.jetspeed.database.default.name=${org.apache.jetspeed.database.default.name}"/>
+        <echo message="    org.apache.jetspeed.database.url=${org.apache.jetspeed.database.url}"/>
+        <echo message="    org.apache.jetspeed.database.jdbc.drivers.path=${org.apache.jetspeed.database.jdbc.drivers.path}"/>
+        <echo message="    org.apache.jetspeed.database.driver=${org.apache.jetspeed.database.driver}"/>
+        <echo message="    org.apache.jetspeed.database.user=${org.apache.jetspeed.database.user}"/>
+        <echo message="    org.apache.jetspeed.database.password=${org.apache.jetspeed.database.password}"/>
+    </target>
+
+    <!-- Schema Generation -->
+
+    <target name="schema" depends="test-database-default-name, test-database-filter-drops">
+
+        <!-- make target directory -->
+        <mkdir dir="${org.apache.jetspeed.database.target.sql}"/>
+
+        <!-- copy general sql -->
+        <copy todir="${org.apache.jetspeed.target.sql}" overwrite="true" flatten="true" verbose="true" failonerror="false">
+            <fileset dir="${org.apache.jetspeed.source.sql}">
+                <include name="*.sql"/>
+            </fileset>
+        </copy>
+
+        <!-- conditionally generate sql using torque schema -->
+        <antcall target="schema-mssql"/>
+        <antcall target="schema-mysql"/>
+        <antcall target="schema-oracle"/>
+        <antcall target="schema-hsql"/>
+        <antcall target="schema-postgres"/>
+        <antcall target="schema-sapdb"/>
+        <antcall target="schema-derby"/>
+
+        <!-- conditionally filter generated schema -->
+        <antcall target="schema-filter-drops"/>
+
+        <!-- copy custom/override generated sql -->
+        <copy todir="${org.apache.jetspeed.database.target.sql}" overwrite="true" verbose="true" failonerror="false">
+            <fileset dir="${org.apache.jetspeed.database.source.sql}">
+                <include name="**/*.sql"/>
+            </fileset>
+        </copy>
+
+    </target>
+
+    <target name="test-database-default-name">
+        <condition property="org.apache.jetspeed.database.is.mssql">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="mssql"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.mysql">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="mysql"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.oracle">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="oracle"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.hsql">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="hsql"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.postgres">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="postgres"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.sapdb">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="sapdb"/>
+        </condition>
+        <condition property="org.apache.jetspeed.database.is.derby">
+            <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="derby"/>
+        </condition>
+    </target>
+
+    <target name="test-database-filter-drops">
+        <condition property="org.apache.jetspeed.database.filter.drops">
+            <or>
+                <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="oracle"/>
+                <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="postgres"/>
+                <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="sapdb"/>
+                <equals arg1="${org.apache.jetspeed.database.default.name}" arg2="derby"/>
+            </or>
+        </condition>
+    </target>
+
+    <target name="schema-mssql" if="org.apache.jetspeed.database.is.mssql">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="mssql"/>
+        </antcall>
+    </target>
+
+    <target name="schema-mysql" if="org.apache.jetspeed.database.is.mysql">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="mysql"/>
+        </antcall>
+    </target>
+
+    <target name="schema-oracle" if="org.apache.jetspeed.database.is.oracle">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="oracle"/>
+        </antcall>
+    </target>
+
+    <target name="schema-hsql" if="org.apache.jetspeed.database.is.hsql">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="hypersonic"/>
+        </antcall>
+    </target>
+
+    <target name="schema-postgres" if="org.apache.jetspeed.database.is.postgres">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="postgresql"/>
+        </antcall>
+    </target>
+
+    <target name="schema-sapdb" if="org.apache.jetspeed.database.is.sapdb">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="sapdb"/>
+        </antcall>
+    </target>
+
+    <target name="schema-derby" if="org.apache.jetspeed.database.is.derby">
+        <antcall target="torque-gen">
+            <param name="torque.database" value="derby"/>
+        </antcall>
+    </target>
+
+    <target name="schema-filter-drops" if="org.apache.jetspeed.database.filter.drops">
+
+        <!-- comment out drops in schema scripts -->
+        <replaceregexp match="^\s*(drop)" flags="i" byline="on" replace="-- \1">
+            <fileset dir="${org.apache.jetspeed.database.target.sql}/schema">
+                <include name="*.sql"/>
+            </fileset>
+        </replaceregexp>
+
+    </target>
+
+    <!-- Torque tasks taken from build-torque.xml in the Torque Generator distribution -->
+
+    <taskdef name="torque-sql" classname="org.apache.torque.task.TorqueSQLTask"/>
+
+    <target name="check-use-classpath">
+        <condition property="torque.internal.useClasspath">
+            <equals arg1="${torque.useClasspath}" arg2="true"/>
+        </condition>
+    </target>
+
+    <target name="check-run-only-on-schema-change">
+        <condition property="torque.internal.runOnlyOnSchemaChange">
+            <equals arg1="${torque.runOnlyOnSchemaChange}" arg2="true"/>
+        </condition>
+    </target>
+
+    <target name="sql-check" depends="check-run-only-on-schema-change" if="torque.internal.runOnlyOnSchemaChange">
+        <uptodate property="torque.internal.sql.uptodate" targetfile="${torque.sql.dir}/${torque.project}-schema.sql">
+            <srcfiles dir="${torque.schema.dir}" includes="**/*-schema.xml" />
+        </uptodate>
+    </target>
+
+    <target name="torque-gen" depends="check-use-classpath, sql-check" unless="torque.internal.sql.uptodate">
+        <antcall target="sql-classpath"/>
+        <antcall target="sql-template"/>
+    </target>
+
+    <target name="sql-classpath" if="torque.internal.useClasspath">
+        <torque-sql contextProperties="${torque.contextProperties}"
+                    controlTemplate="${torque.template.sql}"
+                    idTableXMLFile="${torque.idTableXMLFile}"
+                    outputDirectory="${torque.sql.dir}"
+                    outputFile="report.${torque.project}.sql.generation"
+                    sqldbmap="${torque.sql.dir}/sqldb.map"
+                    targetDatabase="${torque.database}"
+                    useClasspath="${torque.useClasspath}">
+            <fileset dir="${torque.schema.dir}"
+                     includes="${torque.schema.sql.includes}"
+                     excludes="${torque.schema.sql.excludes}"/>
+        </torque-sql>
+    </target>
+
+    <target name="sql-template" unless="torque.internal.useClasspath">
+        <torque-sql contextProperties="${torque.contextProperties}"
+                    controlTemplate="${torque.template.sql}"
+                    idTableXMLFile="${torque.idTableXMLFile}"
+                    outputDirectory="${torque.sql.dir}"
+                    outputFile="report.${torque.project}.sql.generation"
+                    sqldbmap="${torque.sql.dir}/sqldb.map"
+                    targetDatabase="${torque.database}"
+                    templatePath="${torque.templatePath}">
+            <fileset dir="${torque.schema.dir}"
+                     includes="${torque.schema.sql.includes}"
+                     excludes="${torque.schema.sql.excludes}"/>
+        </torque-sql>
+    </target>
+
+    <!-- Populate Database -->
+
+    <target name="populate">
+
+        <!-- execute drop scripts -->
+        <antcall target="sql-execute">
+            <param name="database.arg.scripts.dir" value="${org.apache.jetspeed.target.sql}"/>
+            <param name="database.arg.scripts" value="drop.sql"/>
+            <param name="database.arg.onerror" value="continue"/>
+        </antcall>
+
+        <!-- execute schema scripts -->
+        <antcall target="sql-execute">
+            <param name="database.arg.scripts.dir" value="${org.apache.jetspeed.database.target.sql}/schema"/>
+            <param name="database.arg.scripts" value="*.sql"/>
+            <param name="database.arg.onerror" value="abort"/>
+        </antcall>
+
+        <!-- execute default population scripts -->
+        <antcall target="sql-execute">
+            <param name="database.arg.scripts.dir" value="${org.apache.jetspeed.target.sql}"/>
+            <param name="database.arg.scripts" value="populate-db-default.sql"/>
+            <param name="database.arg.onerror" value="abort"/>
+        </antcall>
+
+    </target>
+
+    <target name="sql-execute">
+        <sql url="${org.apache.jetspeed.database.url}"
+             classpath="${org.apache.jetspeed.database.jdbc.drivers.path}" driver="${org.apache.jetspeed.database.driver}" 
+             userid="${org.apache.jetspeed.database.user}" password="${org.apache.jetspeed.database.password}"
+             onerror="${database.arg.onerror}">
+            <fileset dir="${database.arg.scripts.dir}"> 
+                <include name="${database.arg.scripts}"/>
+            </fileset> 
+        </sql>
+    </target>
+
+</project>

Added: portals/jetspeed-2/trunk/etc/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/etc/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/etc/pom.xml (added)
+++ portals/jetspeed-2/trunk/etc/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>etc</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>pom</packaging>
+    <name>Jetspeed-2 Portal Database</name>
+    <description>
+        Project used to create DDL and DML database scripts and
+        execute them to popuate test and production instances.
+    </description>
+
+    <!-- Build Configuration -->
+
+    <build>
+
+        <!-- Plugin Executions -->
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+
+                    <!-- generate database schema -->
+                    <execution>
+                        <id>etc-schema</id>
+                        <phase>compile</phase>
+                        <configuration>
+                            <tasks>
+                                <ant target="schema" antfile="build.xml" dir="${basedir}" inheritall="off">
+                                    <property name="org.apache.jetspeed.database.default.name"
+                                              value="${org.apache.jetspeed.test.database.default.name}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+
+                    <!-- populate test database instance -->
+                    <execution>
+                        <id>etc-populate</id>
+                        <phase>generate-test-resources</phase>
+                        <configuration>
+                            <tasks>
+                                <ant target="populate" antfile="build.xml" dir="${basedir}" inheritall="off">
+                                    <property name="org.apache.jetspeed.database.default.name"
+                                              value="${org.apache.jetspeed.test.database.default.name}"/>
+                                    <property name="org.apache.jetspeed.database.url"
+                                              value="${org.apache.jetspeed.test.database.url}"/>
+                                    <property name="org.apache.jetspeed.database.jdbc.drivers.path"
+                                              value="${org.apache.jetspeed.test.jdbc.drivers.path}"/>
+                                    <property name="org.apache.jetspeed.database.driver"
+                                              value="${org.apache.jetspeed.test.database.driver}"/>
+                                    <property name="org.apache.jetspeed.database.user"
+                                              value="${org.apache.jetspeed.test.database.user}"/>
+                                    <property name="org.apache.jetspeed.database.password"
+                                              value="${org.apache.jetspeed.test.database.password}"/>
+                                </ant>
+                            </tasks>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+
+                </executions>
+
+                <!--
+                    Bug:  Dependencies should be in parent POM, but they are not propagated
+                    from the pluginManagement sections. Extensions also cannot be used since
+                    ant tag executions do not succeed in general: suspect class loading
+                    issues that result in NPE mysterious on <replaceregexp>.
+
+                    Note: All three ant dependencies are listed to keep nodeps in sync.
+                -->
+                <dependencies>
+                    <dependency>
+                        <groupId>torque</groupId>
+                        <artifactId>torque</artifactId>
+                        <version>${torque.version}</version>
+                        <exclusions>
+                            <exclusion>
+                                <groupId>jndi</groupId>
+                                <artifactId>jndi</artifactId>
+                            </exclusion>
+                            <exclusion>
+                                <groupId>javax.sql</groupId>
+                                <artifactId>jdbc-stdext</artifactId>
+                            </exclusion>
+                        </exclusions>
+                    </dependency>
+                    <dependency>
+                        <groupId>torque</groupId>
+                        <artifactId>torque-gen</artifactId>
+                        <version>${torque.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>torque</groupId>
+                        <artifactId>torque-gen</artifactId>
+                        <version>${torque.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>torque</groupId>
+                        <artifactId>torque-gen-templates</artifactId>
+                        <version>${torque.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-launcher</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-nodeps</artifactId>
+                        <version>${ant.version}</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+        </plugins>
+    </build>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/etc</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/etc</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/components/etc/</url>
+    </scm>
+
+</project>

Added: portals/jetspeed-2/trunk/jetspeed-api/pom.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/pom.xml?rev=373723&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/pom.xml (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/pom.xml Mon Jan 30 21:45:02 2006
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2006 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+  $Id:$
+-->
+<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>
+
+    <!-- POM Identification -->
+
+    <groupId>org.apache.portals.jetspeed-2</groupId>
+    <version>2.1-dev</version>
+    <artifactId>jetspeed-api</artifactId>
+    <parent>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <version>2.1-dev</version>
+        <artifactId>pom</artifactId>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <packaging>jar</packaging>
+    <name>Jetspeed-2 Core API</name>
+    <description>
+        Core API for implementing Jetspeed.
+    </description>
+
+    <!-- Dependencies -->
+
+    <dependencies>
+
+        <!-- Build Dependencies -->
+        <dependency>
+            <groupId>org.apache.pluto</groupId>
+            <artifactId>pluto</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>portlet-api</groupId>
+            <artifactId>portlet-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>servletapi</groupId>
+            <artifactId>servletapi</artifactId>
+        </dependency>
+
+    </dependencies>
+
+    <!-- Project Information -->
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/jetspeed-api</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/portals/jetspeed-2/trunk/jetspeed-api</developerConnection>
+        <url>http://svn.apache.org/viewcvs.cgi/portals/jetspeed-2/trunk/jetspeed-api/</url>
+    </scm>
+
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message