Made it possible to run "gradle clean build" and get a

build/libs/community-app.war.. all credits for this should go to
@aalmiray, from the Hackergarten at Devoxx, not me. -- This will later
need to be extended to package a future minified version, from the Grunt
build, not the src.
This commit is contained in:
Michael Vorburger 2013-11-12 11:03:44 +01:00
parent b35888941e
commit ddbe5443f3
3 changed files with 25 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,4 +1,6 @@
.idea
.gradle
build
lib-cov
lib
app/bower_components
@ -20,3 +22,4 @@ npm-debug.log
node_modules
*~
dist
/target

16
app/WEB-INF/web.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<web-app
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="mifosng-platform-provider" version="2.5">
<display-name>Mifos Community Reference App</display-name>
<description>Microfinance AngularJS UI.</description>
</web-app>

6
build.gradle Normal file
View File

@ -0,0 +1,6 @@
apply plugin:"war"
war {
// webAppDirName = "app"
from "app"
}