Ant based build: How to pass an argument to a jar tool?

Inheriting the project whose build.xml

final product is building .ear

, I now need to pass the command line "- P" option to the jar tool , as described in the 7u80 update release notes:

As of JDK 7u79 release, the jar tool no longer allows leading slash "/" and ".." (dot-to-dot) in the zip record file name when creating a new one and / or extracting from a zip and jar file. If you want the new command line option "- P" to be used explicitly to store the point-to-point component and / or the absolute path.

Is there a way to do this?

+3


source to share





All Articles