ASSIGNED - bug 202466: Build installer for europa Java package https://bugs.eclipse.org/bugs/show_bug.cgi?id=202466
diff --git a/releng/org.eclipse.epp.pde.build/build-macros.xml b/releng/org.eclipse.epp.pde.build/build-macros.xml index 55b5f97..b633901 100644 --- a/releng/org.eclipse.epp.pde.build/build-macros.xml +++ b/releng/org.eclipse.epp.pde.build/build-macros.xml
@@ -275,6 +275,26 @@ </sequential> </macrodef> + <!-- ================================================= + Macro for checking that a file or directory exists. + --> + <macrodef name="checkfile"> + <attribute name="file" /> + <attribute name="message" default="Cannot find file: @{file}" /> + <sequential> + + <!-- Assert that the file exists --> + <fail message="@{message}"> + <condition> + <not> + <available file="@{file}"/> + </not> + </condition> + </fail> + + </sequential> + </macrodef> + <!-- - - - - - create the latest project link and the link to the project set if one exists - - - - - - - -->