Documentation for JIRA 4.1. Documentation for other versions of JIRA is available too.

もうひと頑張りして、JIRA のビルドプロセスを拡張し、JSP ページをプリコンパイルすると決めた場合、 プリコンパイル対象から JIRA Webアプリケーションの "インクルード" ディレクトリを除外する必要があることにご留意ください。この理由は、"インクルード" ディレクトリ内の JSP ファイルは正式な JSP ファイルではなく、より大きい JSP ページの一部としてのみコンパイルされるように意図されたインクルード ファイルだからです。

For example, to exclude the JSP pages in the "include" directory when using Maven use the <exclude> sub-element of the <ant:jspc> task, as shown:

    <ant:path id="jspc.classpath">
<ant:pathelement location="${tomcat.home}/common/lib/jasper-runtime.jar"/>
<ant:pathelement location="${tomcat.home}/common/lib/jasper-compiler.jar"/>
<ant:pathelement location="${tomcat.home}/common/lib/servlet.jar"/>
<ant:path refid="maven-classpath"/>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement path="${maven.build.dest}"/>
 <ant:pathelement path="${java.home}/lib/tools.jar"/>
</ant:path>
<ant:jspc
package="${pom.package}.jsp"
destDir="${jspOutDir}"
srcdir="${warSource}"
uriroot="${warSource}"
uribase="/${pom.artifactId}"
verbose="2"
classpathref="jspc.classpath">
<ant:include name="**/*.jsp"/>
<ant:exclude name="**/includes/**/*.jsp"/>
</ant:jspc>
 
      
  • ラベルなし