leeccr 2012-11-16
<projectname="EJBDateSource"basedir=".">
<propertyenvironment="env">
</property>
<propertyname="JBOSS_HOME"value="${env.JBOSS_HOME}">
</property>
<propertyname="src.dir"value="${basedir}\src">
</property>
<propertyname="build.dir"value="${basedir}\build">
</property>
<pathid="classpath">
<filesetdir="${JBOSS_HOME}\client">
<includename="*.jar"/>
</fileset>
<pathelementlocation="${build.dir}"/>
</path>
<targetname="creatDir"description="创建文件夹"id="createDir">
<deletedir="${build.dir}"/>
<mkdirdir="${build.dir}"/>
</target>
<targetname="compile"id="compile"depends="creatDir"description="编译">
<javacsrcdir="${src.dir}"destdir="${build.dir}"classpathref="classpath"debug="off"includes="org/ejb/**"/>
</target>
<!--=================================
target:打包
=================================-->
<targetname="jar"depends="compile"description="打包">
<jardestfile="${basedir}\${ant.project.name}.jar">
<filesetdir="${build.dir}"/>
</jar>
</target>
<!--=================================
target:copy
=================================-->
<targetname="copy"depends="jar"description="发布">
<copyfile="${basedir}\${ant.project.name}.jar"todir="${JBOSS_HOME}\server\default\deploy">
</copy>
</target>
</project>