Fix command-line Options in correlation (package-type projects)
This commit is contained in:
+8
-1
@@ -6,7 +6,7 @@ plugins {
|
||||
import org.redline_rpm.header.Flags
|
||||
|
||||
allprojects {
|
||||
version = '2.1.0'
|
||||
version = '2.1.1'
|
||||
group = 'ch.psi'
|
||||
ext.release = '1'
|
||||
ext.jar_suffix = 'fat'
|
||||
@@ -173,6 +173,13 @@ subprojects {
|
||||
//createDirectoryEntry = true
|
||||
//dirMode dir_mode
|
||||
}
|
||||
if (ex_options){
|
||||
from ('build/libs') {
|
||||
include jar_file_name
|
||||
into 'lib'
|
||||
fileMode file_mode
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
from('scripts') {
|
||||
|
||||
@@ -3,6 +3,7 @@ ext.plugin = 'Correlation'
|
||||
ext.mainClass = hasProperty('mainClass') ? mainClass : 'ch.psi.pshell.workbench.App'
|
||||
ext.title = 'Correlation'
|
||||
ext.desc = 'Correlation'
|
||||
ext.ex_options = 'CorrelationOptions'
|
||||
ext.readonly = true
|
||||
ext.deploy_type= 'pkg'
|
||||
|
||||
@@ -10,7 +11,8 @@ dependencies {
|
||||
implementation 'ch.psi:pshell-workbench:' + version
|
||||
}
|
||||
|
||||
//Jar contains only command line options, the panel is compiled dinamically
|
||||
//Jar contains only command line options, the panel is compiled dinamically.
|
||||
//Add to jar just the command-line options.
|
||||
tasks.jar {
|
||||
include 'CorrelationOptions.class'
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
export PSHELL_EX_OPTIONS=${ex_options}
|
||||
export PSHELL_CLASS_PATH=${jar_file}
|
||||
|
||||
# Run the workbench configured with the package paths, loading the plugin.
|
||||
exec pshell-workbench -b -l -g \$${app_args_var} \
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
export PSHELL_EX_OPTIONS=${ex_options}
|
||||
export PSHELL_CLASS_PATH=${jar_file}
|
||||
|
||||
# Run the package with application specific arguments, and all command-line passed arguments
|
||||
exec pshell-workbench -b -d -l -k -g -q -statusbar -size=1000x700 -console_log=SEVERE -m ${pkg_folder} \$${app_args_var} "\$@"
|
||||
|
||||
Reference in New Issue
Block a user