Closed dranuhl closed 2 years ago
Yea, I think there is a bug :)
I think using file
should work. However, currently I guess it complains about a missing file. Which it shouldn't.
I guess a solution would be to (in the case of ghost) ignore the fact that the file/directory doesn't exists.
I would like to specify a ghost entry, but the plugin requires a file, directory or collect element to be specified for it anyway, which does not seem to make much sense to me.
For example:
Yields: [ERROR] Failed to execute goal de.dentrassi.maven:rpm:1.6.0:rpm (default) on project myapp: Exactly one of 'file', 'directory', 'linkTo' or 'collect' must be specified.
If adding a file element referring to a non-existing file to the above entry, will lead to the following trace:
Using collect element that does not find a file, will not lead to an error, but the produced RPM will not know about the ghost file either. Using skip will not lead to an error in either case, but the produced RPM will not know about the ghost file either.
So it seems that currently the only way to refer to an existing empty file, which seems to be cumbersome and not intuitive.