Open rjrudin opened 8 years ago
transform: function (filepath) { if (filepath.startsWith('/') && filepath.endsWith('.css')) { return ''; } if (filepath.startsWith('/') && filepath.endsWith('.js')) { return ''; } // Use the default transform as fallback return inject.transform.apply(inject.transform, arguments); }
Check out this branch and the commit - instructions are in the readme file: gradle-cargo-plugin branch
So far tests show war generated may now be deployed to a Tomcat while keeping the original embedded Tomcat for bootRun or 'java -jar one.jar' options intact. Added the gradle cargo plugin also to simplify deployment to other application servers like WebLogic, WebSphere, etc.
Test it out for spin, I think I still need to test it further before making a pull request.
https://docs.gradle.org/current/userguide/war_plugin.html
May need a property for configuring the base/@href element in each HTML template.
May need to default to path-relative URLs for JS/CSS and AJAX requests so that the WAR can be deployed in a non-root context.