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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -