Skip to content

Commit 60988e3

Browse files
committed
Whitespace
1 parent d5fdcc8 commit 60988e3

File tree

2 files changed

+67
-63
lines changed

2 files changed

+67
-63
lines changed

quickstarts/helloworld-osgi/pom.xml

Lines changed: 61 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,65 @@
11
<?xml version="1.0"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>org.jboss.as.quickstarts</groupId>
7-
<artifactId>jboss-as-helloworld-osgi</artifactId>
8-
<version>7.0.0-SNAPSHOT</version>
9-
<packaging>bundle</packaging>
10-
<name>JBoss AS Quickstarts: Helloworld OSGi</name>
11-
12-
<url>http://jboss.org/jbossas</url>
13-
<licenses>
14-
<license>
15-
<name>GNU Lesser General Public License</name>
16-
<url>http://www.gnu.org/copyleft/lesser.html</url>
17-
<distribution>repo</distribution>
18-
</license>
19-
</licenses>
20-
21-
<dependencies>
22-
<dependency>
23-
<groupId>org.osgi</groupId>
24-
<artifactId>org.osgi.core</artifactId>
25-
<version>4.2.0</version>
26-
<scope>provided</scope>
27-
</dependency>
28-
</dependencies>
29-
30-
<build>
31-
<plugins>
32-
<plugin>
33-
<!-- This plugin takes care of packaging the artifact as an OSGi Bundle -->
34-
<groupId>org.apache.felix</groupId>
35-
<artifactId>maven-bundle-plugin</artifactId>
36-
<version>2.3.4</version>
37-
<extensions>true</extensions>
38-
<configuration>
39-
<instructions>
40-
<!-- OSGi Manifest Metadata is specified here -->
41-
<!-- The Bundle SymbolicName is the same as the artifact ID -->
42-
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
43-
44-
<!-- Specify the Bundle activator, which is invoked when the Bundle is started -->
45-
<Bundle-Activator>org.jboss.as.quickstarts.helloworld.osgi.Activator</Bundle-Activator>
46-
47-
<!-- Automatically compute all the necessary Import-Package statements -->
48-
<Import-Package>*</Import-Package>
49-
50-
<!-- This bundle does not export any packages -->
51-
<Export-Package/>
52-
53-
<!-- Packages that are not exported but need to be included need to be
54-
listed as Private-Package -->
55-
<Private-Package>org.jboss.as.quickstarts.helloworld.osgi</Private-Package>
56-
</instructions>
57-
</configuration>
58-
</plugin>
59-
</plugins>
60-
</build>
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>org.jboss.as.quickstarts</groupId>
7+
<artifactId>jboss-as-helloworld-osgi</artifactId>
8+
<version>7.0.0-SNAPSHOT</version>
9+
<packaging>bundle</packaging>
10+
<name>JBoss AS Quickstarts: Helloworld OSGi</name>
11+
12+
<url>http://jboss.org/jbossas</url>
13+
<licenses>
14+
<license>
15+
<name>GNU Lesser General Public License</name>
16+
<url>http://www.gnu.org/copyleft/lesser.html</url>
17+
<distribution>repo</distribution>
18+
</license>
19+
</licenses>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>org.osgi</groupId>
24+
<artifactId>org.osgi.core</artifactId>
25+
<version>4.2.0</version>
26+
<scope>provided</scope>
27+
</dependency>
28+
</dependencies>
29+
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<!-- This plugin takes care of packaging the artifact as an OSGi
34+
Bundle -->
35+
<groupId>org.apache.felix</groupId>
36+
<artifactId>maven-bundle-plugin</artifactId>
37+
<version>2.3.4</version>
38+
<extensions>true</extensions>
39+
<configuration>
40+
<instructions>
41+
<!-- OSGi Manifest Metadata is specified here -->
42+
<!-- The Bundle SymbolicName is the same as the artifact
43+
ID -->
44+
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
45+
46+
<!-- Specify the Bundle activator, which is invoked when
47+
the Bundle is started -->
48+
<Bundle-Activator>org.jboss.as.quickstarts.helloworld.osgi.Activator</Bundle-Activator>
49+
50+
<!-- Automatically compute all the necessary Import-Package
51+
statements -->
52+
<Import-Package>*</Import-Package>
53+
54+
<!-- This bundle does not export any packages -->
55+
<Export-Package />
56+
57+
<!-- Packages that are not exported but need to be included
58+
need to be listed as Private-Package -->
59+
<Private-Package>org.jboss.as.quickstarts.helloworld.osgi</Private-Package>
60+
</instructions>
61+
</configuration>
62+
</plugin>
63+
</plugins>
64+
</build>
6165
</project>

quickstarts/helloworld-osgi/src/main/java/org/jboss/as/quickstarts/helloworld/osgi/Activator.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
import org.osgi.framework.BundleContext;
2626

2727
public class Activator implements BundleActivator {
28-
public void start(BundleContext context) throws Exception {
29-
System.out.println("Hello AS7!");
30-
}
28+
public void start(BundleContext context) throws Exception {
29+
System.out.println("Hello AS7!");
30+
}
3131

32-
public void stop(BundleContext context) throws Exception {
33-
System.out.println("Bye AS7!");
34-
}
32+
public void stop(BundleContext context) throws Exception {
33+
System.out.println("Bye AS7!");
34+
}
3535
}

0 commit comments

Comments
 (0)