java自动生成jar包工具

jar -cfe Main.jar com.xjq.test.Main com/xjq/test/Main.class

jar -cmef manifest.mf com.xjq.test.Main myFile.jar @classes.list

jar -cfe my3.jar com.xjq.test.main @classes.list

jar -cf my2.jar @classes.list

jar -tf Main.jar

javac @options @classes

javac -d E:\HBWork\android_project\workspace\test\src\bin -sourcepath E:\HBWork\android_project\workspace\test\src\
classes @classes


SET GEN_PATH=E:\HBWork\android_project\workspace\_TOOLS_\OverSea\bin
SET SRC_PATH=E:\HBWork\android_project\workspace\_TOOLS_
SET CLASSPATH=E:\HBWork\android_project\workspace\_TOOLS_\OverSea\libs\*
ECHO CLASSPATH
javac -d %GEN_PATH% -classpath %CLASSPATH% -sourcepath %SRC_PATH% @JavaClass
pause

SET CUR=%CD%
SET JAR_PATH=%CUR%\main.jar
SET CLASS_PATH=@%CUR%\class.list
SET PACKAGE_PATH=%CD%\OverSea\bin
ECHO %PACKAGE_PATH%
CD %PACKAGE_PATH%
jar cf %JAR_PATH%  %CLASS_PATH%
PAUSE

  

posted on 2018-10-30 18:22  魔天天  阅读(1630)  评论(0编辑  收藏  举报