I have a ANT script which runs yuidoc through command line, but when i run this script it gives me below error:
[exec] 'yuidoc' is not recognized as an internal or external command,
[exec] operable program or batch file.
and the same command -> yuidoc -c yuidoc.json . works then I run it through cmd prompt.
My ANT Script:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="yuidoc">
<property name="appDir" value="" />
<target name="yuidoc">
<mkdir dir="docs.javascript"/>
<copy todir="docs.javascript/yuidoc.assets">
<fileset dir="yuidoc.assets" />
</copy>
<exec dir="${appDir}" executable="cmd">
<arg line="/K yuidoc -c ${appdir}${file.separator}yuidoc.json .">
</arg>
</exec>
</target>