Maybe I don't fully understand your suggestion. I tried adding the ant task in
front of my exec task as below
<ant dir="${sql.deploy.script}"/>
<exec executable="runSqlPlusUnix.sh" dir="${sql.deploy.script}"
osfamily="unix">
<arg value="${sql.deploy.script}"/>
</exec>
and got
[ant] The following error
occurred while executing this line:
java.io.FileNotFoundException:
/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0/build.xml
(No such file or directory)
The shell script file is being pulled from SVN into TeamCity's work area when
the build is run. Its from there that I'm trying to execute the script.
----- Original Message ----
From: robert lazarski <[email protected]>
To: Ant Users List <[email protected]>
Sent: Tuesday, July 21, 2009 9:25:56 AM
Subject: Re: exec unix script not working for me
On Tue, Jul 21, 2009 at 11:21 AM, Amy Davis<[email protected]> wrote:
>
> I'm having trouble getting a unix script to execute through my ant script.
> What am I doing wrong?
>
<snip>
> /u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/build.xml:62:
> Execute failed: java.io.IOException: Cannot run program "runSqlPlusUnix.sh"
> (in directory
> "/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0"):
> error=2, No such file or directory
file
"/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0/runSqlPlusUnix.sh"
does not exist. Try using absolute paths. "<ant dir="myproject"/>"
may also help.
- R
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]