Running a BAT file from ANT

前端 未结 1 523
旧时难觅i
旧时难觅i 2021-02-19 03:48

I have gone through number of posts on the very forum but couldn\'t sort it out. I am trying to run a BAT file from ANT script. The folder hierarchy is like this



        
相关标签:
1条回答
  • 2021-02-19 04:16
    <property name="buildC" value="${basedire}\build-C" />
    

    This should be ${basedir} I guess? Use

    <echo>${buildC}</echo>
    

    to make sure the dir is correct.

    And shouldn't

    <exec dir="${buildC}" executable="test.bat" os="Windows XP" />
    

    do the job?

    0 讨论(0)
提交回复
热议问题