Skip to content
Snippets Groups Projects
Commit 995af492 authored by anttil's avatar anttil
Browse files

BIS-639 / SP-1178: Add to the Gradle Build a task that provides a standalone Data Set Uploader jar

SVN: 30522
parent 8411f7c4
No related branches found
No related tags found
No related merge requests found
......@@ -357,4 +357,5 @@ task clientsAndApis(type: Zip, dependsOn: [dssClientZip, queryApiZip, proteomics
build.dependsOn zip
build.dependsOn zipDss
build.dependsOn clientsAndApis
build.dependsOn dssUploadGuiStandaloneZip
\ No newline at end of file
build.dependsOn dssUploadGuiStandaloneZip
build.dependsOn dssUploadGuiStandaloneJar
\ No newline at end of file
......@@ -155,7 +155,6 @@ task dssClientZip(type: Zip, dependsOn: signWebStartJars) {
}
task dssUploadGuiStandalone << {
logger.error("dssUploadGuiStandalone JAVA.HOME: "+System.properties.'java.home')
ant.taskdef(name: 'bundle', classname: 'com.oracle.appbundler.AppBundlerTask', classpath: configurations.appbundler.asPath)
ant.bundle(outputdirectory: "${buildDir}",
name: 'DataSetUploader',
......@@ -187,6 +186,35 @@ task dssUploadGuiStandalone << {
}
dssUploadGuiStandalone.dependsOn signWebStartJars
task dssUploadGuiStandaloneJar(type: Jar, dependsOn: dssUploadGuiStandalone) {
baseName 'dss_upload_gui_standalone'
from ({ fileTree("${signedJarsFolder}").matching {
include "cglib-nodep.jar"
include "cisd-args4j.jar"
include "cisd-base.jar"
include "commons-codec.jar"
include "commons-httpclient.jar"
include "commons-io.jar"
include "commons-lang.jar"
include "commons-logging.jar"
include "dom4j-1.6.1.jar"
include "dss_upload_gui.jar"
include "geronimo-stax-api_1.0_spec-1.0.jar"
include "jython.jar"
include "log4j.jar"
include "poi-ooxml-schemas.jar"
include "poi-ooxml.jar"
include "poi.jar"
include "spring.jar"
include "stream-supporting-httpinvoker.jar"
}.collect { zipTree(it).matching {exclude "META-INF/**"}}})
manifest {
attributes("Main-Class": "ch.systemsx.cisd.openbis.dss.client.api.gui.DataSetUploadClient")
}
}
task dssUploadGuiStandaloneZip(type: Zip, dependsOn: dssUploadGuiStandalone) {
baseName 'dss_upload_gui_standalone'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment