기술지원 문의

Resin 3.0 에서 자동 컴파일은 어떻게 설정하나요?
김성수 / 2006-09-30 13:17

resin 2.x 버젼에서는 resin.conf 에서 설정으로..

 

<classpath id=WEB-INF/classes source=WEB-INF/classes compile=true/>

 

이런식으로 하면.. java 파일을 컴파일하여 주었는데요...

 

resin3.x 에서는 어떻게 설정을 해야하나요??

 

흠.....

[답변]Resin 3.0 에서 자동 컴파일은 어떻게 설정하나요?
권용찬 / 2006-10-08 17:11

즐거운 추석연휴 보내셨는지요 ^^ 게시판 지기가 게을러서 답변이 늦었습니다. 
죄송하구요 ^^
3.x에서 java 소스파일을 넣고 컴파일 해주기 위해서 기본 설정외에 추가 하고자 하실 경우 아래를 참조하세요
compoling-loder 속성에서 path 만 지정할 경우 해당 path에 소스가 있으면 되고
소스를 별도로 위치시킬 경우 source=\"\" 속성을 지정하시면 됩니다.
<web-app>  <class-loader>    <compiling-loader path=\"WEB-INF/classes\" source=\"/data/src\" />

</class-loader></web-app>


설정가능한 옵션

AttributeMeaningdefault
argsAdditional arguments to be passed to the Java compiler. Resin 3.0none
batchIf true, multiple changed *.java files will be compiled in a single batch. Resin 3.0.7true
encodingI18N encoding for the Java compiler. Since Resin 3.0none
pathFilesystem path for the class loader. Since Resin 3.0required
sourceJava source directory. Since Resin 3.0value of path
require-sourceIf true, .class files without matching .java files will be deleted. Since Resin 3.0false

 

즐거운 하루되세요