-
Notifications
You must be signed in to change notification settings - Fork 15
Native image Jacoco demo #5
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,32 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't be the copyright for public examples.
graal_isolatethread_t * graal_isolate_thread; | ||
graal_isolate_t * isolate; | ||
|
||
/* Execute false branch within the invoked java method. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the false branch
tear_down(graal_isolate_thread); | ||
graal_tear_down_isolate(graal_isolate_thread); | ||
|
||
/* Execute true branch within the invoked java method from another isolate. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the true branch
classname: 'org.jacoco.ant.InstrumentTask', | ||
classpath: configurations.jacoco.asPath) | ||
ant.instrument(destdir: outputDir) { | ||
fileset(dir: sourceSets.main.output.getClassesDirs().files.getAt(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ugly, can we use something better?
} | ||
structure(name: 'Example') { | ||
classfiles { | ||
fileset(dir: sourceSets.main.output.getClassesDirs().files.getAt(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Can we use just sourceSets.main.output.getClassesDirs().files
instead of the whole line.
Hello majavu, thanks for contributing a PR to our project! We use the Oracle Contributor Agreement to make the copyright of contributions clear. We don't have a record of you having signed this yet, based on your email address maja -(dot)- vu255 -(at)- gmail -(dot)- com. You can sign it at that link. If you think you've already signed it, please comment below and we'll check. |
Hello majavu, thanks for contributing a PR to our project! We use the Oracle Contributor Agreement to make the copyright of contributions clear. We don't have a record of you having signed this yet, based on your email address maja -(dot)- vu255 -(at)- gmail -(dot)- com. You can sign it at that link. If you think you've already signed it, please comment below and we'll check. |
Can we merge this PR? |
Example that shows how to get JaCoCo code coverage of GraalVM native images