To Axis2 Plugin Author - mar file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

To Axis2 Plugin Author - mar file

SanjayGupta

Hi,

 

When building the war file 2 mar files were not copied to the war file. There was an issue in axis2 plugin version 0.7.0. It was referring to the old version in the _Events.groovy. I know there is a better way to get the staging directory instead of hard coding.

 

Old:

eventWarStart = { msg ->

    Ant.copy(todir:"${grailsSettings.projectWorkDir}/staging/WEB-INF/lib", flatten:true, failonerror:false) {

        fileset(dir:"${grailsSettings.projectPluginsDir}/axis2-0.6.1/lib") {

            include(name:"*.mar")

        }

    }

}

 

New:

eventWarStart = { msg ->

    Ant.copy(todir:"${grailsSettings.projectWorkDir}/stage/WEB-INF/lib", flatten:true, failonerror:false) {

        fileset(dir:"${grailsSettings.projectPluginsDir}/axis2-0.7.0/lib") {

            include(name:"*.mar")

        }

    }

}