Hi All,
I are doing plugin logging work currently in JAVA. We are receiving task listener object from perform method but same object not able to pass to other package classes which will be imported through POM dependencies.
Example:
I have a plugin code like below.
Class A{
public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener taskListener) throws InterruptedException, IOException {
Now taskListener object will work in current class A object and prints output.
But when import code from xyz.jar and pass the taskListener to xyz.jar Class B then it gives null pointer exception.
My aim is to print the xyz.jar logs in console output.
Could anyone please help me achieving this? Are there any documentation or exiting code will be helpful to me.
Thank you,
Prabhakar.