Skip to content

Commit

Permalink
Update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Apr 15, 2015
1 parent f4048c8 commit 305730c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ language: java

install:
- "./gradlew wpi"
- "./gradlew assemble"
- "./gradlew build"
- "./gradlew generateExternalPatches"
- "./gradlew build"

script:
- "./gradlew verify"
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ task genJavadoc(type: Jar, dependsOn: javadoc) {

task generateExternalPatches(type: GradleBuild) {
dir = 'patches'
tasks = ['genPatches']
tasks = ['build', 'genPatches']
}

task genPatches << {
Expand All @@ -119,7 +119,6 @@ task updateLatest << {
ant.copy(file: "${jar.archivePath}", todir: "build/latest")
}

deletePatches.dependsOn generateExternalPatches
genPatches.dependsOn deletePatches
compileJava.dependsOn genPatches
build.finalizedBy updateLatest
Expand Down
4 changes: 3 additions & 1 deletion patches/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ dependencies {
}

task genPatches << {
ant.delete(dir: "build/patches")
try {
ant.delete(dir: "build/patches")
} catch (Exception e) {}
ant.copy(todir: "build/patches") {
ant.fileset(dir: "build/classes/main")
ant.mapper(type: "glob", from: "*.class", to: "*.sim")
Expand Down

0 comments on commit 305730c

Please sign in to comment.