File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,11 +52,9 @@ glib-compile-resources exampleapp.gresource.xml
5252You can run this automatically before Gradle compiles the application, by adding a custom task to `build.gradle`:
5353
5454```groovy
55- tasks.register ('compileResources ') {
56- exec {
57- workingDir ' src/main/resources'
58- commandLine ' glib-compile-resources' , ' exampleapp.gresource.xml'
59- }
55+ tasks.register ('compileResources ', Exec ) {
56+ workingDir ' src/main/resources'
57+ commandLine ' glib-compile-resources' , ' exampleapp.gresource.xml'
6058}
6159
6260tasks.named ('classes ') {
Original file line number Diff line number Diff line change @@ -77,11 +77,9 @@ The path to the UI file is treated by Java-GI as a [GResource](https://docs.gtk.
7777=== "Gradle (Groovy)"
7878
7979 ```groovy
80- tasks.register('compileResources') {
81- exec {
82- workingDir 'src/main/resources'
83- commandLine 'glib-compile-resources', 'example.gresource.xml'
84- }
80+ tasks.register('compileResources', Exec) {
81+ workingDir 'src/main/resources'
82+ commandLine 'glib-compile-resources', 'example.gresource.xml'
8583 }
8684
8785 tasks.named('compileJava') {
You can’t perform that action at this time.
0 commit comments