diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-03-03 11:44:49 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-03-03 11:44:49 +0100 |
commit | 2cfb25728fe4a73680f3abf624fb723d8b74e5b2 (patch) | |
tree | 3c9d4d13e554165b002a0e08263a66bdf87b9786 /pdf-as-web/build.gradle | |
parent | 6f3e54bcb8c9728c037d921af310c8457507836d (diff) | |
download | pdf-as-4-2cfb25728fe4a73680f3abf624fb723d8b74e5b2.tar.gz pdf-as-4-2cfb25728fe4a73680f3abf624fb723d8b74e5b2.tar.bz2 pdf-as-4-2cfb25728fe4a73680f3abf624fb723d8b74e5b2.zip |
build script changes
Diffstat (limited to 'pdf-as-web/build.gradle')
-rw-r--r-- | pdf-as-web/build.gradle | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/pdf-as-web/build.gradle b/pdf-as-web/build.gradle index 1de51797..49310e2f 100644 --- a/pdf-as-web/build.gradle +++ b/pdf-as-web/build.gradle @@ -2,7 +2,20 @@ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'eclipse-wtp' apply plugin: 'war' -apply plugin: 'jetty' + +buildscript { + repositories { + jcenter() + // enable this to use snapshot versions of Gretty: + // maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } + } + + dependencies { + classpath 'org.akhikhl.gretty:gretty:+' + } +} + +apply plugin: 'org.akhikhl.gretty' jar { manifest { @@ -43,8 +56,17 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.+' } +gretty { + // supported values: + // 'jetty7', 'jetty8', 'jetty9', 'tomcat7', 'tomcat8' + servletContainer = 'jetty9' + + jvmArgs = [ '-Dpdf-as-web.conf=' + System.getProperty("user.home") + '/.pdfas/pdf-as-web.properties' ] +} + + test { - systemProperties 'property': 'value' + systemProperties 'pdf-as-web.conf': System.getProperty("user.home") + '/.pdfas/pdf-as-web.properties' } task downloadTomcat << { |