Skip to content

Commit

Permalink
migrated click-examples to use build time deployment
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/click/trunk/click@831849 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bob Schellink committed Nov 2, 2009
1 parent ec03869 commit 6a69a38
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions examples/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
<fileset dir="${dir.webapp}/javadoc" includes="**/*"/>
</delete>
<delete dir="${dir.webapp}/click"/>
<delete dir="${dir.webapp}/images"/>

<!-- Delete all deployed.html reports -->
<delete>
<fileset dir="${basedir}" includes="deployed*.html"/>
<fileset dir="../build" includes="deployed*.html"/>
</delete>

<javadoc sourcepath="src"
destdir="${dir.webapp}/javadoc"
author="true"
Expand All @@ -105,6 +113,22 @@
tofile="${dir.webapp}/javadoc/stylesheet.css"/>
<delete file="${dir.deploy}/${name}.war"/>
<mkdir dir="${dir.deploy}"/>

<taskdef name="deploy"
classname="org.apache.click.tools.deploy.DeployTask"
classpath="../lib/click-dev-tasks-1.1.jar"/>

<deploy todir="${dir.webapp}">
<fileset dir="${dir.webapp}/WEB-INF">
<include name="**/classes"/>
<include name="**/*.jar"/>
</fileset>
<fileset dir="../dist">
<include name="${jar.click}"/>
<include name="${jar.click-extras}"/>
</fileset>
</deploy>

<war destfile="${dir.deploy}/${name}.war"
webxml="${dir.webapp}/WEB-INF/web.xml">
<manifest>
Expand Down
3 changes: 2 additions & 1 deletion examples/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,11 @@
Please note, you only need this mapping in restricted environments where Click
cannot deploy resources to the file system.
-->
<!--
<servlet-mapping>
<servlet-name>ClickServlet</servlet-name>
<url-pattern>/click/*</url-pattern>
</servlet-mapping>
</servlet-mapping>-->

<!-- Wecome Files -->

Expand Down
Binary file modified lib/click-dev-tasks-1.1.jar
Binary file not shown.

0 comments on commit 6a69a38

Please sign in to comment.