Skip to content

Commit f8bf5ab

Browse files
committed
Use a backslash as delimiter between path and file name before ID calculation to prevent a ID collision. fix #72
1 parent 8cc5a2e commit f8bf5ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/inet/gradle/setup/msi/WxsFileBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ private String addFile( Element component, File file, String pathID, String name
409409
* added to improve the performance.
410410
*/
411411
private String addFile( Element component, File file, String pathID, String name, boolean isAddFiles ) {
412-
String id = id( (pathID.length() > 0 ? pathID + '_' : "") + name );
412+
String id = id( (pathID.length() > 0 ? pathID + '\\' : "") + name );
413413
if( isAddFiles ) {
414414
Element fileEl = getOrCreateChildById( component, "File", id );
415415
addAttributeIfNotExists( fileEl, "Source", file.getAbsolutePath() );

0 commit comments

Comments
 (0)