Skip to content

Commit

Permalink
Improved build scripts to copy JARs to WEB-INF/lib folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
tHerrmann committed Sep 19, 2016
1 parent 8486561 commit fcacadd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
12 changes: 11 additions & 1 deletion workshop-connecting/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apply plugin: 'java'
sourceCompatibility = 1.7
version = '1.0'
buildDir = '../../buildConnectingApplications'
def tomcat_update_target='/home/user/workspace/mount/10_5_0-beta_webapp/ROOT/WEB-INF/lib/';

repositories {
mavenLocal()
Expand All @@ -21,4 +22,13 @@ jar {
manifest {
attributes 'Implementation-Title': 'OpenCmsDays connecting external applications', 'Implementation-Version': version
}
}
doLast {
if (file(tomcat_update_target).exists()){
println "copying ${project.buildDir}/libs/${archiveName} to ${tomcat_update_target}"
copy {
from "${project.buildDir}/libs/${archiveName}"
into tomcat_update_target
}
}
}
}
12 changes: 12 additions & 0 deletions workshop-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ sourceCompatibility = 1.7
version = '1.0'
buildDir = '../../buildTools'

def tomcat_update_target='/home/user/workspace/mount/10_5_0-beta_webapp/ROOT/WEB-INF/lib/';

repositories {
mavenLocal()
jcenter()
Expand All @@ -21,4 +23,14 @@ jar {
manifest {
attributes 'Implementation-Title': 'OpenCmsDays workplace tools', 'Implementation-Version': version
}

doLast {
if (file(tomcat_update_target).exists()){
println "copying ${project.buildDir}/libs/${archiveName} to ${tomcat_update_target}"
copy {
from "${project.buildDir}/libs/${archiveName}"
into tomcat_update_target
}
}
}
}

0 comments on commit fcacadd

Please sign in to comment.