ant build.xml 예제 :: 이클립스 팁[SSISO Community]
 
SSISO 카페 SSISO Source SSISO 구직 SSISO 쇼핑몰 SSISO 맛집
추천검색어 : JUnit   Log4j   ajax   spring   struts   struts-config.xml   Synchronized   책정보   Ajax 마스터하기   우측부분

이클립스 팁
[1]
등록일:2010-07-24 16:02:42 (0%)
작성자:
제목:ant build.xml 예제
<?xml version="1.0" encoding="UTF-8"?>
<project name="AMO_FCST_Evaluation_System" default="compile" basedir=".">

  <!-- set global properties for this build -->
  <property name="install.dir" value="/home/web"/>
  <property name="application.name" value="evaluation"/>
  <property name="src.dir" value="JavaSource"/>
  <property name="build.dir" value="WebContent/WEB-INF/classes"/>
  <property name="lib.dir" value="WebContent/WEB-INF/lib"/>
  <property name="lib.servlet.dir" value="lib"/>
  <property name="src.web.dir" value="WebContent"/>
  
  <!-- Classpath -->
  <path id="classpath">
    <fileset dir="${lib.dir}" casesensitive="yes">
      <include name="*.jar"/>
    </fileset>
    <fileset dir="${lib.servlet.dir}" casesensitive="yes">
      <include name="*.jar"/>
    </fileset>
  </path>
  
  <target name="init">
    <!-- Create the time stamp -->
    <tstamp/>
  </target>

  <target name="compile">
    <!-- Compile the java code from ${src.dir} into ${build} -->
    <mkdir dir="${build.dir}"/>
    <javac srcdir="${src.dir}" destdir="${build.dir}">
      <classpath refid="classpath"/>
    </javac>
  </target>

  <target name="clean" description="Delete the ${build} and ${dist.dir} and ${defaultUploadFielDirPath} directory trees">
    <delete dir="${build.dir}"/>
  </target>
  
  <target name="install-web"
    description="Copy web files to ${install.dir}/${application.name}">
    <echo message="Copy web files to ${install.dir}/${application.name}"/>
    <mkdir dir="${install.dir}/${application.name}"/>
    <copy todir="${install.dir}/${application.name}">
      <fileset dir="${src.web.dir}" excludes="WEB-INF/lib/*.jar,WEB-INF/classes/**/*"/>
    </copy>
  </target>

        <target name="install-web-devel"
          description="No pre-task is executed before Copy web files to ${install.dir}/${application.name}">
          <echo message="Copy web files to ${install.dir}/${application.name}"/>
          <mkdir dir="${install.dir}/${application.name}"/>
          <copy todir="${install.dir}/${application.name}">
            <fileset dir="${src.web.dir}"/>
          </copy>
        </target>
  
  <target name="install-lib" description="Copies library files to${install.dir}/${application.name}/WEB-INF/lib">
    <copy todir="${install.dir}/${application.name}/WEB-INF/lib">
      <fileset dir="${lib.dir}"/>
    </copy>
  </target>

  <target name="install-classes" depends="compile" description="Copies class files to${install.dir}/${application.name}/WEB-INF/classes">
    <copy todir="${install.dir}/${application.name}/WEB-INF/classes">
      <fileset dir="${build.dir}"/>
    </copy>
  </target>

  <target name="install" depends="init, install-web, install-lib, install-classes" description="Install whole web application..."/>
  
</project>

[본문링크] ant build.xml 예제
[1]
코멘트(이글의 트랙백 주소:/cafe/tb_receive.php?no=31577
작성자
비밀번호

 

SSISOCommunity

[이전]

Copyright byCopyright ⓒ2005, SSISO Community All Rights Reserved.