0

I have script for asterisk

./configure --prefix=/home/some/path

I want to execute this script from build.xml file

this version does not work

<exec dir="${asterisk.dir}" executable="./configure">
    <arg line=" --prefix=/home/some/path"/>
</exec>

Can anybody help me?

4
  • 2
    How exactly does it "not work"? Commented Jun 28, 2013 at 14:18
  • Is the configure script executable? Does it work if you remove "./"? Commented Jun 28, 2013 at 14:57
  • Try removing the space before --. Commented Jun 28, 2013 at 16:20
  • @Kevin That doesn't make a difference. Commented Jun 29, 2013 at 22:15

1 Answer 1

1

The difference between you command line and the Ant script is the working directory. One is the current one, the other is the asterisk one.

Probably you just want to do:

<exec dir="${basedir}" executable="${basedir}/configure">
    <arg line="--prefix=/home/some/path"/>
</exec>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.