Jar

From NovaOrdis Knowledge Base
Revision as of 02:12, 25 March 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Create a JAR from Files Located in a Directory Different from the Current One

Use -C after the JAR name and use . instead of * if you want to include all from <directory-we-want-to-JAR-from>:

jar -C <directory-we-want-to-JAR-from> cfv <JAR-file-name> .

Example:

jar cfv ./target/A.ear -C ./target/ear-A-content .