# Manifest file attribute overwrite

**URL:** <https://discuss.gradle.org/t/manifest-file-attribute-overwrite/37538>\
**Category:** Help/Discuss\
**Created:** [September 9, 2020, 2:16pm UTC](https://discuss.gradle.org/t/manifest-file-attribute-overwrite/37538 "2020-09-09T14:16:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rupinder10](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rupinder10](https://discuss.gradle.org/u/rupinder10)\
**Post date:** [September 9, 2020, 2:16pm UTC](https://discuss.gradle.org/t/manifest-file-attribute-overwrite/37538/1 "2020-09-09T14:16:10Z")

</div>

I have a manifest that I am using from a file. But I need to overwrite one attribute in that. I am using the following script but it doesn’t overwrite the value. What am I doing wrong:

```
jar {
  includeEmptyDirs = false
  manifest {
    from 'META-INF/MANIFEST.MF'
  }
  doLast {
  manifest {  
    attributes('Bundle-Classpath': 'test') //This is the value I want to overwrite
  }
}
```
