How to specify base dir then we run ant like ant -f somedir/dir/build.xml

前端 未结 4 1783
猫巷女王i
猫巷女王i 2021-02-13 14:29

How to specify base dir then we run ant like ant -f somedir/dir/build.xml. Ant sets basedir relative to build.xml, if I specify



        
4条回答
  •  名媛妹妹
    2021-02-13 15:04

    I found, that using following solution is the easiest.

    pushd somedir/dir && ant && popd
    

    Although is seems to be to easy - it works.

提交回复
热议问题