Rev 1 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 7 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | ========================================================================================== |
72 | ========================================================================================== |
73 | --> |
73 | --> |
74 | <target name="clean" description="clean *.class and build dir"> |
74 | <target name="clean" description="clean *.class and build dir"> |
75 | <delete dir="${build.dir}"/> |
75 | <delete dir="${build.dir}"/> |
76 | <delete dir="${dist.dir}"/> |
76 | <delete dir="${dist.dir}"/> |
- | 77 | <delete> |
|
77 | <delete dir="${gen.dir.java}"/> |
78 | <fileset dir="${gen.dir.java}"> |
- | 79 | <include name="**/*.java"/> |
|
- | 80 | </fileset> |
|
- | 81 | </delete> |
|
78 | <antcall target="initDirs"/> |
82 | <antcall target="initDirs"/> |
79 | </target> |
83 | </target> |
80 | 84 | ||
81 | 85 | ||
82 | 86 | ||
Line 200... | Line 204... | ||
200 | <replacefilter token="@build.dir.war@" value="${basedir}${file.separator}build${file.separator}ant${file.separator}war${file.separator}"/> |
204 | <replacefilter token="@build.dir.war@" value="${basedir}${file.separator}build${file.separator}ant${file.separator}war${file.separator}"/> |
201 | <replacefilter token="@context.path@" value="${tomcat.context.path}"/> |
205 | <replacefilter token="@context.path@" value="${tomcat.context.path}"/> |
202 | </replace> |
206 | </replace> |
203 | </target> |
207 | </target> |
204 | 208 | ||
205 | <target name="copy.jsps.war" depends="" description="copy only jsps to war distribution"> |
209 | <target name="copy.jsps.war" description="copy only jsps to war distribution"> |
206 | <copy todir="${build.dir.war}" overwrite="false"> |
210 | <copy todir="${build.dir.war}" overwrite="false"> |
207 | <fileset dir="src/web"> |
211 | <fileset dir="src/web"> |
208 | <include name="**/*"/> |
212 | <include name="**/*"/> |
209 | </fileset> |
213 | </fileset> |
210 | </copy> |
214 | </copy> |
Line 330... | Line 334... | ||
330 | <arg value="${package.dir}"/> |
334 | <arg value="${package.dir}"/> |
331 | </java> |
335 | </java> |
332 | <antcall target="replaceFiltersConfigurationFiles"/> |
336 | <antcall target="replaceFiltersConfigurationFiles"/> |
333 | </target> |
337 | </target> |
334 | <target name="dbInit"> |
338 | <target name="dbInit"> |
335 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
339 | <!--<delete file="${build.dir.classes}/${hibernate.cfg.xml.filename}"/>--> |
336 | <java classname="pt.estgp.estgweb.examples.DBInit" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
340 | <java classname="pt.estgp.estgweb.examples.DBInit" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/> |
337 | 341 | ||
338 | <antcall target="replaceFiltersConfigurationFiles"/> |
342 | <antcall target="replaceFiltersConfigurationFiles"/> |
339 | </target> |
343 | </target> |
340 | 344 | ||
341 | 345 | ||
342 | 346 | ||
343 | <!-- |
347 | <!-- |
344 | Hibernate Tools Task |
348 | Hibernate Tools Task |
345 | --> |
349 | --> |
- | 350 | <taskdef name="hibernatetool" |
|
- | 351 | classname="org.hibernate.tool.ant.HibernateToolTask" |
|
346 | <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
352 | classpathref="pathToToolsLib" classpath="${build.dir.classes}"/> |
347 | <!-- |
353 | <!-- |
348 | ========================================================================================== |
354 | ========================================================================================== |
349 | GENERATE SQL SCRIPTS |
355 | GENERATE SQL SCRIPTS |
350 | ========================================================================================== |
356 | ========================================================================================== |
351 | --> |
357 | --> |