Skip to content

Commit

Permalink
feat: Add task to print the appmap jar file path and java.home
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Aug 6, 2021
1 parent e32f238 commit 7e0cefe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/appland/appmap/AppMapPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,18 @@ private void addAppMapTasks(AppMapPluginExtension extension) {
);
}
);

project.getTasks().register(
"appmap-print-jar-path",
agentJarPathTask -> {
agentJarPathTask.doFirst(
new PrintJarPathAction(extension)
);
agentJarPathTask.setGroup(LifecycleBasePlugin.BUILD_GROUP);
agentJarPathTask.setDescription(
String.format("Prints the file path of the AppMap Agent JAR")
);
}
);
}
}

0 comments on commit 7e0cefe

Please sign in to comment.