ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 911] New - <exec> task works locally, but not when called remotely
Date Fri, 09 Mar 2001 01:09:10 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=911

*** shadow/911	Thu Mar  8 17:09:10 2001
--- shadow/911.tmp.28244	Thu Mar  8 17:09:10 2001
***************
*** 0 ****
--- 1,58 ----
+ +============================================================================+
+ | <exec> task works locally, but not when called remotely                    |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 911                         Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority:                           Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: breese@grandcentral.com                                      |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I have two build.xml files. One is a master build file which simply calls other
+ build files. In one of my sub-build files I am calling:
+ 
+ <target name="foo">
+ <exec on="Linux,SunOS" executable="deploy.sh">
+ </target>
+ 
+ This deploy.sh simply appends several text files together into a new file.
+ 
+ deploy.sh properties:
+ -r-xr-xr-x    1 breese   breese        619 Mar  8 15:49 deploy.sh
+ 
+ When I build this target locally (from the sub-build file's working directory),
+ it works fine. However when I build it through the use of an <ant> task in an
+ external build.xml, it fails. Here is what it gives me:
+ 
+ From master build.xml:
+ <target name="dist">
+   <ant dir="../../web/build" target="foo">
+ </target>
+ 
+ Output from running 'ant dist':
+ ...
+ [exec] Result: -1
+ ...
+ 
+ deploy.sh contents:
+ 
+ #
+ # create a consolidated rvw file
+ #
+ cat ../foo.rvw > classes/deploy.rvw
+ cat ../bar.rvw >> classes/deploy.rvw
+ cat ../baz.rvw >> classes/deploy.rvw
+ cat ../../foo2.rvw >> classes/deploy.rvw
+ 
+ #
+ # create the index.html file with a date and time stamp
+ cat ../jhtml/indexhead.html > ../jhtml/index.html
+ cat ../jhtml/indexview.html >> ../jhtml/index.html
+ date >> ../jhtml/index.html
+ cat ../jhtml/indextail.html >> ../jhtml/index.html

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


Mime
View raw message