ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Castrianni <Shawn.Castria...@halliburton.com>
Subject RE: problem with exec
Date Wed, 05 Nov 2008 22:28:49 GMT
Try splitting up the -o and the output filename as two separate <args>  You probably
have an <arg value> with two arguments which won't work since ANT quotes the contents
of the <arg value> line combining them into one.  Either change to two <arg value>
tags or change what you have to an <arg line>

---
Shawn Castrianni


-----Original Message-----
From: Robert Anderson [mailto:riznob@gmail.com]
Sent: Wednesday, November 05, 2008 4:26 PM
To: Ant Users List
Subject: problem with exec

I am having a problem with the exec task. The command being executed works
fine on the command line, but there is an error when trying to run it via
ant. I have also looked at the permissions and everything should be good.
Any help would be appreciated. Here is the debug output...

Execute:Java13CommandLauncher: Executing 'cc' with arguments:
'-c'
'-I/dba00/app/oracle/product/9.2.0.6/precomp/public'
'-I/dba00/app/oracle/product/9.2.0.6/rdbms/public'
'-I/dba00/app/oracle/product/9.2.0.6/plsql/public'
'-I/dba00/app/oracle/product/9.2.0.6/network/public'
'-I/home/prod/customs/proc'
'-I/home/prod/customs/proc/um'
'-I/home/prod/customs/proc/de/inclfiles'
'-I/home/prod/customs/proc/IOR/inclfiles'
'-o
/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.o'
'/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c'

The ' characters around the executable and arguments are
not part of the command.
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 117: warning: no explicit type given
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 119: warning: no explicit type given
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 121: warning: no explicit type given
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 122: warning: no explicit type given
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 123: warning: no explicit type given
     [exec]
"/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c",
line 1634: warning: old-style declaration or incorrect type for: main
     [exec] Unable to open
/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.o
for access w
     [exec] cc: acomp failed for
/home/prod/customs/proc/client_server/duty_exemption/airbag_load/de0030.c
  [antcall] Exiting /home/prod/customs/proc/client_server/build.xml.
  [antcall] Exiting /home/prod/customs/proc/client_server/build.xml.

BUILD FAILED
/home/prod/customs/proc/client_server/build.xml:313: The following error
occurred while executing this line:
/home/prod/customs/proc/client_server/build.xml:279: The following error
occurred while executing this line:
/home/prod/customs/proc/client_server/build.xml:198: exec returned: 2
        at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)


--
Rob Anderson
riznob@gmail.com

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information
for the sole use of the intended recipient.  Any review, use, distribution, or disclosure
by others is strictly prohibited.  If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the sender by reply e-mail
and delete all copies of this message.
Mime
View raw message