1.1 --- a/clang-tidy.wrappers/analysis.clangtidy.Linux_x86_64/nbproject/build-impl.xml Wed Jun 07 17:36:09 2017 +0300
1.2 +++ b/clang-tidy.wrappers/analysis.clangtidy.Linux_x86_64/nbproject/build-impl.xml Wed Jun 07 18:50:35 2017 +0300
1.3 @@ -1,9 +1,16 @@
1.4 -<?xml version="1.0" encoding="UTF-8"?>
1.5 -<!--
1.6 +<?xml version="1.0" encoding="UTF-8"?>
1.7 +<!--
1.8 *** GENERATED FROM project.xml - DO NOT EDIT ***
1.9 *** EDIT ../build.xml INSTEAD ***
1.10 -->
1.11 <project name="org.netbeans.modules.analysis.clangtidy.Linux_x86_64-impl" basedir="..">
1.12 + <fail message="Please build using Ant 1.7.1 or higher.">
1.13 + <condition>
1.14 + <not>
1.15 + <antversion atleast="1.7.1"/>
1.16 + </not>
1.17 + </condition>
1.18 + </fail>
1.19 <property file="nbproject/private/platform-private.properties"/>
1.20 <property file="nbproject/platform.properties"/>
1.21 <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
1.22 @@ -13,13 +20,21 @@
1.23 <property name="@{name}" value="${@{value}}"/>
1.24 </sequential>
1.25 </macrodef>
1.26 + <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
1.27 + <attribute name="property"/>
1.28 + <attribute name="value"/>
1.29 + <sequential>
1.30 + <property name="@{property}" value="@{value}"/>
1.31 + </sequential>
1.32 + </macrodef>
1.33 <property file="${user.properties.file}"/>
1.34 <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
1.35 - <nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
1.36 - <fail message="You must define 'nbplatform.${nbplatform.active}.harness.dir'">
1.37 + <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
1.38 + <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
1.39 + <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
1.40 <condition>
1.41 <not>
1.42 - <available file="${harness.dir}" type="dir"/>
1.43 + <contains string="${cluster.path.evaluated}" substring="platform"/>
1.44 </not>
1.45 </condition>
1.46 </fail>