「customer.properties」という名前のプロパティ ファイルを「distribution.jar」に入れる必要があります。上記のファイルのファイル パスは次のとおりです。
モジュール\distribution.jar
modules\distributionaManager\customer.properties
私の要件は、「modules\distribution.ja\distributionaManager\customer.properties」を持つことです
ProcessBuilder pb = new ProcessBuilder("jar", "uf", "distribution.jar", "distributionaManager\\customer.properties");
pb.directory(jarFile.getParentFile());
try
{
Process process = pb.start();
process.waitFor();
process.destroy();
}
jarFile.getParentFile() - 「モジュール ディレクトリ」
ただし、このコードは jar 内にプロパティ ファイルを作成しません。助言がありますか?
ありがとう