Mercurial > hg > Applications > AliceVNC
changeset 36:e6e5b45c921d
set manifest
author | sugi |
---|---|
date | Sun, 07 Dec 2014 18:30:44 +0900 |
parents | aace9df1462e |
children | 5e20f680d6d0 |
files | build.gradle src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java |
diffstat | 3 files changed, 7 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/build.gradle Thu Nov 13 16:09:09 2014 +0900 +++ b/build.gradle Sun Dec 07 18:30:44 2014 +0900 @@ -19,7 +19,10 @@ jar { manifest { - attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version + attributes 'Main-Class': 'jp.ac.u_ryukyu.alicevnc.StartAliceVNC', + 'Implementation-Version': "2.7.2", + 'Implementation-Title': 'TightVNC', + 'Implementation-Vendor': 'GlavSoft LLC.' } from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } archiveName = 'AliceVNC.jar'
--- a/src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java Thu Nov 13 16:09:09 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNCConfig.java Sun Dec 07 18:30:44 2014 +0900 @@ -4,36 +4,16 @@ public class AliceVNCConfig extends TopologyNodeConfig { - private boolean proxy; - private boolean viewer; private boolean change = true; - + public AliceVNCConfig(String[] args) { super(args); for (int i = 0; i< args.length; i++) { - if ("-proxy".equals(args[i])){ - // no display. behave as root - proxy = true; - viewer = false; - } else if ("-d".equals(args[i])) { - // behave as root with display. - proxy = true; - viewer = true; - } else if ("-c".equals(args[i])) { + if ("-c".equals(args[i])) { change = false; - } else { - viewer = true; } } } - - public boolean getViewerFlag(){ - return viewer; - } - - public boolean getProxyFlag(){ - return proxy; - } public boolean getAllowChange(){ return change;
--- a/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java Thu Nov 13 16:09:09 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/alicevnc/StartAliceVNC.java Sun Dec 07 18:30:44 2014 +0900 @@ -8,7 +8,7 @@ public static void main(String args[]){ AliceVNCConfig conf = new AliceVNCConfig(args); AliceVNC cs = new AliceVNC(conf); - if (conf.getManagerHostName() !=null){ + if (conf.getManagerHostName() !=null){ new TopologyNode(conf, cs); } else { cs.ods.put("_CLIST", new ArrayList<String>());