How to get created artifact name


#1

Hi, I need to pass file name of generated artifact (jar) to some Ant plugin for post-processing. What API I can use to get this data?

I searched but was unable to find any.


(Peter Niederwieser) #2

You can use ‘jar.archivePath’ (or ‘archiveName’). It’s easy to find in the DSL reference for the Jar task.


#3

Thanks a lot Peter. That’s exactly what I was looking for. I was unfamiliar with the Jar task and was looking in configurations instead.