Mercurial > hg > release > thermostat-0.4
changeset 521:7fce07cbb012
Add system.bundle fragment
This adds a dummy fragment which attaches to the system.bundle
(Bundle-SymbolicName). It's sole purpose is to have JVM internal packages
exported in an OSGi sense. Conceptually this is very similar to
osgi-export.properties.
I've also added poms for building this fragment. Building other eclipse
plug-ins won't be different. This fragment can be built using Tycho via:
$ cd client/eclipse
$ mvn clean install
I've not added it (yet) as a module to the main pom so that it gets built
together with the main thermostat build. This is because it doesn't do much and
is pretty useless on it's own. Once the Eclipse client prototype is in enabling
builds that way will make more sense.
Reviewed-by: neugens
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-July/002525.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Fri, 27 Jul 2012 13:58:21 +0200 |
parents | c3c8643bf10f |
children | b377a294ed2e |
files | client/eclipse/com.redhat.thermostat.eclipse.boot/.classpath client/eclipse/com.redhat.thermostat.eclipse.boot/.project client/eclipse/com.redhat.thermostat.eclipse.boot/.settings/org.eclipse.jdt.core.prefs client/eclipse/com.redhat.thermostat.eclipse.boot/.settings/org.eclipse.pde.prefs client/eclipse/com.redhat.thermostat.eclipse.boot/META-INF/MANIFEST.MF client/eclipse/com.redhat.thermostat.eclipse.boot/build.properties client/eclipse/com.redhat.thermostat.eclipse.boot/pom.xml client/eclipse/com.redhat.thermostat.eclipse.boot/src/.dummy.txt client/eclipse/pom.xml |
diffstat | 9 files changed, 358 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/.classpath Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/.project Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>com.redhat.thermostat.eclipse.boot</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/.settings/org.eclipse.jdt.core.prefs Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/.settings/org.eclipse.pde.prefs Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,32 @@ +compilers.f.unresolved-features=1 +compilers.f.unresolved-plugins=1 +compilers.incompatible-environment=1 +compilers.p.build=1 +compilers.p.build.bin.includes=1 +compilers.p.build.encodings=2 +compilers.p.build.java.compiler=2 +compilers.p.build.java.compliance=1 +compilers.p.build.missing.output=2 +compilers.p.build.output.library=1 +compilers.p.build.source.library=1 +compilers.p.build.src.includes=1 +compilers.p.deprecated=1 +compilers.p.discouraged-class=1 +compilers.p.internal=1 +compilers.p.missing-packages=2 +compilers.p.missing-version-export-package=2 +compilers.p.missing-version-import-package=2 +compilers.p.missing-version-require-bundle=2 +compilers.p.no-required-att=0 +compilers.p.not-externalized-att=2 +compilers.p.unknown-attribute=1 +compilers.p.unknown-class=1 +compilers.p.unknown-element=1 +compilers.p.unknown-identifier=1 +compilers.p.unknown-resource=1 +compilers.p.unresolved-ex-points=0 +compilers.p.unresolved-import=2 +compilers.s.create-docs=false +compilers.s.doc-folder=doc +compilers.s.open-tags=1 +eclipse.preferences.version=1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/META-INF/MANIFEST.MF Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Thermostat Eclipse client boot exports +Bundle-SymbolicName: com.redhat.thermostat.eclipse.boot +Bundle-Version: 0.4.0.qualifier +Bundle-Vendor: Redhat Inc. +Fragment-Host: system.bundle +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: sun.swing, + sun.swing.table, + sun.misc, + sun.jvm.hotspot.tools, + com.sun.tools.hat.internal.model, + com.sun.tools.hat.internal.parser, + com.sun.tools.attach, + sun.jvmstat, + sun.jvmstat.monitor, + sun.jvmstat.monitor.event
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/build.properties Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/pom.xml Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>thermostat-eclipse-parent</artifactId> + <groupId>com.redhat.thermostat.eclipse.parent</groupId> + <version>0.4.0-SNAPSHOT</version> + </parent> + <groupId>com.redhat.thermostat.eclipse.parent</groupId> + <artifactId>com.redhat.thermostat.eclipse.boot</artifactId> + <version>0.4.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> + + <name>Thermostat Eclipse Client Boot Package</name> + + <build> + <!-- workaround for https://issues.sonatype.org/browse/TYCHO-168 --> + <resources> + <resource> + <directory>src</directory> + <excludes> + <exclude>**/*.java</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-source-plugin</artifactId> + </plugin> + </plugins> + </build> +</project>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/com.redhat.thermostat.eclipse.boot/src/.dummy.txt Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,1 @@ +This file is simply there to make Eclipse happy and have some src folder. \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/eclipse/pom.xml Fri Jul 27 13:58:21 2012 +0200 @@ -0,0 +1,227 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2012, Red Hat, Inc. + + Thermostat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 2, or (at your + option) any later version. + + Thermostat is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Thermostat; see the file COPYING. If not see + <http://www.gnu.org/licenses/>. + + Linking this code with other modules is making a combined work + based on this code. Thus, the terms and conditions of the GNU + General Public License cover the whole combination. + + As a special exception, the copyright holders of this code give + you permission to link this code with independent modules to + produce an executable, regardless of the license terms of these + independent modules, and to copy and distribute the resulting + executable under terms of your choice, provided that you also + meet, for each linked independent module, the terms and conditions + of the license of that module. An independent module is a module + which is not derived from or based on this code. If you modify + this code, you may extend this exception to your version of the + library, but you are not obligated to do so. If you do not wish + to do so, delete this exception statement from your version. + +--> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.eclipse</groupId> + <artifactId>eclipse-parent</artifactId> + <version>3</version> + </parent> + + <prerequisites> + <maven>3.0</maven> + </prerequisites> + + <groupId>com.redhat.thermostat.eclipse.parent</groupId> + <artifactId>thermostat-eclipse-parent</artifactId> + <version>0.4.0-SNAPSHOT</version> + <packaging>pom</packaging> + + <name>Thermostat Eclipse Client (Parent)</name> + + <licenses> + <license> + <name>GPL with Classpath Exception</name> + </license> + </licenses> + + <properties> + <tycho-version>0.15.0</tycho-version> + <tycho-extras-version>0.15.0</tycho-extras-version> + <platform-version-name>juno</platform-version-name> + <eclipse-site>http://download.eclipse.org/releases/${platform-version-name}</eclipse-site> + <orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository/</orbit-site> + </properties> + + <profiles> + <profile> + <id>platform-helios</id> + <activation> + <property> + <name>platform-version-name</name> + <value>helios</value> + </property> + </activation> + <properties> + <eclipse-site>http://download.eclipse.org/releases/helios</eclipse-site> + <platform-version>[3.6,3.7)</platform-version> + </properties> + </profile> + <profile> + <id>platform-juno</id> + <activation> + <activeByDefault>true</activeByDefault> + <property> + <name>platform-version-name</name> + <value>juno</value> + </property> + </activation> + <properties> + <eclipse-site>http://download.eclipse.org/releases/juno</eclipse-site> + <platform-version>[3.8,4.3)</platform-version> + </properties> + </profile> + </profiles> + + <modules> + <module>com.redhat.thermostat.eclipse.boot</module> + </modules> + + <repositories> + <repository> + <id>platform</id> + <layout>p2</layout> + <url>${eclipse-site}</url> + </repository> + <repository> + <id>orbit</id> + <layout>p2</layout> + <url>${orbit-site}</url> + </repository> + <repository> + <id>maven.eclipse.org</id> + <url>http://maven.eclipse.org/nexus/content/groups/public/</url> + </repository> + </repositories> + + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-maven-plugin</artifactId> + <version>${tycho-version}</version> + <extensions>true</extensions> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>target-platform-configuration</artifactId> + <version>${tycho-version}</version> + <configuration> + <resolver>p2</resolver> + </configuration> + </plugin> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src.xml</descriptor> + </descriptors> + </configuration> + </plugin> + <plugin> + <groupId>org.eclipse.tycho.extras</groupId> + <artifactId>tycho-source-feature-plugin</artifactId> + <version>${tycho-extras-version}</version> + <executions> + <execution> + <id>source-feature</id> + <phase>package</phase> + <goals> + <goal>source-feature</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-compiler-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <encoding>UTF-8</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-surefire-plugin</artifactId> + <version>${tycho-version}</version> + <configuration> + <useUIHarness>true</useUIHarness> + <useUIThread>true</useUIThread> + <product>org.eclipse.sdk.ide</product> + </configuration> + </plugin> + <plugin> + <!-- TODO remove workaround when + https://issues.sonatype.org/browse/TYCHO-473 + is fixed --> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-source-plugin</artifactId> + <version>${tycho-version}</version> + <executions> + <execution> + <id>attach-source</id> + <phase>process-classes</phase> + <goals> + <goal>plugin-source</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>2.5</version> + <configuration> + <encoding>ISO-8859-1</encoding> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.3</version> + <configuration> + <tarLongFileMode>gnu</tarLongFileMode> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-site-plugin</artifactId> + <version>3.1</version> + </plugin> + </plugins> + </pluginManagement> + </build> +</project>