Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 4e57110

Browse files
committed
Added more deployment files. Updated some TODOs.
1 parent 0867d6f commit 4e57110

File tree

7 files changed

+23
-5
lines changed

7 files changed

+23
-5
lines changed

bootstrap/src/main/scala/Bootstrap.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ object Bootstrap {
6464
} else {
6565

6666
// Check for windows and unix java versions
67-
// TODO: How to handle JDK versions? Only JRE supported?
67+
// This should work on current and older java JRE/JDK installations,
68+
// see: https://stackoverflow.com/questions/52584888/how-to-use-jdk-without-jre-in-java-11
6869
val javaExePath = s"$javaHomePath/bin/java.exe"
6970
val javaPath = s"$javaHomePath/bin/java"
7071

deployment-files/ChatOverflow.bat

100644100755
File mode changed.

deployment-files/ChatOverflow.command

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
called_path=${0%/*}
4+
cd $called_path
5+
java -jar ChatOverflow.jar

deployment-files/ChatOverflow.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
java -jar ChatOverflow.jar

deployment-files/README.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Chat Overflow README</title>
6+
</head>
7+
<body>
8+
<p>Thank you for downloading Chat Overflow! For more information, please visit <a href="http://codeoverflow.org">codeoverflow.org</a>!
9+
</p>
10+
<!-- TODO: Write proper readme with the most important information and version infos about the deployed framework, api, client, gui -->
11+
</body>
12+
</html>

project/BootstrapUtility.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ object BootstrapUtility {
142142
logger info s"Finished copying additional deployment file '${deploymentFile.getName}'."
143143
}
144144
}
145-
146-
// TODO: Deployment readme file html
147-
// TODO: Deployment unix launch file (...?)
148145
}
149146
}
150147

project/BuildUtility.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class BuildUtility(logger: ManagedLogger) {
116116
}
117117

118118
// Clean first
119-
// TODO: Should this be cleaned? How to handle external plugins? Separate folder?
119+
// TODO: Should not be cleaned. Existent files should be overwritten.
120120
for (jarFile <- pluginTargetFolder.listFiles().filter(_.getName.endsWith(".jar"))) {
121121
try {
122122
jarFile.delete()

0 commit comments

Comments
 (0)