web test
HelloServlet
hu.shining.test.web.HelloServlet
HelloServlet
/hello
index.jsp
[/code]
Sample build.xml for packaging war module:
<project name="web" basedir="." default="package">
<property name="src.dir" location="src" />
<property name="build.dir" location="build" />
<property name="dist.dir" location="dist" />
<property name="etc.dir" location="etc" />
<property name="web.dir" location="web" />
<property name="parent-lib.dir" location="../../lib" />
<target name="clean">
<delete dir="${build.dir}" quiet="true" />
<delete dir="${dist.dir}" quiet="true" />
</target>
<target name="init">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath>
<pathelement location="${parent-lib.dir}/javaee.jar"/>
<pathelement location="../ejb/dist/ejb.jar"/>
</classpath>
</javac>
</target>
<target name="package" depends="clean, init, compile">
<war destfile="${dist.dir}/web.war" webxml="${etc.dir}/web.xml">
<fileset dir="${web.dir}" />
<classes dir="${build.dir}" />
</war>
</target>
</project>
- nihilist blogja
- A hozzászóláshoz be kell jelentkezni
- 583 megtekintés