In the build file below, the jar target refers to the jar.class.path property for the manifest class-path. The compile target refers to project.class.path
You can use to convert a path (which can contain a fileset) into a plain string. You'll likely need to that string to a file, use either or to chop the leading path bits, then finally use to load the manipulated string into the final property.