Execution failed for task ‘:cargoRunLocal’.
Deployable C:\Users\naresh.vatsal\workspace_spring_jan14\userregisteration\build\userregisteration.war does not exist
apply plugin: ‘java’
apply plugin: ‘eclipse’
apply plugin: ‘war’
apply plugin: ‘com.bmuschko.tomcat-base’
apply plugin: ‘com.bmuschko.cargo’
ext.tomcatVersion = ‘7.0.67’
sourceCompatibility = 1.7
cargoRunLocal.dependsOn assemble
buildscript {
repositories {
maven {
url "https://plugins.grdev.net/m2/"
}
}
dependencies {
classpath "com.bmuschko:gradle-tomcat-plugin:2.2.4"
classpath 'com.bmuschko:gradle-cargo-plugin:2.2'
}
}
repositories {
mavenCentral()
}
dependencies {
def cargoVersion = '1.4.5'
cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",
"org.codehaus.cargo:cargo-ant:$cargoVersion"
compile("javax.servlet:jstl:1.2")
compile("org.springframework:spring-context:4.0.3.RELEASE")
compile("org.springframework:spring-webmvc:4.0.3.RELEASE")
compile("org.springframework:spring-web:4.0.3.RELEASE")
compile("org.springframework:spring-aop:4.0.3.RELEASE")
compile("org.springframework:spring-aspects:4.0.3.RELEASE")
compile("org.springframework:spring-beans:4.0.3.RELEASE")
compile("org.springframework:spring-core:4.0.3.RELEASE")
compile("org.springframework:spring-expression:4.0.3.RELEASE")
compile("org.springframework:spring-jdbc:4.0.3.RELEASE")
compile("org.springframework:spring-orm:4.0.3.RELEASE")
compile("org.eclipse.persistence:javax.persistence:2.0.0")
compile("antlr:antlr:2.7.7")
compile("commons-logging:commons-logging:1.1.1")
compile("org.hibernate:hibernate-commons-annotations:3.2.0.Final")
compile("org.hibernate:hibernate-core:4.3.5.Final")
compile("org.apache.derby:derbyclient:10.12.1.1")
compile("javax.validation:validation-api:1.0.0.GA")
compile("org.slf4j:slf4j-api:1.7.5")
//testCompile 'junit:junit:4.7'
}
cargo {
containerId = ‘tomcat7x’
port = 8080
deployable {
context = 'userregisteration'
// file = file('/Users/me/Documents/gradlemucks/grails_2/hello-world/target/hello-world-0.1.war')
file = file('C:/Users/naresh.vatsal/workspace_spring_jan14/userregisteration/build/userregisteration.war')
}
local {
homeDir = file('C:/soft/apache-tomcat-7.0.67')
outputFile = file('C:/soft/apache-tomcat-7.0.67/output.log')
containerProperties {
property 'cargo.tomcat.ajp.port', 9099
}
}
}
// Set source directory
war{
project.webAppDirName = ‘WebContent’
sourceSets{
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
}
}