<project name="deployextension" default="deploy.j2ee.web" basedir="."> | |
<target name="deploy.j2ee.web"> | |
<jar destfile="${project.working.dir}/${module.name}.war"> | |
<zipfileset dir="${module.dir}"> | |
<include name="**/*.*"/> | |
<exclude name="**/*.war"/> | |
</zipfileset> | |
</jar> | |
<move file="${project.working.dir}/${module.name}.war" todir="${server.publish.dir}"/> | |
</target> | |
<target name="deploy.j2ee.ejb"> | |
<jar destfile="${project.working.dir}/${module.name}.jar"> | |
<zipfileset dir="${module.dir}"> | |
<include name="**/*.*"/> | |
<exclude name="**/*.java"/> | |
</zipfileset> | |
</jar> | |
<move file="${project.working.dir}/${module.name}.jar" todir="${server.publish.dir}"/> | |
</target> | |
<target name="deploy.j2ee.ear"> | |
<jar destfile="${project.working.dir}/${module.name}.ear"> | |
<zipfileset dir="${module.dir}"> | |
<include name="**/*.*"/> | |
<exclude name="**/*.java"/> | |
</zipfileset> | |
</jar> | |
<move file="${project.working.dir}/${module.name}.ear" todir="${server.publish.dir}"/> | |
</target> | |
<target name="undeploy.j2ee.web"> | |
<delete file="${server.publish.dir}/${module.name}.war"> </delete> | |
</target> | |
<target name="undeploy.j2ee.ejb"> | |
<delete file="${server.publish.dir}/${module.name}.jar"> </delete> | |
</target> | |
<target name="undeploy.j2ee.ear"> | |
<delete file="${server.publish.dir}/${module.name}.ear"> </delete> | |
</target> | |
</project> |