일괄처리 컴파일러 및 태스크

ant 태스크 JspC는 모든 일괄처리 컴파일러 구성 옵션을 표시합니다. 이 태스크는 보이지 않게 일괄처리 컴파일러를 실행합니다. 이 태스크는 JspC ant 태스크의 WebSphere® Application Server 5.x 버전과 역호환됩니다. 다음 테이블에서는 ant 태스크 속성과 해당 일괄처리 컴파일러를 모두 나열합니다.

표 1. Ant 태스크 속성 및 해당 일괄처리 컴파일러. JspC 속성 및 해당 일괄처리 컴파일러 매개변수
JspC 속성 해당 일괄처리 컴파일러 매개변수
earPath -ear.path
warPath -war.path
src

warPath와 동일(역호환성)

-war.path
enterpriseAppName -enterpriseapp.name
responseFile -response.file
webmoduleName -webmodule.name
fileName -filename -config.root
configRoot -config.root
cellName -cell.name
nodeName -node.name
serverName -server.name
profileName -profileName
extractToDir -extractToDir
compileToDir

compileToDir과 동일(역호환성)

-compileToDir -compileToDir
compileToWebInf -compileToWebInf
compilerOptions -compilerOptions
recurse -recurse
removeTempDir -removeTempDir
translate -translate
compile -compile
forceCompilation -forceCompilation
useFullPackageNames -useFullPackageNames
trackDependencies -trackDependencies
createDebugClassfiles -createDebugClassfiles
keepgenerated -keepgenerated
keepGeneratedclassfiles -keepGeneratedclassfiles
usePageTagPool -usePageTagPool
useThreadTagPool -useThreadTagPool
classloaderParentFirst -classloader.parentFirst
classloaderSingleWarClassloader -classloader.singleWarClassloader
additionalClasspath -additional.classpath
클래스 경로

additionalClasspath와 동일(역호환성)

-additional.classpath
verbose -verbose
deprecation -deprecation
javaEncoding -javaEncoding
compileWithAssert -compileWithAssert
useJikes -useJikes
jspFileExtensions -jsp.file.extensions
logLevel -log.level
wasHome 없음
Classpathref 없음
jdkSourceLevel -jdkSourceLevel

다음 예는 각각이 서로 다른 속성을 갖는 복수 대상을 갖는 빌드 스크립트를 설명합니다. 다음 명령은 스크립트를 실행하는 데 사용됩니다.

Windows:
ws_ant -Dwas.home=%WAS_HOME% -Dear.path=%EAR_PATH% -Dextract.dir=%EXTRACT_DIR%
ws_ant jspc2 -Dwas.home=%WAS_HOME% -Dapp.name=%APP_NAME% -Dwebmodule.name=%MOD_NAME%
ws_ant jspc3 -Dwas.home=%WAS_HOME% -Dapp.name=%APP_NAME% -Dwebmodule.name=%MOD_NAME% -Ddir.name=%DIR_NAME%
UNIX 또는 i5/OS™:
ws_ant -Dwas.home=$WAS_HOME -Dear.path=$EAR_PATH -Dextract.dir=$EXTRACT_DIR
ws_ant jspc2 -Dwas.home=$WAS_HOME -Dapp.name=$APP_NAME -Dwebmodule.name=$MOD_NAME
ws_ant jspc3 -Dwas.home=$WAS_HOME -Dapp.name=$APP_NAME -Dwebmodule.name=$MOD_NAME -Ddir.name=$DIR_NAME
JspC 태스크를 사용한 build.xml 파일 예
<project name="JSP Precompile" default="jspc1" basedir=".">
		<taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC"/>
		<target name="jspc1" description="example using  a path to an EAR, and extracting the EAR to a directory">
				<wsjspc wasHome="${was.home}"
            earpath="${ear.path}"
            forcecompilation="true"
            extractToDir="${extract.dir}"
            useThreadTagPool="true"
            keepgenerated="true"
            
		/>
		</target>
		<target name="jspc2" description="example using an enterprise app and webmodule">
				<wsjspc wasHome="${was.home}"
            enterpriseAppName="${app.name}"
            webmoduleName="${webmodule.name}"
            removeTempDir="true"
            forcecompilation="true"
            keepgenerated="true"
            
		/>
		</target>
		<target name="jspc3" description="example using an enterprise app, webmodule and specific directory">
				<wsjspc wasHome="${was.home}"
            enterpriseAppName="${app.name}"
            webmoduleName="${webmodule.name}"
            fileName="${dir.name}"
            recurse="false"
            forcecompilation="true"
            keepgenerated="true"
            	
		/>
		</target>
</project>

주제 유형을 표시하는 아이콘 참조 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rweb_jspant
파일 이름:rweb_jspant.html