Skip to content

Commit f684b1c

Browse files
committed
Created application distribution.
1 parent fe14f4d commit f684b1c

4 files changed

Lines changed: 27 additions & 31 deletions

File tree

j2se/java-amqp-demo/build.gradle

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
3+
apply plugin: 'application'
4+
5+
sourceCompatibility = 1.8
6+
mainClassName = 'com.kaazing.amqp.client.demo.JavaAmqpClientDemo'
37

4-
sourceCompatibility = 1.5
5-
version = '1.0'
6-
jar {
7-
manifest {
8-
attributes 'Implementation-Title': 'Kaazing AMQP Java Client Demo',
9-
'Implementation-Version': version
10-
}
11-
}
128

139
repositories {
1410
mavenCentral()
@@ -23,8 +19,11 @@ dependencies {
2319
testCompile group: 'junit', name: 'junit', version: '4.+'
2420
}
2521

26-
test {
27-
systemProperties 'property': 'value'
22+
jar {
23+
manifest {
24+
attributes 'Main-Class': mainClassName,
25+
'Class-Path': configurations.runtime.files.collect {"$it.name"}.join(' ')
26+
}
2827
}
2928

3029
uploadArchives {

j2se/java-jms-demo/build.gradle

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
3+
apply plugin: 'application'
34

4-
sourceCompatibility = 1.5
5-
version = '1.0'
6-
jar {
7-
manifest {
8-
attributes 'Implementation-Title': 'Kaazing JMS Java Client Demo',
9-
'Implementation-Version': version
10-
}
11-
}
5+
sourceCompatibility = 1.8
6+
mainClassName = 'com.kaazing.jms.client.demo.JavaJMSClientDemo'
7+
128

139
repositories {
1410
mavenCentral()
@@ -23,8 +19,11 @@ dependencies {
2319
testCompile group: 'junit', name: 'junit', version: '4.+'
2420
}
2521

26-
test {
27-
systemProperties 'property': 'value'
22+
jar {
23+
manifest {
24+
attributes 'Main-Class': mainClassName,
25+
'Class-Path': configurations.runtime.files.collect {"$it.name"}.join(' ')
26+
}
2827
}
2928

3029
uploadArchives {

j2se/java-ws-demo/build.gradle

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
3+
apply plugin: 'application'
34

4-
sourceCompatibility = 1.5
5-
version = '1.0'
6-
jar {
7-
manifest {
8-
attributes 'Implementation-Title': 'Kaazing WebSocket Java Client Demo',
9-
'Implementation-Version': version
10-
}
11-
}
5+
sourceCompatibility = 1.8
6+
mainClassName = 'com.kaazing.ws.client.demo.JavaWsClientDemo'
127

138
repositories {
149
mavenCentral()
@@ -23,8 +18,11 @@ dependencies {
2318
testCompile group: 'junit', name: 'junit', version: '4.+'
2419
}
2520

26-
test {
27-
systemProperties 'property': 'value'
21+
jar {
22+
manifest {
23+
attributes 'Main-Class': mainClassName,
24+
'Class-Path': configurations.runtime.files.collect {"$it.name"}.join(' ')
25+
}
2826
}
2927

3028
uploadArchives {

j2se/java-ws-demo/src/main/java/com/kaazing/ws/client/demo/JavaWsClientDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void sendMessage(String message) throws IOException {
6767
}
6868

6969
public static void main(String[] args) throws InterruptedException, URISyntaxException, IOException, JMSException {
70-
JavaWsClientDemo demo = new JavaWsClientDemo(new URI("ws://sandbox.kaazing.net/echo"));
70+
JavaWsClientDemo demo = new JavaWsClientDemo(new URI("wss://sandbox.kaazing.net/echo"));
7171
System.out.println("Kaazing Java WebSocket Demo App. Copyright (C) 2016 Kaazing, Inc.");
7272
System.out.println("Type the message to send or <exit> to stop.");
7373
BufferedReader console = new BufferedReader(new InputStreamReader(System.in));

0 commit comments

Comments
 (0)