2011년 5월 23일 월요일

EJB3.0 CMP With JBoss 4 - Ant

참고 ANT
build.properties
deploy.home = E:/WAS/JBoss4/server/default/deploy
was.home = E:/WAS/JBoss4/bin
lib.home = E:/WAS/JBoss4/server/default/deploy/ejb3.deployer


build.xml
<?xml version="1.0" encoding="euc-kr"?>
<project name="userInfoEJB30" default="deploy" basedir=".">
<property file="build.properties"/>
<property name="project.name" value="userInfo"/>
<property name="debug.flag" value="true"/>
<property name="project.home" value="."/>
<property name="src.path" value="${project.home}/src"/>
<property name="build.path" value="${project.home}/classes"/>
<property name="javadoc.path" value="${project.home}/javadoc"/>
<path id="build.classpath">
<fileset dir="${lib.home}" includes="*.jar, *.zip"/>
</path>
<target name="prepare">
<tstamp/>
<mkdir dir="${build.path}"/>
<mkdir dir="${javadoc.path}"/>
</target>
<target name="clean">
<delete dir="${build.path}"/>
<delete dir="${javadoc.path}"/>
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src.path}"
destdir="${build.path}"
includes="**/*.java">
<classpath refid="build.classpath"/>
<compilerarg value="-Xlint:deprecation"/>
</javac>
</target>
<target name="build.ejb3" depends="compile">
<jar jarfile="${project.home}/userInfo.ejb3">
<fileset dir="${build.path}">
<include name="**/*.class" />
</fileset>
</jar>
</target>
<target name="build.javadoc" depends="prepare">
<javadoc
destdir="${javadoc.path}"
defaultexcludes="yes"
author="true"
version="true"
use="true"
Private="true"
linksource="yes"
Use="yes"
source="yes"
failonerror="true"
windowtitle="${project.name} API">
<classpath refid="build.classpath"/>
<fileset dir="${src.path}" defaultexcludes="yes">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
<target name="build" depends="build.ejb3">
</target>
<target name="start.was">
<exec command="${was.home}/run.bat -c default"/>
</target>
<target name="stop.was">
<exec command="${was.home}/shutdown.bat -u=admin –p=admin"/>
</target>
<target name="rebuild" depends="clean, build">
</target>
<target name="redeploy" depends="clean, deploy">
</target>
<target name="deploy" depends="build">
<copy file="${project.home}/userInfo.ejb3" todir="${deploy.home}"/>
</target>
</project>

댓글 없음:

댓글 쓰기

ETL 솔루션 환경

ETL 솔루션 환경 하둡은 대용량 데이터를 값싸고 빠르게 분석할 수 있는 길을 만들어줬다. 통계분석 엔진인 “R”역시 하둡 못지 않게 관심을 받고 있다. 빅데이터 역시 데이터라는 점을 볼때 분산처리와 분석 그 이전에 데이터 품질 등 데이...