Skip to content

Commit

Permalink
updated all the urls to point to brjs-sdk/workspace to copy the appca…
Browse files Browse the repository at this point in the history
…che jar into the correct location(s)
  • Loading branch information
jason ngo committed Aug 6, 2014
1 parent 7800241 commit 22c4223
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'idea'
apply plugin: 'java'

dependencies {
compile fileTree(dir:brjsPath, include:"sdk/libs/java/system/*.jar")
compile fileTree(dir:brjsPath, include:"brjs-sdk/workspace/sdk/libs/java/system/*.jar")
testCompile fileTree(dir:"${projectDir}/libs", include:"*.jar")
}

Expand All @@ -19,19 +19,19 @@ task copyToConf, type: Copy, dependsOn: jar, {
}

task copyToApps, type: Copy, dependsOn: jar, {
destinationDir file("${brjsPath}/apps")
file("${brjsPath}/apps").listFiles().each {
destinationDir file("${brjsPath}/brjs-sdk/workspace/apps")
file("${brjsPath}/brjs-sdk/workspace/apps").listFiles().each {
if (it.isDirectory()) {
into ("${it.name}/WEB-INF/lib") {
from jar.outputs.files.singleFile
}
}
}
doFirst {
fileTree(dir:"${brjsPath}/apps", include:"*/WEB-INF/lib/${project.name}.jar").each { delete it }
fileTree(dir:"${brjsPath}/brjs-sdk/workspace/apps", include:"*/WEB-INF/lib/${project.name}.jar").each { delete it }
}
doLast {
println "${project.name} jar copied to ${brjsPath}/apps/*/WEB-INF/lib"
println "${project.name} jar copied to ${brjsPath}/brjs-sdk/workspace/apps/*/WEB-INF/lib"
}
}

Expand All @@ -42,8 +42,8 @@ task copyToBrjs, dependsOn: [copyToConf, copyToApps], {
tasks.eclipse.doLast {
try {
def classPathFile = file(".classpath")
String brjsCoreJar = fileTree(dir:"${brjsPath}/sdk/libs/java/system", include:"brjs-core-*.jar").singleFile
String brjsSrcJar = fileTree(dir:"${brjsPath}/sdk/docs/src", include:"brjs-core-*-sources.jar").singleFile
String brjsCoreJar = fileTree(dir:"${brjsPath}/brjs-sdk/workspace/sdk/libs/java/system", include:"brjs-core-*.jar").singleFile
String brjsSrcJar = fileTree(dir:"${brjsPath}/brjs-sdk/workspace/sdk/docs/src", include:"brjs-core-*-sources.jar").singleFile
def findString = "path=\"${brjsCoreJar}\""
def replaceString = findString + " sourcepath=\"${brjsSrcJar}\""
if (classPathFile.exists()) {
Expand Down

0 comments on commit 22c4223

Please sign in to comment.