You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2004/12/03 00:33:12 UTC

Getting forrestbot working

I'm trying to get forrestbot to build a site I have in a CVS server.

Im using the docs at http://forrest.apache.org/docs/forrestbot.html

I have copied the example buildfile on that page into a new directory 
and set the relevant propery values.

When running /forrest -f forrestbot.build.xml/ I get build failed. The 
error is shown below:

Buildfile: forrestbot.build.xml

getsrc.clean-workdir:

getsrc.cvs:
<cvs cvsRoot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet"
       package="repositoryData"
       dest="D:\tmp\forrestbot\work\cvsmodules"
       quiet="false"
       command="checkout -l"
       tag=""
       failonerror="true"
       />
Using cvs passfile: C:\cygwin\home\Ross Gardler\.cvspass
cvs checkout: authorization failed: server cvs.sourceforge.net rejected 
access to /cvsroot/burrokeet for user anonymous

The CVS passfile contains the line:

:pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet A

The getsrc.cvs.password property in the buildfile is set to an empty 
string (the correct password).

Any clues?

Ross

Re: Getting forrestbot working

Posted by Ross Gardler <rg...@apache.org>.
Rick Tessner wrote:
> Ross Gardler wrote:
> 
> <snip/>
> 
>> BUILD FAILED
>> D:\openSource\forrest\tools\forrestbot\core\getsrc.xml:61: 
>> java.io.IOException:
>> CreateProcess: cvs 
>> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet -
>> q checkout -l repositoryData error=2
> 
> 
> Hi Ross,
> 
> The only thing that I've been able to find on this was in the Ant manual 
> (http://ant.apache.org/manual/ ) in the "Feedback and Troubleshooting" 
> section:

Thanks for your help, given the stuff you referred to I decided it was 
some weird configuration thing with Windows/Cygwin so I switched to 
Linux machines and everything works just fine.

Good old Linux.

Ross

Re: Getting forrestbot working

Posted by Rick Tessner <ri...@apache.org>.
Ross Gardler wrote:

<snip/>

> BUILD FAILED
> D:\openSource\forrest\tools\forrestbot\core\getsrc.xml:61: 
> java.io.IOException:
> CreateProcess: cvs 
> -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet -
> q checkout -l repositoryData error=2

Hi Ross,

The only thing that I've been able to find on this was in the Ant manual 
(http://ant.apache.org/manual/ ) in the "Feedback and Troubleshooting" 
section:

<quote>
Is your path correct? is Ant on it? What about JDK/bin? have you tested 
this? If you are using Jikes, is it on the path? A createProcess error 
(especially with ID=2 on windows) usually means executable not found on 
the path.
</quote>

> I have verified (under cygwin as I have no DOS based CVS) that I can 
> login and checkout repositoryData module with the info supplied to 
> forrestbot.

This may make the above quote irrelavent. :(  There's also the "-debug" 
and "-diagnostics"s option that can be passed to "ant" that may reveal 
some additional information.

Hope this helps,

-- 
Rick Tessner
rick at apache dot org

Re: Getting forrestbot working

Posted by Ross Gardler <rg...@apache.org>.
Dave Brondsema wrote:
> Ross Gardler wrote:
> 
>> I'm trying to get forrestbot to build a site I have in a CVS server.
>>
>> Im using the docs at http://forrest.apache.org/docs/forrestbot.html
>>
>> I have copied the example buildfile on that page into a new directory 
>> and set the relevant propery values.
>>
>> When running /forrest -f forrestbot.build.xml/ I get build failed. The 
>> error is shown below:
>>
>> Buildfile: forrestbot.build.xml
>>
>> getsrc.clean-workdir:
>>
>> getsrc.cvs:
>> <cvs cvsRoot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet"
>>       package="repositoryData"
>>       dest="D:\tmp\forrestbot\work\cvsmodules"
>>       quiet="false"
>>       command="checkout -l"
>>       tag=""
>>       failonerror="true"
>>       />
>> Using cvs passfile: C:\cygwin\home\Ross Gardler\.cvspass
>> cvs checkout: authorization failed: server cvs.sourceforge.net 
>> rejected access to /cvsroot/burrokeet for user anonymous
>>
>> The CVS passfile contains the line:
>>
>> :pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet A
>>
>> The getsrc.cvs.password property in the buildfile is set to an empty 
>> string (the correct password).
>>
>> Any clues?
>>
> 
> Try running in verbose mode (forrest -v -f forrestbot.build.xml) and see 
> what the <cvspass> and <cvs> tasks do.

I'm still no nearer to getting it working. Using verbose mode I get a 
load more output but none of it appears to be directly relevant to the 
<cvspass> and <cvs> tasks (other than what I pasted above).

Interestingly, when running under Cygwin, the output from the verbose 
mode seems incomplete, for example, there is a java exception report but 
only the latter half of the stack trace is present, there first half 
(including the exception type) is missing.

Running in verbose under DOS gives a more helpful output:

D:\tmp\forrestbot>forrest -v -f forrestbot.build.xml

Apache Forrest.  Run 'forrest -projecthelp' to list options

<snip what="environment variables and the like, and the output provided 
above"/>

BUILD FAILED
D:\openSource\forrest\tools\forrestbot\core\getsrc.xml:61: 
java.io.IOException:
CreateProcess: cvs 
-d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet -
q checkout -l repositoryData error=2
         at 
org.apache.tools.ant.taskdefs.AbstractCvsTask.runCommand(AbstractCvsT
ask.java:348)
         at 
org.apache.tools.ant.taskdefs.AbstractCvsTask.execute(AbstractCvsTask
.java:409)
         at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:341)
         at org.apache.tools.ant.Target.performTasks(Target.java:369)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
         at

<snip/>

         ... 11 more
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs 
-d:pserver:anonymous@cvs.sourceforge.net
:/cvsroot/burrokeet -q checkout -l repositoryData error=2
         at java.lang.Win32Process.create(Native Method)
         at java.lang.Win32Process.<init>(Win32Process.java:66)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Runtime.java:566)


I have verified (under cygwin as I have no DOS based CVS) that I can 
login and checkout repositoryData module with the info supplied to 
forrestbot.

Unfortunately the ANT mailing list archives don't turn anything up with 
regards this error. I'll move my enquiry over there if no-one here has 
seen this before as it isn't really a Forrest thing by the looks of it.

Ross


Re: Getting forrestbot working

Posted by Dave Brondsema <da...@brondsema.net>.
Ross Gardler wrote:
> I'm trying to get forrestbot to build a site I have in a CVS server.
> 
> Im using the docs at http://forrest.apache.org/docs/forrestbot.html
> 
> I have copied the example buildfile on that page into a new directory 
> and set the relevant propery values.
> 
> When running /forrest -f forrestbot.build.xml/ I get build failed. The 
> error is shown below:
> 
> Buildfile: forrestbot.build.xml
> 
> getsrc.clean-workdir:
> 
> getsrc.cvs:
> <cvs cvsRoot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet"
>       package="repositoryData"
>       dest="D:\tmp\forrestbot\work\cvsmodules"
>       quiet="false"
>       command="checkout -l"
>       tag=""
>       failonerror="true"
>       />
> Using cvs passfile: C:\cygwin\home\Ross Gardler\.cvspass
> cvs checkout: authorization failed: server cvs.sourceforge.net rejected 
> access to /cvsroot/burrokeet for user anonymous
> 
> The CVS passfile contains the line:
> 
> :pserver:anonymous@cvs.sourceforge.net:/cvsroot/burrokeet A
> 
> The getsrc.cvs.password property in the buildfile is set to an empty 
> string (the correct password).
> 
> Any clues?
> 

Try running in verbose mode (forrest -v -f forrestbot.build.xml) and see 
what the <cvspass> and <cvs> tasks do.


-- 
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal