Overhauled lightspeed

This commit is contained in:
Obique PSWG
2018-02-04 10:34:07 -06:00
parent a31b491834
commit ff7929a9a7
556 changed files with 8329 additions and 6652 deletions

View File

@@ -2,11 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/">
<accessrules>
<accessrule kind="accessible" pattern="javafx/**"/>
</accessrules>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin"/>
</classpath>

20
.gitignore vendored
View File

@@ -1,5 +1,17 @@
.settings/
bin/
.settings
# IDE-based
Launcher.iml
out
.idea
# Gradle
build
.gradle
gradle
gradlew*
# Lightspeed
data/
log/
cfg/
data/servers.csv
log.txt

12
.gitmodules vendored Normal file
View File

@@ -0,0 +1,12 @@
[submodule "pswgcommon"]
path = pswgcommon
url = git@bitbucket.org:projectswg/pswgcommon.git
[submodule "PSWGCommon"]
path = PSWGCommon
url = git@bitbucket.org:projectswg/pswgcommon.git
[submodule "PSWGCommonFX"]
path = PSWGCommonFX
url = git@bitbucket.org:projectswg/pswgcommonfx.git
[submodule "ClientHolocore"]
path = ClientHolocore
url = git@bitbucket.org:projectswg/client-holocore.git

1
ClientHolocore Submodule

Submodule ClientHolocore added at 58c943d639

1
PSWGCommon Submodule

Submodule PSWGCommon added at 5f1ce51e0a

1
PSWGCommonFX Submodule

Submodule PSWGCommonFX added at c557236c82

13
build.gradle Normal file
View File

@@ -0,0 +1,13 @@
group 'chat.nibble'
version '0.0'
apply plugin: 'java'
dependencies {
compile project(':lightspeed-server')
compile project(':lightspeed-client')
}
task wrapper(type: Wrapper) {
gradleVersion = "4.4"
}

View File

@@ -1,64 +0,0 @@
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
mainClassName = 'com.projectswg.lightspeed_frontend.LightspeedFrontendGUI'
manifest {
attributes 'Main-Class': 'com.projectswg.lightspeed_frontend.LightspeedFrontendGUI'
}
sourceSets {
main {
java {
srcDirs = ['src']
includes ['**/*.java']
}
resources {
srcDirs = ['src']
includes = ['**/*.fxml', '**/*.css', '**/*.properties']
}
}
test {
java {
srcDirs = ['test']
}
}
}
test {
testLogging {
events "skipped", "failed"
}
afterSuite { TestDescriptor td, TestResult tr ->
println 'Tests run: ('+tr.getTestCount()+'), Failures: ('+tr.getFailedTestCount()+'), Errors: (0)'
}
include 'com/projectswg/lightspeed/TestLightspeed.class'
}
shadowJar{
archiveName = "LightspeedFrontend.${extension}"
}
dependencies {
compileOnly fileTree(dir: 'lib', include: ['*.jar'])
runtime fileTree(dir: 'lib_frontend', include: ['*.jar'])
}
repositories {
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
jcenter()
}
dependencies {
compile "org.gradle:gradle-tooling-api:3.3"
}
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
}
}

View File

@@ -1,56 +0,0 @@
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
mainClassName = 'com.projectswg.Lightspeed'
manifest {
attributes 'Main-Class': 'com.projectswg.Lightspeed'
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
}
}
test {
testLogging {
events "skipped", "failed"
}
afterSuite { TestDescriptor td, TestResult tr ->
println 'Tests run: ('+tr.getTestCount()+'), Failures: ('+tr.getFailedTestCount()+'), Errors: (0)'
}
include 'com/projectswg/lightspeed/TestLightspeed.class'
}
shadowJar{
archiveName = "Lightspeed.${extension}"
}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'])
}
repositories {
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
jcenter()
}
dependencies {
compile "org.gradle:gradle-tooling-api:3.3"
}
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0' }
}

View File

@@ -1,2 +0,0 @@
name,directory,jvm_arguments
NGE,mydir,
1 name directory jvm_arguments
2 NGE mydir

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,44 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
}
}
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.2'
id 'application'
id 'java'
id 'idea'
}
version '1.0.0'
mainClassName = 'com.projectswg.lightspeed_frontend.LightspeedFrontendGUI'
sourceCompatibility = 1.9
targetCompatibility = 1.9
repositories {
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
jcenter()
}
dependencies {
compile project(':PSWGCommonFX')
compile project(':lightspeed-common')
compile group: "me.joshlarson", name: "fast-json-websocket-client", version: "1.4.1"
}
shadowJar {
baseName = "LightspeedFrontend"
classifier = null
version = null
}
task wrapper(type: Wrapper) {
gradleVersion = "4.4"
}

Binary file not shown.

View File

@@ -0,0 +1,27 @@
#####################################################################################
# Copyright (c) 2018 /// Project SWG /// www.projectswg.com #
# #
# ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on #
# July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. #
# Our goal is to create an emulator which will provide a server for players to #
# continue playing a game similar to the one they used to play. We are basing #
# it on the final publish of the game prior to end-game events. #
# #
# This file is part of Lightspeed. #
# #
# -------------------------------------------------------------------------------- #
# #
# Lightspeed is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation, either version 3 of the #
# License, or (at your option) any later version. #
# #
# Lightspeed is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with Lightspeed. If not, see <http://www.gnu.org/licenses/>. #
# #
#####################################################################################

View File

@@ -0,0 +1,27 @@
#####################################################################################
# Copyright (c) 2018 /// Project SWG /// www.projectswg.com #
# #
# ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on #
# July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. #
# Our goal is to create an emulator which will provide a server for players to #
# continue playing a game similar to the one they used to play. We are basing #
# it on the final publish of the game prior to end-game events. #
# #
# This file is part of Lightspeed. #
# #
# -------------------------------------------------------------------------------- #
# #
# Lightspeed is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation, either version 3 of the #
# License, or (at your option) any later version. #
# #
# Lightspeed is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with Lightspeed. If not, see <http://www.gnu.org/licenses/>. #
# #
#####################################################################################

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:id="primaryViewContainer" stylesheets="@PrimaryView.css" fx:controller="com.projectswg.lightspeed_frontend.gui.LightspeedPrimaryView">
<HBox alignment="CENTER_RIGHT" HBox.hgrow="ALWAYS" spacing="5.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
<TextField fx:id="ipAddressText" promptText="IP Address" pickOnBounds="true" />
<TextField fx:id="portText" promptText="Port" pickOnBounds="true" />
<Region fx:id="validIpRegion" minWidth="20" minHeight="20" maxWidth="20" maxHeight="20" />
<Region maxWidth="Infinity" HBox.hgrow="ALWAYS" />
<MenuButton fx:id="commonBuildStatus" mnemonicParsing="false" />
<MenuButton fx:id="commonDeploymentStatus" mnemonicParsing="false" />
</HBox>
<TabPane tabClosingPolicy="UNAVAILABLE" VBox.vgrow="ALWAYS">
<tabs>
<Tab text="General">
<content>
<fx:include source="primary_tabs/General.fxml" />
</content>
</Tab>
<Tab text="Build">
<content>
<fx:include source="primary_tabs/Build.fxml" />
</content>
</Tab>
<Tab text="Deployment">
<content>
<fx:include source="primary_tabs/Deployment.fxml" />
</content>
</Tab>
<Tab text="Settings">
<content>
<fx:include source="primary_tabs/Settings.fxml" />
</content>
</Tab>
</tabs>
</TabPane>
</VBox>

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:id="rootBuild" stylesheets="@Build.css" fx:controller="com.projectswg.lightspeed_frontend.gui.primary_tabs.BuildTab">
<padding>
<Insets top="5.0" left="5.0" right="5.0" bottom="5.0" />
</padding>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="200.0" minWidth="100.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="150.0" percentWidth="80" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="NEVER" prefHeight="50" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
</rowConstraints>
<ComboBox fx:id="buildComboBox" GridPane.fillWidth="true" maxWidth="200" GridPane.columnIndex="0" GridPane.rowIndex="0" />
<Label text="Server:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="1" />
<Label text="Build #:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="2"/>
<Label text="Status:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="3" />
<Label text="Time:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="4" />
<Label text="Compile Time:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="5" />
<Label text="Tests:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="6" />
<Label fx:id="serverNameText" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label fx:id="buildIdText" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<Label fx:id="statusText" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<Label fx:id="timeText" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Label fx:id="compileTimeText" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<Label fx:id="testText" GridPane.columnIndex="1" GridPane.rowIndex="6" />
</GridPane>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:id="rootDeployment" stylesheets="@Deployment.css" fx:controller="com.projectswg.lightspeed_frontend.gui.primary_tabs.DeploymentTab">
<padding>
<Insets top="5.0" left="5.0" right="5.0" bottom="5.0" />
</padding>
<GridPane>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="200.0" minWidth="100.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="150.0" percentWidth="80" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="NEVER" prefHeight="50" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
</rowConstraints>
<ComboBox fx:id="deploymentComboBox" GridPane.fillWidth="true" maxWidth="200" GridPane.columnIndex="0" GridPane.rowIndex="0" />
<Label text="Server:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="1" />
<Label text="Build #:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="2" />
<Label text="Deployment #:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="3" />
<Label text="Status:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="4" />
<Label text="Start Time:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="5" />
<Label text="Uptime:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="6" />
<Label text="Deployment Log:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="7" />
<Label fx:id="serverNameText" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label fx:id="buildIdText" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<Label fx:id="deploymentIdText" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<Label fx:id="statusText" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Label fx:id="startTimeText" GridPane.columnIndex="1" GridPane.rowIndex="5" />
<Label fx:id="uptimeText" GridPane.columnIndex="1" GridPane.rowIndex="6" />
<HBox GridPane.columnIndex="1" GridPane.rowIndex="7" spacing="5.0" >
<Button fx:id="logDownloadButton" text="Download" />
<ComboBox fx:id="logVerbosityComboBox" maxWidth="200" />
<ComboBox fx:id="logSizeComboBox" maxWidth="200" />
</HBox>
</GridPane>
<TextArea fx:id="logTextArea" styleClass="log" editable="false" maxHeight="Infinity" VBox.vgrow="ALWAYS" />
</VBox>

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:id="rootGeneral" stylesheets="@General.css" fx:controller="com.projectswg.lightspeed_frontend.gui.primary_tabs.GeneralTab">
<padding>
<Insets top="5.0" left="5.0" right="5.0" bottom="5.0" />
</padding>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="200.0" minWidth="100.0" />
<ColumnConstraints hgrow="ALWAYS" minWidth="150.0" percentWidth="80" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="NEVER" prefHeight="50" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
</rowConstraints>
<ComboBox fx:id="serverComboBox" GridPane.fillWidth="true" maxWidth="200" GridPane.columnIndex="0" GridPane.rowIndex="0" />
<Label text="Server:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="1"/>
<Label text="Build Status:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="2" />
<Label text="Deployment Status:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="3" />
<Label text="Population:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="4" />
<Label text="Uptime:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="5" />
<Label fx:id="serverNameText" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label fx:id="buildStatusText" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<Label fx:id="deploymentStatusText" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<Label fx:id="populationText" GridPane.columnIndex="1" GridPane.rowIndex="4" />
<Label fx:id="uptimeText" GridPane.columnIndex="1" GridPane.rowIndex="5" />
</GridPane>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:id="rootSettings" stylesheets="@Settings.css" fx:controller="com.projectswg.lightspeed_frontend.gui.primary_tabs.SettingsTab">
<padding>
<Insets top="5.0" left="5.0" right="5.0" bottom="5.0" />
</padding>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="200.0" minWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
<RowConstraints vgrow="NEVER" prefHeight="40" />
</rowConstraints>
<Label text="Security:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="0" />
<Label text="Keystore:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="1" />
<Label text="Keystore Pass:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="2" />
<Label text="Username:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="3" />
<Label text="Password:" styleClass="white-label" GridPane.columnIndex="0" GridPane.rowIndex="4" />
<CheckBox fx:id="securityCheckBox" GridPane.columnIndex="1" GridPane.rowIndex="0" />
<Button fx:id="keystoreButton" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<PasswordField fx:id="keystorePasswordTextField" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<TextField fx:id="usernameTextField" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<PasswordField fx:id="passwordTextField" GridPane.columnIndex="1" GridPane.rowIndex="4" />
</GridPane>

View File

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: com.projectswg.lightspeed_frontend.LightspeedFrontendGUI

Binary file not shown.

View File

@@ -0,0 +1,32 @@
#####################################################################################
# Copyright (c) 2018 /// Project SWG /// www.projectswg.com #
# #
# ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on #
# July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. #
# Our goal is to create an emulator which will provide a server for players to #
# continue playing a game similar to the one they used to play. We are basing #
# it on the final publish of the game prior to end-game events. #
# #
# This file is part of Lightspeed. #
# #
# -------------------------------------------------------------------------------- #
# #
# Lightspeed is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Affero General Public License as #
# published by the Free Software Foundation, either version 3 of the #
# License, or (at your option) any later version. #
# #
# Lightspeed is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Affero General Public License for more details. #
# #
# You should have received a copy of the GNU Affero General Public License #
# along with Lightspeed. If not, see <http://www.gnu.org/licenses/>. #
# #
#####################################################################################
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

172
lightspeed-client/gradlew vendored Executable file
View File

@@ -0,0 +1,172 @@
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"

84
lightspeed-client/gradlew.bat vendored Normal file
View File

@@ -0,0 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@@ -0,0 +1,58 @@
#primaryViewContainer {
-fx-background-color: #000000;
-fx-text-fill: #FFFFFF;
-fx-pref-width: 800;
-fx-pref-height: 640;
}
#commonPanel {
-fx-border-color: #000000;
-fx-border-width: 0 0 1 0;
-fx-border-style: solid;
}
#primaryTabGeneral {
-fx-text-fill: #FFFFFF;
}
.tab-pane .tab-header-area .tab-header-background {
-fx-opacity: 0.0;
}
.tab-pane {
-fx-tab-min-width: 150.0px;
-fx-text-fill: #FFFFFF;
}
.tab-header-area {
-fx-border-color: #3c3c3c;
-fx-border-width: 0 0 1 0;
-fx-border-style: solid;
}
.tab {
-fx-background-insets: 0.0 1.0 0.0 1.0, 0.0, 0.0;
}
.tab-pane .tab {
-fx-background-color: #e6e6e6;
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
}
.tab-pane .tab:selected {
-fx-background-color: #3c3c3c;
-fx-border-width: 0 0 0 0;
}
.tab .tab-label {
-fx-alignment: CENTER;
-fx-text-fill: #000000;
-fx-font-size: 12.0px;
-fx-font-weight: bold;
}
.tab:selected .tab-label {
-fx-alignment: CENTER;
-fx-text-fill: #00af00;
}

Some files were not shown because too many files have changed in this diff Show More