Can Team Concert Build pre-compile JSPs?
I'm using Team Concert Build to generate an EAR from source in a stream. The build definition is invoking an Ant script which does the java compile, builds the WAR, and builds the EAR with no trouble. The script is also running, without trouble, a java program that goes against the Jazz repository using the RTC plain Java API.
I would like to add pre-compile of the JSPs to that Ant script. Is there another way other than what I've tried (below), or is there some trick to getting compile error messages in the log?
I've tried the following. I know the JSPs compile is running, because I get .class files in the compileToDir. I know there are compile errors, because I put errors in the code, and I get "Java Result: 1". I cannot seem to get the compile error messages in the log.
Ant script
<taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC" />
<target name="jspc" description="JSP pre-compile">
<delete dir="${compile.to.dir}" />
<wsjspc wasHome="${was.root}"
earPath="${ear.path}"
keepgenerated="true"
keepGeneratedclassfiles="true"
compileToWebInf="false"
compileToDir="${compile.to.dir}"
additionalClasspath="..."
jspCompileClasspath="..."
classpath="..."
verbose="true"
/>
</target>
Log ...
jspc:
[delete] Deleting directory /opt/IBM/TeamConcertBuild/WES-Playpen-Sbox-build-dev/wesbuildtools/dist/wes/jspc
[wsJspC] !SESSION 2014-08-11 10:02:22.210 -----------------------------------------------
[wsJspC] eclipse.buildId=M20060921-0945
[wsJspC] java.fullversion=JRE 1.6.0 IBM J9 2.4 Linux s390x-64 jvmxz6460sr9-20110712_86803 (JIT enabled, AOT enabled)
[wsJspC] J9VM - 20110712_086803
[wsJspC] JIT - r9_20101028_17488ifx17
[wsJspC] GC - 20101027_AA
[wsJspC] BootLoader constants: OS=linux, ARCH=s390x, WS=motif, NL=en_US
[wsJspC] Framework arguments: -application com.ibm.ws.bootstrap.WSLauncher
[wsJspC] Command-line arguments: -application com.ibm.ws.bootstrap.WSLauncher[wsJspC] !ENTRY org.eclipse.update.configurator 2014-08-11 10:02:26.079
[wsJspC] !MESSAGE Cannot backup current configuration
[wsJspC] Java Result: 1