欢迎访问昆山宝鼎软件有限公司网站! 设为首页 | 网站地图 | XML | RSS订阅 | 宝鼎邮箱 | 后台管理


新闻资讯

MENU

软件开发知识

4.2编写build.xml build.properties文件 # antappName=mysspwebAppN

点击: 次  来源:劳务派遣管理系统 时间:2018-03-18

原文出处: 袁鸣凯

一、媒介

我们在《万能框架spring》前四天中都用到了maven,接下去要报告在SSX这样的架构下我们的“单位测试”是怎么举办的,可是在此之前我们再来深入入解一下maven,因为我们的单位测试需要用到的是junit+ant+junitreport这样的组合。而。。。。。。由于我们已经利用了maven,那么我们如何可以延续经典的junit+ant这样的单位测试的组合呢?其谜底就是把maven和ant再举办组合一下。

二、用Maven任务在Ant中利用Maven依赖

Maven的一个重要特性是利用中央客栈,存储依赖和识别应用措施所需的库。Maven2还支持通报依赖(transitivedependency),这是一个强大的观念,它将用户需要声明的依赖限制到最小水平。Ant不支持“即开即用”的依赖打点。在Ant项目中,应用措施所需的全部措施库凡是都存放在一个项目目次中。

三、利用maven-ant-task

3.1安装maven-ant-task

我们先下载maven-ant-tasks-2.1.3.jar(我也已经上传到了“我的资源”里了);

下载完后把它放到我们的ant的lib目次下;

3.2 打包工程

 4.2编写build.xml build.properties文件 # antappName=mysspwebAppName=mysspwebAppQAName=myssp-UTlocal.dir=C:/eclipsespace/${appName}src.dir=${local.dir}/src/main/javadist.dir=${local.dir}/distwebroot.dir=${local.dir}/src/main/webapplib.dir=${local.dir}/libclasses.dir=${webroot.dir}/WEB-INF/classesresources.dir=${local.dir}/src/main/resources 请留意此处的${}这样的placeholder(替换符)的利用能力 build.xml文件(赤色加粗部门) ?xml version=1.0 encoding=UTF-8?project name=myssp default=buildwar xmlns:artifact=urn:maven-artifact-ant property file=build.properties / path id=maven-ant-tasks.classpath path=C:/ant/lib/maven-ant-tasks-2.1.3.jar / typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath / artifact:pom id=maven.project file=pom.xml / artifact:dependencies filesetId=deps.fileset.compile useScope=compile !--pom file=pom.xml/-- pom refid=maven.project / /artifact:dependencies path id=compile.classpath fileset dir=${lib.dir} include name=*.jar / /fileset /path target name=clean description=Delete old build and dist directories de  <a href=昆山软件定制开拓 lete dir=${dist.dir} / mkdir dir=${dist.dir} / mkdir dir=${dist.dir}/${webAppName} / mkdir dir=${dist.dir}/${webAppName}/WEB-INF / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/lib / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/classes / mkdir dir=${dist.dir}/${webAppName}/css / mkdir dir=${dist.dir}/${webAppName}/images / mkdir dir=${dist.dir}/${webAppName}/jsp / /target target name=download-libs depends=clean copy todir=${lib.dir} fileset refid=deps.fileset.compile / mapper type=flatten / /copy /target target name=compile description=Compile java sources depends=download-libs javac debug=true destdir=${dist.dir}/${webAppName}/WEB-INF/classes includeAntRuntime=false srcdir=${src.dir} classpath refid=compile.classpath / /javac copy todir=${dist.dir}/${webAppName}/WEB-INF/lib fileset dir=${lib.dir} include name=*.jar / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF/classes fileset dir=${resources.dir} include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/css fileset dir=${webroot.dir}/css include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/images fileset dir=${webroot.dir}/images include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/jsp fileset dir=${webroot.dir}/jsp include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName} fileset dir=${webroot.dir} include name=*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF fileset dir=${webroot.dir}/WEB-INF include name=*.* / /fileset /copy /target target name=buildwar depends=compile war warfile=${dist.dir}/${webAppName}.war fileset dir=${dist.dir}/${webAppName}/ /war /target/project 比较着Maven+Ant打包的流程图看这个build.xml文件" src="/uploads/allimg/c180318/152131O5313640-12K7.jpg" />

这是一个传统的没有利用maven依赖库的ant的打包流程,从图上看很清晰,对吧?

在前面说了,ant打包时是需要所有的.jar文件都是事先已经在工程的WebContent/WEB-INF/lib目次下了,这也是多半数人所熟悉的。

可是Maven打包,就一个包依赖声明文件pom.xml,昆山软件开发,然后在打包时缺什么jarMaven会自动帮我们去下载,所以说Maven真是一个好对象,昆山软件开发,利用maven-ant-task我们可以把“声明classpath”这块来用maven-ant-task来做,即其它照旧利用ant,就是在声明编译时即javac时需要用到的那些依赖包时再利用maven的特性。

因此,我们再来看上述这个纯ant工程打包流程在引入了maven-ant-task后会酿成什么样子吧。

 4.2编写build.xml build.properties文件 # antappName=mysspwebAppName=mysspwebAppQAName=myssp-UTlocal.dir=C:/eclipsespace/${appName}src.dir=${local.dir}/src/main/javadist.dir=${local.dir}/distwebroot.dir=${local.dir}/src/main/webapplib.dir=${local.dir}/libclasses.dir=${webroot.dir}/WEB-INF/classesresources.dir=${local.dir}/src/main/resources 请留意此处的${}这样的placeholder(替换符)的利用能力 build.xml文件(赤色加粗部门) ?xml version=1.0 encoding=UTF-8?project name=myssp default=buildwar xmlns:artifact=urn:maven-artifact-ant property file=build.properties / path id=maven-ant-tasks.classpath path=C:/ant/lib/maven-ant-tasks-2.1.3.jar / typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath / artifact:pom id=maven.project file=pom.xml / artifact:dependencies filesetId=deps.fileset.compile useScope=compile !--pom file=pom.xml/-- pom refid=maven.project / /artifact:dependencies path id=compile.classpath fileset dir=${lib.dir} include name=*.jar / /fileset /path target name=clean description=Delete old build and dist directories de  <a href=昆山软件定制开拓 lete dir=${dist.dir} / mkdir dir=${dist.dir} / mkdir dir=${dist.dir}/${webAppName} / mkdir dir=${dist.dir}/${webAppName}/WEB-INF / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/lib / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/classes / mkdir dir=${dist.dir}/${webAppName}/css / mkdir dir=${dist.dir}/${webAppName}/images / mkdir dir=${dist.dir}/${webAppName}/jsp / /target target name=download-libs depends=clean copy todir=${lib.dir} fileset refid=deps.fileset.compile / mapper type=flatten / /copy /target target name=compile description=Compile java sources depends=download-libs javac debug=true destdir=${dist.dir}/${webAppName}/WEB-INF/classes includeAntRuntime=false srcdir=${src.dir} classpath refid=compile.classpath / /javac copy todir=${dist.dir}/${webAppName}/WEB-INF/lib fileset dir=${lib.dir} include name=*.jar / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF/classes fileset dir=${resources.dir} include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/css fileset dir=${webroot.dir}/css include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/images fileset dir=${webroot.dir}/images include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/jsp fileset dir=${webroot.dir}/jsp include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName} fileset dir=${webroot.dir} include name=*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF fileset dir=${webroot.dir}/WEB-INF include name=*.* / /fileset /copy /target target name=buildwar depends=compile war warfile=${dist.dir}/${webAppName}.war fileset dir=${dist.dir}/${webAppName}/ /war /target/project 比较着Maven+Ant打包的流程图看这个build.xml文件" src="/uploads/allimg/c180318/152131O535Y50-25K3.jpg" />

四、动手改革工程

我们此处以myssp的工程来做例子,本来的pom.xml文件不动,增加ant的打包文件即build.xml文件。

4.1maven情况的重配置

我们前面的几天教程用的都是一个叫maveneclipse(m2 eclipse)的插件

 4.2编写build.xml build.properties文件 # antappName=mysspwebAppName=mysspwebAppQAName=myssp-UTlocal.dir=C:/eclipsespace/${appName}src.dir=${local.dir}/src/main/javadist.dir=${local.dir}/distwebroot.dir=${local.dir}/src/main/webapplib.dir=${local.dir}/libclasses.dir=${webroot.dir}/WEB-INF/classesresources.dir=${local.dir}/src/main/resources 请留意此处的${}这样的placeholder(替换符)的利用能力 build.xml文件(赤色加粗部门) ?xml version=1.0 encoding=UTF-8?project name=myssp default=buildwar xmlns:artifact=urn:maven-artifact-ant property file=build.properties / path id=maven-ant-tasks.classpath path=C:/ant/lib/maven-ant-tasks-2.1.3.jar / typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath / artifact:pom id=maven.project file=pom.xml / artifact:dependencies filesetId=deps.fileset.compile useScope=compile !--pom file=pom.xml/-- pom refid=maven.project / /artifact:dependencies path id=compile.classpath fileset dir=${lib.dir} include name=*.jar / /fileset /path target name=clean description=Delete old build and dist directories de  <a href=昆山软件定制开拓 lete dir=${dist.dir} / mkdir dir=${dist.dir} / mkdir dir=${dist.dir}/${webAppName} / mkdir dir=${dist.dir}/${webAppName}/WEB-INF / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/lib / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/classes / mkdir dir=${dist.dir}/${webAppName}/css / mkdir dir=${dist.dir}/${webAppName}/images / mkdir dir=${dist.dir}/${webAppName}/jsp / /target target name=download-libs depends=clean copy todir=${lib.dir} fileset refid=deps.fileset.compile / mapper type=flatten / /copy /target target name=compile description=Compile java sources depends=download-libs javac debug=true destdir=${dist.dir}/${webAppName}/WEB-INF/classes includeAntRuntime=false srcdir=${src.dir} classpath refid=compile.classpath / /javac copy todir=${dist.dir}/${webAppName}/WEB-INF/lib fileset dir=${lib.dir} include name=*.jar / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF/classes fileset dir=${resources.dir} include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/css fileset dir=${webroot.dir}/css include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/images fileset dir=${webroot.dir}/images include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/jsp fileset dir=${webroot.dir}/jsp include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName} fileset dir=${webroot.dir} include name=*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF fileset dir=${webroot.dir}/WEB-INF include name=*.* / /fileset /copy /target target name=buildwar depends=compile war warfile=${dist.dir}/${webAppName}.war fileset dir=${dist.dir}/${webAppName}/ /war /target/project 比较着Maven+Ant打包的流程图看这个build.xml文件" src="/uploads/allimg/c180318/152131O53QS0-3E01.jpg" />

它默认会把所有的maven依赖库下载到你的C:\Users\yourusername\.m2\repository这个目次下(以win7为例,假如你用的是XP那么这个目次应该在你的c:\documents and settings目次下),因此我们需要手动把我们的maven安装目次的下的conf\目次下的settings.xml文件也拷贝到

C:\Users\yourusername\.m2\repository目次下,还记得吗?

此刻,我们在我们的apache-maven的安装目次即c:\maven目次下成立我们的repository,而且让m2eclipse插件也将repository指向C:\maven\repository。

变动c:\maven\conf\settings.xml文件

 4.2编写build.xml build.properties文件 # antappName=mysspwebAppName=mysspwebAppQAName=myssp-UTlocal.dir=C:/eclipsespace/${appName}src.dir=${local.dir}/src/main/javadist.dir=${local.dir}/distwebroot.dir=${local.dir}/src/main/webapplib.dir=${local.dir}/libclasses.dir=${webroot.dir}/WEB-INF/classesresources.dir=${local.dir}/src/main/resources 请留意此处的${}这样的placeholder(替换符)的利用能力 build.xml文件(赤色加粗部门) ?xml version=1.0 encoding=UTF-8?project name=myssp default=buildwar xmlns:artifact=urn:maven-artifact-ant property file=build.properties / path id=maven-ant-tasks.classpath path=C:/ant/lib/maven-ant-tasks-2.1.3.jar / typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath / artifact:pom id=maven.project file=pom.xml / artifact:dependencies filesetId=deps.fileset.compile useScope=compile !--pom file=pom.xml/-- pom refid=maven.project / /artifact:dependencies path id=compile.classpath fileset dir=${lib.dir} include name=*.jar / /fileset /path target name=clean description=Delete old build and dist directories de  <a href=昆山软件定制开拓 lete dir=${dist.dir} / mkdir dir=${dist.dir} / mkdir dir=${dist.dir}/${webAppName} / mkdir dir=${dist.dir}/${webAppName}/WEB-INF / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/lib / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/classes / mkdir dir=${dist.dir}/${webAppName}/css / mkdir dir=${dist.dir}/${webAppName}/images / mkdir dir=${dist.dir}/${webAppName}/jsp / /target target name=download-libs depends=clean copy todir=${lib.dir} fileset refid=deps.fileset.compile / mapper type=flatten / /copy /target target name=compile description=Compile java sources depends=download-libs javac debug=true destdir=${dist.dir}/${webAppName}/WEB-INF/classes includeAntRuntime=false srcdir=${src.dir} classpath refid=compile.classpath / /javac copy todir=${dist.dir}/${webAppName}/WEB-INF/lib fileset dir=${lib.dir} include name=*.jar / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF/classes fileset dir=${resources.dir} include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/css fileset dir=${webroot.dir}/css include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/images fileset dir=${webroot.dir}/images include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/jsp fileset dir=${webroot.dir}/jsp include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName} fileset dir=${webroot.dir} include name=*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF fileset dir=${webroot.dir}/WEB-INF include name=*.* / /fileset /copy /target target name=buildwar depends=compile war warfile=${dist.dir}/${webAppName}.war fileset dir=${dist.dir}/${webAppName}/ /war /target/project 比较着Maven+Ant打包的流程图看这个build.xml文件" src="/uploads/allimg/c180318/152131O53Z420-4G51.jpg" />

我们在原有的settings.xml文件中增加了如下的一段话

<localRepository>C:\maven\repository</localRepository>

然后回到eclipse点开window->preference->Maven->UserSettings,将我们的m2eclipse的配置设置成如下的样子

 4.2编写build.xml build.properties文件 # antappName=mysspwebAppName=mysspwebAppQAName=myssp-UTlocal.dir=C:/eclipsespace/${appName}src.dir=${local.dir}/src/main/javadist.dir=${local.dir}/distwebroot.dir=${local.dir}/src/main/webapplib.dir=${local.dir}/libclasses.dir=${webroot.dir}/WEB-INF/classesresources.dir=${local.dir}/src/main/resources 请留意此处的${}这样的placeholder(替换符)的利用能力 build.xml文件(赤色加粗部门) ?xml version=1.0 encoding=UTF-8?project name=myssp default=buildwar xmlns:artifact=urn:maven-artifact-ant property file=build.properties / path id=maven-ant-tasks.classpath path=C:/ant/lib/maven-ant-tasks-2.1.3.jar / typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpathref=maven-ant-tasks.classpath / artifact:pom id=maven.project file=pom.xml / artifact:dependencies filesetId=deps.fileset.compile useScope=compile !--pom file=pom.xml/-- pom refid=maven.project / /artifact:dependencies path id=compile.classpath fileset dir=${lib.dir} include name=*.jar / /fileset /path target name=clean description=Delete old build and dist directories de  <a href=昆山软件定制开拓 lete dir=${dist.dir} / mkdir dir=${dist.dir} / mkdir dir=${dist.dir}/${webAppName} / mkdir dir=${dist.dir}/${webAppName}/WEB-INF / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/lib / mkdir dir=${dist.dir}/${webAppName}/WEB-INF/classes / mkdir dir=${dist.dir}/${webAppName}/css / mkdir dir=${dist.dir}/${webAppName}/images / mkdir dir=${dist.dir}/${webAppName}/jsp / /target target name=download-libs depends=clean copy todir=${lib.dir} fileset refid=deps.fileset.compile / mapper type=flatten / /copy /target target name=compile description=Compile java sources depends=download-libs javac debug=true destdir=${dist.dir}/${webAppName}/WEB-INF/classes includeAntRuntime=false srcdir=${src.dir} classpath refid=compile.classpath / /javac copy todir=${dist.dir}/${webAppName}/WEB-INF/lib fileset dir=${lib.dir} include name=*.jar / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF/classes fileset dir=${resources.dir} include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/css fileset dir=${webroot.dir}/css include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/images fileset dir=${webroot.dir}/images include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/jsp fileset dir=${webroot.dir}/jsp include name=**/*.* / /fileset /copy copy todir=${dist.dir}/${webAppName} fileset dir=${webroot.dir} include name=*.* / /fileset /copy copy todir=${dist.dir}/${webAppName}/WEB-INF fileset dir=${webroot.dir}/WEB-INF include name=*.* / /fileset /copy /target target name=buildwar depends=compile war warfile=${dist.dir}/${webAppName}.war fileset dir=${dist.dir}/${webAppName}/ /war /target/project 比较着Maven+Ant打包的流程图看这个build.xml文件" src="/uploads/allimg/c180318/152131O5405K0-5JI.jpg" />

留意:

Local Repository再也不是“C:\Users\yourusername\.m2\repository”了,而是指向了我们的

c:\maven\repository目次了。

这样做尚有一个长处就是你在从头装机时你的maven的local repository不会因为documents and settings目次的丢失而丢失了。

4.2编写build.xml

build.properties文件

# ant

appName=myssp

webAppName=myssp

webAppQAName=myssp-UT

local.dir=C:/eclipsespace/${appName}

src.dir=${local.dir}/src/main/java

dist.dir=${local.dir}/dist

webroot.dir=${local.dir}/src/main/webapp

lib.dir=${local.dir}/lib

classes.dir=${webroot.dir}/WEB-INF/classes

resources.dir=${local.dir}/src/main/resources

请留意此处的${}这样的placeholder(替换符)的利用能力

build.xml文件(赤色加粗部门)

<?xml version="1.0" encoding="UTF-8"?>

<project name="myssp" default="buildwar"  xmlns:artifact="urn:maven-artifact-ant">

 

 <property file="build.properties" />

    <path id="maven-ant-tasks.classpath" path="C:/ant/lib/maven-ant-tasks-2.1.3.jar" />

    <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"

                                                                                    classpathref="maven-ant-tasks.classpath" />

    <artifact:pom id="maven.project" file="pom.xml" />

    <artifact:dependencies filesetId="deps.fileset.compile" useScope="compile">

        <!--<pom file="pom.xml"/>-->

         <pom refid="maven.project" />

   </artifact:dependencies>

   <path id="compile.classpath">

             <fileset dir="${lib.dir}">

                      <include name="*.jar" />

             </fileset>

   </path>

   <target name="clean" description="Delete old build and dist directories">

         <delete dir="${dist.dir}" />

         <mkdir dir="${dist.dir}" />

         <mkdir dir="${dist.dir}/${webAppName}" />

         <mkdir dir="${dist.dir}/${webAppName}/WEB-INF" />

         <mkdir dir="${dist.dir}/${webAppName}/WEB-INF/lib" />

          <mkdir dir="${dist.dir}/${webAppName}/WEB-INF/classes" />

          <mkdir dir="${dist.dir}/${webAppName}/css" />

          <mkdir dir="${dist.dir}/${webAppName}/images" />

          <mkdir dir="${dist.dir}/${webAppName}/jsp" />                                   

   </target>

   <target name="download-libs" depends="clean">

          <copy todir="${lib.dir}">

             <fileset refid="deps.fileset.compile" />

             <mapper type="flatten" />

           </copy>

  </target>

  <target name="compile" description="Compile java sources" depends="download-libs">

           <javac debug="true" destdir="${dist.dir}/${webAppName}/WEB-INF/classes"               

                                                                                        includeAntRuntime="false" srcdir="${src.dir}">

             <classpath refid="compile.classpath" />

           </javac>

           <copy todir="${dist.dir}/${webAppName}/WEB-INF/lib">

                       <fileset dir="${lib.dir}">

                         <include name="*.jar" />

                        </fileset>

          </copy>

           <copy todir="${dist.dir}/${webAppName}/WEB-INF/classes">

                       <fileset dir="${resources.dir}">

                        <include name="**/*.*" />

                        </fileset>

          </copy>

          <copy todir="${dist.dir}/${webAppName}/css">

                       <fileset dir="${webroot.dir}/css">

                         <include name="**/*.*" />

                       </fileset>

          </copy>

          <copy todir="${dist.dir}/${webAppName}/images">

                      <fileset dir="${webroot.dir}/images">

                        <include name="**/*.*" />

                      </fileset>

          </copy>

          <copy todir="${dist.dir}/${webAppName}/jsp">

                     <fileset dir="${webroot.dir}/jsp">

                           <include name="**/*.*" />

                     </fileset>

         </copy>

         <copy todir="${dist.dir}/${webAppName}">

                    <fileset dir="${webroot.dir}">

                      <include name="*.*" />

                   </fileset>

        </copy>

        <copy todir="${dist.dir}/${webAppName}/WEB-INF">

                 <fileset dir="${webroot.dir}/WEB-INF">

                      <include name="*.*" />

                 </fileset>

        </copy>

  </target>

  <target name="buildwar" depends="compile">

        <war warfile="${dist.dir}/${webAppName}.war">

          <fileset dir="${dist.dir}/${webAppName}"/>

        </war>

  </target>

</project>

比较着Maven+Ant打包的流程图看这个build.xml文件,一点也不丢脸懂,就一个进程化的批处理惩罚剧本而己。