cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Javadocs
Date Thu, 27 Sep 2007 22:34:03 GMT
Reinhard Poetz wrote:
> thanks. The command seems to work but I have a problem to execute the 
> script because David is the owner and neither chown nor chmod are 
> permitted using my account:
> 
> /x1/www/cocoon.apache.org/2.2/core-modules/pipeline-api/1.0/apidocs
>  > ls -lsa
> total 14
>  2 drwxrwxr-x  3 crossley  cocoon   512 Sep 26 17:08 .
>  2 drwxrwxr-x  6 crossley  cocoon   512 Sep 26 17:08 ..
>  2 drwxrwxr-x  6 crossley  cocoon   512 Sep 27 14:33 .svn
>  2 -rw-rw-r--  1 crossley  cocoon   581 Sep 26 17:08 create-apidocs.sh

You don't need chmod/chown; permissions are looking fine as it is. But when I 
try to run it, I get an error:

   vgritsenko@minotaur 
/x1/www/cocoon.apache.org/2.2/core-modules/pipeline-api/1.0/apidocs $ bash 
create-apidocs.sh
   ----------------------------------------------------------------
   Creating JavaDocs for cocoon-pipeline-api:1.0.0-RC2
   create-apidocs.sh: line 9: syntax error near unexpected token `else'
   create-apidocs.sh: line 9: `else'


When I fixed both if/then/else:

   if [ ! -f $f ]
   then
     wget --header "User-Agent: Mozilla/5.0 Firefox/2.0.0.7" 
http://repo1.maven.org/maven2/$jd
     dl=1
   fi


It was working fine:



vgritsenko@minotaur 
/x1/www/cocoon.apache.org/2.2/core-modules/pipeline-api/1.0/apidocs $ bash 
create-apidocs.sh
----------------------------------------------------------------
Creating JavaDocs for cocoon-pipeline-api:1.0.0-RC2
--15:33:08-- 
http://repo1.maven.org/maven2/org/apache/cocoon/cocoon-pipeline-api/1.0.0-RC2/cocoon-pipeline-api-1.0.0-RC2-javadoc.jar
            => `cocoon-pipeline-api-1.0.0-RC2-javadoc.jar'
Resolving repo1.maven.org... 63.246.20.112
Connecting to repo1.maven.org|63.246.20.112|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:33:08 ERROR 404: Not Found.

--15:33:08-- 
http://people.apache.org/builds/cocoon/org/apache/cocoon/cocoon-pipeline-api/1.0.0-RC2/cocoon-pipeline-api-1.0.0-RC2-javadoc.jar
            => `cocoon-pipeline-api-1.0.0-RC2-javadoc.jar'
Resolving people.apache.org... 140.211.11.9
Connecting to people.apache.org|140.211.11.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 362,072 (354K) [application/java-archive]

100%[=======================================================================================================================================>]

362,072       --.--K/s

15:33:08 (41.75 MB/s) - `cocoon-pipeline-api-1.0.0-RC2-javadoc.jar' saved 
[362072/362072]

vgritsenko@minotaur 
/x1/www/cocoon.apache.org/2.2/core-modules/pipeline-api/1.0/apidocs $ ls
META-INF/                                       help-doc.html 
                 overview-tree.html
allclasses-frame.html                           index-all.html 
                 package-list
allclasses-noframe.html                         index.html 
                 packages
cocoon-pipeline-api-1.0.0-RC2-javadoc.jar       options 
                 packages.html
constant-values.html                            org/ 
                 resources/
create-apidocs.sh                               overview-frame.html 
                 serialized-form.html
deprecated-list.html                            overview-summary.html 
                 stylesheet.css




Vadim

Mime
View raw message