Of course you have to compile the class file before you play the war package, and be careful to check that the configuration file is consistent with the production or test environment.
@echo ===========================================
@echo Description: Packaging script
@echo Author: Ban
@echo Date: 2011-07-22
@ echo ===========================================
shows @echo @rem line wrap
.
@rem temporary directory
@set web_temp=d:\web_temp\
@rem sourcedir: Engineering WEB directory, do not follow the slash
@set sourcedir=e:\workspace55\sc\ Web
@rem War Package storage directory
@set targetdir=%systemdrive%%homepath%\ desktop \
@rem War package filename
@set filename= Xsqd.war
@set jar_cmd= "%java_home%\bin\jar.exe"
@rem Echo Deletes an existing temporary directory
@rd/S/q%web_temp%
@echo Create temporary directory
@md%web_temp%
@echo copying Files
... @rem does not copy hidden files by default, to exclude. svn files
@xcopy%sourcedir%%web_temp%/e/r/I
@echo Copy the file, packing ...
@rem The working directory to the temporary directory
@pushd%web_temp%
@%jar_cmd% cvf "%targetdir%%filename%" *
@echo.
@echo package is complete.
@pause