[Anthill] Problem with a Perforce adapter

vvv at urbancode.com vvv at urbancode.com
Tue Nov 8 18:21:44 CST 2005


Hi Vladimir,

can you tell me how is the workspace devapp1 set up on the perforce
server? Is the mapping something like:
//depot/src/devsite_sandbox/DB/... //devapp1/DB/...
Also is C:\LN\src\ the root for the workspace?

when you setup the repository, you must specify the view in the form of
//client_name/path_to_project_root/...

Once you set up the repository right, the rest of the build will be fine.
Also AnthillOs will determine the root from the workspace information.

Regards,
Varban


> Good evening,
>
> I've installed an Anthill OS 1.8.0.264 today, and immediately hit a
> problem
> with Perforce adapter.
>
> I've set up a "Configure
> com.urbancode.anthill.adapter.PerforceRepositoryAdapter" page the
> following
> way,
>
> repository.perforce.P4PORT = foundry:1666
> repository.perforce.P4CLIENT = devapp1
> repository.perforce.P4USER = automake
> repository.perforce.P4PASSWD = ********
> repository.perforce.P4VIEW = //depot/src/devsite_sandbox/DB/...
>
> The Perforce on the server is configured to map //depot/src/... to
> C:\LN\src\... folder.
>
> Now, when I run an ant script (which right now just echoes), I get the
> following log:
>
> <log>_______________________________________________________________________
> __
>
>
> Anthill version: 1.8.0.264 loaded.
> Anthill root dir: C:\Anthill
> 17:55:16:947 [http-8080-Processor25] INFO  com.urbancode.anthill.Anthill
> -
> Starting Anthill daemons
> Pagelets v3.1.5 loaded.
> Copyright 2000-2002 Urbancode.  All rights reserved.
> 17:56:35:113 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.adapter.PerforceRepositoryAdapter  - Command for
> client info: cmd /x/c p4 -pfoundry:1666 -uautomake -P"********"
> -c"devapp1"
> client -o
>
> 17:56:35:316 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - Project: devsite_sandbox.DB2 is
> being
> released.
> 17:56:35:316 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - Initializing repository adapter...
> 17:56:35:316 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.adapter.PerforceRepositoryAdapter  - Command for
> client info: cmd /x/c p4 -pfoundry:1666 -uautomake -P"********"
> -c"devapp1"
> client -o
>
> 17:56:35:535 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - step 0) Clean up working directory
> 17:56:35:535 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - step 1) Retrieve working copy of
> code
> from repository
> 17:56:35:566 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.adapter.ProfileRepositoryAdapter  - Executing
> Command:
> cmd /x/c cd /d C:\\src\devsite_sandbox\DB && p4 -c devapp1 -p foundry:1666
> -u automake -P ******** sync -f //depot/src/devsite_sandbox/DB/...
> 17:56:35:582 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.adapter.ProfileRepositoryAdapter  -
> Execute:Java13CommandLauncher: Executing 'cmd' with arguments:
> '/x/c'
> 'cd'
> '/d'
> 'C:\\src\devsite_sandbox\DB'
> '&&'
> 'p4'
> '-c'
> 'devapp1'
> '-p'
> 'foundry:1666'
> '-u'
> 'automake'
> '-P'
> '********'
> 'sync'
> '-f'
> '//depot/src/devsite_sandbox/DB/...'
>
> The ' characters around the executable and arguments are
> not part of the command.
>
> WorkingDir: none
> Environment Variables: none
> //depot/src/devsite_sandbox/DB/BatchUtilities/PopulateOMSILogin1.sql#1 -
> refreshing
> C:\LN\src\devsite_sandbox\DB\BatchUtilities\PopulateOMSILogin1.sql
>
>     [A LONG LIST OF UPDATED FILES IS SKIPPED]
>
> 17:56:45:772 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - step 2) is project up to date?
> 17:56:45:772 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.BuildManager  - step 3) Increment version:
> 17:56:45:772 [Thread - AnthillBuildDaemon] INFO
> com.urbancode.anthill.adapter.UrbanCodeVersionAdapter  - Incrementing
> version file: C:\src\devsite_sandbox\DB\LNVersion.txt
>
>     [Now, here C:\LN\src got mistically replaced with C:\src]
>
> 17:56:45:772 [Thread - AnthillBuildDaemon] ERROR
> com.urbancode.anthill.BuildManager  - VersionFile parameter must point to
> a
> file that exists
> java.lang.IllegalArgumentException: VersionFile parameter must point to a
> file that exists
>  at
> com.urbancode.anthill.adapter.VersionModifier.<init>(VersionModifier.java:47
> )
>  at
> com.urbancode.anthill.adapter.UrbanCodeVersionAdapter.incrementVersion(Urban
> CodeVersionAdapter.java:119)
>  at com.urbancode.anthill.BuildManager.build(BuildManager.java:115)
>  at
> com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
>  at com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
>  at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
> 17:56:53:618 [Thread - AnthillBuildDaemon] ERROR
> com.urbancode.anthill.BuildManager  - Exception while writing revision
> log.
> java.lang.OutOfMemoryError: Java heap space
> 17:56:54:774 [Thread - AnthillBuildDaemon] ERROR
> com.urbancode.anthill.BuildManager  - couldn't send result email
> java.lang.OutOfMemoryError: Java heap space
>
> </log>______________________________________________________________________
> __
>
> As you can see, C:\LN\src got replaced with C:\src, and, of course the
> version file couldnt be found. Now, in a documentation for Anthill
> 1.5.44.38
> I found a mention of a repository.perforce.P4ROOT parameter on the
> Perforce
> settings page; but in the Anthill 1.8 there is no such parameter at the
> respective page.
>
> Could you please help me to figure out how to make perforce work with
> version file from the correct directory?
>
> Sincerely yours,
>
> Vladimir Gramagin
> Liquidnet
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> This message contains confidential information and is intended only for
> the individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.
> _______________________________________________
> Anthill mailing list
> Anthill at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill
>




More information about the Anthill mailing list