Skip to content

Commit

Permalink
Fix:
Browse files Browse the repository at this point in the history
- add lost pom.xml files and .gitignore
- add lost Test classes

git-svn-id: http://dev.eclipse.org/svnroot/rt/org.eclipse.gemini.dbaccess/trunk@60 12902edb-6d80-0410-83f6-77bc01f5a9c0
  • Loading branch information
jkissner committed May 12, 2011
1 parent c9b8921 commit ae085e7
Show file tree
Hide file tree
Showing 13 changed files with 274 additions and 0 deletions.
1 change: 1 addition & 0 deletions derby/org.apache.derby/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
28 changes: 28 additions & 0 deletions derby/org.apache.derby/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 SAP AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
ktsvetkov - initial implementation
-->

<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>

<parent>
<groupId>org.eclipse</groupId>
<artifactId>gemini.dbaccess.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../../mvn_parent</relativePath>
</parent>

<artifactId>org.apache.derby</artifactId>
<version>10.5.1.1</version>
<packaging>eclipse-plugin</packaging>
</project>
1 change: 1 addition & 0 deletions derby/org.eclipse.gemini.dbaccess.derby/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
28 changes: 28 additions & 0 deletions derby/org.eclipse.gemini.dbaccess.derby/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2010 SAP AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
ktsvetkov - initial implementation
-->

<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>

<parent>
<groupId>org.eclipse</groupId>
<artifactId>gemini.dbaccess.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../../mvn_parent</relativePath>
</parent>

<artifactId>org.eclipse.gemini.dbaccess.derby</artifactId>
<version>1.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
1 change: 1 addition & 0 deletions osgi.enterprise/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
1 change: 1 addition & 0 deletions osgi.enterprise/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin.includes = osgi.enterprise.jar
30 changes: 30 additions & 0 deletions osgi.enterprise/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright (c) 2010 SAP AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
ktsvetkov - initial implementation
-->

<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>

<parent>
<groupId>org.eclipse</groupId>
<artifactId>gemini.dbaccess.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../mvn_parent</relativePath>
</parent>

<groupId>org.eclipse</groupId>
<artifactId>osgi.enterprise</artifactId>
<version>4.2.0.201003190513</version>
<packaging>eclipse-plugin</packaging>
</project>
1 change: 1 addition & 0 deletions samples/org.eclipse.gemini.dbaccess.samples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
29 changes: 29 additions & 0 deletions samples/org.eclipse.gemini.dbaccess.samples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright (c) 2010 SAP AG.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
ktsvetkov - initial implementation
-->

<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>

<parent>
<groupId>org.eclipse</groupId>
<artifactId>gemini.dbaccess.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../../mvn_parent</relativePath>
</parent>

<artifactId>org.eclipse.gemini.dbaccess.samples</artifactId>
<version>1.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
3 changes: 3 additions & 0 deletions test/org.eclipse.gemini.dbaccess.test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target
/accountDB
/trace.out
51 changes: 51 additions & 0 deletions test/org.eclipse.gemini.dbaccess.test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- Copyright (c) 2010 SAP AG. All rights reserved. This program and the
accompanying materials are made available under the terms of the Eclipse
Public License v1.0 which accompanies this distribution, and is available
at http://www.eclipse.org/legal/epl-v10.html Contributors: ktsvetkov - initial
implementation -->

<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>

<parent>
<groupId>org.eclipse</groupId>
<artifactId>gemini.dbaccess.parent</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../../mvn_parent</relativePath>
</parent>

<packaging>eclipse-test-plugin</packaging>

<artifactId>org.eclipse.gemini.dbaccess.test</artifactId>
<version>1.1.0-SNAPSHOT</version>
<!-- <packaging>eclipse-plugin</packaging> -->
<build>
<plugins>
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-test-plugin</artifactId>
<configuration>
<dependencies>
<dependency>
<type>eclipse-plugin</type>
<groupId>org.eclipse</groupId>
<artifactId>org.eclipse.gemini.dbaccess.derby</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*******************************************************************************
* Copyright (c) 2010 Oracle.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php.
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
* mkeith - Gemini DBAccess tests
******************************************************************************/
package org.eclipse.gemini.dbaccess.test;

import java.util.Properties;

import org.junit.*;
import org.osgi.service.jdbc.DataSourceFactory;

/**
* Test class to test OSGi JDBC embedded driver data source factory service
*
* @author mkeith
*/
public class EmbeddedDriverTest extends JdbcTests {

public static String EMBEDDED_DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver";
public static String JDBC_VERSION = "3.0";


@BeforeClass
public static void setUpClass() throws Exception {
JdbcTests.setUpClass();
log("In EmbeddedDriverTests setup");
dsf = lookupDsf(EMBEDDED_DRIVER_NAME, JDBC_VERSION);
log("Found DSF service - " + dsf);
}

@AfterClass
public static void classCleanUp() {
dsf = null;
}

protected Properties getDataSourceProperties() {
Properties props = new Properties();
props.put(DataSourceFactory.JDBC_DATABASE_NAME, "accountDB");
return props;
}

protected Properties getUrlProperties() {
Properties props = new Properties();
props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME,
"org.apache.derby.jdbc.EmbeddedDriver");
props.put(DataSourceFactory.JDBC_URL,
"jdbc:derby:accountDB;create=true");
return props;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*******************************************************************************
* Copyright (c) 2010 Oracle.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php.
* You may elect to redistribute this code under either of these licenses.
*
* Contributors:
* mkeith - Gemini DBAccess tests
******************************************************************************/
package org.eclipse.gemini.dbaccess.test;

import org.junit.*;

/**
* Test class to test OSGi JDBC 4 embedded driver data source factory service
*
* @author mkeith
*/
public class Jdbc4EmbeddedDriverTest extends EmbeddedDriverTest {

public static String EMBEDDED_DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver";
public static String JDBC_4_VERSION = "4.0";

@BeforeClass
public static void classSetUp() {
log("In Jdbc4EmbeddedDriverTests setup");
dsf = lookupDsf(EMBEDDED_DRIVER_NAME, JDBC_4_VERSION);
log("Found DSF service - " + dsf);
}

@AfterClass
public static void classCleanUp() {
dsf = null;
}
}

0 comments on commit ae085e7

Please sign in to comment.