You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mak Carson <mc...@epawni.com> on 2004/01/29 03:47:30 UTC

Funny problem with jspc task

Hi,

I have been having a very bizzare problem with my JSPC task.. It is able to
convert all my .jsp's into corresponding java files and then the build fails
before executing the next statement.

Here's an extract from my ant script:
<!--
  Precompile and validate the JSPs
-->
  <target name="POL_Precompile"  depends="POL_War">
     <mkdir dir="${tmp_dir}/PrecompiledJSPs"/>
     <jspc srcdir="${pol_fe_src_dir}/Web Content" destdir="
${tmp_dir}/PrecompiledJSPs" compiler="jasper41" verbose="9"
        classpathref="build_classpath"/>

     <!--<mkdir dir="${tmp_dir}/PrecompiledJSPClasses"/>
     <javac verbose="false" srcdir="${tmp_dir}/PrecompiledJSPs"
destdir="${tmp_dir}/PrecompiledJSPClasses">
       <classpath refid="build_classpath"/>
     </javac>-->
  </target>


<!--
  Make the final ear file
-->
  <target name="POL_Ear" depends="POL_Precompile">
     <ear destfile="${build_dir}/polfe.ear" appxml="
pol_fe/POL/META-INF/application.xml">
       <fileset dir="${ear_dir}" includes="**"/>
     </ear>
  </target>



And here's the results:
  [jasperc] 2004-01-28 05:33:36 - Accepted
org.apache.jasper.compiler.Parser$Scr
iptlet at /brokerage/detailhistory.jsp(112,4)

BUILD FAILED
file:C:/users/mak/polreorg/pol_fe/POL/deployment/build.xml:121: Java
returned: 9

        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:110)
        at
org.apache.tools.ant.taskdefs.optional.jsp.compilers.JasperC.execute(
JasperC.java:123)
        at
org.apache.tools.ant.taskdefs.optional.jsp.JspC.doCompilation(JspC.ja
va:513)
        at
org.apache.tools.ant.taskdefs.optional.jsp.JspC.execute(JspC.java:477
)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 1 minute 57 seconds


Any help is deeply appreciated

Thanks,
Mak.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org