ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Davis <nicecoolbre...@yahoo.com>
Subject Re: exec unix script not working for me
Date Tue, 21 Jul 2009 16:48:35 GMT

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 <robertlazarski@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<nicecoolbreeze@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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


      

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


Mime
View raw message