Skip to content

Commit ef48758

Browse files
committed
Add support for processing instructions in the wxs template like wxs variables. #86
1 parent a4c31d0 commit ef48758

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ class WxsFileBuilder extends XmlFileBuilder<Msi> {
113113
*/
114114
void build() throws Exception {
115115
// Wix node
116-
Element wix = (Element)doc.getFirstChild();
117-
if( !"Wix".equals( wix.getTagName() ) ) {
118-
throw new IllegalArgumentException( "Template does not contains a Wix root: " + wix.getTagName() );
119-
}
116+
Element wix = getOrCreateChild( doc, "Wix", true );
120117
wix.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns", "http://schemas.microsoft.com/wix/2006/wi" );
121118
wix.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns:util", "http://schemas.microsoft.com/wix/UtilExtension" );
122119

0 commit comments

Comments
 (0)