bash - Ant executable attribute -
i work bash , ant , want execute command
<exec dir="../../../path/to/" executable="./configure"> <arg line="--prefix=$(readlink -f ./../../../applications/common/lg-media-server/rpmbuild/pp)"/> </exec>
it not work .can me?
the issue ant doesn't interpret command line arguments shell do. must first evaluate $(readlink -f ./../../../applications/common/lg-media-server/rpmbuild/pp)
via ant before calling configure.
something these 2 steps should work:
<exec executable="readlink" outputproperty="pp_path"> <arg line="-f ./../../../applications/common/lg-media-server/rpmbuild/pp"/> </exec> <exec dir="../../../path/to/" executable="./configure"> <arg line="--prefix=${pp_path}"/> </exec>
Comments
Post a Comment