Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 5959ef9

Browse files
committed
SDK 1.3.55
0 parents  commit 5959ef9

13 files changed

Lines changed: 883 additions & 0 deletions
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
4+
<id>sources</id>
5+
<formats>
6+
<format>tar.gz</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<fileSets>
10+
<fileSet>
11+
<directory>.</directory>
12+
<includes>
13+
<include>pom.xml</include>
14+
<include>assembly.xml</include>
15+
</includes>
16+
<useDefaultExcludes>true</useDefaultExcludes>
17+
</fileSet>
18+
<fileSet>
19+
<directory>src</directory>
20+
<useDefaultExcludes>true</useDefaultExcludes>
21+
</fileSet>
22+
</fileSets>
23+
</assembly>
Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
<?xml version="1.0"?>
2+
<project
3+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>com.ur.urcap.examples</groupId>
9+
<artifactId>helloworldswing</artifactId>
10+
<version>1.0-SNAPSHOT</version>
11+
<name>Hello World Swing</name>
12+
<packaging>bundle</packaging>
13+
14+
<properties>
15+
16+
<!--********************************************************************-->
17+
<!-- Note: Update this section with relevant meta data -->
18+
<!-- that comes along with your URCap -->
19+
<!--********************************************************************-->
20+
<!--******************* BEGINNING OF URCAP META DATA *******************-->
21+
<urcap.symbolicname>com.ur.urcap.examples.helloworldswing</urcap.symbolicname>
22+
<urcap.vendor>Universal Robots</urcap.vendor>
23+
<urcap.contactAddress>Energivej 25, 5260 Odense S, Denmark</urcap.contactAddress>
24+
<urcap.copyright>Copyright (C) 2009-2017 Universal Robots. All Rights Reserved</urcap.copyright>
25+
<urcap.description>Hello World Swing sample URCap</urcap.description>
26+
<urcap.licenseType>Sample license</urcap.licenseType>
27+
<!--********************** END OF URCAP META DATA **********************-->
28+
<!--********************************************************************-->
29+
30+
<!-- Host, username and password of the robot to be used when running "mvn install -Premote" -->
31+
<urcap.install.host>localhost</urcap.install.host>
32+
<urcap.install.username>root</urcap.install.username>
33+
<urcap.install.password>easybot</urcap.install.password>
34+
35+
<!--Install path for the UR Sim-->
36+
<ursim.home></ursim.home>
37+
38+
<!--Host and standard user/password for UR Sim running in a VM-->
39+
<ursimvm.install.host></ursimvm.install.host>
40+
<ursimvm.install.username>ur</ursimvm.install.username>
41+
<ursimvm.install.password>easybot</ursimvm.install.password>
42+
</properties>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-compiler-plugin</artifactId>
49+
<version>3.6.0</version>
50+
<configuration>
51+
<source>1.6</source>
52+
<target>1.6</target>
53+
</configuration>
54+
</plugin>
55+
<plugin>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<version>3.0.2</version>
58+
<configuration>
59+
<archive>
60+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
61+
</archive>
62+
</configuration>
63+
</plugin>
64+
<plugin>
65+
<artifactId>maven-resources-plugin</artifactId>
66+
<version>3.0.2</version>
67+
</plugin>
68+
<plugin>
69+
<groupId>org.apache.felix</groupId>
70+
<artifactId>maven-bundle-plugin</artifactId>
71+
<version>2.4.0</version>
72+
<extensions>true</extensions>
73+
<executions>
74+
<execution>
75+
<id>bundle-manifest</id>
76+
<phase>process-classes</phase>
77+
<goals>
78+
<goal>manifest</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
<configuration>
83+
<instructions>
84+
<!--********** DO NOT MODIFY THE ENTRIES OF THIS SECTION **********-->
85+
<Bundle-Category>URCap</Bundle-Category>
86+
<Bundle-Activator>com.ur.urcap.examples.helloworldswing.impl.Activator</Bundle-Activator>
87+
<Bundle-Vendor>${urcap.vendor}</Bundle-Vendor>
88+
<Bundle-ContactAddress>${urcap.contactAddress}</Bundle-ContactAddress>
89+
<Bundle-Copyright>${urcap.copyright}</Bundle-Copyright>
90+
<Bundle-LicenseType>${urcap.licenseType}</Bundle-LicenseType>
91+
<Bundle-Description>${urcap.description}</Bundle-Description>
92+
<!--***************************************************************-->
93+
<Import-Package>
94+
com.ur.urcap.api*;version="[1.2.92,2.0.0)",
95+
*
96+
</Import-Package>
97+
</instructions>
98+
</configuration>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.codehaus.mojo</groupId>
102+
<artifactId>exec-maven-plugin</artifactId>
103+
<version>1.1</version>
104+
<executions>
105+
<!-- generate URCap package after compiling -->
106+
<execution>
107+
<id>package-urcap</id>
108+
<phase>package</phase>
109+
<goals>
110+
<goal>exec</goal>
111+
</goals>
112+
<configuration>
113+
<executable>cp</executable>
114+
<commandlineArgs>target/${project.build.finalName}.jar target/${project.build.finalName}.urcap</commandlineArgs>
115+
<workingDirectory>.</workingDirectory>
116+
</configuration>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<artifactId>maven-assembly-plugin</artifactId>
122+
<configuration>
123+
<descriptors>
124+
<descriptor>assembly.xml</descriptor>
125+
</descriptors>
126+
</configuration>
127+
<executions>
128+
<execution>
129+
<phase>package</phase>
130+
<goals>
131+
<goal>single</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
139+
<dependencies>
140+
<dependency>
141+
<groupId>org.osgi</groupId>
142+
<artifactId>org.osgi.core</artifactId>
143+
<version>4.3.0</version>
144+
</dependency>
145+
146+
<dependency>
147+
<groupId>com.ur.urcap</groupId>
148+
<artifactId>api</artifactId>
149+
<version>1.3.0</version>
150+
<scope>provided</scope>
151+
</dependency>
152+
153+
<!-- test dependencies -->
154+
<dependency>
155+
<groupId>junit</groupId>
156+
<artifactId>junit</artifactId>
157+
<version>4.12</version>
158+
<scope>test</scope>
159+
</dependency>
160+
</dependencies>
161+
162+
<profiles>
163+
<profile>
164+
<id>remote</id>
165+
<build>
166+
<plugins>
167+
<plugin>
168+
<groupId>org.codehaus.mojo</groupId>
169+
<artifactId>exec-maven-plugin</artifactId>
170+
<version>1.1</version>
171+
<executions>
172+
<execution>
173+
<id>remote-install-urcap</id>
174+
<phase>install</phase>
175+
<goals>
176+
<goal>exec</goal>
177+
</goals>
178+
<configuration>
179+
<executable>sshpass</executable>
180+
<commandlineArgs>-p ${urcap.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${urcap.install.username}@${urcap.install.host}:/root/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
181+
<workingDirectory>.</workingDirectory>
182+
</configuration>
183+
</execution>
184+
<execution>
185+
<id>remote-restart-ui</id>
186+
<phase>install</phase>
187+
<goals>
188+
<goal>exec</goal>
189+
</goals>
190+
<configuration>
191+
<executable>sshpass</executable>
192+
<commandlineArgs>-p ${urcap.install.password} ssh ${urcap.install.username}@${urcap.install.host} pkill java</commandlineArgs>
193+
<workingDirectory>.</workingDirectory>
194+
</configuration>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
</plugins>
199+
</build>
200+
</profile>
201+
<profile>
202+
<id>local</id>
203+
<build>
204+
<plugins>
205+
<plugin>
206+
<groupId>org.codehaus.mojo</groupId>
207+
<artifactId>exec-maven-plugin</artifactId>
208+
<version>1.1</version>
209+
<executions>
210+
<execution>
211+
<id>local-install-urcap</id>
212+
<phase>install</phase>
213+
<goals>
214+
<goal>exec</goal>
215+
</goals>
216+
<configuration>
217+
<executable>cp</executable>
218+
<commandlineArgs>target/${project.build.finalName}.jar ${user.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
219+
<workingDirectory>.</workingDirectory>
220+
</configuration>
221+
</execution>
222+
</executions>
223+
</plugin>
224+
</plugins>
225+
</build>
226+
</profile>
227+
<profile>
228+
<id>ursim</id>
229+
<build>
230+
<plugins>
231+
<plugin>
232+
<groupId>org.codehaus.mojo</groupId>
233+
<artifactId>exec-maven-plugin</artifactId>
234+
<version>1.1</version>
235+
<executions>
236+
<execution>
237+
<id>ursim-install-urcap</id>
238+
<phase>install</phase>
239+
<goals>
240+
<goal>exec</goal>
241+
</goals>
242+
<configuration>
243+
<executable>cp</executable>
244+
<commandlineArgs>target/${project.build.finalName}.jar ${ursim.home}/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
245+
<workingDirectory>.</workingDirectory>
246+
</configuration>
247+
</execution>
248+
</executions>
249+
</plugin>
250+
</plugins>
251+
</build>
252+
</profile>
253+
<profile>
254+
<id>ursimvm</id>
255+
<build>
256+
<plugins>
257+
<plugin>
258+
<groupId>org.codehaus.mojo</groupId>
259+
<artifactId>exec-maven-plugin</artifactId>
260+
<version>1.1</version>
261+
<executions>
262+
<execution>
263+
<id>ursimvm-install-urcap</id>
264+
<phase>install</phase>
265+
<goals>
266+
<goal>exec</goal>
267+
</goals>
268+
<configuration>
269+
<executable>sshpass</executable>
270+
<commandlineArgs>-p ${ursimvm.install.password} scp -o StrictHostKeyChecking=no target/${project.build.finalName}.jar ${ursimvm.install.username}@${ursimvm.install.host}:/home/ur/ursim-current/.urcaps/${urcap.symbolicname}.jar</commandlineArgs>
271+
<workingDirectory>.</workingDirectory>
272+
</configuration>
273+
</execution>
274+
</executions>
275+
</plugin>
276+
</plugins>
277+
</build>
278+
</profile>
279+
</profiles>
280+
</project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.ur.urcap.examples.helloworldswing.impl;
2+
3+
import com.ur.urcap.api.contribution.installation.swing.SwingInstallationNodeService;
4+
import com.ur.urcap.api.contribution.program.swing.SwingProgramNodeService;
5+
import org.osgi.framework.BundleActivator;
6+
import org.osgi.framework.BundleContext;
7+
8+
public class Activator implements BundleActivator {
9+
@Override
10+
public void start(final BundleContext context) throws Exception {
11+
context.registerService(SwingInstallationNodeService.class, new HelloWorldInstallationNodeService(), null);
12+
context.registerService(SwingProgramNodeService.class, new HelloWorldProgramNodeService(), null);
13+
}
14+
15+
@Override
16+
public void stop(BundleContext context) throws Exception {
17+
}
18+
}

0 commit comments

Comments
 (0)