Skip to content

Commit

Permalink
gradle now copies Catalog and executes the jar
Browse files Browse the repository at this point in the history
  • Loading branch information
erdelf committed Jul 17, 2016
1 parent 22e9193 commit f13ac0c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion TTDHelper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,22 @@ jar {
'Main-Class': 'ttdhelper.Main'
)
}
}
}

task copyCatalog{
copy{
from (projectDir){
include 'Katalog.xml'
}
into 'build/libs'
}
}

task runFinalJar(type: JavaExec) {
classpath = files('build/libs/TTDHelper.jar')
classpath += sourceSets.main.runtimeClasspath
main = "ttdhelper.Main"
}

build.dependsOn.add("copyCatalog")
build.dependsOn.add("runFinalJar")

0 comments on commit f13ac0c

Please sign in to comment.