Exemple
protected
void
doGet(
HttpServletRequest
arg0,
HttpServletResponse
arg1)
throws
IOException {
FileOutputStream
fOS = FileUtility.getFileOutputStream(FileUtility.getFileName());
JarOutputStream
jarOS =
new
JarOutputStream(fOS);
jarOS.putNextEntry(
new
JarEntry(
"foo"
));
jarOS.putNextEntry(
new
JarEntry(
"foo2"
));
jarOS.putNextEntry(
new
JarEntry(
"foo3"
));
jarOS.close();
fOS.close();
}
Solution
Si des artefacts doivent être archivés dans un fichier JAR, faites-le soit avant le démarrage de l'application, soit hors ligne, dans un travail par lots (batch).