NEW - bug 215060: Create automated build for UDC
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215060
diff --git a/releng/org.eclipse.epp.usagedata.releng/customAssembly.xml b/releng/org.eclipse.epp.usagedata.releng/customAssembly.xml
index d3f8094..eee1b1a 100644
--- a/releng/org.eclipse.epp.usagedata.releng/customAssembly.xml
+++ b/releng/org.eclipse.epp.usagedata.releng/customAssembly.xml
@@ -9,7 +9,21 @@
 		 - archiveFullPath : the full path of the final archive once it is created
 		 
 		 ===================================================================== -->
-		 
+	
+	<!-- =====================================================================  -->
+	<!-- Called after each invocation of the gather.bin.parts target on the     -->
+	<!-- individual plugins and features.                                       -->
+	<!-- Available properties are:                                              -->
+	<!--   projectLocation: location of the project being gathered              -->
+	<!--   projectName: symbolic name with version (org.eclipse.foo_1.0.0.v123) -->
+	<!--   target.folder: the destination, eclipse/plugins or eclipse/features  -->
+	<!--                                                                        -->
+	<!-- The generated pattern is that plugins/features are gathered into the   -->
+	<!-- folder ${target.folder}/${projectName}                                 -->
+	<!-- =====================================================================  -->
+	<target name="gather.bin.parts">
+	</target>
+	
 	<!-- ===================================================================== -->
 	<!-- Called after invoking the gather.bin.parts targets for all plugins    -->
 	<!-- and features. Results exist as folders and have not yet been jarred.  -->
diff --git a/releng/org.eclipse.epp.usagedata.releng/signJars.xml b/releng/org.eclipse.epp.usagedata.releng/signJars.xml
index 8a89cb7..7616378 100644
--- a/releng/org.eclipse.epp.usagedata.releng/signJars.xml
+++ b/releng/org.eclipse.epp.usagedata.releng/signJars.xml
@@ -10,7 +10,7 @@
   <property name="udc.signOutputDir" value="${udc.signInputDir}/output" />
   <property name="udc.outputFile" value="${udc.signOutputDir}/${udc.archiveName}"/>
     
-  <target name="signJars" if="udc.signJars">
+  <target name="signJars" depends="test.signer.exists" if="udc.signJars">
     <mkdir dir="${udc.signOutputDir}"/>
     <chmod dir="${udc.signOutputDir}" perm="ugo+rw" />
     
@@ -35,5 +35,9 @@
     <copy file="${udc.outputFile}" todir="${udc.archiveDir}" overwrite="true" />
     
   </target>
-
+	
+	<!-- This target tests to see if the signer is available. We'll only attempt to sign if it does. -->
+	<target name="test.signer.exists">
+		<available file="/usr/bin/sign" property="signer.exists"/> 
+	</target>
 </project>
\ No newline at end of file