diff options
Diffstat (limited to 'tools/wixl/wix.vala')
-rw-r--r-- | tools/wixl/wix.vala | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala index 5e290fb..6ccccf1 100644 --- a/tools/wixl/wix.vala +++ b/tools/wixl/wix.vala @@ -419,7 +419,7 @@ namespace Wixl { public File file; public override string path_name () throws GLib.Error { - return Name; + return Name ?? Path.get_basename (Source); } public override void accept (WixNodeVisitor visitor) throws GLib.Error { @@ -1093,6 +1093,17 @@ namespace Wixl { base.accept (visitor); visitor.visit_directory (this); } + + public string path_name () { + return Name ?? Id; + } + + public override string full_path (WixResolver r) throws GLib.Error { + if (parent != null && (parent is WixDirectory || parent is WixDirectoryRef)) + return parent.full_path (r) + "/" + path_name (); + else + return path_name (); + } } public class WixElementRef<G>: WixElement { |