I have to create an ant target that will add component .jar to a zip. The problem is that I do not have the version of component always defined. For example:
<zip destfile="${dist.dir}\result-${result-version}.zip">
<fileset dir="${dist.dir}" includes="maincomponent-${maincomponenet-version}*.jar"/>
<fileset dir="${second-componenet-folder}" includes="${second-component-version}.jar" />
</zip>
How can I add some condition that will create the zip with the main component if the second-component-version
property is not defined?