|
|
@ -262,7 +262,7 @@ distributions {
|
|
|
|
// distributionBaseName = 'yacy' + branch + '_v' + version + '_' + Dst + '_' + rNr
|
|
|
|
// distributionBaseName = 'yacy' + branch + '_v' + version + '_' + Dst + '_' + rNr
|
|
|
|
|
|
|
|
|
|
|
|
contents { // fyi: content completed by copyFilesToDistDir
|
|
|
|
contents { // fyi: content completed by copyFilesToDistDir
|
|
|
|
from 'build/RELEASE/MAIN'
|
|
|
|
from "${buildDir}/RELEASE/MAIN"
|
|
|
|
exclude 'lib/*.jar'
|
|
|
|
exclude 'lib/*.jar'
|
|
|
|
// define unix/linux file permission
|
|
|
|
// define unix/linux file permission
|
|
|
|
eachFile { file ->
|
|
|
|
eachFile { file ->
|
|
|
@ -367,7 +367,7 @@ tasks.withType (Javadoc) {
|
|
|
|
task packagePortalsearch (group:'distribution') {
|
|
|
|
task packagePortalsearch (group:'distribution') {
|
|
|
|
description 'Bundles the javascript portalsearch as *.tar.gz distribution'
|
|
|
|
description 'Bundles the javascript portalsearch as *.tar.gz distribution'
|
|
|
|
ant {
|
|
|
|
ant {
|
|
|
|
tar(destfile:'build/distributions/yacy-portalsearch.tar.gz', compression:'gzip', defaultexcludes:'yes', longfile:'fail') {
|
|
|
|
tar(destfile:"${buildDir}/distributions/yacy-portalsearch.tar.gz", compression:'gzip', defaultexcludes:'yes', longfile:'fail') {
|
|
|
|
tarfileset (dir:'htroot/portalsearch/', prefix:'yacy/portalsearch/') {
|
|
|
|
tarfileset (dir:'htroot/portalsearch/', prefix:'yacy/portalsearch/') {
|
|
|
|
include(name:'**/*')
|
|
|
|
include(name:'**/*')
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -397,7 +397,7 @@ task prepNsis (type: Copy, dependsOn: ['prepYaCyProperties']) {
|
|
|
|
from projectDir
|
|
|
|
from projectDir
|
|
|
|
include 'build.nsi'
|
|
|
|
include 'build.nsi'
|
|
|
|
include 'gpl.txt'
|
|
|
|
include 'gpl.txt'
|
|
|
|
into 'build/RELEASE/WINDOWS'
|
|
|
|
into "${buildDir}/RELEASE/WINDOWS"
|
|
|
|
|
|
|
|
|
|
|
|
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: project.ext.filterTokens)
|
|
|
|
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: project.ext.filterTokens)
|
|
|
|
filter(ReplaceTokens, tokens: [REPL_VERSION: version])
|
|
|
|
filter(ReplaceTokens, tokens: [REPL_VERSION: version])
|
|
|
@ -437,11 +437,11 @@ gradle.startParameter.taskNames = expandedTaskList.flatten()
|
|
|
|
|
|
|
|
|
|
|
|
// create a Mac distribution archive
|
|
|
|
// create a Mac distribution archive
|
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
import org.apache.tools.ant.taskdefs.condition.Os
|
|
|
|
task distMacApp (type: Copy, dependsOn: ['copyFilesToDistDir'], group: 'distribution') {
|
|
|
|
task distMacApp (type: Copy, dependsOn: ['copyFilesToDistDir','copyDependenciesForDistribution'], group: 'distribution') {
|
|
|
|
description 'Bundles the project as a Mac distribution - task must run on Mac'
|
|
|
|
description 'Bundles the project as a Mac distribution - task must run on Mac'
|
|
|
|
|
|
|
|
|
|
|
|
from 'build/RELEASE/MAIN'
|
|
|
|
from "${buildDir}/RELEASE/MAIN" // remember var substitution requires double quote
|
|
|
|
into 'build/RELEASE/MAC/YaCy.app/Contents/MacOS'
|
|
|
|
into "${buildDir}/RELEASE/MAC/YaCy.app/Contents/MacOS"
|
|
|
|
|
|
|
|
|
|
|
|
doLast {
|
|
|
|
doLast {
|
|
|
|
if (Os.isFamily(Os.FAMILY_MAC)) {
|
|
|
|
if (Os.isFamily(Os.FAMILY_MAC)) {
|
|
|
@ -452,20 +452,21 @@ task distMacApp (type: Copy, dependsOn: ['copyFilesToDistDir'], group: 'distribu
|
|
|
|
}
|
|
|
|
}
|
|
|
|
copy {
|
|
|
|
copy {
|
|
|
|
from 'addon/YaCy.app'
|
|
|
|
from 'addon/YaCy.app'
|
|
|
|
into 'build/RELEASE/MAC/YaCy.app'
|
|
|
|
into "${buildDir}/RELEASE/MAC/YaCy.app"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String Dst = project.ext.filterTokens.get('REPL_DATE')
|
|
|
|
String Dst = project.ext.filterTokens.get('REPL_DATE')
|
|
|
|
String rNr = project.ext.filterTokens.get('REPL_REVISION_NR')
|
|
|
|
String rNr = project.ext.filterTokens.get('REPL_REVISION_NR')
|
|
|
|
String branch = project.ext.filterTokens.get('branch')
|
|
|
|
String branch = project.ext.filterTokens.get('branch')
|
|
|
|
String theArchiveName = 'yacy' + branch + '_v' + project.version + '_' + Dst + '_' + rNr + '.dmg'
|
|
|
|
String theArchiveName = 'yacy' + branch + '_v' + project.version + '_' + Dst + '_' + rNr + '.dmg'
|
|
|
|
|
|
|
|
logger.info("task 'distMacApp' execute: " + "'hdiutil create -srcfolder ${buildDir}/RELEASE/MAC/YaCy.app ${buildDir}/distributions/" + theArchiveName + "'")
|
|
|
|
ant {
|
|
|
|
ant {
|
|
|
|
exec (executable:'hdiutil') {
|
|
|
|
exec (executable:'hdiutil') {
|
|
|
|
arg (line:'create -srcfolder build/RELEASE/MAC/YaCy.app build/distributions/' + theArchiveName)
|
|
|
|
arg (line: "create -srcfolder ${buildDir}/RELEASE/MAC/YaCy.app ${buildDir}/distributions/" + theArchiveName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
logger.error ("this task [distMacApp] can only run on a Mac")
|
|
|
|
logger.error ("this task 'distMacApp' can only run on a Mac")
|
|
|
|
|
|
|
|
delete "${buildDir}/RELEASE/MAC"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|