2
CSS 파일에서 문자가 변경 되었기 때문에 몇 초 동안 전체 서버를 죽이지 않는 wro4j로 부두를 다시 불러올 수 있습니다.css가 변경된 후 부두의 지능형 핫 리로드
클래스 경로 외부에있는 CSS 자원을 찾기 위해 wro4j를 설정했습니다. 나는 변화 만 웹 애플리케이션 디렉토리를 볼 부두를 설정 한
<?xml version="1.0" encoding="UTF-8"?>
<groups xmlns="http://www.isdc.ro/wro">
<group name="style">
<css>file:src/main/less/style.css</css>
</group>
</groups>
: 나는 디렉토리에 뭔가를 변경하는 경우, 아직
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.1.0.M0</version>
<configuration>
<scanTargets>
<scanTarget>${basedir}/src/main/webapp</scanTarget>
</scanTargets>
<scanIntervalSeconds>1</scanIntervalSeconds>
</configuration>
</plugin>
을/SRC는/주/이하, 부두 다시 시작 자체를 :
[INFO] restarting [email protected]{/,[file:/home/tamas/ux/src/main/webapp/, jar:file:/home/tamas/.m2/repository/org/webjars/jshint/2.1.3/jshint-2.1.3.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/less/1.3.3/less-1.3.3.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/emberjs/1.0.0-rc.5/emberjs-1.0.0-rc.5.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/jquery/1.9.1/jquery-1.9.1.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/handlebars/1.0.0-rc.4/handlebars-1.0.0-rc.4.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/coffee-script/1.6.3/coffee-script-1.6.3.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/jslint/c657984cd7/jslint-c657984cd7.jar!/META-INF/resources/, jar:file:/home/tamas/.m2/repository/org/webjars/json2/20110223/json2-20110223.jar!/META-INF/resources/],AVAILABLE}{file:/home/tamas/ux/src/main/webapp/}
매우 재밌어서이 재시동을 피하고 싶습니다.
wro4j 1.7.1, Maven 3.0.4 및 Jetty 9.1.0.M0을 사용하고 있습니다.
업데이트 : Eclipse로 파일을 편집했기 때문에 재시작이 발생했습니다. 부두는 그렇지 않으면 다시 시작하지 않습니다.
부두가 다시 시작하지 않아도 resourceWatcherUpdatePeriod가 작동합니다. 감사합니다! 이클립스로 파일을 편집했기 때문에 재시작이 일어 났고, 어떤 이유로 나는 부두를 재시동했다. – Tamas
특정 파일 만 부두에 의해 모니터링됩니다. (컨텍스트 xml 배포 가능 및 WEB-INF 트리 내의 컨텐트) –