Issue #2048 - foss jars that have associated source code will no longer be removed from the distribution

Change-Id: I444a4c9fd2d2e7fbe1ab1af7c1a4d22bcdaafc14

Former-commit-id: 19a96c99d10b540058e4d9c0d1729852dd18f1e9
This commit is contained in:
Bryan Kowal 2013-05-29 21:51:35 -05:00
parent d563ae4eb8
commit 7b24cd293a

View file

@ -217,6 +217,8 @@
srcfile="${builder}/includes/cots.includes" />
<var name="index" value="1" />
<for param="line" list="${includefile.foss}"
delimiter="${line.separator}">
<sequential>
@ -227,9 +229,20 @@
</not>
<then>
<!--
Remove the empty FOSS jar from plugins.
First, determine if the plugin has a source directory.
-->
<delete file="${builder}/postBuild/${edex.root.directory}/lib/plugins/@{line}.jar" />
<if>
<not>
<available file="${buildDirectory}/plugins/@{line}/src"
type="dir" />
</not>
<then>
<!--
Remove the empty FOSS jar from plugins.
-->
<delete file="${builder}/postBuild/${edex.root.directory}/lib/plugins/@{line}.jar" />
</then>
</if>
</then>
</if>
<math result="index"