New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create exploded war file #9705

Closed
snimavat opened this Issue Feb 16, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@snimavat
Contributor

snimavat commented Feb 16, 2016

It doesnt create exploded war even after specifying following settings in application.groovy

grails.project.war.exploded.dir = "../tomcat/webapps/ROOT"
grails.war.exploded=true
@snimavat

This comment has been minimized.

Show comment
Hide comment
@snimavat

snimavat Feb 16, 2016

Contributor

Here's how i did it, may be useful to others.

in build.gradle - added a new task

File explodedDir = "$buildDir/../../openshift/webapps/ROOT" as File
task explodedWar(dependsOn: war) {
    ant.unzip(src: war.archivePath, dest: explodedDir)
}

and then run the command gradle explodedWar -Pd0=grails.env=openshift

Contributor

snimavat commented Feb 16, 2016

Here's how i did it, may be useful to others.

in build.gradle - added a new task

File explodedDir = "$buildDir/../../openshift/webapps/ROOT" as File
task explodedWar(dependsOn: war) {
    ant.unzip(src: war.archivePath, dest: explodedDir)
}

and then run the command gradle explodedWar -Pd0=grails.env=openshift

@graemerocher

This comment has been minimized.

Show comment
Hide comment
@graemerocher

graemerocher Feb 16, 2016

Member

the way you did it is correct.

Member

graemerocher commented Feb 16, 2016

the way you did it is correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment