build

<?xml version="1.0" encoding="Shift_JIS"?>
<project name="ngn" default="init" basedir=".">

<!-- プロパティ定義-->
<!-- リリースモジュール出力ディレクトリ -->
<property name="dir.release" value="${basedir}/release" />
<!-- ビルド作業用ディレクトリ -->
<property name="dir.work" value="${basedir}/work" />
<!-- CVSチェックアウトディレクトリ -->
<property name="dir.cvs" value="${dir.work}/cvs" />
<!-- 開発用ディレクトリ -->
<property name="develop.dir" value="${dir.work}/NGN/20Engineering/20.40SourceCode/NGNOPS" />
<property file="${develop.dir}/build/build.properties"/>

<!-- CVSROOT -->
<property name="cvs.root" value=":pserver:[email protected]:/external/Repo3" />
<!-- CVSログインパスワード -->
<property name="cvs.password" value="cssc_new"/>
<!-- CVS .cvspassファイル -->
<property name="cvs.file" value=".cvspass"/>

<!-- os.nameで取得されるOS名(HP-UX) -->
<property name="os.name.hpux" value="HP-UX" />
<!-- os.nameで取得されるOS名(Linux) -->
<property name="os.name.linux" value="Linux" />

<!-- 共通クラスパス -->
<path id="classpath.lib">
<fileset dir="${ant.home}/lib">
<include name="*.jar" />
</fileset>
</path>

<!-- メインターゲットここから -->
<!-- CRを削除-->
<target name="replacelf">
        <echo message="Delete CR from psf and sh files"/>
        <fixcrlf srcdir="${basedir}"
            eol="lf"
            includes="*.psf,*.sh"
        />
    </target>

<target name="replace">
        <echo message="replace environment-dependent strings of psf and sh files."/>
        <replace dir="${basedir}" token="@cmn.ap.server.dir@" value="${cmn.ap.server.dir}"
        includes="*.psf,*.sh"
        />
        <replace dir="${basedir}" token="@cmn.bt.server.dir@" value="${cmn.bt.server.dir}"
        includes="*.psf,*.sh"
        />
        <replace dir="${basedir}" token="@cmn.es.server.dir@" value="${cmn.es.server.dir}"
        includes="*.psf,*.sh"
        />
        <replace dir="${basedir}" token="@cmn.nfs.release.dir@" value="${cmn.nfs.release.dir}"
        includes="*.psf,*.sh"
        />
<replace dir="${basedir}" token="@cmn.east.west@" value="${cmn.east.west}"
    includes="*.psf,*.sh"
/>
<replace dir="${basedir}" token="@val.psf.package.env@" value="${val.psf.package.env}"
    includes="*.psf,*.sh"
/>
        <replace dir="${basedir}" token="@val.psf.owner.ap@" value="${val.psf.owner.ap}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.group.ap@" value="${val.psf.group.ap}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.owner.not.ap@" value="${val.psf.owner.not.ap}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.group.not.ap@" value="${val.psf.group.not.ap}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.mod.dir@" value="${val.psf.mod.dir}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.mod.sh@" value="${val.psf.mod.sh}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.mod.pl@" value="${val.psf.mod.pl}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.mod.perl.lib@" value="${val.psf.mod.perl.lib}"
        includes="*.psf"
        />
        <replace dir="${basedir}" token="@val.psf.mod.other@" value="${val.psf.mod.other}"
        includes="*.psf"
        />
    </target>

<!-- 作業用ディレクトリを削除-->
<target name="clean">
<delete dir="${dir.work}" />
<delete dir="${dir.release}" />
</target>

<!-- 必要なディレクトリを作成-->
<target name="init">
<mkdir dir="${dir.release}" />
<mkdir dir="${dir.work}" />
</target>

<!-- CVSから全モジュールをチェックアウト command="export -r HEAD -d ${dir.work} PCL/20Engineering/20.40SourceCode/Pilot/PCL/config"-->
<target name="cvs">
<cvspass cvsroot="${cvs.root}" password="${cvs.password}" passfile="${dir.work}/${cvs.file}" />
<cvs cvsroot="${cvs.root}" passfile="${dir.work}/${cvs.file}"
package="NGN/20Engineering/20.40SourceCode/NGNOPS" dest="${dir.work}" failonerror="true"
tag="T_NGN2_1A_XXX"
/>
</target>

<!-- CVSにタグをセットする -->
<target name="cvs.tag">
<fail unless="tag.name" message="[ERROR] CVS Tag Name not Specified." />
<cvspass cvsroot="${cvs.root}" password="${cvs.password}" passfile="${dir.work}/${cvs.file}" />

<echo message="Begin to Create CVS Tag(${tag.name})." />
<cvs command="tag ${tag.name}" package="NGN/20Engineering/20.40SourceCode/NGNOPS"
dest="${dir.work}" cvsroot="${cvs.root}" passfile="${dir.work}/${cvs.file}" failonerror="true" />
<echo message="CVS Tag(${tag.name}) Created." />
</target>

<!-- 全ソースコードをコンパイル対象ディレクトリへコピー -->
<target name="copy">
<!--antcall target="move.impl"/-->
<mkdir dir="${dir.release}/ngnops_eqm"/>

<copy todir="${dir.release}/ngnops_eqm">
<fileset dir="${dir.work}/NGN/20Engineering/20.40SourceCode/NGNOPS/build/deploy/" includes="**"/>
</copy>
</target>
<!-- 全モジュールの実装コードを移動する-->
<target name="move.impl">
<move todir="${dir.cvs}">
<fileset dir="${dir.work}/PCL"/>
</move>
</target>


<!-- パッケージ以外の対象がreleaseディレクトリへコピー -->
<target name="package" depends="package.depot">
    <delete dir="${dir.release}/ngnops_eqm"/>
    <copy todir="${dir.release}">
<fileset dir="." includes="inst.sh"/>
</copy>
<!--chmod dir="${dir.release}" perm="ugo+rx" includes="**/*.sh"/-->
</target>

<!-- HP-UX用デポを作成する -->
<target name="package.depot" depends="check.os" if="ishpux">
<exec executable="/usr/sbin/swpackage" output="swpackage_ap.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_ap.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_ap.depot" />
</exec>
<exec executable="/usr/sbin/swpackage" output="swpackage_nfs.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_nfs.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_nfs.depot" />
</exec>
<exec executable="/usr/sbin/swpackage" output="swpackage_lib_es.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_lib_es.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_lib_es.depot" />
</exec>
        <exec executable="/usr/sbin/swpackage" output="swpackage_lib_bt.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_lib_bt.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_lib_bt.depot" />
</exec>
<exec executable="/usr/sbin/swpackage" output="swpackage_es.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_es.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_es.depot" />
</exec>
<exec executable="/usr/sbin/swpackage" output="swpackage_bt.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_bt.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_bt.depot" />
</exec>
        <exec executable="/usr/sbin/swpackage" output="swpackage_nfs_perl.log" os="${os.name.hpux}">
<arg line="-s ngnopsInventory_nfs_perl.psf -x media_type=tape @ ${dir.release}/ngnops_eqm_nfs_perl.depot" />
</exec>
</target>

<!-- Linux用RPMを作成する(その前にnative2asciiをEUCでやりなおす) -->
<target name="package.rpm" depends="check.os" unless="ishpux">
<exec executable="/bin/rpm" output="${dir.release}/rpmba.log" os="${os.name.linux}">
<arg line="-ba aaaaa.spec" />
</exec>
</target>

<!-- OSがHP-UXかLinuxか判断する -->
<target name="check.os">
<condition property="ishpux">
<os name="${os.name.hpux}" />
</condition>
</target>

</project>

===================================


<?xml version="1.0" encoding="Shift_JIS"?>
<project name="ngnops" default="deploy" basedir="..">

    <!-- property definition -->

    <!-- ======== development directories ======== -->
    <property name="app.dir" value="${basedir}"/>
    <property name="build.dir" value="${app.dir}/build"/>
    <property name="src.dir" value="${app.dir}/src"/>
    <property name="shell.dir" value="${app.dir}/shell"/>
    <property name="lib.dir" value="${app.dir}/lib"/>
    <property name="web.dir" value="${app.dir}/web"/>
    <property name="conf.dir" value="${app.dir}/conf"/>

    <!-- ======== deployment directories ======== -->
    <property name="deploy.dir" value="${build.dir}/deploy"/>
<property name="replace.dir" value="${build.dir}/replace"/>
<property name="replace.conf.dir" value="${replace.dir}/conf"/>
<property name="replace.shell.dir" value="${replace.dir}/shell"/>
<property name="replace.src.dir" value="${replace.dir}/src"/>
    <property name="replace.web.dir" value="${replace.dir}/web"/>
   
<!-- ======== properties for replacement ======== -->
<property file="${build.dir}/build.properties"/>

    <!-- ======== server configuration directories ======== -->
    <!-- AP Server -->
<property name="ap.server.dir" value="${cmn.ap.server.dir}" />
<!-- ES Server -->
<property name="es.server.dir" value="${cmn.es.server.dir}" />
<!-- Batch Server -->
    <property name="bt.server.dir" value="${cmn.bt.server.dir}"/>
<!-- NFS Server -->
<property name="nfs.server.dir" value="${cmn.nfs.release.dir}"/>

    <!-- test directories -->
<!-- test version is same as test source directory -->
<!-- test.version is the only thing should be modified for testing a new version -->
<property name="test.version" value="ver2_2"/>
<property name="test.common.dir" value="${app.dir}/test/common"/>
    <property name="test.src.dir" value="${app.dir}/test/${test.version}"/>
    <property name="build.test.dir" value="${build.dir}/test"/>
    <property name="build.test.classes.dir" value="${build.test.dir}/classes"/>
    <property name="build.test.junit_report.dir" value="${build.test.dir}/junit_report"/>
    <property name="build.test.emma_report.dir" value="${build.test.dir}/emma_report"/>

    <!-- compilation classpath -->
    <path id="compile.classpath">
        <!-- The class files of this application -->
        <pathelement location="${deploy.dir}/WEB-INF/classes"/>
        <!-- The lib files for this application -->
        <fileset dir="${lib.dir}">
            <include name="**/*.jar"/>
            <include name="**/*.zip"/>
        </fileset>
    </path>

    <!-- this loads <emma> and <emmajava> custom tasks: -->
    <taskdef resource="emma_ant.properties">
        <classpath>
            <pathelement location="${lib.dir}/build/emma.jar"/>
            <pathelement location="${lib.dir}/build/emma_ant.jar"/>
        </classpath>
    </taskdef>

    <!-- targets -->
<target name="replacelf">
<!-- This target is only invoked in server enviroment. -->
        <echo message="Delete CR from source files"/>
        <fixcrlf srcdir="${conf.dir}"
            eol="lf"
            excludes="**/*.jar,**/*.gif,**/*.zip,**/*.pdf,**/*.tar,**/*.gz,**/*.so"
        />
        <fixcrlf srcdir="${shell.dir}"
            eol="lf"
            excludes="**/*.jar,**/*.gif,**/*.zip,**/*.pdf,**/*.tar,**/*.gz,**/*.so"
        />
        <fixcrlf srcdir="${src.dir}"
            eol="lf"
            excludes="**/*.jar,**/*.gif,**/*.zip,**/*.pdf,**/*.tar,**/*.gz,**/*.so"
        />
        <fixcrlf srcdir="${web.dir}"
            eol="lf"
            excludes="**/*.jar,**/*.gif,**/*.zip,**/*.pdf,**/*.tar,**/*.gz,**/*.so"
        />
    </target>

    <target name="clean">
        <echo message="Delete directories for deployment"/>
        <delete dir="${deploy.dir}"/>
    <delete dir="${replace.dir}"/>
        <delete dir="${build.test.dir}"/>
        <delete includeemptydirs="true">
            <fileset file="${build.dir}/ngnops_eqm.jar"/>
            <fileset file="${build.dir}/ngnops_eqm.war"/>
        </delete>
    </target>

    <target name="prepare">
        <echo message="Create directories for deployment"/>
        <!-- Make deploy directories -->
        <mkdir dir="${deploy.dir}"/>
        <mkdir dir="${deploy.dir}/WEB-INF"/>
        <mkdir dir="${deploy.dir}/WEB-INF/classes"/>
        <mkdir dir="${deploy.dir}/WEB-INF/lib"/>
    <mkdir dir="${replace.dir}"/>
        <mkdir dir="${replace.conf.dir}"/>
        <mkdir dir="${replace.shell.dir}"/>
        <mkdir dir="${replace.src.dir}"/>
        <mkdir dir="${replace.web.dir}"/>
    </target>
   
    <target name="copy_for_replace" depends="prepare">
        <echo message="Copy conf/shell/src/web directory files to replace directory"/>
        <copy todir="${replace.conf.dir}" overwrite="true">
            <fileset dir="${conf.dir}"/>
        </copy>
    <copy todir="${replace.shell.dir}" overwrite="true">
        <fileset dir="${shell.dir}"/>
    </copy>
        <copy todir="${replace.src.dir}" overwrite="true">
            <fileset dir="${src.dir}"/>
        </copy>
        <copy todir="${replace.web.dir}" overwrite="true">
            <fileset dir="${web.dir}"/>
        </copy>
    </target>

<target name="replace" depends="copy_for_replace">
        <echo message="replace environment-dependent strings"/>
        <!-- CMN start -->
        <replace dir="${replace.conf.dir}" token="@cmn.ap.server.dir@" value="${cmn.ap.server.dir}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.ap.server.dir@" value="${cmn.ap.server.dir}"/>
        <replace dir="${replace.web.dir}" token="@cmn.ap.server.dir@" value="${cmn.ap.server.dir}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.bt.server.dir@" value="${cmn.bt.server.dir}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.bt.server.dir@" value="${cmn.bt.server.dir}"/>
        <replace dir="${replace.web.dir}" token="@cmn.bt.server.dir@" value="${cmn.bt.server.dir}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.es.server.dir@" value="${cmn.es.server.dir}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.es.server.dir@" value="${cmn.es.server.dir}"/>
        <replace dir="${replace.web.dir}" token="@cmn.es.server.dir@" value="${cmn.es.server.dir}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace dir="${replace.web.dir}" token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <!-- The following 4 java files are all stubs. -->
<replace file="${replace.src.dir}/jp/co/nttcom/eqm/alm/service/outsidelink/AlmDevSmdcDelChkServiceImpl.java"
            token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace file="${replace.src.dir}/jp/co/nttcom/eqm/alm/service/outsidelink/AlmDevSmdcPkgDelChkServiceImpl.java"
            token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace file="${replace.src.dir}/jp/co/nttcom/eqm/alm/service/outsidelink/AlmPortServiceChangeServiceImpl.java"
            token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace file="${replace.src.dir}/jp/co/nttcom/eqm/sdt/service/SdtOfficeDataInfoServiceImpl.java"
            token="@cmn.nfs.server.dir@" value="${cmn.nfs.server.dir}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.eqmdb.url@" value="${cmn.eqmdb.url}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.eqmdb.url@" value="${cmn.eqmdb.url}"/>
        <replace dir="${replace.web.dir}" token="@cmn.eqmdb.url@" value="${cmn.eqmdb.url}"/>
<replace dir="${replace.conf.dir}" token="@cmn.eqmdb.user@" value="${cmn.eqmdb.user}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.eqmdb.user@" value="${cmn.eqmdb.user}"/>
        <replace dir="${replace.web.dir}" token="@cmn.eqmdb.user@" value="${cmn.eqmdb.user}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.eqmdb.password@" value="${cmn.eqmdb.password}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.eqmdb.password@" value="${cmn.eqmdb.password}"/>
        <replace dir="${replace.web.dir}" token="@cmn.eqmdb.password@" value="${cmn.eqmdb.password}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.eqmdb.sid@" value="${cmn.eqmdb.sid}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.eqmdb.sid@" value="${cmn.eqmdb.sid}"/>
        <replace dir="${replace.web.dir}" token="@cmn.eqmdb.sid@" value="${cmn.eqmdb.sid}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.system.id@" value="${cmn.system.id}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.system.id@" value="${cmn.system.id}"/>
        <replace dir="${replace.web.dir}" token="@cmn.system.id@" value="${cmn.system.id}"/>
        <replace dir="${replace.conf.dir}" token="@cmn.login.test@" value="${cmn.login.test}"/>
        <replace dir="${replace.shell.dir}" token="@cmn.login.test@" value="${cmn.login.test}"/>
        <replace dir="${replace.web.dir}" token="@cmn.login.test@" value="${cmn.login.test}"/>
        <replace file="${replace.conf.dir}/busicommon/busicommon.properties" token="@cmn.system.jid@" value="${cmn.system.jid}"/>
<replace file="${replace.conf.dir}/bld/bld.conf" token="@cmn.system.jid@" value="${cmn.system.jid}"/>
        <replace file="${replace.conf.dir}/tcm/tcm.properties" token="@cmn.tcm.port@" value="${cmn.tcm.port}"/>
        <replace file="${replace.src.dir}/jp/co/nttcom/eqm/tcm/common/TcmConstants.java" token="@cmn.tcm.port@" value="${cmn.tcm.port}"/>
<replace file="${replace.conf.dir}/tcm/spring-context.xml" token="@cmn.tcm.timeout@" value="${cmn.tcm.timeout}"/>
<!-- CMN end -->
        <!-- SDT start -->
        <!-- The following replacement files are all stubs. -->
        <replace file="${replace.conf.dir}/sdt/tmp/sdt.conf" token="@val.sdt.db.host@" value="${val.sdt.db.host}"/>
<replace file="${replace.conf.dir}/sdt/tmp/sdt.conf" token="@val.sdt.db.port@" value="${val.sdt.db.port}"/>
        <replace file="${replace.conf.dir}/sdt/tmp/sdt.conf" token="@val.sdt.db.service@" value="${val.sdt.db.service}"/>
        <replace file="${replace.conf.dir}/sdt/tmp/sdt.conf" token="@val.sdt.db.user@" value="${val.sdt.db.user}"/>
        <replace file="${replace.conf.dir}/sdt/tmp/sdt.conf" token="@val.sdt.db.pass@" value="${val.sdt.db.pass}"/>
<!-- SDT end -->
    </target>

    <target name="copy_web" depends="replace">
        <echo message="Copy replaced web directory files to delpoy directory"/>
        <copy todir="${deploy.dir}">
            <fileset dir="${replace.web.dir}"/>
        </copy>
    </target>

    <target name="compile" depends="replace">
        <echo message="Compile replaced java files to delpoy directory"/>
        <javac srcdir="${replace.src.dir}" destdir="${deploy.dir}/WEB-INF/classes" debug="yes"
               encoding="MS932" fork="true" source="1.5" target="1.5">
            <classpath refid="compile.classpath"/>
        </javac>
        <!-- Copy files to class path -->
        <copy todir="${deploy.dir}/WEB-INF/classes">
            <fileset dir="${replace.conf.dir}/busicommon/hbm">
                <include name="*.xml"/>
            </fileset>
        </copy>
        <native2ascii encoding="MS932"
                      src="${replace.conf.dir}/busicommon" dest="${replace.conf.dir}/busicommon"
                      includes="*.properties_sjis" ext=".properties"/>
        <!-- create ngnops_eqm lib file -->
        <jar destfile="${build.dir}/ngnops_eqm.jar">
            <fileset dir="${deploy.dir}/WEB-INF/classes"
                     includes="**"
                     excludes="**/*Test.class"/>
            <manifest>
                <attribute name="Built-By" value="TSG-GDCC-SH"/>
                <attribute name="Implementation-Version" value="Step2-2"/>
            </manifest>
        </jar>
   
    <!-- copy ApplicationResources.properties -->
    <copy todir="${deploy.dir}/WEB-INF/classes">
    <fileset dir="${replace.conf.dir}/busicommon">
            <include name="ApplicationResources.properties"/>
    </fileset>
    </copy>
    </target>

    <target name="copy_lib" depends="prepare">
        <echo message="Copy lib files to delpoy directory"/>
        <copy todir="${deploy.dir}/WEB-INF/lib">
            <fileset dir="${lib.dir}" includes="*.jar"/>
            <fileset dir="${lib.dir}" includes="*.zip"/>
            <fileset dir="${lib.dir}/build" includes="ojdbc14.jar"/>
        </copy>
    </target>

    <target name="configure" depends="replace">
        <echo message="Copy replaced configuration files to proper directories"/>

        <!-- ***** config directories ***** -->
    <!-- nfs server -->
    <mkdir dir="${nfs.server.dir}/acc/conf"/>
        <mkdir dir="${nfs.server.dir}/apm/conf"/>
        <mkdir dir="${nfs.server.dir}/common/conf"/>
        <mkdir dir="${nfs.server.dir}/common/conf/part"/>
        <mkdir dir="${nfs.server.dir}/busicommon/conf"/>
        <mkdir dir="${nfs.server.dir}/rft/bin"/>
        <mkdir dir="${nfs.server.dir}/rft/conf"/>
    <mkdir dir="${nfs.server.dir}/rft/conf/command"/>
        <mkdir dir="${nfs.server.dir}/rft/conf/default"/>
    <mkdir dir="${nfs.server.dir}/rft/log"/>
        <mkdir dir="${nfs.server.dir}/rft/work/oif"/>
        <mkdir dir="${nfs.server.dir}/rft/work/xml"/>
        <mkdir dir="${nfs.server.dir}/rly/conf"/>
        <mkdir dir="${nfs.server.dir}/rpt/conf"/>
        <mkdir dir="${nfs.server.dir}/rpt/conf/check"/>
        <mkdir dir="${nfs.server.dir}/rpt/conf/sql"/>
        <mkdir dir="${nfs.server.dir}/rpt/conf/xslt"/>
    <mkdir dir="${nfs.server.dir}/rpt/work"/>
        <mkdir dir="${nfs.server.dir}/esm/conf"/>
        <mkdir dir="${nfs.server.dir}/dgn/send"/>
        <mkdir dir="${nfs.server.dir}/dgn/recv"/>
        <mkdir dir="${nfs.server.dir}/oso/send"/>
        <mkdir dir="${nfs.server.dir}/oso/recv"/>
        <mkdir dir="${nfs.server.dir}/cnf_s/send"/>
        <mkdir dir="${nfs.server.dir}/cnf_s/recv"/>
        <mkdir dir="${nfs.server.dir}/cnf/send"/>
        <mkdir dir="${nfs.server.dir}/cnf/recv"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms2"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms4"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms5"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms6"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms7"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms8"/>
        <mkdir dir="${nfs.server.dir}/mms/send/mms9"/>
        <mkdir dir="${nfs.server.dir}/mms/recv/mms"/>
        <mkdir dir="${nfs.server.dir}/mms/recv/mms11"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/parameter_set"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/parameter_set/XMLschema"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/assign_rule"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/user_define"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/general"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/template"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/cfg_img"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/ex_word"/>
        <mkdir dir="${nfs.server.dir}/cfg/conf/ccs_link"/>
        <mkdir dir="${nfs.server.dir}/cfg/input"/>
        <mkdir dir="${nfs.server.dir}/cfg/input_log"/>
        <mkdir dir="${nfs.server.dir}/cfg/diff_log"/>
        <mkdir dir="${nfs.server.dir}/cfg/backup"/>
        <mkdir dir="${nfs.server.dir}/cfg/ccs_param_value"/>
        <mkdir dir="${nfs.server.dir}/cfg/work"/>
        <mkdir dir="${nfs.server.dir}/dim/conf"/>
        <mkdir dir="${nfs.server.dir}/alm/work"/>
        <mkdir dir="${nfs.server.dir}/sdt/work"/>
        <mkdir dir="${nfs.server.dir}/stk/work"/>
    <mkdir dir="${nfs.server.dir}/tsc/work"/>
     <mkdir dir="${nfs.server.dir}/bld/conf/"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/parameter_set"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/screen"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/sql"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/rule"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/create"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/create/XMLSchema"/>
    <mkdir dir="${nfs.server.dir}/nav/conf/general"/>
   
    <!-- ap server -->
    <mkdir dir="${ap.server.dir}/logs"/>
    <mkdir dir="${ap.server.dir}/logs/rft"/>
    <mkdir dir="${ap.server.dir}/temps/rft/xml"/>
    <mkdir dir="${ap.server.dir}/apps"/>
    <mkdir dir="${ap.server.dir}/conf"/>
    <mkdir dir="${ap.server.dir}/conf/part"/>
   
    <!-- batch server -->
    <mkdir dir="${bt.server.dir}/eqm/shell"/>
    <mkdir dir="${bt.server.dir}/eqm/conf"/>
    <mkdir dir="${bt.server.dir}/rft/bin"/>
    <mkdir dir="${bt.server.dir}/rft/conf"/>
    <mkdir dir="${bt.server.dir}/rft/log"/>
    <mkdir dir="${bt.server.dir}/rpt/bin"/>
    <mkdir dir="${bt.server.dir}/rpt/conf"/>
    <mkdir dir="${bt.server.dir}/rpt/log"/>
    <mkdir dir="${bt.server.dir}/rft/bin"/>
    <mkdir dir="${bt.server.dir}/rft/conf"/>
    <mkdir dir="${bt.server.dir}/rft/log"/>
    <mkdir dir="${bt.server.dir}/edr/bin"/>
    <mkdir dir="${bt.server.dir}/edr/conf"/>
    <mkdir dir="${bt.server.dir}/edr/log"/>
   
    <!-- es server -->
    <mkdir dir="${es.server.dir}/eqm/shell"/>
    <mkdir dir="${es.server.dir}/eqm/conf"/>
    <mkdir dir="${es.server.dir}/tcm/bin"/>
    <mkdir dir="${es.server.dir}/tcm/conf"/>
    <mkdir dir="${es.server.dir}/tcm/log"/>
    <mkdir dir="${es.server.dir}/cfg/bin"/>
    <mkdir dir="${es.server.dir}/esm/conf"/>
   
        <!-- ***** ap server files ***** -->
        <copy todir="${ap.server.dir}/conf">
            <fileset dir="${replace.conf.dir}/common">
                <include name="NgnLoggerProperties.xml"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/esm">
            <include name="outlinkset.xsd"/>
        </fileset>       
        <fileset dir="${replace.conf.dir}/esm/${cmn.east.west}">
            <include name="outlinkset.xml"/>
        </fileset>
        </copy>
        <copy todir="${ap.server.dir}/conf/part">
            <fileset dir="${replace.conf.dir}/common/part">
                <include name="part-config.xml"/>
                <include name="template-config.xml"/>
            </fileset>
        </copy>
    <copy todir="${ap.server.dir}/conf/part">
        <fileset dir="${replace.conf.dir}/common/part/${cmn.east.west}">
            <include name="button-config.xml"/>
            <include name="link-config.xml"/>
        </fileset>
    </copy>
    <!-- Copy properties files -->
        <copy todir="${ap.server.dir}/conf">
        <fileset dir="${replace.conf.dir}/acc">
                <include name="acc.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/apm">
                <include name="apm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/busicommon">
                <include name="ApplicationResources.properties_sjis"/>
                <include name="busicommon.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="cfg.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/common">
                <include name="common.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/dim">
                <include name="dim.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/edr">
                <include name="edr.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/esm">
                <include name="esm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rft">
                <include name="rft.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rly">
                <include name="rly.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rpt">
                <include name="rpt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/sdt/tmp">
                <include name="sdt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/stk/tmp">
                <include name="stk.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/tsc/tmp">
                <include name="tsc.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/bld">
                <include name="bld.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/nav">
                <include name="nav.properties"/>
            </fileset>
        </copy>
   
    <!-- ***** bt server files ***** -->
        <copy todir="${bt.server.dir}/rft/bin">
            <fileset dir="${replace.shell.dir}/rft/bin">
                <include name="rft_exec.sh"/>
            </fileset>
        </copy>
    <copy todir="${bt.server.dir}/eqm/shell">
        <fileset dir="${replace.shell.dir}/rft/bin">
             <include name="EQM-RF1-001.sh"/>
        </fileset>
    </copy>
        <copy todir="${bt.server.dir}/rft/conf">
            <fileset dir="${replace.shell.dir}/rft/conf">
                <include name="NgnLoggerProperties.xml"/>
                <include name="spring-context.xml"/>
            </fileset>
            <fileset dir="${replace.web.dir}/WEB-INF/spring-config">
                <include name="spring-context-acc.xml"/>
                <include name="spring-context-cfg.xml"/>
                <include name="spring-context-dim.xml"/>
                <include name="spring-context-esm.xml"/>
                <include name="spring-context-rft.xml"/>
                <include name="spring-context-tcm.xml"/>
                <include name="spring-context-alm.xml"/>
                <include name="spring-context-sdt.xml"/>
                <include name="spring-context-stk.xml"/>
            <include name="spring-context-tsc.xml"/>
            <include name="spring-context-odm.xml"/>
            </fileset>
        </copy>
        <copy todir="${bt.server.dir}/rpt/bin">
            <fileset dir="${replace.shell.dir}/rpt/bin">
                <include name="create_report.sh"/>
            </fileset>
        </copy>
        <copy todir="${bt.server.dir}/rpt/conf">
            <fileset dir="${replace.shell.dir}/rpt/conf">
                <include name="spring-context.xml"/>
                <include name="NgnLoggerProperties.xml"/>
            </fileset>
            <fileset dir="${replace.web.dir}/WEB-INF/spring-config">
                <include name="spring-context-rpt.xml"/>
                <include name="spring-context-msg.xml"/>
            </fileset>
        </copy>
        <copy todir="${bt.server.dir}/edr/bin">
            <fileset dir="${replace.shell.dir}/edr/bin">
                <include name="componentlist.sh"/>
            </fileset>
        </copy>
        <copy todir="${bt.server.dir}/eqm/shell">
             <fileset dir="${replace.shell.dir}/edr/bin">
                  <include name="EQM-ED1-001.sh"/>
             </fileset>
        </copy>
        <copy todir="${bt.server.dir}/edr/conf">
            <fileset dir="${replace.shell.dir}/edr/conf">
                <include name="spring-context.xml"/>
                <include name="NgnLoggerProperties.xml"/>
            </fileset>
            <fileset dir="${replace.web.dir}/WEB-INF/spring-config">
                <include name="spring-context-rpt.xml"/>
                <include name="spring-context-edr.xml"/>
            </fileset>
        </copy>
    <copy todir="${bt.server.dir}/eqm/lib">
        <fileset dir="${build.dir}">
           <include name="ngnops_eqm.jar"/>
        </fileset>
        <fileset dir="${lib.dir}" includes="*.jar"/>
        <fileset dir="${lib.dir}" includes="*.zip"/>
        <fileset dir="${lib.dir}/build" includes="ojdbc14.jar"/>
    </copy>
    <!-- Copy properties files -->
        <copy todir="${bt.server.dir}/eqm/conf">
            <fileset dir="${replace.conf.dir}/acc">
                <include name="acc.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/apm">
                <include name="apm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/busicommon">
            <include name="ApplicationResources.properties"/>
                <include name="ApplicationResources.properties_sjis"/>
                <include name="busicommon.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="cfg.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/common">
                <include name="common.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/dim">
                <include name="dim.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/edr">
                <include name="edr.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/esm">
                <include name="esm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rft">
                <include name="rft.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rly">
                <include name="rly.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rpt">
                <include name="rpt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/sdt/tmp">
                <include name="sdt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/stk/tmp">
                <include name="stk.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/tsc/tmp">
                <include name="tsc.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/bld">
                <include name="bld.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/nav">
                <include name="nav.properties"/>
            </fileset>
        </copy>
   
    <!-- ***** es server files ***** -->
    <copy todir="${es.server.dir}/eqm/shell">
            <fileset dir="${replace.shell.dir}/tcm/bin">
                <include name="EQM-DM1-002.sh"/>
                <include name="EQM-DM2-002.sh"/>
            </fileset>
        </copy>
        <copy todir="${es.server.dir}/tcm/bin">
            <fileset dir="${replace.shell.dir}/tcm/bin">
                <include name="startTaskManager.sh"/>
                <include name="stopTaskManager.sh"/>
            </fileset>
        </copy>
        <copy todir="${es.server.dir}/tcm/conf">
            <fileset dir="${replace.conf.dir}/tcm">
                <include name="spring-context.xml"/>
                <include name="actionMapping.xml"/>
                <include name="tcm.properties"/>
                <include name="NgnLoggerProperties.xml"/>
            </fileset>
            <fileset dir="${replace.web.dir}/WEB-INF/spring-config">
                <include name="spring-context-acc.xml"/>
            <include name="spring-context-alm.xml"/>
                <include name="spring-context-apm.xml"/>
                <include name="spring-context-cfg.xml"/>
                <include name="spring-context-dim.xml"/>
                <include name="spring-context-edr.xml"/>
                <include name="spring-context-esm.xml"/>
                <include name="spring-context-msg.xml"/>
                <include name="spring-context-rft.xml"/>
                <include name="spring-context-rly.xml"/>
                <include name="spring-context-rpt.xml"/>
                <include name="spring-context-tcm.xml"/>
                <include name="spring-context-sdt.xml"/>
                <include name="spring-context-stk.xml"/>
            <include name="spring-context-tsc.xml"/>
            <include name="spring-context-oif.xml"/>
            <include name="spring-context-bld.xml"/>
            <include name="spring-context-nav.xml"/>
            <include name="spring-context-odm.xml"/>
            </fileset>
        </copy>
        <copy todir="${es.server.dir}/cfg/bin">
            <fileset dir="${replace.shell.dir}/cfg/bin">
                <include name="diffconfig.sh"/>
            </fileset>
        </copy>
        <copy todir="${es.server.dir}/esm/conf">
            <fileset dir="${replace.conf.dir}/esm">
                <include name="esmif.properties"/>
            </fileset>
        </copy>
        <copy todir="${es.server.dir}/eqm/lib">
            <fileset dir="${build.dir}">
                <include name="ngnops_eqm.jar"/>
            </fileset>
            <fileset dir="${lib.dir}" includes="*.jar"/>
            <fileset dir="${lib.dir}" includes="*.zip"/>
            <fileset dir="${lib.dir}/build" includes="ojdbc14.jar"/>
        </copy>
    <!-- Copy properties files -->
        <copy todir="${es.server.dir}/eqm/conf">
            <fileset dir="${replace.conf.dir}/acc">
                <include name="acc.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/apm">
                <include name="apm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/busicommon">
            <include name="ApplicationResources.properties"/>
                <include name="ApplicationResources.properties_sjis"/>
                <include name="busicommon.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="cfg.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/common">
                <include name="common.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/dim">
                <include name="dim.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/edr">
                <include name="edr.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/esm">
                <include name="esm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rft">
                <include name="rft.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rly">
                <include name="rly.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rpt">
                <include name="rpt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/sdt/tmp">
                <include name="sdt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/stk/tmp">
                <include name="stk.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/tsc/tmp">
                <include name="tsc.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/bld">
                <include name="bld.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/nav">
                <include name="nav.properties"/>
            </fileset>
        </copy>

        <!-- ***** nfs files ***** -->
    <copy todir="${nfs.server.dir}/acc/conf">
    <fileset dir="${replace.conf.dir}/acc">
          <include name="acc.conf"/>
    </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/apm/conf">
            <fileset dir="${replace.conf.dir}/apm">
                <include name="OperRecLines.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/common/conf">
            <fileset dir="${replace.conf.dir}/common">
                <include name="NgnLogLevel.properties"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/common/conf">
            <fileset dir="${replace.conf.dir}/common">
                <include name="page_size.conf"/>
                <include name="common.conf"/>
            <include name="max_result_size.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/common/conf/part">
            <fileset dir="${replace.conf.dir}/common/part">
                <include name="enhance_dev_peculiar.xsd"/>
                <include name="enhance_dev_peculiar_sql.xsd"/>
            </fileset>
        </copy>
    <copy todir="${nfs.server.dir}/common/conf/part">
            <fileset dir="${replace.conf.dir}/common/part/${cmn.east.west}">
                <include name="attribute-config.xml"/>
                <include name="page-config.xml"/>
                <include name="enhance_dev_peculiar.xml"/>
                <include name="enhance_dev_peculiar_sql.xml"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/busicommon/conf">
            <fileset dir="${replace.conf.dir}/busicommon">
                <include name="busicommon.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rft/bin">
            <fileset dir="${replace.shell.dir}/rft/bin">
                <include name="mibdevice.pl"/>
                <include name="mibpackage1.pl"/>
                <include name="mibpackage2.pl"/>
                <include name="mibpackage3.pl"/>
                <include name="parsePackageForSMDCF.pl"/>
                <include name="parsePackageForSMDCN.pl"/>
                <include name="rft_parser_DB_module.pm"/>
                <include name="rft_parser_common_module.pm"/>
                <include name="rft_parser_routines_module.pm"/>
                <include name="shrun1.pl"/>
                <include name="int_t640_multi.pl"/>
                <include name="pkg_t640_multi.pl"/>
            <include name="db_test.sh"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rft/conf">
            <fileset dir="${replace.shell.dir}/rft/conf">
                <include name="rft_log.conf"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rft">
                <include name="rft.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rft/conf/default">
            <fileset dir="${replace.conf.dir}/rft/default">
                <include name="compareDef.xml"/>
                <include name="parseDef.xml"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rly/conf">
            <fileset dir="${replace.conf.dir}/rly">
                <include name="ses_layout.conf"/>
                <include name="svc_typ.conf"/>
                <include name="trs_layout.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rpt/conf">
            <fileset dir="${replace.conf.dir}/rpt">
                <include name="ReportConfigure.xml"/>
                <include name="ReportConfigureExample.xml"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rpt/conf/check">
            <fileset dir="${replace.conf.dir}/rpt/check">
                <include name="CheckConfigureExample0.conf"/>
                <include name="CheckConfigureExample1.conf"/>
                <include name="ColumnNumErrorConfigureExample.conf"/>
                <include name="NullConfigureExample.conf"/>
            <include name="communication_line_wiring01.chk"/>
            <include name="communication_line_wiring02.chk"/>
            <include name="device_accommodation01.chk"/>
            <include name="device_accommodation02.chk"/>
            <include name="rack_mounting01.chk"/>
            <include name="rack_mounting02.chk"/>
            <include name="rack_mounting03.chk"/>
                <include name="rack_mounting04.chk"/>
            <include name="rack_mounting05.chk"/>
            <include name="separation.chk"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rpt/conf/sql">
            <fileset dir="${replace.conf.dir}/rpt/sql">
                <include name="R_A02_03.sql"/>
                <include name="ifexit_sql_example.sql"/>
                <include name="muti_sql_example.sql"/>
                <include name="null_sql_example.sql"/>
                <include name="one_sql_example.sql"/>
                <include name="report_check.sql"/>
                <include name="report_sql_example.sql"/>
                <include name="communication_line_wiring.sql"/>
                <include name="device_accommodation.sql"/>
                <include name="rack_mounting.sql"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/rpt/conf/xslt">
            <fileset dir="${replace.conf.dir}/rpt/xslt">
                <include name="ReportXsltExample.xsl"/>
                <include name="TestReport.xsl"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/esm/conf">
            <fileset dir="${replace.conf.dir}/esm/${cmn.east.west}">
                <include name="esm.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/cfg/conf/parameter_set/XMLschema">
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="include.xsd"/>
                <include name="parameter_set.xsd"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/cfg/conf/user_define">
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="user_define_reserved_word.txt"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/cfg/conf/general">
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="cfg_common_setting.conf"/>
                <include name="duplicatable_ip_range.conf"/>
                <include name="ap_tp_port_no_check.conf"/>
                <include name="config_parameter_check_sql.xml"/>
                <include name="config_parameter_check_sql.xsd"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/dim/conf">
            <fileset dir="${replace.conf.dir}/dim">
                <include name="dim.conf"/>
                <include name="validator-dim.xml"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/alm/work">
            <fileset dir="${replace.conf.dir}/alm/tmp">
                <include name="AlmDevSmdcDelChkServiceImpl.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/sdt/work">
            <fileset dir="${replace.conf.dir}/sdt/tmp">
                <include name="SdtOfficeDataInfoServiceImpl.isDeleteDevInf.conf"/>
                <include name="sdt.conf"/>
            </fileset>
        </copy>
        <copy todir="${nfs.server.dir}/stk/work">
            <fileset dir="${replace.conf.dir}/stk/tmp">
                <include name="stkPkgInfo.conf"/>
                <include name="stk.conf"/>
            </fileset>
        </copy>
    <copy todir="${nfs.server.dir}/tsc/work">
            <fileset dir="${replace.conf.dir}/tsc/tmp">
                <include name="tsc.conf"/>
            </fileset>
        </copy>
    <copy todir="${nfs.server.dir}/bld/conf">
    <fileset dir="${replace.conf.dir}/bld">
          <include name="bld.conf"/>
    </fileset>
        </copy>
    <copy todir="${nfs.server.dir}/nav/conf/create/XMLSchema">
    <fileset dir="${replace.conf.dir}/nav">
          <include name="create_rule.xsd"/>
    </fileset>
        </copy>
    <copy todir="${nfs.server.dir}/nav/conf/general">
    <fileset dir="${replace.conf.dir}/nav/general/${cmn.east.west}">
          <include name="eqp_csv_trans.conf"/>
    </fileset>
        </copy>
    </target>

    <target name="deploy"
            depends="copy_web, compile, copy_lib, configure">
    </target>

    <target name="clean_and_deploy"
            depends="clean, deploy">
    </target>

    <!-- make web.war file -->
    <target name="ngnops_eqm.war" depends="copy_web, compile, copy_lib">
        <jar destfile="${build.dir}/ngnops_eqm.war"
             basedir="${deploy.dir}"
             includes="**"/>
    </target>


    <!-- ********************************************* -->
    <!-- ********************************************* -->
    <!-- All the test targets are listed below -->
    <!-- test.init target is to init before doing test -->
    <!-- target name="test.init" depends="compile" -->
    <target name="test.init">
        <mkdir dir="${build.test.dir}"/>
        <mkdir dir="${build.test.classes.dir}"/>
        <mkdir dir="${build.test.emma_report.dir}"/>
        <mkdir dir="${build.test.junit_report.dir}"/>
        <path id="run.classpath">
            <path refid="compile.classpath"/>
        </path>
        <!--
        <path id="lib.classpath">
            <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
                <include name="**/*.zip"/>
            </fileset>
        </path>
        -->
    </target>

    <!-- test.clean target to delete dist test folder -->
    <target name="test.clean">
        <delete dir="${build.test.dir}"/>
    </target>

    <!-- test.compile target to compile all the test sources : web.export-->
    <target name="test.compile" depends="test.init">
        <mkdir dir="${build.test.classes.dir}"/>
        <!-- compile test source files -->
        <javac srcdir="${test.src.dir};${test.common.dir}" destdir="${build.test.classes.dir}"
               encoding="MS932" debug="on" classpathref="run.classpath"
               fork="true" source="1.5" target="1.5" >
      </javac>
        <!-- copy resources files -->
        <copy todir="${build.test.classes.dir}" includeemptydirs="true">
            <fileset dir="${test.src.dir}" excludes="**/*.java"/>
        </copy>
    <!-- Copy properties files -->
        <copy todir="${build.test.classes.dir}">
            <fileset dir="${replace.conf.dir}/acc">
                <include name="acc.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/apm">
                <include name="apm.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/busicommon">
            <include name="ApplicationResources.properties"/>
                <include name="ApplicationResources.properties_sjis"/>
                <include name="busicommon.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/cfg">
                <include name="cfg.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/common">
                <include name="common.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/dim">
                <include name="dim.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/edr">
                <include name="edr.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/esm">
                <include name="esm.properties"/>
            <include name="esmif.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rft">
                <include name="rft.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rly">
                <include name="rly.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/rpt">
                <include name="rpt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/sdt/tmp">
                <include name="sdt.properties"/>
            </fileset>
            <fileset dir="${replace.conf.dir}/stk/tmp">
                <include name="stk.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/bld">
                <include name="bld.properties"/>
            </fileset>
        <fileset dir="${replace.conf.dir}/nav">
                <include name="nav.properties"/>
            </fileset>
        </copy>
    </target>

    <!-- emma target to instrument all the inspect classes binary code -->
    <target name="emma" depends="test.compile"
            description="turns on EMMA instrumentation/reporting">
        <property name="emma.enabled" value="true"/>
        <!-- EMMA instr class output directory: -->
        <property name="out.instr.dir"
                  value="${build.test.emma_report.dir}/instr"/>
        <mkdir dir="${out.instr.dir}"/>
        <emma enabled="${emma.enabled}">
            <instr instrpathref="run.classpath" destdir="${out.instr.dir}"
                   metadatafile="${build.test.emma_report.dir}/metadata.emma"
                   merge="true">
            <filter file="${build.dir}/emma.report.include"/>
            </instr>
        </emma>
        <copy todir="${out.instr.dir}" includeemptydirs="true">
            <fileset dir="${deploy.dir}/WEB-INF/classes" excludes="**/*.class"/>
        </copy>
    </target>

    <!-- junit target to run all the test cases under emma instruments -->
    <target name="junit" depends="test.compile, emma"
            description="run junit test">
        <junit printsummary="yes" fork="yes" maxmemory="256m">
            <classpath>
                <pathelement location="${out.instr.dir}"/>
                <path refid="run.classpath"/>
                <pathelement location="${build.test.classes.dir}"/>
            </classpath>
            <jvmarg value="-Demma.coverage.out.file=${build.test.emma_report.dir}/coverage.emma"/>
            <jvmarg value="-Demma.coverage.out.merge=true"/>
            <jvmarg value="-Dsrc.URL=${replace.src.dir},${test.common.dir},${test.src.dir}"/>
            <formatter type="xml"/>
            <batchtest todir="${build.test.junit_report.dir}">
                <fileset dir="${test.src.dir}" >
                <include name="**/*.java" />
                <exclude name="**/*Mock*.java" />
                <exclude name="**/SpringSupport.java" />
                </fileset>
            </batchtest>
        </junit>
    </target>

    <!-- junit report target -->
    <target name="junit.report" depends="junit"
            description="junit report target">
        <junitreport todir="${build.test.junit_report.dir}">
            <!-- tofile="junit-report.html" -->
            <fileset dir="${build.test.junit_report.dir}"
                     includes="TEST-*.xml"/>
            <report format="frames" todir="${build.test.junit_report.dir}"/>
        </junitreport>
    </target>

    <!-- emma report target -->
    <target name="emma.report" depends="junit"
            description="junit report target">
        <emma enabled="${emma.enabled}">
            <report sourcepath="${src.dir},${test.src.dir}"
                    sort="+name,+class,+block,+method"
                    metrics="method:70,block:80,line:80,class:100">
                <fileset dir="${build.test.emma_report.dir}">
                    <include name="*.emma"/>
                </fileset>
                <property name="report.html.out.encoding" value="utf-8"/>
                <txt outfile="${build.test.emma_report.dir}/coverage.txt"/>
                <html outfile="${build.test.emma_report.dir}/coverage.html"/>
            </report>
        </emma>
    </target>

    <target name="re">
        <emma enabled="${emma.enabled}">
            <report sourcepath="${src.dir},${test.src.dir}">
                <fileset dir="${build.test.emma_report.dir}">
                    <include name="*.emma"/>
                </fileset>
                <property name="report.html.out.encoding" value="utf-8"/>
                <txt outfile="${build.test.emma_report.dir}/coverage.txt"/>
                <html outfile="${build.test.emma_report.dir}/coverage.html"/>
            </report>
        </emma>
    </target>

    <!-- run junit test and output the report -->
    <target name="report" depends="junit.report, emma.report"/>
    <target name="ut" depends="report"/>
    <target name="clean_and_report" depends="test.clean, report"/>
</project>

你可能感兴趣的:(linux,JUnit,OS,cvs,HP)