2
전쟁을 배포하는 방법 :Grails의 스크립트는 내가 내 응용 프로그램을 구축하고 (SCP)를 배포하기 위해 Grails의 스크립트를 작성하기 위해 노력하고있어
includeTargets << grailsScript("War")
target('deploy': "Deploy war on server") {
depends(war)
ant.property (file : 'application.properties')
def user = ant.project.properties."${grailsEnv}_remote_user"
def host = ant.project.properties."${grailsEnv}_remote_host"
def dir = ant.project.properties."${grailsEnv}_remote_dir"
ant.scp(file: warName, todir: "${user}@${host}:${dir}", passphrase:"", trust:"true")
}
setDefaultTarget('deploy')
나는 다음과 같은 오류 얻을이 스크립트를 실행하면 :
C:\Java\IDE\workspaces\Projets\Test 1.5\build.xml:20: Problem: failed to create task or type scp
Cause: Could not load a dependent class com/jcraft/jsch/Logger
It is not enough to have Ant's optional JARs
you need the JAR files that the optional tasks depend upon.
Ant's optional task dependencies are listed in the manual.
을
물론 jsch.jar을 다운로드했지만 클래스 경로 수정 방법을 찾을 수 없습니다.
STS 3.0 및 Grails 2.1.0을 사용합니다.
어떤 아이디어가 있습니까?
에 다음을 추가하면 (그것을 만드는 존재하지 않는 경우) 프로젝트 루트 아래에있는 lib 폴더에 넣어 시도? – rascio