javamail.providers
Ant ビルド ファイルの雑草に入ることなく、Netbeans を META-INF フォルダー (手動で追加したフォルダー)に追加するにはどうすればよいですか?
manifest.mf は最終的に結果の jar の META-INF フォルダーに (正しく) 配置されますが、META-INF フォルダー (私が手動で追加したもの) の外側に存在するため、ちょっと奇妙です。
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ ll META-INF/
total 12
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:02 ./
drwxr-xr-x 8 thufir thufir 4096 Mar 21 04:15 ../
-rw-rw-r-- 1 thufir thufir 868 Mar 21 04:02 javamail.providers
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ ll manifest.mf
-rw-rw-r-- 1 thufir thufir 82 Mar 21 03:18 manifest.mf
thufir@dur:~/NetBeansProjects/gnumail-providers$
プロジェクトは次のとおりです。
thufir@dur:~/NetBeansProjects/gnumail-providers$
thufir@dur:~/NetBeansProjects/gnumail-providers$ tree -L 2
.
├── build
│ ├── built-jar.properties
│ ├── classes
│ ├── empty
│ └── generated-sources
├── build.xml
├── dist
│ ├── gnu
│ ├── gnumail-providers.jar
│ ├── META-INF
│ ├── net
│ ├── providers
│ ├── treeutil
│ └── usenet.properties
├── javamail.providers
├── manifest.mf
├── META-INF
│ └── javamail.providers
├── nbproject
│ ├── build-impl.xml
│ ├── genfiles.properties
│ ├── private
│ ├── project.properties
│ └── project.xml
└── src
├── gnu
├── net
├── providers
├── treeutil
└── usenet.properties
18 directories, 12 files
thufir@dur:~/NetBeansProjects/gnumail-providers$
Netbeans がビルドした結果の JAR は次のとおりです。
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$ ll
total 228
drwxrwxr-x 3 thufir thufir 4096 Mar 21 04:15 ./
drwxr-xr-x 8 thufir thufir 4096 Mar 21 04:15 ../
-rw-rw-r-- 1 thufir thufir 213021 Mar 21 04:15 gnumail-providers.jar
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:15 lib/
-rw-rw-r-- 1 thufir thufir 1332 Mar 21 04:15 README.TXT
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$ jar -xf gnumail-providers.jar
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$ ll
total 252
drwxrwxr-x 8 thufir thufir 4096 Mar 21 04:15 ./
drwxr-xr-x 8 thufir thufir 4096 Mar 21 04:15 ../
drwxrwxr-x 3 thufir thufir 4096 Mar 21 04:15 gnu/
-rw-rw-r-- 1 thufir thufir 213021 Mar 21 04:15 gnumail-providers.jar
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:15 lib/
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:15 META-INF/
drwxrwxr-x 3 thufir thufir 4096 Mar 21 04:15 net/
drwxrwxr-x 9 thufir thufir 4096 Mar 21 04:15 providers/
-rw-rw-r-- 1 thufir thufir 1332 Mar 21 04:15 README.TXT
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:15 treeutil/
-rw-rw-r-- 1 thufir thufir 70 Mar 21 04:15 usenet.properties
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$ ll META-INF/
total 12
drwxrwxr-x 2 thufir thufir 4096 Mar 21 04:15 ./
drwxrwxr-x 8 thufir thufir 4096 Mar 21 04:15 ../
-rw-rw-r-- 1 thufir thufir 339 Mar 21 04:15 MANIFEST.MF
thufir@dur:~/NetBeansProjects/gnumail-providers/dist$
これは、GNU パッケージングの提案に応えたものです。
以下も参照してください。
http://article.gmane.org/gmane.comp.java.netbeans.user/176994