Issue #1994 - purge any FOSS artifacts deployed to the EDEX plugins directory by Eclipse PDE.

Former-commit-id: 99ba7adfe7 [formerly 99ba7adfe7 [formerly 5d7bf83507e91f9dc6b748c54ad00d010f3f790a]]
Former-commit-id: e4874a873a
Former-commit-id: 31605b7a94
This commit is contained in:
Bryan Kowal 2013-05-20 14:59:44 -05:00
parent b032b405ed
commit fbdcd29129

View file

@ -191,7 +191,7 @@
<fileset dir="${builder}/postBuild/${edex.root.directory}/lib"> <fileset dir="${builder}/postBuild/${edex.root.directory}/lib">
<include name="**/*.jar" /> <include name="**/*.jar" />
</fileset> </fileset>
<mapper type="regexp" from="^(.*)_(.*).jar" to="\1.jar" /> <mapper type="regexp" from="^(.+?)_(.+).jar" to="\1.jar" />
</move> </move>
</then> </then>
</if> </if>
@ -208,6 +208,37 @@
<fileset dir="${builder}" <fileset dir="${builder}"
includes="dependencies-stash/**" /> includes="dependencies-stash/**" />
</delete> </delete>
<!--
Remove all PDE-generated FOSS artifacts from the
plugins directory.
-->
<loadfile property="includefile.foss"
srcfile="${builder}/includes/cots.includes" />
<var name="index" value="1" />
<for param="line" list="${includefile.foss}"
delimiter="${line.separator}">
<sequential>
<!-- skip the first line -->
<if>
<not>
<equals arg1="${index}" arg2="1" />
</not>
<then>
<!--
Remove the empty FOSS jar from plugins.
-->
<delete file="${builder}/postBuild/${edex.root.directory}/lib/plugins/@{line}.jar" />
</then>
</if>
<math result="index"
operand1="${index}"
operation="+"
operand2="1"
datatype="int" />
</sequential>
</for>
<!-- manipulate the topLevelElementId - the feature --> <!-- manipulate the topLevelElementId - the feature -->
<propertyregex property="edex.component" <propertyregex property="edex.component"