Ear manifest file




















This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again.

This project is read only now. Read more. I have the same question 1. The manifest is a special file that can contain information about the files packaged in a JAR file. By tailoring this "meta" information that the manifest contains, you enable the JAR file to serve a variety of purposes. This lesson will explain the contents of the manifest file and show you how to work with it, with examples for the basic features:.

When you create a JAR file, a default manifest is created automatically. This section describes the default manifest. Check out the latest Insider stories here. More from the IDG Network. This JAR 's manifest file can be viewed in Linux with the following unzip command: unzip -p jdiff. MF Because the -p option specifies that the unzip command should write its output to standard output rather than to an actual file, there is no need to clean up any files.

Slightly Less Brute Force jar Approach Fortunately, the jar command provides a few places to make things a little easier. The steps shown above aren't too onerous. The single file is extracted with the command jar xvf jdiff. MF cat or less or more could be used in Linux. Groovy When it comes to the tools for Java development, Groovy is never far from my mind as a source for building useful tools.

JarFile args[0]. Conclusion This post has demonstrated several different approaches to viewing a JAR's manifest file. MF files in your class path. Very often it is necessary to go through all of them in runtime and find the attribute by its name. MF with the package version name and build number. In Maven, maven-jar-plugin can help you almost the same configuration for maven-war-plugin :.



0コメント

  • 1000 / 1000