I am writing Ant script to generate javadoc for my program. the ant script as:
<javadoc access="public"
source="1.6"
sourcepath="${basedir}/../${current.project}/src"
destdir="${basedir}/dist/doc/${current.project}"
packagenames="${current.project}" />
But I got trouble if the ${current.project} (packagenames="${current.project}")
does not exist, then Ant will throw error and stop the progress.
I want to ask is there any way to check that if the package name (${current.project}
) does not exist, then Ant will continue to do its jobs until end?