Skip to content

Commit 919cd5d

Browse files
author
Lars Pfannenschmidt
committed
Added Basic Project structure for 3rd party API, own API + implementation + fragment bundle for tests
1 parent 297c1a1 commit 919cd5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+536
-0
lines changed

.project

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>testing</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.m2e.core.maven2Builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
16+
</natures>
17+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

.settings/org.eclipse.m2e.core.prefs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src/main/java"/>
6+
<classpathentry kind="output" path="target"/>
7+
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.github.groovyosgi.testing.paymentservice</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
pluginProject.extensions=false
3+
resolve.requirebundle=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Payment Service API
4+
Bundle-SymbolicName: com.github.groovyosgi.testing.paymentservice
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: Money Bank
7+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source.. = src/main/java/
2+
output.. = target/
3+
bin.includes = META-INF/,\
4+
.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<project
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.github.groovyosgi</groupId>
8+
<artifactId>testing</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>com.github.groovyosgi.testing.paymentservice</artifactId>
13+
<packaging>eclipse-plugin</packaging>
14+
15+
<name>Payment Service API</name>
16+
</project>
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src/main/java"/>
6+
<classpathentry kind="output" path="target"/>
7+
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.github.groovyosgi.testing.pizzaservice.impl</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
pluginProject.extensions=false
3+
resolve.requirebundle=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Pizza Service Implementation
4+
Bundle-SymbolicName: com.github.groovyosgi.testing.pizzaservice.impl
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Activator: com.github.groovyosgi.testing.pizzaservice.impl.Activator
7+
Bundle-Vendor: Luigis Pizza
8+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
9+
Import-Package: org.osgi.framework
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source.. = src/main/java/
2+
output.. = target/
3+
bin.includes = META-INF/,\
4+
.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<project
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.github.groovyosgi</groupId>
8+
<artifactId>testing</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>com.github.groovyosgi.testing.pizzaservice.impl</artifactId>
13+
<packaging>eclipse-plugin</packaging>
14+
15+
<name>Pizza Service Implementation</name>
16+
</project>
17+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.github.groovyosgi.testing.pizzaservice.impl;
2+
3+
import org.osgi.framework.BundleActivator;
4+
import org.osgi.framework.BundleContext;
5+
6+
public class Activator implements BundleActivator {
7+
8+
private static BundleContext context;
9+
10+
static BundleContext getContext() {
11+
return context;
12+
}
13+
14+
/*
15+
* (non-Javadoc)
16+
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
17+
*/
18+
public void start(BundleContext bundleContext) throws Exception {
19+
Activator.context = bundleContext;
20+
}
21+
22+
/*
23+
* (non-Javadoc)
24+
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
25+
*/
26+
public void stop(BundleContext bundleContext) throws Exception {
27+
Activator.context = null;
28+
}
29+
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src/main/groovy"/>
4+
<classpathentry kind="src" path="src/main/java"/>
5+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
6+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
7+
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
8+
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
9+
<classpathentry kind="output" path="target"/>
10+
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>com.github.groovyosgi.testing.pizzaservice.test</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
26+
<nature>org.eclipse.pde.PluginNature</nature>
27+
<nature>org.eclipse.jdt.core.javanature</nature>
28+
</natures>
29+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.compliance=1.7
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
groovy.compiler.level=21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
pluginProject.extensions=false
3+
resolve.requirebundle=false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Pizza Service Groovy Test Fragment
4+
Bundle-SymbolicName: com.github.groovyosgi.testing.pizzaservice.test
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: Luigis Pizza
7+
Fragment-Host: com.github.groovyosgi.testing.pizzaservice.impl;bundle-version="1.0.0"
8+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
9+
Require-Bundle: org.junit
10+
Import-Package: groovy.lang,
11+
org.codehaus.groovy.reflection,
12+
org.codehaus.groovy.runtime,
13+
org.codehaus.groovy.runtime.callsite,
14+
org.codehaus.groovy.runtime.typehandling,
15+
org.hamcrest;core=split,
16+
org.junit;version="4.0.0",
17+
org.junit.matchers;version="4.0.0",
18+
org.junit.runner;version="4.0.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source.. = src/main/java/
2+
output.. = target/
3+
bin.includes = META-INF/,\
4+
.

0 commit comments

Comments
 (0)