Skip to content

Commit

Permalink
Catch runtime exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Apr 17, 2016
1 parent 8136781 commit eb2ed0d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/kotlin/org/kt3k/ebean/enhance/EnhanceEbeanTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ open class EnhanceEbeanTask : DefaultTask() {
"classpath" to project.configurations.getByName(CONFIGURATION_NAME).asPath
))

project.ant.invokeMethod(antTaskName, mapOf(
"classSource" to project.buildDir.absolutePath + classFilePath,
"packages" to ext(project).packages,
"transformArgs" to ext(project).transformArgs
))
try {
project.ant.invokeMethod(antTaskName, mapOf(
"classSource" to project.buildDir.absolutePath + classFilePath,
"packages" to ext(project).packages,
"transformArgs" to ext(project).transformArgs
))
} catch (e: RuntimeException) {
logger.info(e.message);
}

}
}

0 comments on commit eb2ed0d

Please sign in to comment.