Changing artifact layout when building a war


(Paul Jimenez) #1

I’ve got one project that produces some build artifacts and I wnat to be able to essentally change their layout when I put them into a war.

I’m doing:

war {

from files(project(’:projectA’).file(“build/out/A”)) {

into(‘xxx’)

}

from files(project(’:projectA’).file(“build/out/B”)) {

into (‘yyy’)

}

from files(project(’:projectA’).file(“build/out/C”)) {

into (‘zzz’)

} }

but everything ends up in zzz/! am I missing something? doing it wrong? bug in gradle? what?


(Paul Jimenez) #2

http://stackoverflow.com/questions/8423490/how-do-i-add-another-projects-build-artifacts-into-a-war-using-gradle has the answer - somehow the files() in the above is causing problems.