[Anthill] Problem with jspc and anthill
Chris Amidon
chris.amidon at flashpoint.com
Fri Mar 12 08:38:54 CST 2004
We are having a problem specific to using jspc and the web.inc file. The
details are below. Any help would be appreciated.
The following is a part of the ant build file we use for our project.
The build finishes successfully if executed from the command line but
fails when executed by anthill. I am using the same target for both the
command line and anthill.
I have tried creating an empty web.inc file and seeing if it gets
updated - it remains empty I have placed the jasper compiler jar files
in the anthill/lib and anthill/lib/ant1.5.1/lib directories (I restarted
Tomcat after placing them there). I have tried moving the location of
the web.inc file. I have tried renaming the file to something else.
All attempts have the command line succeed and the anthill execution
failing the same way. Any help at this point is appreciated.
--------ant build file section
<property name="jasper_libs"
value="${lib.dir}/jasper-compiler.jar:${lib.dir}/jasperruntime.jar:${lib
.dir}/javax.servlet.jar" />
<echo message="compiling jsp files" />
<mkdir dir="${dist.dir}/gen-src"/>
<jspc srcdir="${webapp.dir}" destdir="${dist.dir}/gen-src"
verbose="5"
package="com.qurio.peer.web"
webinc="${dist.dir}/gen-src/web.inc"
uriroot="${webapp.dir}"
classpath="${lib.dir}/ant.jar:${jasper_libs}">
</jspc>
<!-- move the generated web.inc file to the WEB-INF directory -->
<move file="${dist.dir}/gen-src/web.inc"
tofile="${webapp.dir}/WEB-INF/web.inc"/>
-----------------Build output Good from command line
[echo] compiling jsp files
[mkdir] Created dir: C:\Workspace\qurioPeer\dist\gen-src
[jspc] Compiling 130 source
filesC:\Workspace\qurioPeer\dist\gen-src\com\qurio\peer\web
[move] Moving 1 files to C:\Workspace\qurioPeer\dist\qurioWebApp\WEB-INF
-----------------Build output Failed from anthill
[echo] compiling jsp files
[mkdir] Created dir: C:\Workspace\qurioPeer\dist\gen-src
[jspc] Compiling 130 source
filesC:\Workspace\qurioPeer\dist\gen-src\com\qurio\peer\web
BUILD FAILED
file :C:/Workspace/qurioPeer/build.xml:345: Warning: Could not find file
C:\Workspace\qurioPeer\dist\gen-src\web.inc to copy.
Thanks,
Chris
More information about the Anthill
mailing list