Hello,
I need a gradle task that can start tomcat and deploy a war to it. I need to be able to add an “app-conf” directory to the server classpath for the Tomcat (v7.0.62) to start successfully.
I tried using gradle-cargo plugin for this purpose. Is there a way I can add the app-conf directory to the server classpath? I tried adding that under extraClasspath and sharedClasspath. Currently, WEB-INF/root-config.xml imports “classpath: app-config.xml” and running cargoRunLocal throws an exception
Caused by: java.io.FileNotFoundException: class path resource [app-config.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330)
... 47 more
Thanks.