Do you know the python module with which I can add files to the JAR archive?
(what I do not want to do is add .class files to the jar archive)
and the program that needs to do this must be written in python
Thanks!
.jar files are simply .zip files with a different file extension and manifest.
Try http://docs.python.org/library/zipfile.html
This can be done using subprocess calling the jar command:
import subprocess def add_to_jar(file2add, jar_file): cmd = 'jar -uf ' + jar_file + " " + file2add proc = subprocess.Popen(cmd, shell=True) add_to_jar(file_to_add, jar_file)
Source: https://habr.com/ru/post/894743/More articles:Running rgrep is not interactive - emacswhy is vs2010 so slow lately? Its almost unusable - performanceHow do databases implement SQL "ORDER BY x"? - sqlCreating a secure file name from NSString? - ioshttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/894742/my-regular-expression-matches-too-much-how-can-i-tell-it-to-match-the-smallest-possible-pattern&usg=ALkJrhhQ-R3CXsmuCoxoGuvKjypuzk5b2gLLVM assembly: calling a function using varargs - assemblyCan I change the immutable existing browser window with the ability to resize Javascript? - javascriptSelenium IDE - entering values ββstored in an array into a text field? - arraysHow to implement a search function using the Entity Framework? - c #to check if an object exists in cloud files (PHP API) - phpAll Articles