issues
search
stephenc
/
java-iso-tools
A fork of JIIC hosted on github
http://github.com/stephenc/java-iso-tools/wiki
GNU Lesser General Public License v2.1
78
stars
45
forks
source link
fileSets in maven-assembly-plugin not working when iso9660-maven-plugin is used as archiver
#25
Open
rbi
opened
5 years ago
rbi
commented
5 years ago
How to reproduce
Use
fileSet
s with maven-assembly-plugin 3.1.1
use iso9660-maven-plugin 2.0.1 as archiver to let the assembly-plugin create ISOs.
See attached Demo project
What happened
Build fails with an exception "Caused by: com.github.stephenc.javaisotools.sabre.HandlerException: Joliet: Empty directory name encountered."
see attachment
What should happen
no exception
Analysis
When specifying
outputDirectory
in a
fileSet
the assembly plugin attaches a trailing / to the directory name. E.g. \
someDir\
gets someDir/
This line
tries to extract the name of the child directory. E.g. it tries to convert someParent/someDir to someDir
When the child ends with a slash however the method transforms someDir/ to an empty String instead of someDir as it would be expected.
Attachements
exception.log
maven-project.zip
How to reproduce
What happened
What should happen
Analysis
outputDirectory
in afileSet
the assembly plugin attaches a trailing / to the directory name. E.g. \Attachements
exception.log maven-project.zip