aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject svn commit: r1075099 [7/7] - in /aries/tags/jpa-0.1-incubating: ./ jpa-api/ jpa-api/src/ jpa-api/src/main/ jpa-api/src/main/java/ jpa-api/src/main/java/org/ jpa-api/src/main/java/org/apache/ jpa-api/src/main/java/org/apache/aries/ jpa-api/src/main/java...
Date Sun, 27 Feb 2011 18:08:17 GMT
Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/parsing/PersistenceXMLParsingTest.java
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/parsing/PersistenceXMLParsingTest.java?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/parsing/PersistenceXMLParsingTest.java (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/parsing/PersistenceXMLParsingTest.java Sun Feb 27 18:08:10 2011
@@ -0,0 +1,308 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.jpa.container.parsing;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Properties;
+
+import org.apache.aries.jpa.container.impl.PersistenceDescriptorImpl;
+import org.apache.aries.jpa.container.parsing.impl.PersistenceDescriptorParserImpl;
+import org.apache.aries.unittest.mocks.Skeleton;
+import org.junit.Test;
+import org.osgi.framework.Bundle;
+
+public class PersistenceXMLParsingTest
+{
+
+  /**
+   * Test parsing a persistence descriptor with several entries
+   * @throws Exception
+   */
+  @Test
+  public void testFile1() throws Exception
+  {
+    InputStream is = null;
+    try {
+      String location = "file1/META-INF/persistence.xml"; 
+      is = getClass().getClassLoader().getResourceAsStream(location);
+      PersistenceDescriptor descriptor = new PersistenceDescriptorImpl(location, is);
+      
+      Bundle b = Skeleton.newMock(Bundle.class);
+      
+      Collection<ParsedPersistenceUnit> parsedUnits = new PersistenceDescriptorParserImpl().parse(b, descriptor);
+      assertEquals("An incorrect number of persistence units has been returned.", 4, parsedUnits.size());
+      
+      List<ParsedPersistenceUnit> units = getList(parsedUnits);
+      
+      ParsedPersistenceUnit unit = units.get(0);
+      
+      assertEquals("The schema version was incorrect", "1.0",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SCHEMA_VERSION));
+      assertEquals("The unit name was incorrect", "alpha",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME));
+      assertNull("The transaction type was incorrect",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.TRANSACTION_TYPE));
+      assertNull("The provider class name was incorrect",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROVIDER_CLASSNAME));
+      assertNull("The jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JTA_DATASOURCE));
+      assertNull("The non jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.NON_JTA_DATASOURCE));
+      assertNull("One or more mapping files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES));
+      assertNull("One or more jar files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JAR_FILES));
+      assertNull("One or more managed classes were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES));
+      assertNull("We should not exclude any classes",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.EXCLUDE_UNLISTED_CLASSES));
+      assertNull("The properties should never be null",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES));
+      assertSame("The persistence unit was associated with the wrong bundle", b, unit.getDefiningBundle());
+      
+
+      unit = units.get(1);
+      
+      assertEquals("The schema version was incorrect", "1.0",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SCHEMA_VERSION));
+      assertEquals("The unit name was incorrect", "bravo",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME));
+      assertEquals("The transaction type was incorrect", "JTA",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.TRANSACTION_TYPE));
+      assertEquals("The provider class name was incorrect", "bravo.persistence.provider",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROVIDER_CLASSNAME));
+      assertEquals("The jta datasource jndi name was wrong", "bravo/jtaDS",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JTA_DATASOURCE));
+      assertEquals("The non jta datasource jndi name was wrong", "bravo/nonJtaDS",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.NON_JTA_DATASOURCE));
+      assertEquals("An incorrect number of mapping files were specified", 2,
+          ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES)).size());
+      assertTrue("Incorrect mapping files were listed",
+          ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES)).contains("bravoMappingFile1.xml")
+          && ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES)).contains("bravoMappingFile2.xml"));
+      assertEquals("An incorrect number of jar files were specified", 2,
+          ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JAR_FILES)).size());
+      assertTrue("Incorrect jar URLs were listed", checkJARURLs((Collection<String>)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JAR_FILES)));
+          
+      assertEquals("An incorrect number of managed classes were specified", 2,
+          ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES)).size());
+      assertTrue("Incorrect managed classes were listed",
+          ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES)).contains("bravoClass1")
+          && ((Collection)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES)).contains("bravoClass2"));
+      
+      //In the schema this defaults to false. There is a separate test (testFile1b)
+      //for the spec behaviour, which defaults to true
+      assertFalse("We should exclude any classes not listed",
+          (Boolean)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.EXCLUDE_UNLISTED_CLASSES));
+      assertNotNull("The properties should never be null",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES));
+      assertEquals("The wrong number of properties were specified", 2,
+          ((Properties)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES)).size());
+      assertEquals("The property had the wrong value", "prop.value",
+          ((Properties)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES)).getProperty("some.prop"));
+      assertEquals("The property had the wrong value", "another.prop.value",
+          ((Properties)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES)).getProperty("some.other.prop"));
+      assertSame("The persistence unit was associated with the wrong bundle", b, unit.getDefiningBundle());
+      
+      
+      unit = units.get(2);
+      
+      assertEquals("The schema version was incorrect", "1.0",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SCHEMA_VERSION));
+      assertEquals("The unit name was incorrect", "charlie",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME));
+      assertEquals("The transaction type was incorrect", "RESOURCE_LOCAL",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.TRANSACTION_TYPE));
+      assertEquals("The provider class name was incorrect", "charlie.persistence.provider",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROVIDER_CLASSNAME));
+      assertNull("The jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JTA_DATASOURCE));
+      assertNull("The non jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.NON_JTA_DATASOURCE));
+      assertNull("One or more mapping files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES));
+      assertNull("One or more jar files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JAR_FILES));
+      assertNull("One or more managed classes were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES));
+      assertTrue("We should not exclude any classes",
+          (Boolean)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.EXCLUDE_UNLISTED_CLASSES));
+      assertNull("The properties should never be null",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES));
+
+      assertSame("The persistence unit was associated with the wrong bundle", b, unit.getDefiningBundle());
+      
+      
+      unit = units.get(3);
+      
+      assertEquals("The schema version was incorrect", "1.0",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SCHEMA_VERSION));
+      assertEquals("The unit name was incorrect", "delta",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME));
+      assertEquals("The transaction type was incorrect", "RESOURCE_LOCAL",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.TRANSACTION_TYPE));
+      assertEquals("The provider class name was incorrect", "delta.persistence.provider",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROVIDER_CLASSNAME));
+      assertNull("The jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JTA_DATASOURCE));
+      assertNull("The non jta datasource jndi name was wrong",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.NON_JTA_DATASOURCE));
+      assertNull("One or more mapping files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MAPPING_FILES));
+      assertNull("One or more jar files were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.JAR_FILES));
+      assertNull("One or more managed classes were specified",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.MANAGED_CLASSES));
+      assertFalse("We should not exclude any classes",
+          (Boolean)unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.EXCLUDE_UNLISTED_CLASSES));
+      assertNull("The properties should never be null",
+          unit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.PROPERTIES));
+      assertSame("The persistence unit was associated with the wrong bundle", b, unit.getDefiningBundle());
+
+    } finally {
+      
+      if(is != null)
+        is.close();
+    }
+    
+  }
+
+  @Test
+  public void testFile2() throws Exception
+  {
+    InputStream is = null;
+
+    try {
+      String location = "file2/META-INF/persistence.xml";
+      is = getClass().getClassLoader().getResourceAsStream(location);
+      PersistenceDescriptor descriptor = new PersistenceDescriptorImpl(location, is);
+
+      Bundle b = Skeleton.newMock(Bundle.class);
+      
+      Collection<ParsedPersistenceUnit> parsedUnits = new PersistenceDescriptorParserImpl().parse(b, descriptor);
+      assertEquals("An incorrect number of persistence units has been returned.", 0, parsedUnits.size());
+    } finally {
+      if(is != null)
+        is.close();
+    }
+  }
+  
+  @Test(expected=PersistenceDescriptorParserException.class)
+  public void testFile3() throws Exception
+  {
+    InputStream is = null;
+
+    try {
+      String location = "file3/META-INF/persistence.xml";
+      is = getClass().getClassLoader().getResourceAsStream(location);
+      PersistenceDescriptor descriptor = new PersistenceDescriptorImpl(location, is);
+      
+      Bundle b = Skeleton.newMock(Bundle.class);
+      
+      Collection<ParsedPersistenceUnit> parsedUnits = new PersistenceDescriptorParserImpl().parse(b, descriptor);
+
+      fail("Parsing should not succeed");
+    } finally {
+      if(is != null)
+        is.close();
+    }
+  }
+  
+  @Test
+  public void testJPA2() throws Exception
+  {
+    InputStream is = null;
+    try {
+      String location = "file22/META-INF/persistence.xml";
+      is = getClass().getClassLoader().getResourceAsStream(location);
+      PersistenceDescriptor descriptor = new PersistenceDescriptorImpl(location, is);
+      
+      Bundle b = Skeleton.newMock(Bundle.class);
+      List<ParsedPersistenceUnit> parsedUnits = getList(new PersistenceDescriptorParserImpl().parse(b, descriptor));
+      
+      assertEquals(2, parsedUnits.size());
+      
+      ParsedPersistenceUnit customUnit = parsedUnits.get(0);
+      assertEquals("ENABLE_SELECTIVE", customUnit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SHARED_CACHE_MODE));
+      assertEquals("CALLBACK", customUnit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.VALIDATION_MODE));
+
+      
+      ParsedPersistenceUnit defaultUnit = parsedUnits.get(1);
+      assertNull(defaultUnit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.SHARED_CACHE_MODE));
+      assertNull(defaultUnit.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.VALIDATION_MODE));
+        
+        
+    } finally {
+      if (is != null)
+        is.close();
+    }
+  }
+
+  /**
+   * Sort a Collection of ParsedPersistenceUnit into alphabetical order (by unit name)
+   * @param puinfos
+   * @return
+   */
+  private static List<ParsedPersistenceUnit> getList(Collection<? extends ParsedPersistenceUnit> puinfos)
+  {
+    List<ParsedPersistenceUnit> list = new ArrayList<ParsedPersistenceUnit>();
+    
+    list.addAll(puinfos);
+    
+    Collections.sort(list, new Comparator<ParsedPersistenceUnit>() {
+
+      public int compare(ParsedPersistenceUnit o1, ParsedPersistenceUnit o2)
+      {
+        return ((String)o1.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME))
+        .compareTo((String)o2.getPersistenceXmlMetadata().get(ParsedPersistenceUnit.UNIT_NAME));
+      }
+      
+    });
+    
+    return list;
+  }
+  
+  /**
+   * Check we have all the jar file names we expect
+   * @param collection
+   * @return
+   */
+  private boolean checkJARURLs(Collection<String> collection)
+  {
+    List<String> jars = new ArrayList<String>();
+    
+    jars.add("bravoJarFile1.jar");
+    jars.add("bravoJarFile2.jar");
+    
+    return collection.containsAll(jars);
+  }
+}

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/java/org/apache/aries/jpa/container/util/FakeManagedPersistenceUnitFactory.java Sun Feb 27 18:08:10 2011
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.jpa.container.util;
+
+import org.apache.aries.jpa.container.ManagedPersistenceUnitInfoFactory;
+import org.apache.aries.jpa.container.unit.impl.ManagedPersistenceUnitInfoFactoryImpl;
+
+public class FakeManagedPersistenceUnitFactory extends
+    ManagedPersistenceUnitInfoFactoryImpl implements
+    ManagedPersistenceUnitInfoFactory {
+
+  @Override
+  public String getDefaultProviderClassName() {
+    // TODO Auto-generated method stub
+    return "use.this.Provider";
+  }
+  
+  
+
+}

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file1/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file1/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file1/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file1/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha"/>
+  
+  <persistence-unit name="bravo" transaction-type="JTA">
+    <description>Persistence unit example2 for the unittest</description>
+    <provider>bravo.persistence.provider</provider>
+    <jta-data-source>bravo/jtaDS</jta-data-source>
+    <non-jta-data-source>bravo/nonJtaDS</non-jta-data-source>
+    <mapping-file>bravoMappingFile1.xml</mapping-file>
+    <mapping-file>bravoMappingFile2.xml</mapping-file>
+    <jar-file>bravoJarFile1.jar</jar-file>
+    <jar-file>bravoJarFile2.jar</jar-file>
+    <class>bravoClass1</class>
+    <class>bravoClass2</class>
+    <exclude-unlisted-classes/>
+    <properties>
+      <property name="some.prop" value="prop.value"/>
+      <property name="some.other.prop" value="another.prop.value"/>
+    </properties>
+  </persistence-unit>
+  
+  <persistence-unit name="charlie" transaction-type="RESOURCE_LOCAL">
+    <description>Persistence unit example3 for the unittest</description>
+    <provider>charlie.persistence.provider</provider>
+    <exclude-unlisted-classes>true</exclude-unlisted-classes>
+  </persistence-unit>
+  
+  <persistence-unit name="delta" transaction-type="RESOURCE_LOCAL">
+    <description>Persistence unit example3 for the unittest</description>
+    <provider>delta.persistence.provider</provider>
+    <exclude-unlisted-classes>false</exclude-unlisted-classes>
+  </persistence-unit>
+  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file10/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file10/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file10/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file10/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file11/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file11/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file11/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file11/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="(1.0.0,1.1.0)"/>
+    </properties>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file12/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file12/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file12/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file12/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="1.0.0"/>
+    </properties>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file13/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file13/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file13/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file13/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="(1.1.1,1.3.5)"/>
+    </properties>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file14/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file14/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file14/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file14/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,1.0.1]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file15/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file15/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file15/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file15/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,0.9.9]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file16/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file16/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file16/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file16/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,2.0.0]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.5,1.0.0)"/>
+    </properties>
+  </persistence-unit>
+  
+    <persistence-unit name="ch">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.9.9]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file17/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file17/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file17/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file17/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file18/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file18/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file18/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file18/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file19/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file19/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file19/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file19/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+    </properties>
+  </persistence-unit>
+
+  <persistence-unit name="charlie">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.6.1]"/>
+    </properties>
+  </persistence-unit>    
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file2/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file2/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file2/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file2/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <!-- This is an empty persistence.xml file -->
+  
+  <!--   
+  <persistence-unit name="bravo" transaction-type="JTA">
+    <description>Persistence unit example2 for the unittest</description>
+    <provider>bravo.persistence.provider</provider>
+    <jta-data-source>bravo/jtaDS</jta-data-source>
+    <non-jta-data-source>bravo/nonJtaDS</non-jta-data-source>
+    <mapping-file>bravoMappingFile1.xml</mapping-file>
+    <mapping-file>bravoMappingFile2.xml</mapping-file>
+    <jar-file>bravoJarFile1.jar</jar-file>
+    <jar-file>bravoJarFile2.jar</jar-file>
+    <class>bravoClass1</class>
+    <class>bravoClass2</class>
+    <exclude-unlisted-classes/>
+    <properties>
+      <property name="some.prop" value="prop.value"/>
+      <property name="some.other.prop" value="another.prop.value"/>
+    </properties>
+  </persistence-unit> 
+  -->  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file20/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file20/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file20/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file20/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.1.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[0.0.0,0.0.1]"/>
+    </properties>
+  </persistence-unit>  
+  
+  <persistence-unit name="charlie">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.1.0,1.1.1]"/>
+    </properties>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="persistence"/>
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/found.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/found.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/found.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/found.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="found"/>
+    
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/OSGI-INF/not-found.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="not-found"/>
+    
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/persistence/another.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/persistence/another.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/persistence/another.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file21/persistence/another.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="another"/>
+    
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file22/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file22/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file22/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file22/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">
+  <persistence-unit name="default" />
+
+  <persistence-unit name="custom" transaction-type="JTA">
+    <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
+    <validation-mode>CALLBACK</validation-mode>
+  </persistence-unit>
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file3/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file3/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file3/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file3/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <!-- This is an empty persistence.xml file -->
+  
+  <persistence-unit name="bravo" transaction-type="J_T_A">
+    <description>
+      <provider>bravo.persistence.provider</provider>
+    </description>
+    <jta-data-source>bravo/jtaDS</jta-data-source>
+    <non-jta-data-source>bravo/nonJtaDS</non-jta-data-source>
+    <mapping-file>bravoMappingFile1.xml</mapping-file>
+    <mapping-file>bravoMappingFile2.xml</mapping-file>
+    <jar-file>bravoJarFile1.jar</jar-file>
+    <jar-file>bravoJarFile2.jar</jar-file>
+    <class>bravoClass1</class>
+    <class>bravoClass2</class>
+    <exclude-unlisted-classes/>
+    <properties>
+      <property name="some.prop" value="prop.value"/>
+      <property name="some.other.prop" value="another.prop.value"/>
+    </properties>
+  </persistence-unit> 
+ 
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file4/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file4/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file4/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file4/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file5/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file5/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file5/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file5/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha"/>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file6/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file6/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file6/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file6/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  </persistence-unit>  
+
+  <persistence-unit name="bravo">
+  	<provider>no.such.Provider</provider>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file7/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file7/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file7/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file7/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="bravo"/>
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file8/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file8/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file8/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file8/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  </persistence-unit>  
+
+  <persistence-unit name="bravo">
+  	<provider>an.other.no.such.Provider</provider>
+  </persistence-unit>
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file9/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file9/META-INF/persistence.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file9/META-INF/persistence.xml (added)
+++ aries/tags/jpa-0.1-incubating/jpa-container/src/test/resources/file9/META-INF/persistence.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+   version="1.0">
+
+  <persistence-unit name="alpha">
+  	<provider>no.such.Provider</provider>
+  	<properties>
+      <property name="org.apache.aries.jpa.provider.version" value="[1.0.0,1.0.0]"/>
+    </properties>
+  </persistence-unit>  
+  
+</persistence>

Added: aries/tags/jpa-0.1-incubating/pom.xml
URL: http://svn.apache.org/viewvc/aries/tags/jpa-0.1-incubating/pom.xml?rev=1075099&view=auto
==============================================================================
--- aries/tags/jpa-0.1-incubating/pom.xml (added)
+++ aries/tags/jpa-0.1-incubating/pom.xml Sun Feb 27 18:08:10 2011
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you 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.
+-->
+<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>
+        <artifactId>java5-parent</artifactId>
+        <groupId>org.apache.aries</groupId>
+        <version>0.1-incubating</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.aries.jpa</groupId>
+    <artifactId>jpa</artifactId>
+    <packaging>pom</packaging>
+    <name>Aries JPA Component</name>
+    <version>0.1-incubating</version>
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/aries/tags/jpa-0.1-incubating</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/aries/tags/jpa-0.1-incubating</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/aries/tags/jpa-0.1-incubating</url>
+    </scm>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.api</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.blueprint.aries</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.blueprint.itest</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.blueprint.itest.bundle</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.container</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.container.context</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.container.itest</artifactId>
+                <version>${version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.jpa</groupId>
+                <artifactId>org.apache.aries.jpa.container.itest.bundle</artifactId>
+                <version>${version}</version>
+            </dependency>
+
+
+            <dependency>
+                <groupId>org.apache.aries</groupId>
+                <artifactId>org.apache.aries.util</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.blueprint</groupId>
+                <artifactId>org.apache.aries.blueprint</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.aries.testsupport</groupId>
+                <artifactId>org.apache.aries.testsupport.unit</artifactId>
+                <version>0.1-incubating</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.configadmin</artifactId>
+                <version>1.2.4</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.geronimo.specs</groupId>
+                <artifactId>geronimo-jpa_2.0_spec</artifactId>
+                <version>1.0</version>
+                <scope>provided</scope>
+            </dependency>
+
+            <dependency>
+                <groupId>org.apache.geronimo.specs</groupId>
+                <artifactId>geronimo-jta_1.1_spec</artifactId>
+                <version>1.1.1</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.openjpa</groupId>
+                <artifactId>openjpa</artifactId>
+                <version>2.0.0-beta3</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-lang</groupId>
+                <artifactId>commons-lang</artifactId>
+                <version>2.4</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-collections</groupId>
+                <artifactId>commons-collections</artifactId>
+                <version>3.2.1</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-pool</groupId>
+                <artifactId>commons-pool</artifactId>
+                <version>1.5.3</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.bundles</groupId>
+                <artifactId>org.apache.servicemix.bundles.serp</artifactId>
+                <version>1.13.1_2</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.persistence</groupId>
+                <artifactId>org.eclipse.persistence.jpa</artifactId>
+                <version>2.0.0</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.persistence</groupId>
+                <artifactId>org.eclipse.persistence.core</artifactId>
+                <version>2.0.0</version>
+            </dependency>
+            <dependency>
+                <groupId>org.eclipse.persistence</groupId>
+                <artifactId>org.eclipse.persistence.asm</artifactId>
+                <version>2.0.0</version>
+            </dependency>
+
+        </dependencies>
+    </dependencyManagement>
+    <modules>
+        <module>jpa-api</module>
+        <module>jpa-container</module>
+        <module>jpa-container-context</module>
+        <module>jpa-blueprint-aries</module>
+        <module>jpa-container-itest</module>
+        <module>jpa-container-testbundle</module>
+        <module>jpa-blueprint-testbundle</module>
+    </modules>
+
+    <profiles>
+        <profile>
+            <id>eclipselink</id>
+            <repositories>
+                <repository>
+                    <id>EclipseLink Repo</id>
+                    <url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
+                </repository>
+            </repositories>
+        </profile>
+        <profile>
+            <id>rat</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <version>0.6</version>
+                        <!-- Note: other configuration inherited from the parent pom -->
+                        <configuration>
+                            <excludes>
+                                <!-- These CDDL+GPL files are covered in the NOTICE.vm and LICENCE.vm in the jpa-container module -->
+                                <exclude>**/persistence.xsd.rsrc</exclude>
+                                <exclude>**/persistence_2_0.xsd.rsrc</exclude>
+                                <!-- The rest of the excludes below had to be copied from the parent pom -->
+                                <exclude>**/target/**/*</exclude>
+                                <exclude>**/appended-resources/**/*</exclude>
+                                <exclude>**/dependency-reduced-pom.xml</exclude>
+                                <exclude>**/velocity.log</exclude>
+                                <!-- manifest files don't support comments so don't contain the ASL2.0 header -->
+                                <exclude>**/*.MF</exclude>
+                                <!--RAT doesn't seem to recognize MIT style licenses-->
+                                <exclude>manual/src/styles/print.css</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>



Mime
View raw message