Package apps
This commit is contained in:
+9
-5
@@ -102,6 +102,7 @@ subprojects {
|
|||||||
def java_file_name = (deploy_type=='pkg') ? app_description + ".java" : main_class + ".java"
|
def java_file_name = (deploy_type=='pkg') ? app_description + ".java" : main_class + ".java"
|
||||||
def editor = bin_file_name + "-editor"
|
def editor = bin_file_name + "-editor"
|
||||||
def file_mode = readonly ? 0644: 0777
|
def file_mode = readonly ? 0644: 0777
|
||||||
|
//def dir_mode = readonly ? 0755: 0777
|
||||||
|
|
||||||
project.tasks.register("rpm", Rpm) {
|
project.tasks.register("rpm", Rpm) {
|
||||||
doFirst {
|
doFirst {
|
||||||
@@ -134,9 +135,9 @@ subprojects {
|
|||||||
permissionGroup 'root'
|
permissionGroup 'root'
|
||||||
addParentDirs true
|
addParentDirs true
|
||||||
|
|
||||||
directory(app_path, 755)
|
directory(app_path, 0755)
|
||||||
directory(app_path + '/lib', 755)
|
directory(app_path + '/lib', 0755)
|
||||||
directory(app_path + '/bin', 755)
|
directory(app_path + '/bin', 0755)
|
||||||
|
|
||||||
into app_path
|
into app_path
|
||||||
|
|
||||||
@@ -155,9 +156,12 @@ subprojects {
|
|||||||
} else if (deploy_type=='pkg'){
|
} else if (deploy_type=='pkg'){
|
||||||
from ('src/main/pkg'){
|
from ('src/main/pkg'){
|
||||||
into 'lib'
|
into 'lib'
|
||||||
fileMode file_mode
|
includeEmptyDirs = true
|
||||||
exclude '**/*.class'
|
exclude '**/*.class'
|
||||||
}
|
fileMode file_mode
|
||||||
|
//createDirectoryEntry = true
|
||||||
|
//dirMode dir_mode
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
from('scripts') {
|
from('scripts') {
|
||||||
|
|||||||
Reference in New Issue
Block a user