On Tue, Jul 21, 2009 at 1:48 PM, Amy Davis<nicecoolbre...@yahoo.com> wrote:
>
> 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.

Hmm, try:

<exec executable="${sql.deploy.script}/runSqlPlusUnix.sh"
                   osfamily="unix">
                   <arg value="${sql.deploy.script}"/>
</exec>

>
> ----- Original Message ----
> From: robert lazarski <robertlazar...@gmail.com>
> To: Ant Users List <user@ant.apache.org>
> 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<nicecoolbre...@yahoo.com> 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: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to