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>

댓글 없음:

댓글 쓰기

블록체인 개요 및 오픈소스 동향

블록체인(block chain) 블록체인은 공공 거래장부이며 가상 화폐로 거래할때 발생할때 발생할 수 있는 해킹을 막는 기술. 분산 데이터베이스의 한 형태로, 지속적으로 성장하는 데이터 기록 리스트로서 분산 노드의 운영자에 의한 임의 조작이 불가...