Compile the ant script of the project from CVS

Source: Internet
Author: User
<Project name = "ezconfig. Build" default = "ezconfig. Build" basedir = ".">

<Property name = "ezcfg. Root. dir" value = "D:/temp/examcenter"/>
<Property name = "ezcfg. Root. SRC. dir" value = "D:/temp/src"/>
<Property name = "ezcfg. Root. bin. dir" value = "D:/temp/bin"/>

<Property name = "cvsroot" value = ": pserver; username = lanmao_guorui; Password = lanmao_guorui; hostname = 192.168.8.165:/examcentercvs"/>
<Property name = "cvscommand" value = "Export"/>
<Property name = "ezcfg. cvs. Tag" value = "head"/>
<Property name = "ezcfg. cvs. SRC" value = "examcenter"/>

<Target name = "prepare">
<Delete dir = "$ {ezcfg. root. dir}"/>
<Mkdir dir = "$ {ezcfg. root. dir}"/>
<Mkdir dir = "$ {ezcfg. root. src. dir}"/>
<Mkdir dir = "$ {ezcfg. root. bin. dir}"/>

<Cvs cvsRoot = "$ {cvsroot }"
Command = "$ {cvscommand}-r $ {ezcfg. cvs. tag}-d $ {ezcfg. root. dir }$ {ezcfg. cvs. src}/WebRoot"
Compression = "true"/>

<CVS cvsroot = "$ {cvsroot }"
Command = "$ {cvscommand}-r $ {ezcfg. CVS. tag}-d $ {ezcfg. root. dir}/WEB-INF/Lib $ {ezcfg. CVS. SRC}/lib"
Compression = "true"/>

<CVS cvsroot = "$ {cvsroot }"
Command = "$ {cvscommand}-r $ {ezcfg. CVS. tag}-d $ {ezcfg. root. dir}/WEB-INF/classes $ {ezcfg. CVS. SRC}/config"
Compression = "true"/>

<Cvs cvsRoot = "$ {cvsroot }"
Command = "$ {cvscommand}-r $ {ezcfg. cvs. tag}-d $ {ezcfg. root. src. dir }$ {ezcfg. cvs. src}/src"
Compression = "true"/>
</Target>

<Target name = "compile">
<Javac srcdir = "$ {ezcfg. root. src. dir }"
Destdir = "$ {ezcfg. Root. bin. dir }"
Encoding = "UTF-8" deprecation = "true"
Source = "1.5"
Target = "1.5" type = "parmname" text = "parmname">
<Classpath>
<Fileset dir = "$ {ezcfg. Root. dir}/WEB-INF/lib">
<Include name = "**/*. Jar"/>
</Fileset>
<Fileset dir = ".">
<Include name = "*. jar"/>
</Fileset>
</Classpath>
</Javac>

<Copy todir = "$ {ezcfg. root. bin. dir}" overwrite = "true">
<Fileset dir = "$ {ezcfg. Root. SRC. dir}">
<Exclude name = "**/*. Java"/>
</Fileset>
</Copy>

<Jar jarfile = "$ {ezcfg. Root. dir}/WEB-INF/lib/examcenter. Jar" basedir = "$ {ezcfg. Root. bin. dir}"/>
</Target>

<Target name = "clean">
<Delete dir = "$ {ezcfg. Root. SRC. dir}"/>
<Delete dir = "$ {ezcfg. Root. bin. dir}"/>
</Target>

<Target name = "ezconfig. Build" depends = "Prepare, compile, clean"/>

</Project>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.