2017-10-25 13 views

답변

3

이 : 당신이 Gradle을 자체 시스템 등록 정보를 전달하는

.\gradlew.bat run -Dhttpport=8825 

프로세스로 시작됩니다 없습니다. 그래서 당신은 또한 프로젝트 속성을 사용하여 시스템 속성을 구성 할 수 있습니다

.\gradlew.bat run -Dhttpport=8825 

(-P) :

run { 
    dependsOn ':jar' 
    args = [ 'run', project.mainVerticleName, '-cluster', "-launcher-class=$mainClassName", '-Denvironment=development' ] 
    systemProperties System.properties 
} 

과 :

run { 
    dependsOn ':jar' 
    args = [ 'run', project.mainVerticleName, '-cluster', "-launcher-class=$mainClassName", '-Denvironment=development' ] 
    systemProperties [httpport:project.httpport] 
} 
당신이 다음과 같이 run를 구성하기 위해 필요한이 방법을 작동하게하려면

다음 :

.\gradlew.bat run -Phttpport=8825