You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2001/07/25 19:29:07 UTC
[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: cocoon-dev@xml.apache.org |
+ | Reported By: rmpeter@xyntera.com |
+ | 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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [Bug 2787] New: - The /bin/ant script is non-executable
Posted by Jon Lancelle <jk...@knosys.com>.
I have to reply here, since Staroffice on Linux is driving me NUTS!
Nice program...but.......
Append the command 'sh ' to the line starting with $PWD' in the build.sh
file. You will get further along, but will still meet with resistance.
I am running RH Linux and using bash as my shell.
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 7/25/01, 10:29:07 AM, bugzilla@apache.org 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: cocoon-dev@xml.apache.org
|
> + | Reported By: rmpeter@xyntera.com
|
> + | 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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [Bug 2787] New: - The /bin/ant script is non-executable
Posted by Jon Lancelle <jk...@knosys.com>.
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, bugzilla@apache.org 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: cocoon-dev@xml.apache.org
|
> + | Reported By: rmpeter@xyntera.com
|
> + | 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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org