Raname core and workbench to pshell-core and pshell-workbench.

This commit is contained in:
2025-08-15 14:27:11 +02:00
parent 7c8bed68f9
commit 3140f52ee8
4 changed files with 23 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ allprojects {
group = 'ch.psi'
ext.release = '1'
ext.jar_suffix = 'fat'
ext.ex_options= ''
repositories {
mavenLocal()
@@ -74,7 +74,7 @@ subprojects {
debug = (taskName == 'debug')
executable = project.java_exec_jdk
jvmArgs = project.run_jvargs
environment 'PSHELL_EX_OPTIONS', project.exOptions
environment 'PSHELL_EX_OPTIONS', project.ex_options
}
}
@@ -84,7 +84,7 @@ subprojects {
def app_description = project.ext.desc.toString()
def app_release = project.ext.release.toString()
def jar_suffix = project.ext.jar_suffix.toString()
def ex_options = project.exOptions
def ex_options = project.ext.ex_options
def package_name = project.name
def app_path = '/opt/' + package_name + "/" + app_version
def jar_file_name = app_name + "-" + app_version + "-" + jar_suffix + ".jar";
@@ -155,9 +155,7 @@ subprojects {
}
link(sys_bin + bin_file_name, app_path + '/bin/' + bin_file_name)
link(sys_bin + app_name, sys_bin + bin_file_name)
}
}
}
}

View File

@@ -1,11 +1,12 @@
description = 'screenpanel-sf'
ext.mainClass = hasProperty('mainClass') ? mainClass : 'ScreenPanelSF'
ext.mainClass = hasProperty('mainClass') ? mainClass : 'ch.psi.pshell.workbench.App'
ext.title = 'ScreenPanel'
ext.desc = 'ScreenPanel customization for SwissFEL cameras'
ext.ex_options = 'ch.psi.pshell.screenpanel.Options'
dependencies {
implementation 'ch.psi:workbench:' + version
implementation 'ch.psi:pshell-workbench:' + version
implementation 'ch.psi:screenpanel:' + version
createDefaultTasks(project)
}
}
createDefaultTasks(project)

View File

@@ -0,0 +1,7 @@
#!/bin/sh
export PSHELL_EX_OPTIONS=${ex_options}
APP_ARGS_NAME=\$(echo "APP_${app_name}" | tr '[:lower:]' '[:upper:]')_ARGS
APP_ARGS_NAME=\${APP_ARGS_NAME//-/_}
# Run the JAR with all passed arguments
exec pshell-workbench -b -d -l -k -n -q -console_log=SEVERE -buffer_size=10 -size=1000x800 -p ${java_file} \${!APP_ARGS_NAME} "\$@"

View File

@@ -1,12 +1,12 @@
description = 'screenpanel-sls'
ext.mainClass = hasProperty('mainClass') ? mainClass : 'ch.psi.pshell.workbench.App' //ScreenPanelSLS'
ext.mainClass = hasProperty('mainClass') ? mainClass : 'ch.psi.pshell.workbench.App'
ext.title = 'ScreenPanel'
ext.desc = 'ScreenPanel customization for SLS cameras'
ext.exOptions = 'ch.psi.pshell.screenpanel.Options'
ext.ex_options = 'ch.psi.pshell.screenpanel.Options'
dependencies {
implementation 'ch.psi:workbench:' + version
implementation 'ch.psi:pshell-workbench:' + version
implementation 'ch.psi:screenpanel:' + version
createDefaultTasks(project)
}
}
createDefaultTasks(project)