Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Re: CVS Problmes?


Thanks for letting us know, Gabriel, and opening the bug. In the mean time, I can offer two tips that might help, now, and even routinely.

1) I recently learned you can use ext (extssh) with your committer id even for projects where you are not a committer. You can't write to them (of course) but you can still read from them. (Sort of makes sense, once I was told .... ssh is for the whole host).

2) in wtp builds, I added a task to "rewrite map files". I call this after the normal "fetch" or "check out map files" task. I added this a few months ago when they started providing a "mirrored" version of pserver to requests outside of build.eclipse.org (for performance reasons). Normally the pserver mirror is "in synch" with the correct contents within minutes, but on rare occasions might not be in synch for hours, hence I often want to use "ext" (extssh) then running a remote build, when accuracy of contents is important. In otherwords, you might want to do this anyway, even when pserver is working fine (or, at least have the ability to) since extssh will ensure you always get the exact, current contents. At the same time, the task is not "hardcoded", but is setup so a build on 'build.eclipse.org' still uses anonymous pserver, but on build.eclipse.org, they have it setup so pserver requests still go to the "live" version of cvs (not a mirror).  The rewrite of the map files is all controlled by the presence or absence of the 'rewriteMapsLine' variable, so on build.eclispe.org I do not provide this value, and map files are used "as is", but on my local machine, I can provide this value and the map files are tweaked after being checked out.  In our webtools build, the original chechout of the map files was already handled by my own, provided id and extssh since we normally "tag" those as part of a build (i.e. do need write authority), but that's all just part of our own ant files, so nothing to "rewrite" there.

This ant task, and other "map file utilities" are located in our webtools repo at
releng.wtpbuilder\scripts\build\maptasks.xml

While it wouldn't be trivial to incorporate, you might want to anyway so you don't have to rely on "mirrored" contents.

HTH




    <!--
        rewriteMaps tasks changes the "standard" eclipse map protocol,
        user, and host name Since this should not be required (or used)
        during production builds, and since machine and user specific, a
        good place to define the value, rewriteMapsLine, is in
        ${env.LOCAL_BUILD_PROPERTIES_DIR}/maptasks.properties If
        rewriteMapsLine exists, it is assume it is desired to rewrite,
        and the value of rewriteMapsLine will be used. It must be a
        complete replacement for :pserver:anonymous@xxxxxxxxxxxxxxx:
        such as :ext:david_williams@xxxxxxxxxxxxxxx:
    -->
    <target
        name="rewriteMaps"
        if="rewriteMapsLine">
        <echo
            message="rewriteMapsLine: ${rewriteMapsLine}"/>
            <!-- we have to check for existence, since in some builds, such as maintenance,
                    we check out all maps, but not all maps have been branched. -->
        <available
            property="packageExists"
            file="${buildDirectory}/maps/${cvsPackage}"/>
        <antcall
            target="rewritePackage"/>
    </target>
    <target
        name="rewriteMapsHttp"
        if="rewriteHttpLines">
        <echo
            message="rewriteHttpLines: ${rewriteHttpLines}"/>
               <!-- we have to check for existence, since in some builds, such as maintenance,
                      we check out all maps, but not all maps have been branched. -->
        <available
            property="packageExists"
            file="${buildDirectory}/maps/${cvsPackage}"/>
        <antcall
            target="rewritePackageHttp"/>
    </target>
    <target
        name="rewritePackage"
        if="packageExists">
        <replace
            dir="${buildDirectory}/maps/${cvsPackage}"
            token=":pserver:anonymous@xxxxxxxxxxxxxxx:"
            value="${rewriteMapsLine}">
            <include
                name="**/*.map"/>
        </replace>

    </target>
    <target
        name="rewritePackageHttp"
        if="packageExists">
        <replace
            dir="${buildDirectory}/maps/${cvsPackage}"
            token="http://download.eclipse.org/"
            value="${rewriteHttpLines}">
            <include
                name="**/*.map"/>
        </replace>
    </target>






From: Gabriel Petrovay <gabipetrovay@xxxxxxxxx>
To: "Webmaster(Matt Ward)" <webmaster@xxxxxxxxxxx>
Cc: wtp-dev <wtp-dev@xxxxxxxxxxx>
Date: 04/18/2010 08:15 AM
Subject: [wtp-dev] Re: CVS Problmes?
Sent by: wtp-dev-bounces@xxxxxxxxxxx





I have created https://bugs.eclipse.org/bugs/show_bug.cgi?id=309590 for this.

Thanks!

On Sun, Apr 18, 2010 at 9:52 AM, Gabriel Petrovay
<gabipetrovay@xxxxxxxxx> wrote:
> Hi,
>
> (CC'd to wtp-dev list)
>
> I have been trying for the last 2 days to access resources from CVS
> but when I use pserver, I constantly get:
> "Could not connect to :pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/webtools"
> Socket exception: Connection reset.
>
> With my committer account it works but I want to get resources that
> are also in other projects. Moreover I want to put this in a build
> script, so I will not use my credentials there, but pserver.
>
> The following happens in Eclipse.
>
> When I run it from a PDE build script (I have a map file with the
> line: feature@xxxxxxxxxxxxxxx.xquery.feature=CVS,tag=HEAD,cvsRoot=:pserver:anonymous@xxxxxxxxxxxxxxx:/cvsroot/webtools,path=incubator/sourceediting/features/org.eclipse.wst.xquery.feature
> )
> I get the error:
> org.eclipse.pde.build_3.5.2.R35x_20100114\scripts\genericTargets.xml:56:
> Could not retrieve feature.xml or build.properties for feature
> org.eclipse.wst.xquery.feature.
>
> In debug mode it also tells me that te cvs command exited with value 1.
>
>
> Is there anything happening with the pserver CVS access?
>
>
> Thanks!
>
> --
> MSc Gabriel Petrovay
> Mobile: +41(0)787978034
>
www.28msec.com
>



--
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev



Back to the top