Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jun 27, 2011
1 parent d5fdcc8 commit 60988e3
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 63 deletions.
118 changes: 61 additions & 57 deletions quickstarts/helloworld-osgi/pom.xml
Original file line number Diff line number Diff line change
@@ -1,61 +1,65 @@
<?xml version="1.0"?>
<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>

<groupId>org.jboss.as.quickstarts</groupId>
<artifactId>jboss-as-helloworld-osgi</artifactId>
<version>7.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>JBoss AS Quickstarts: Helloworld OSGi</name>

<url>http://jboss.org/jbossas</url>
<licenses>
<license>
<name>GNU Lesser General Public License</name>
<url>http://www.gnu.org/copyleft/lesser.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<!-- This plugin takes care of packaging the artifact as an OSGi Bundle -->
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<!-- OSGi Manifest Metadata is specified here -->
<!-- The Bundle SymbolicName is the same as the artifact ID -->
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>

<!-- Specify the Bundle activator, which is invoked when the Bundle is started -->
<Bundle-Activator>org.jboss.as.quickstarts.helloworld.osgi.Activator</Bundle-Activator>

<!-- Automatically compute all the necessary Import-Package statements -->
<Import-Package>*</Import-Package>

<!-- This bundle does not export any packages -->
<Export-Package/>

<!-- Packages that are not exported but need to be included need to be
listed as Private-Package -->
<Private-Package>org.jboss.as.quickstarts.helloworld.osgi</Private-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<modelVersion>4.0.0</modelVersion>

<groupId>org.jboss.as.quickstarts</groupId>
<artifactId>jboss-as-helloworld-osgi</artifactId>
<version>7.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<name>JBoss AS Quickstarts: Helloworld OSGi</name>

<url>http://jboss.org/jbossas</url>
<licenses>
<license>
<name>GNU Lesser General Public License</name>
<url>http://www.gnu.org/copyleft/lesser.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
<version>4.2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<!-- This plugin takes care of packaging the artifact as an OSGi
Bundle -->
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<!-- OSGi Manifest Metadata is specified here -->
<!-- The Bundle SymbolicName is the same as the artifact
ID -->
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>

<!-- Specify the Bundle activator, which is invoked when
the Bundle is started -->
<Bundle-Activator>org.jboss.as.quickstarts.helloworld.osgi.Activator</Bundle-Activator>

<!-- Automatically compute all the necessary Import-Package
statements -->
<Import-Package>*</Import-Package>

<!-- This bundle does not export any packages -->
<Export-Package />

<!-- Packages that are not exported but need to be included
need to be listed as Private-Package -->
<Private-Package>org.jboss.as.quickstarts.helloworld.osgi</Private-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
System.out.println("Hello AS7!");
}
public void start(BundleContext context) throws Exception {
System.out.println("Hello AS7!");
}

public void stop(BundleContext context) throws Exception {
System.out.println("Bye AS7!");
}
public void stop(BundleContext context) throws Exception {
System.out.println("Bye AS7!");
}
}

0 comments on commit 60988e3

Please sign in to comment.