Question on ANT

I am trying to do this

<target name="nsis-compile" depends="create-jars" >
      <exec executable="makensisw" dir="${nsis-location}">
            <arg value="sra-installer.nsi"/>
      </exec>
</target>

but the sra-installer.nsi script is in a path relative to the ant script basedir of install

I believe the dir= parameter i am setting it up will cause the makensisw.exe look for the sra-installer.nsi in its own directory.  

How can I modify the argument to be the basedir of the ant script + install/sra-installer.nsi

LVL 5
jjacksnAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Try

dir="${basedir}/install"
0
objectsCommented:
try:

<target name="nsis-compile" depends="create-jars" >
     <exec executable="makensisw" dir="${nsis-location}">
          <arg value="${basedir}/install/sra-installer.nsi"/>
     </exec>
</target>
0
jjacksnAuthor Commented:
ok, i think that fixed the arg value problem, but i'm getting an io exception, i think it can't find the makensisw.exe

this is what i have at the top of the file:

<property name="nsis-location" location="C:\program files\NSIS"/>
and this

<target name="nsis-compile" depends="create-jars" >
      <exec executable="makensisw.exe" dir="${nsis-location}">
            <arg value="${basedir}\install\sra-installer.nsi"/>
      </exec>
</target>

and i get

BUILD FAILED
C:\Documents and Setting\SRCAPI\SharedRecords\etc\build-install.xml:37: Execute failed: java.io.IOException: CreateProcess: makensisw.exe "C:\Documents and Settings\SRCAPI\SharedRecords\install\sra-installer.nsi" error=2


am i don't something incorrectly?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

objectsCommented:
executable="${nsis-location}\makensisw.exe"
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jjacksnAuthor Commented:
yep, worked.  why didn't the dir parameter do what i think it did?
0
objectsCommented:
May not look in directory its run for executable
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.