Add jaxb.properties file to generated JAR

I need to add jaxb.properties file to a generated jar file. This link (http://stackoverflow.com/questions/12410828/gradle-add-single-file-to-jar) tells me how. However this only adds the file at the top level of the archive. I need to specify the subdir (java package path) inside the archive. The jaxb.properties needs to be in the same package as the class which is being marshalled/unmarshalled.

I got it working with the following script

jar {

from (‘wsdl’){

include ‘jaxb.properties’

into ‘expedia/om/order/messages/v1’

}

}