We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to get a list of files into the nuspec, using the syntax '*.txt' but I cannot make it work:
nugetSpec { nuspec = [ metadata: [ id: project.package, version: project.version, description: project.description, authors: project.authors ], files: [ { file (src: '*.txt', target: 'content') }, ] ] }
I'm getting error: Cannot create a package that has no dependencies nor content.
I tried also using project.files('.txt') instead of '.txt' but I'm getting the error: File not found: 'file collection'.
Thanks
The text was updated successfully, but these errors were encountered:
So putting together info from other issues, I came up with this that works for me... maybe it can help somebody else:
nugetSpec { nuspec { metadata() { delegate.authors project.authors delegate.id project.package } files() { def filesXmlNode = delegate; project.fileTree(dir: '.', include:['*.txt']).each { filesXmlNode.file(src: it, target: 'content') } } } }
Sorry, something went wrong.
No branches or pull requests
I'm trying to get a list of files into the nuspec, using the syntax '*.txt' but I cannot make it work:
I'm getting error:
Cannot create a package that has no dependencies nor content.
I tried also using project.files('.txt') instead of '.txt' but I'm getting the error:
File not found: 'file collection'.
Thanks
The text was updated successfully, but these errors were encountered: