I ended up writing code like this:

 Jar jarTask = project.tasks.add("tempJarTask" + locale, Jar.class) as Jar
            jarTask.from "$convention.localizationOutputPath/$JARS_DIR"
            jarTask.destinationDir = new File("${project.buildDir}/libs")
            jarTask.baseName = project.name
            jarTask.appendix = "l10n"
            jarTask.version = project.version
            jarTask.classifier = locale
            jarTask.manifest {
                attributes("Bundle-ManifestVersion": '2')
                attributes("Bundle-Name": project.name)
                attributes("Bundle-SymbolicName": convention.componentName)
                attributes("Bundle-Version": project.version)
                attributes("Fragment-Host":
"${convention.componentName};bundle-version=[${project.version}]")
                attributes("Build-Date": new Date().toString())

            }
            jarTask.execute()


On Fri, Jun 17, 2011 at 9:36 AM, phil swenson <[email protected]> wrote:
> This code:
>
> project.ant.jar(destfile: "/blah.jar", basedir: "/blah/blah"){
>                manifest() {
>                    attributes( "Bundle-ManifestVersion": "2",
>                                "Bundle-Name": "Event Type Editor" )
>                }
> }
>
> gives me this error:
>
> Caused by: class org.apache.tools.ant.taskdefs.Manifest doesn't
> support the nested "attributes" element.
>
> anyone have a work-around for this?
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to