I just figured it out going through the bin/ant script.
Simply export ANT_HOME=. in the build.sh file. Also, I put the sh in 
front of the $PWD line.

(build.sh)
#!/bin/sh

echo
echo "Apache Cocoon 2 Build System"
echo "----------------------------"

chmod u+x ./bin/antRun
chmod u+x ./bin/ant

unset ANT_HOME

export CP=$CLASSPATH
export CLASSPATH=lib/xerces_1_4_0.jar ANT_HOME=.

sh $PWD/bin/ant -logger org.apache.tools.ant.NoBannerLogger -emacs $@ 

export CLASSPATH=$CP


Good luck.

Jon Lancelle




>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 7/25/01, 10:29:07 AM, [EMAIL PROTECTED] wrote regarding [Bug 2787] 
New: - The /bin/ant script is non-executable:


> PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
> ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
> AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
> DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
> BE LOST SOMEWHERE.

> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2787

> *** shadow/2787       Wed Jul 25 10:29:07 2001
> --- shadow/2787.tmp.3997      Wed Jul 25 10:29:07 2001
> ***************
> *** 0 ****
> --- 1,38 ----
> + 
+=========================================================================
===+
> + | The /bin/ant script is non-executable                                 
     |
> + 
+-------------------------------------------------------------------------
---+
> + |        Bug #: 2787                        Product: Cocoon 2           
     |
> + |       Status: NEW                         Version: 2.1alpha CVS       
     |
> + |   Resolution:                            Platform: PC                 
     |
> + |     Severity: Blocker                  OS/Version: Other              
     |
> + |     Priority: Other                     Component: general components 
     |
> + 
+-------------------------------------------------------------------------
---+
> + |  Assigned To: [EMAIL PROTECTED]                               
     |
> + |  Reported By: [EMAIL PROTECTED]                                     
     |
> + |      CC list: Cc:                                                     
     |
> + 
+-------------------------------------------------------------------------
---+
> + |          URL:                                                         
     |
> + 
+=========================================================================
===+
> + |                              DESCRIPTION                              
     |
> + In Cocoon-2.0b2 the ant script in the /bin directory can not be 
excuted.  This
> + is inspite of attempting it as su and having the permissions set via 
"chmod 755
> + ant".  An error message results from attempting ./ant "no such file or
> + directory.  The file is clearly there since it can be edited via vi.
> +
> + I have created a test.sh file in the same directory which works using 
the same
> + permissions --- "chmod 755 test.sh".
> +
> + I have also tried "cp ant ant-t" and edited the ant-t file down to an 
absolute
> + minimum script as follows:
> +
> + #!/bin/sh
> + #
> + echo "Ok on entry"
> +
> + This simple script also will not execute when created from a copy of 
ant. A
> + fresh copy made after deleting ant.sh and then typing in the script 
from vi
> + ant.sh will execute.
> +
> + I have download and reinstalled Cocoon-2.0b2 with no change in the 
results.
> +
> + Is it possible you have something more fundamentally wrong with the ant 
file?

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to