- // include file associations in installer
- def install4jFileAssociationsFile = file("${install4jDir}/${install4j_installer_file_associations}")
- def install4jFileAssociationsText = install4jFileAssociationsFile.text
-/*
- ant.replaceregexp(
- byline: false,
- flags: "s",
- match: '<action name="EXTENSIONS_REPLACED_BY_GRADLE".*?</action>',
- replace: install4jFileAssociationsText,
- file: install4jConfFile
- )
-*/
-
- def install4jFileAssociations = new XmlParser().parseText('''
-<install4jFileAssociations>
-${install4jFileAssociationsText}
-</install4jFileAssociations>
-'''
- )
-
-println("TEXT=${install4jFileAssociationsText}")
-println("ACTIONS")
-install4jFileAssociationsXml.action.each { a ->
- println("ACTION="+XmlUtil.serialize(a))
-}
-
-
- def install4j = new XmlParser().parse(install4jConfFile)