프로그램/java

ant jar export with manifest

mulderu 2012. 11. 28. 14:50

좀 멍청하지만...

아주 간단히  jar  파일을 만들면서 manifest file까지 같이 만든다. 이때 dependency jar를 같이 만들고 manifest파일에 포함 시킨다.


 간단하고 좋은 방법도 많은데.. 저는 잘 안되서 그냥 아래와 같이 했습니다.





아래는 완성된 jar file의 manifest.mf 파일 내역.

export$ cat META-INF/MANIFEST.MF 
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Created-By: 1.6.0_37-b06-434-10M3909 (Apple Inc.)
Built-By: mulder
Implementation-Vendor: korea inc.
Implementation-Title: NettySampleTest
Implementation-Version: 0.01
Main-Class: com.mulder.study.netty.server.demo.WebServerTestMain
Class-Path: lib/commons-logging-1.1.1.jar    lib/jboss-logging-spi-2.1
 .2.GA.jar   lib/log4j-1.2.16.jar   lib/netty-3.2.7.Final.jar   lib/ju
 nit-4.10.jar   lib/hamcrest-core-1.1.jar   lib/commons-io-2.4.jar

export$