Added Maven step to compile a .jar file with all dependencies (for easy deployment); Added code to define the FFMPEG binary path and video repository through a TOML file
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -10,7 +10,7 @@ import tech.bitgoblin.io.IOUtils;
|
||||
|
||||
public class Config {
|
||||
|
||||
private String configPath;
|
||||
private final String configPath;
|
||||
private TomlParseResult result;
|
||||
|
||||
public Config(String path) {
|
||||
@ -18,8 +18,6 @@ public class Config {
|
||||
// parse config file
|
||||
try {
|
||||
this.parseConfig();
|
||||
String value = this.result.getString("repo");
|
||||
System.out.println(value);
|
||||
} catch (IOException e) {
|
||||
System.out.println("Unable to read config file; please check that " + this.configPath + " is available.");
|
||||
System.exit(1);
|
||||
@ -30,6 +28,10 @@ public class Config {
|
||||
return this.result.getString(key);
|
||||
}
|
||||
|
||||
public boolean contains(String key) {
|
||||
return this.result.contains(key);
|
||||
}
|
||||
|
||||
private void parseConfig() throws IOException {
|
||||
// parse config file
|
||||
Path source = Paths.get(this.configPath);
|
||||
|
Reference in New Issue
Block a user