@echo off
set /P c=Generate new jars or not (Y/N)?
if /I "%c%" EQU "N" goto donotgenerateJars
if /I "%c%" EQU "Y" goto generateJars
:generateJars
jar cvf D:/SCC/SCC-3_1/plugins/ASEMAP/lib/ASEMapPlugin.jar com/sybase/ua/ ASEMaplog4j.properties
echo Generate new jars finished!
goto end
:donotgenerateJars
echo Did not generate new jars!
:end
set /P c=Generate new jars or not (Y/N)?
if /I "%c%" EQU "N" goto donotgenerateJars
if /I "%c%" EQU "Y" goto generateJars
:generateJars
jar cvf D:/SCC/SCC-3_1/plugins/ASEMAP/lib/ASEMapPlugin.jar com/sybase/ua/ ASEMaplog4j.properties
echo Generate new jars finished!
goto end
:donotgenerateJars
echo Did not generate new jars!
:end
批处理脚本生成JAR文件
本文介绍了一个批处理脚本,该脚本用于根据用户输入决定是否生成新的JAR文件。如果选择生成,则会创建指定路径下的ASEMapPlugin.jar,并加入必要的配置文件。
1067

被折叠的 条评论
为什么被折叠?



