Hi,
I have download "Spring Live" sample example in order to learn Spring framework.
I did not understand and "ant deploy", how a hypersonic data base could be created. But it is the case.
I checked target "deploy" and "compile", nowhere could I see the creation of database.
Any explaination?
Thanks!
PY
<target name="deploy" depends="compile" description="Deploy application">
<copy todir="${tomcat.home}/webapps/${webapp.name}" preservelastmodified="true">
<fileset dir="${web.dir}">
<include name="**/*.*" />
<exclude name="**/junit.jar" />
<exclude name="**/*mock.jar" />
<exclude name="**/strutstestcase*.jar" />
</fileset>
</copy>
<copy todir="${tomcat.home}/webapps/${webapp.name}/WEB-INF/classes" preservelastmodified="true">
<fileset dir="${build.dir}/classes" />
</copy>
</target>
<target name="compile" description="Compile main source tree java files">
<mkdir dir="${build.dir}/classes" />
<javac destdir="${build.dir}/classes" target="1.5" debug="true" deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}" />
<classpath refid="classpath" />
</javac>
<mkdir dir="${test.dir}/classes" />
<javac destdir="${test.dir}/classes" target="1.5" debug="true" deprecation="false" optimize="false" failonerror="true">
<src path="${test.src}" />
<classpath>
<path refid="classpath" />
<path location="${build.dir}/classes" />
</classpath>
</javac>
<copy todir="${build.dir}/classes">
<fileset dir="${src.dir}" includes="**/*.hbm.xml" />
</copy>
</target>


Reply With Quote
If I have done, please say, and re-iterate using really small words for me 