You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@continuum.apache.org by leahpar <ra...@free.fr> on 2007/04/18 23:07:53 UTC

continuum and perforce

Hello world,

1-

There's an issue with continuum and perforce with evenisse 512303 : 
class:		ContinuDefaultContinuumScm
method:		private ScmRepository getScmRepository( Project project, boolean
useCredentialsCache )
bad? line:	System.setProperty( "maven.scm.perforce.clientspec.name", null ); 
proposed line:	System.clearProperty(
PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY);
because:	value of Properties cannot be null 

2-
Link to the previous issue, something else should be done here? no?
class:		PerforceScmProvider
method: 	public static String getClientspecName(
PerforceScmProviderRepository repo, File workDir )
bad line:	return System.getProperty( DEFAULT_CLIENTSPEC_PROPERTY,
generateDefaultClientspecName( repo, workDir ) );

Thanks 

-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10066462
Sent from the Continuum - Dev mailing list archive at Nabble.com.


RE: :-)

Posted by "Heck, Joe" <Jo...@dig.com>.
Works great with a single project. Goes to hell in a handbasket with
more than one - it re-uses the client spec and deletes and re-checks out
the whole project each time. Made some really impressive network spikes
for some of our heftier projects when I last tried.

-joe

-----Original Message-----
Sent: Thursday, April 19, 2007 10:00 AM
To: continuum-dev@maven.apache.org
Subject: Re: :-)

Do you have tested Continuum/Perforce with more than one projects? I
think it doesn't work with two and more.
Do you have patched Continuum and/or Maven-SCM?



Re: :-)

Posted by leahpar <ra...@free.fr>.
> another issue is raised because each project in continuum required a client
> spec
it's a continuum /  scm issue

> and the number can be too high.
perforce licensing is based on user
for example evaluation perforce allows 2 users 5 clients
so it means that continuum can have only build 5 projects

currently with the information posted (only 3 sources modifications and few
P4 configuration)
it seems to work but one project required one clientspec
I try to put all this in one clientspec but it's a bit more difficult ...

bye




-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10105374
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: :-)

Posted by Emmanuel Venisse <em...@venisse.net>.

leahpar a écrit :
>> Ok, it seems to be good. Can you send us your patches?
> no it's not good because i've change also 
> 
> public class PerforceScmProvider
> public static String getRepoPath( ScmLogger log,
> PerforceScmProviderRepository repo, File basedir )
> 
> if (false)//FIXME pom.exists() )
> 
> but it's not a fine solution

sure

> I don't really understand the meaning of this :
> it seems to be a reading in the pom the new repo in perforce and then update
> the depot localisation.
> (it can be different with branches ) but why "Ignoring the SCM location"?

You can ask on Maven-SCM dev list, I hope Mike will answer.

> 
> brain over...
> 
> another issue is raised because each project in continuum required a client
> spec
> and the number can be too high.

Is it limited in Perforce?

> 
> # A Perforce Client Specification.
> Client:	prp_user-XXX-MavenSCM-D:\continuum\working-directory\51
> Update:	2007/04/20 16:49:34
> Access:	2007/04/20 16:49:34
> Owner:	prp_user
> Description:
> 	Created by maven-scm-provider-perforce
> Root:	D:\continuum\working-directory\51
> Options:	noallwrite noclobber nocompress unlocked nomodtime normdir
> LineEnd:	local
> View:
> 	//depot/hello3/...
> //prp_user-XXX-MavenSCM-D:\continuum\working-directory\51/...
> 
> something should be done to have (I'm not able to succeed at this time)
> 
> # A Perforce Client Specification.
> Client:	prp_user-XXX-MavenSCM-D:\continuum\working-directory
> Update:	2007/04/20 16:49:34
> Access:	2007/04/20 16:49:34
> Owner:	prp_user
> Description:
> 	Created by maven-scm-provider-perforce
> Root:	D:\continuum\working-directory
> Options:	noallwrite noclobber nocompress unlocked nomodtime normdir
> LineEnd:	local
> View:
> 	//depot/hello1/...
> //prp_user-XXX-MavenSCM-D:\continuum\working-directory\46/...
> 	//depot/hello2/...
> //prp_user-XXX-MavenSCM-D:\continuum\working-directory\47/...
> 	//depot/hello3/...
> //prp_user-XXX-MavenSCM-D:\continuum\working-directory\51/...
> 


Re: :-)

Posted by leahpar <ra...@free.fr>.
>Ok, it seems to be good. Can you send us your patches?
no it's not good because i've change also 

public class PerforceScmProvider
public static String getRepoPath( ScmLogger log,
PerforceScmProviderRepository repo, File basedir )

if (false)//FIXME pom.exists() )

but it's not a fine solution
I don't really understand the meaning of this :
it seems to be a reading in the pom the new repo in perforce and then update
the depot localisation.
(it can be different with branches ) but why "Ignoring the SCM location"?

brain over...

another issue is raised because each project in continuum required a client
spec
and the number can be too high.

# A Perforce Client Specification.
Client:	prp_user-XXX-MavenSCM-D:\continuum\working-directory\51
Update:	2007/04/20 16:49:34
Access:	2007/04/20 16:49:34
Owner:	prp_user
Description:
	Created by maven-scm-provider-perforce
Root:	D:\continuum\working-directory\51
Options:	noallwrite noclobber nocompress unlocked nomodtime normdir
LineEnd:	local
View:
	//depot/hello3/...
//prp_user-XXX-MavenSCM-D:\continuum\working-directory\51/...

something should be done to have (I'm not able to succeed at this time)

# A Perforce Client Specification.
Client:	prp_user-XXX-MavenSCM-D:\continuum\working-directory
Update:	2007/04/20 16:49:34
Access:	2007/04/20 16:49:34
Owner:	prp_user
Description:
	Created by maven-scm-provider-perforce
Root:	D:\continuum\working-directory
Options:	noallwrite noclobber nocompress unlocked nomodtime normdir
LineEnd:	local
View:
	//depot/hello1/...
//prp_user-XXX-MavenSCM-D:\continuum\working-directory\46/...
	//depot/hello2/...
//prp_user-XXX-MavenSCM-D:\continuum\working-directory\47/...
	//depot/hello3/...
//prp_user-XXX-MavenSCM-D:\continuum\working-directory\51/...

-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10104151
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: :-)

Posted by Emmanuel Venisse <em...@venisse.net>.
Ok, it seems to be good. Can you send us your patches?
Thanks for your tests.

Emmanuel

leahpar a écrit :
>> Do you have tested Continuum/Perforce with more than one projects? I think
> it doesn't work with two and more.
> yes, several project and several scm 
> 
>> Do you have patched Continuum and/or Maven-SCM?
> yes, both slightly but the aim is to make it working (no matter if there's
> feature lost) not having a long term solution
> 
> current state:
> 3 projects with scm perforce
> find below the log when 1 file is modified in 2 projects and a build is
> request on 3 projects
> it log seems good to me : only 2 files are sync'ed 
> 
> 2007-04-20 15:09:23,896 [pool-1-thread-1] DEBUG ScmManager:default            
> - Executing p4 -p XXX:1666 -u prp_user -c
> prp_user-XXX-MavenSCM-D:\continuum\working-directory\46 filelog -t -l ...
> 2007-04-20 15:09:24,255 [pool-1-thread-1] INFO  ContinuumScm:default          
> - Updated 1 files.
> 2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
> - Merging SCM results
> 2007-04-20 15:09:24,318 [pool-1-thread-1] DEBUG BuildController:default       
> - Skip non Continuum project: junit:junit:4.3
> 2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
> - Changes found, building
> 2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action update-project-from-working-directory
> 2007-04-20 15:09:24,333 [pool-1-thread-1] INFO 
> Action:update-project-from-working-directory - Updating project 'Hello 2
> world application (SCM P4)' from checkout.
> 2007-04-20 15:09:24,552 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action execute-builder
> 2007-04-20 15:09:24,630 [pool-1-thread-1] WARN 
> ContinuumBuildExecutor:maven2  - Could not find the executable 'mvn' in this
> path: 
> 2007-04-20 15:09:24,708 [pool-1-thread-1] INFO  ShellCommandHelper:default    
> - Executing: mvn --batch-mode --non-recursive clean install
> 2007-04-20 15:09:24,708 [pool-1-thread-1] INFO  ShellCommandHelper:default    
> - Working directory: D:\continuum\working-directory\46
> 2007-04-20 15:09:32,100 [pool-1-thread-1] INFO 
> ContinuumBuildExecutor:maven2  - Exit code: 0
> 2007-04-20 15:09:32,256 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action deploy-artifact
> 2007-04-20 15:09:32,475 [pool-1-thread-1] INFO 
> ArtifactTransformation:snapshot - Retrieving previous build number from
> deployment-repository
> 2007-04-20 15:09:32,506 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:09:32,506 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:09:32,553 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading repository metadata for: 'snapshot
> pub.prp:hello2-world:1.0-SNAPSHOT'
> 2007-04-20 15:09:32,553 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:09:32,568 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:09:32,568 [pool-1-thread-1] DEBUG
> RepositoryMetadataManager:default - project information for hello2-world
> 1.0-20070420.140439-2 could not be found on repository:
> deployment-repository
> 2007-04-20 15:09:32,584 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading project information for hello2-world 1.0-20070420.140439-2
> 2007-04-20 15:09:32,584 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:09:32,600 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:09:32,615 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading repository metadata for: 'artifact pub.prp:hello2-world'
> 2007-04-20 15:09:32,615 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:09:32,709 [pool-1-thread-1] INFO  Notifier:mail                 
> - Same state, not sending message.
> 
> 
> 
> 
> 2007-04-20 15:10:26,463 [pool-1-thread-1] DEBUG ScmManager:default            
> - Executing p4 -p XXX:1666 -u prp_user -c
> prp_user-XXX-MavenSCM-D:\continuum\working-directory\47 filelog -t -l ...
> 2007-04-20 15:10:26,791 [pool-1-thread-1] INFO  ContinuumScm:default          
> - Updated 1 files.
> 2007-04-20 15:10:26,854 [pool-1-thread-1] INFO  BuildController:default       
> - Merging SCM results
> 2007-04-20 15:10:26,854 [pool-1-thread-1] DEBUG BuildController:default       
> - Skip non Continuum project: junit:junit:4.3
> 2007-04-20 15:10:26,870 [pool-1-thread-1] INFO  BuildController:default       
> - Changes found, building
> 2007-04-20 15:10:26,870 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action update-project-from-working-directory
> 2007-04-20 15:10:26,870 [pool-1-thread-1] INFO 
> Action:update-project-from-working-directory - Updating project 'Hello 3
> world application (SCM P4)' from checkout.
> 2007-04-20 15:10:27,073 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action execute-builder
> 2007-04-20 15:10:27,198 [pool-1-thread-1] WARN 
> ContinuumBuildExecutor:maven2  - Could not find the executable 'mvn' in this
> path: 
> 2007-04-20 15:10:27,260 [pool-1-thread-1] INFO  ShellCommandHelper:default    
> - Executing: mvn --batch-mode --non-recursive clean install
> 2007-04-20 15:10:27,260 [pool-1-thread-1] INFO  ShellCommandHelper:default    
> - Working directory: D:\continuum\working-directory\47
> 2007-04-20 15:10:34,558 [pool-1-thread-1] INFO 
> ContinuumBuildExecutor:maven2  - Exit code: 0
> 2007-04-20 15:10:34,683 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action deploy-artifact
> 2007-04-20 15:10:34,901 [pool-1-thread-1] INFO 
> ArtifactTransformation:snapshot - Retrieving previous build number from
> deployment-repository
> 2007-04-20 15:10:34,933 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:10:34,948 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:10:34,948 [pool-1-thread-1] DEBUG
> RepositoryMetadataManager:default - project information for hello3-world
> 1.0-20070420.140439-7 could not be found on repository:
> deployment-repository
> 2007-04-20 15:10:34,964 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading project information for hello3-world 1.0-20070420.140439-7
> 2007-04-20 15:10:34,964 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:10:34,980 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:10:35,026 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading repository metadata for: 'snapshot
> pub.prp:hello3-world:1.0-SNAPSHOT'
> 2007-04-20 15:10:35,026 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:10:35,042 [pool-1-thread-1] INFO 
> RepositoryMetadataManager:default - Retrieving previous metadata from
> deployment-repository
> 2007-04-20 15:10:35,058 [pool-1-thread-1] INFO  WagonManager:default          
> - Uploading repository metadata for: 'artifact pub.prp:hello3-world'
> 2007-04-20 15:10:35,058 [pool-1-thread-1] DEBUG WagonManager:default          
> - not adding permissions to wagon connection
> 2007-04-20 15:10:35,151 [pool-1-thread-1] INFO  Notifier:mail                 
> - Same state, not sending message.
> 
> 
> 
> 
> 


Re: :-)

Posted by leahpar <ra...@free.fr>.
>Do you have tested Continuum/Perforce with more than one projects? I think
it doesn't work with two and more.
yes, several project and several scm 

>Do you have patched Continuum and/or Maven-SCM?
yes, both slightly but the aim is to make it working (no matter if there's
feature lost) not having a long term solution

current state:
3 projects with scm perforce
find below the log when 1 file is modified in 2 projects and a build is
request on 3 projects
it log seems good to me : only 2 files are sync'ed 

2007-04-20 15:09:23,896 [pool-1-thread-1] DEBUG ScmManager:default            
- Executing p4 -p XXX:1666 -u prp_user -c
prp_user-XXX-MavenSCM-D:\continuum\working-directory\46 filelog -t -l ...
2007-04-20 15:09:24,255 [pool-1-thread-1] INFO  ContinuumScm:default          
- Updated 1 files.
2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
- Merging SCM results
2007-04-20 15:09:24,318 [pool-1-thread-1] DEBUG BuildController:default       
- Skip non Continuum project: junit:junit:4.3
2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
- Changes found, building
2007-04-20 15:09:24,318 [pool-1-thread-1] INFO  BuildController:default       
- Performing action update-project-from-working-directory
2007-04-20 15:09:24,333 [pool-1-thread-1] INFO 
Action:update-project-from-working-directory - Updating project 'Hello 2
world application (SCM P4)' from checkout.
2007-04-20 15:09:24,552 [pool-1-thread-1] INFO  BuildController:default       
- Performing action execute-builder
2007-04-20 15:09:24,630 [pool-1-thread-1] WARN 
ContinuumBuildExecutor:maven2  - Could not find the executable 'mvn' in this
path: 
2007-04-20 15:09:24,708 [pool-1-thread-1] INFO  ShellCommandHelper:default    
- Executing: mvn --batch-mode --non-recursive clean install
2007-04-20 15:09:24,708 [pool-1-thread-1] INFO  ShellCommandHelper:default    
- Working directory: D:\continuum\working-directory\46
2007-04-20 15:09:32,100 [pool-1-thread-1] INFO 
ContinuumBuildExecutor:maven2  - Exit code: 0
2007-04-20 15:09:32,256 [pool-1-thread-1] INFO  BuildController:default       
- Performing action deploy-artifact
2007-04-20 15:09:32,475 [pool-1-thread-1] INFO 
ArtifactTransformation:snapshot - Retrieving previous build number from
deployment-repository
2007-04-20 15:09:32,506 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:09:32,506 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:09:32,553 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading repository metadata for: 'snapshot
pub.prp:hello2-world:1.0-SNAPSHOT'
2007-04-20 15:09:32,553 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:09:32,568 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:09:32,568 [pool-1-thread-1] DEBUG
RepositoryMetadataManager:default - project information for hello2-world
1.0-20070420.140439-2 could not be found on repository:
deployment-repository
2007-04-20 15:09:32,584 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading project information for hello2-world 1.0-20070420.140439-2
2007-04-20 15:09:32,584 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:09:32,600 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:09:32,615 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading repository metadata for: 'artifact pub.prp:hello2-world'
2007-04-20 15:09:32,615 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:09:32,709 [pool-1-thread-1] INFO  Notifier:mail                 
- Same state, not sending message.




2007-04-20 15:10:26,463 [pool-1-thread-1] DEBUG ScmManager:default            
- Executing p4 -p XXX:1666 -u prp_user -c
prp_user-XXX-MavenSCM-D:\continuum\working-directory\47 filelog -t -l ...
2007-04-20 15:10:26,791 [pool-1-thread-1] INFO  ContinuumScm:default          
- Updated 1 files.
2007-04-20 15:10:26,854 [pool-1-thread-1] INFO  BuildController:default       
- Merging SCM results
2007-04-20 15:10:26,854 [pool-1-thread-1] DEBUG BuildController:default       
- Skip non Continuum project: junit:junit:4.3
2007-04-20 15:10:26,870 [pool-1-thread-1] INFO  BuildController:default       
- Changes found, building
2007-04-20 15:10:26,870 [pool-1-thread-1] INFO  BuildController:default       
- Performing action update-project-from-working-directory
2007-04-20 15:10:26,870 [pool-1-thread-1] INFO 
Action:update-project-from-working-directory - Updating project 'Hello 3
world application (SCM P4)' from checkout.
2007-04-20 15:10:27,073 [pool-1-thread-1] INFO  BuildController:default       
- Performing action execute-builder
2007-04-20 15:10:27,198 [pool-1-thread-1] WARN 
ContinuumBuildExecutor:maven2  - Could not find the executable 'mvn' in this
path: 
2007-04-20 15:10:27,260 [pool-1-thread-1] INFO  ShellCommandHelper:default    
- Executing: mvn --batch-mode --non-recursive clean install
2007-04-20 15:10:27,260 [pool-1-thread-1] INFO  ShellCommandHelper:default    
- Working directory: D:\continuum\working-directory\47
2007-04-20 15:10:34,558 [pool-1-thread-1] INFO 
ContinuumBuildExecutor:maven2  - Exit code: 0
2007-04-20 15:10:34,683 [pool-1-thread-1] INFO  BuildController:default       
- Performing action deploy-artifact
2007-04-20 15:10:34,901 [pool-1-thread-1] INFO 
ArtifactTransformation:snapshot - Retrieving previous build number from
deployment-repository
2007-04-20 15:10:34,933 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:10:34,948 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:10:34,948 [pool-1-thread-1] DEBUG
RepositoryMetadataManager:default - project information for hello3-world
1.0-20070420.140439-7 could not be found on repository:
deployment-repository
2007-04-20 15:10:34,964 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading project information for hello3-world 1.0-20070420.140439-7
2007-04-20 15:10:34,964 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:10:34,980 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:10:35,026 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading repository metadata for: 'snapshot
pub.prp:hello3-world:1.0-SNAPSHOT'
2007-04-20 15:10:35,026 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:10:35,042 [pool-1-thread-1] INFO 
RepositoryMetadataManager:default - Retrieving previous metadata from
deployment-repository
2007-04-20 15:10:35,058 [pool-1-thread-1] INFO  WagonManager:default          
- Uploading repository metadata for: 'artifact pub.prp:hello3-world'
2007-04-20 15:10:35,058 [pool-1-thread-1] DEBUG WagonManager:default          
- not adding permissions to wagon connection
2007-04-20 15:10:35,151 [pool-1-thread-1] INFO  Notifier:mail                 
- Same state, not sending message.





-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10103006
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: :-)

Posted by Emmanuel Venisse <em...@venisse.net>.
Do you have tested Continuum/Perforce with more than one projects? I think it doesn't work with two and more.
Do you have patched Continuum and/or Maven-SCM?

Emmanuel

leahpar a écrit :
> small log and mail report 
> 
> 2007-04-19 17:51:14,433 [pool-1-thread-1] DEBUG ScmManager:default            
> - Executing: p4 -p ####:1666 -u prp_user
> -cprp_user-###-MavenSCM-D:\continuum\working-directory\41 sync -f
> 2007-04-19 17:51:14,965 [pool-1-thread-1] DEBUG ScmManager:default            
> - Consuming: //depot/hello/pom.xml#10 - added as
> D:\continuum\working-directory\41\pom.xml
> 2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
> - Consuming: //depot/hello/src/changes/changes.xml#1 - added as
> D:\continuum\working-directory\41\src\changes\changes.xml
> 2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
> - Consuming: //depot/hello/src/main/java/pub/prp/Main.java#2 - added as
> D:\continuum\working-directory\41\src\main\java\pub\prp\Main.java
> 2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
> - Consuming: //depot/hello/src/test/java/pub/prp/MainTestCase.java#1 - added
> as D:\continuum\working-directory\41\src\test\java\pub\prp\MainTestCase.java
> 2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
> - Perforce sync complete.
> 2007-04-19 17:51:14,980 [pool-1-thread-1] INFO  ContinuumScm:default          
> - Checked out 4 files.
> 2007-04-19 17:51:14,996 [pool-1-thread-1] INFO  BuildController:default       
> - Merging SCM results
> 2007-04-19 17:51:15,027 [pool-1-thread-1] DEBUG BuildController:default       
> - Skip non Continuum project: junit:junit:4.3
> 2007-04-19 17:51:15,027 [pool-1-thread-1] INFO  BuildController:default       
> - Changes found, building
> 2007-04-19 17:51:15,027 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action update-project-from-working-directory
> 2007-04-19 17:51:15,043 [pool-1-thread-1] INFO 
> Action:update-project-from-working-directory - Updating project 'Hello world
> application (SCM P4)' from checkout.
> 2007-04-19 17:51:15,918 [pool-1-thread-1] INFO  BuildController:default       
> - Performing action execute-builder
> 
> 
> Online report :
> http://###:17080/continuum/buildResult.action?buildId=481&projectId=41
> Build statistics:
> State: Ok
> Previous State: Error
> Started at: jeu. 19 avr. 2007 17:51:15 +0100
> Finished at: jeu. 19 avr. 2007 17:51:32 +0100
> Total time: 16s
> Build Trigger: Forced
> Build Number: 1
> Exit code: 0
> Building machine hostname: #####
> Operating system : Windows XP(Service Pack 2)
> Java version : 1.5.0_11(Sun Microsystems Inc.)
> 
> ****************************************************************************
> SCM Changes:
> ****************************************************************************
> Changed: no author @ no date
> Comment: no comment
> Files changed:
> //depot/hello/pom.xml ( no revision )
> //depot/hello/src/changes/changes.xml ( no revision )
> //depot/hello/src/main/java/pub/prp/Main.java ( no revision )
> //depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )
> 
> ****************************************************************************
> SCM Changes since last success:
> ****************************************************************************
> Changed: no author @ no date
> Comment: no comment
> Files changed:
> //depot/hello/pom.xml ( no revision )
> //depot/hello/src/changes/changes.xml ( no revision )
> //depot/hello/src/main/java/pub/prp/Main.java ( no revision )
> //depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )
> 
> Changed: no author @ no date
> Comment: no comment
> Files changed:
> //depot/hello/pom.xml ( no revision )
> //depot/hello/src/changes/changes.xml ( no revision )
> //depot/hello/src/main/java/pub/prp/Main.java ( no revision )
> //depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )
> 
> Changed: no author @ no date
> Comment: no comment
> Files changed:
> //depot/hello/pom.xml ( no revision )
> //depot/hello/src/changes/changes.xml ( no revision )
> //depot/hello/src/main/java/pub/prp/Main.java ( no revision )
> //depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )
> 
> Changed: no author @ no date
> Comment: no comment
> Files changed:
> //depot/hello/pom.xml ( no revision )
> //depot/hello/src/changes/changes.xml ( no revision )
> //depot/hello/src/main/java/pub/prp/Main.java ( no revision )
> //depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )
> 
> ****************************************************************************
> Dependencies Changes:
> ****************************************************************************
> No dependencies changed
> 
> ****************************************************************************
> Test Summary:
> ****************************************************************************
> Tests: 0
> Failures: 0
> Total time: 0
> 
> ****************************************************************************
> Output:
> ****************************************************************************
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Hello world application (SCM P4)
> [INFO]    task-segment: [clean, install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory D:\continuum\working-directory\41\target
> [INFO] Deleting directory D:\continuum\working-directory\41\target\classes
> [INFO] Deleting directory
> D:\continuum\working-directory\41\target\test-classes
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 1 source file to D:\continuum\working-directory\41\target\classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> Compiling 1 source file to
> D:\continuum\working-directory\41\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> D:\continuum\working-directory\41\target\surefire-reports
> 
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> There are no tests to run.
> 
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] [jar:jar]
> [INFO] Building jar:
> D:\continuum\working-directory\41\target\hello-world-1.0-SNAPSHOT.jar
> [INFO] [install:install]
> [INFO] Installing
> D:\continuum\working-directory\41\target\hello-world-1.0-SNAPSHOT.jar to
> d:\maven_local_repository\pub\prp\hello-world\1.0-SNAPSHOT\hello-world-1.0-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13 seconds
> [INFO] Finished at: Thu Apr 19 17:51:31 GMT+01:00 2007
> [INFO] Final Memory: 4M/10M
> [INFO]
> ------------------------------------------------------------------------
> 
> ****************************************************************************
> 
> 
> 


:-)

Posted by leahpar <ra...@free.fr>.
small log and mail report 

2007-04-19 17:51:14,433 [pool-1-thread-1] DEBUG ScmManager:default            
- Executing: p4 -p ####:1666 -u prp_user
-cprp_user-###-MavenSCM-D:\continuum\working-directory\41 sync -f
2007-04-19 17:51:14,965 [pool-1-thread-1] DEBUG ScmManager:default            
- Consuming: //depot/hello/pom.xml#10 - added as
D:\continuum\working-directory\41\pom.xml
2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
- Consuming: //depot/hello/src/changes/changes.xml#1 - added as
D:\continuum\working-directory\41\src\changes\changes.xml
2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
- Consuming: //depot/hello/src/main/java/pub/prp/Main.java#2 - added as
D:\continuum\working-directory\41\src\main\java\pub\prp\Main.java
2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
- Consuming: //depot/hello/src/test/java/pub/prp/MainTestCase.java#1 - added
as D:\continuum\working-directory\41\src\test\java\pub\prp\MainTestCase.java
2007-04-19 17:51:14,980 [pool-1-thread-1] DEBUG ScmManager:default            
- Perforce sync complete.
2007-04-19 17:51:14,980 [pool-1-thread-1] INFO  ContinuumScm:default          
- Checked out 4 files.
2007-04-19 17:51:14,996 [pool-1-thread-1] INFO  BuildController:default       
- Merging SCM results
2007-04-19 17:51:15,027 [pool-1-thread-1] DEBUG BuildController:default       
- Skip non Continuum project: junit:junit:4.3
2007-04-19 17:51:15,027 [pool-1-thread-1] INFO  BuildController:default       
- Changes found, building
2007-04-19 17:51:15,027 [pool-1-thread-1] INFO  BuildController:default       
- Performing action update-project-from-working-directory
2007-04-19 17:51:15,043 [pool-1-thread-1] INFO 
Action:update-project-from-working-directory - Updating project 'Hello world
application (SCM P4)' from checkout.
2007-04-19 17:51:15,918 [pool-1-thread-1] INFO  BuildController:default       
- Performing action execute-builder


Online report :
http://###:17080/continuum/buildResult.action?buildId=481&projectId=41
Build statistics:
State: Ok
Previous State: Error
Started at: jeu. 19 avr. 2007 17:51:15 +0100
Finished at: jeu. 19 avr. 2007 17:51:32 +0100
Total time: 16s
Build Trigger: Forced
Build Number: 1
Exit code: 0
Building machine hostname: #####
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_11(Sun Microsystems Inc.)

****************************************************************************
SCM Changes:
****************************************************************************
Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

****************************************************************************
SCM Changes since last success:
****************************************************************************
Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

****************************************************************************
Dependencies Changes:
****************************************************************************
No dependencies changed

****************************************************************************
Test Summary:
****************************************************************************
Tests: 0
Failures: 0
Total time: 0

****************************************************************************
Output:
****************************************************************************
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Hello world application (SCM P4)
[INFO]    task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory D:\continuum\working-directory\41\target
[INFO] Deleting directory D:\continuum\working-directory\41\target\classes
[INFO] Deleting directory
D:\continuum\working-directory\41\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to D:\continuum\working-directory\41\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to
D:\continuum\working-directory\41\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\continuum\working-directory\41\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
D:\continuum\working-directory\41\target\hello-world-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
D:\continuum\working-directory\41\target\hello-world-1.0-SNAPSHOT.jar to
d:\maven_local_repository\pub\prp\hello-world\1.0-SNAPSHOT\hello-world-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Thu Apr 19 17:51:31 GMT+01:00 2007
[INFO] Final Memory: 4M/10M
[INFO]
------------------------------------------------------------------------

****************************************************************************



-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10082202
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by leahpar <ra...@free.fr>.
"just before stop state"

host1
p4 command line installed
p4 set 
          P4EDITOR=C:\WINDOWS\system32\notepad.exe (set)
          P4PORT=host1:1666 (set)
          P4USER=user (set)
          nothing else ! no P4CLIENT!
continuum installed with few modification (clearProperty ...)
D:\continuum\working-directory as working-directory

host2
define with P4Win a perforce client like this
Client:	host1
Owner:	user
Description:
	Created by user.
Root:	D:\continuum\working-directory\
Options:	noallwrite noclobber nocompress unlocked nomodtime normdir
LineEnd:	local
View:
	//depot/... //host2/depot/...

note: caution values have been anonymised...
The sync seems to work but I get the following mail, I try again tomorrow
from a new clean environment

bye










Online report :
http://host1:17080/continuum/buildResult.action?buildId=472&projectId=41
Build statistics:
State: Error
Previous State: Error
Started at: jeu. 19 avr. 2007 17:17:40 +0100
Finished at: jeu. 19 avr. 2007 17:17:40 +0100
Total time: 0s
Build Trigger: Forced
Build Number: 0
Exit code: 0
Building machine hostname: host1
Operating system : Windows XP(Service Pack 2)
Java version : 1.5.0_11(Sun Microsystems Inc.)

****************************************************************************
SCM Changes:
****************************************************************************
Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

****************************************************************************
SCM Changes since last success:
****************************************************************************
Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

Changed: no author @ no date
Comment: no comment
Files changed:
//depot/hello/pom.xml ( no revision )
//depot/hello/src/changes/changes.xml ( no revision )
//depot/hello/src/main/java/pub/prp/Main.java ( no revision )
//depot/hello/src/test/java/pub/prp/MainTestCase.java ( no revision )

****************************************************************************
Dependencies Changes:
****************************************************************************
No dependencies changed

****************************************************************************
Test Summary:
****************************************************************************
Tests: 0
Failures: 0
Total time: 0

****************************************************************************
Build Error:
****************************************************************************
java.lang.NoSuchMethodError:
org.codehaus.plexus.util.cli.Commandline.setPid(J)V
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand(DefaultShellCommandHelper.java:71)
at
org.apache.maven.continuum.utils.shell.DefaultShellCommandHelper.executeShellCommand(DefaultShellCommandHelper.java:58)
at
org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand(AbstractBuildExecutor.java:192)
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.build(MavenTwoBuildExecutor.java:113)
at
org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute(ExecuteBuilderContinuumAction.java:140)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:406)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:145)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Unknown Source)






-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10082197
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by leahpar <ra...@free.fr>.
>If you know well the perforce command line, maybe you can help Mike on the
Maven SCM Perforce provider because he
>doesn't use Continuum so he don't know pb with Perforce/Continuum and can't
fix them.

currently I use (built from svn - jdk 1.5) continuum & archiva deployed in
tomcat 6 
several things are working
several not ...

I'll post solved issue (if any...)

bye


-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10078750
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by Emmanuel Venisse <em...@venisse.net>.
If you know well the perforce command line, maybe you can help Mike on the Maven SCM Perforce provider because he doesn't use Continuum so he don't know pb with Perforce/Continuum and can't fix them.

Emmanuel

leahpar a écrit :
> just to write it somewhere.
> 
> PerforceWhereCommand
> getDepotLocation( String filepath )
> BufferedReader br = new BufferedReader( new InputStreamReader(
> proc.getInputStream() ) );
> 
> sometimes the relevant information is in proc.getErrStream() 


Re: continuum and perforce

Posted by leahpar <ra...@free.fr>.
Index:
main/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommand.java

===================================================================

---
main/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommand.java
(revision 529895)

+++
main/java/org/apache/maven/scm/provider/perforce/command/changelog/PerforceChangeLogCommand.java
(working copy)

@@ -53,7 +53,7 @@

                                                           String
datePattern )
         throws ScmException
     {
-        if ( branch != null || StringUtils.isNotEmpty( branch.getName() ) )
+        if ( branch != null && StringUtils.isNotEmpty( branch.getName() ) )
         {
             throw new ScmException( "This SCM doesn't support branches." );
         }
-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10103235
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by leahpar <ra...@free.fr>.
just to write it somewhere.

PerforceWhereCommand
getDepotLocation( String filepath )
BufferedReader br = new BufferedReader( new InputStreamReader(
proc.getInputStream() ) );

sometimes the relevant information is in proc.getErrStream() 
-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10077330
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by leahpar <ra...@free.fr>.
>System.clearProperty doesn't exist in jdk 1.4
don't realize it ...

> Perforce isn't well supported in continuum due to a Maven-SCM issue in 
> the perforce provider (http://jira.codehaus.org/browse/SCM-292)
> When this issue will be fixed, Continuum will work well with Perforce.
jira should be in my favorite

Thanks
-- 
View this message in context: http://www.nabble.com/continuum-and-perforce-tf3603243.html#a10077092
Sent from the Continuum - Dev mailing list archive at Nabble.com.


Re: continuum and perforce

Posted by Emmanuel Venisse <em...@venisse.net>.
System.clearProperty doesn't exist in jdk 1.4

Emmanuel Venisse a écrit :
> Perforce isn't well supported in continuum due to a Maven-SCM issue in 
> the perforce provider (http://jira.codehaus.org/browse/SCM-292)
> When this issue will be fixed, Continuum will work well with Perforce.
> 
> Emmanuel
> 
> leahpar a écrit :
>> Hello world,
>>
>> 1-
>>
>> There's an issue with continuum and perforce with evenisse 512303 : 
>> class:        ContinuDefaultContinuumScm
>> method:        private ScmRepository getScmRepository( Project 
>> project, boolean
>> useCredentialsCache )
>> bad? line:    System.setProperty( 
>> "maven.scm.perforce.clientspec.name", null ); proposed line:    
>> System.clearProperty(
>> PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY);
>> because:    value of Properties cannot be null
>> 2-
>> Link to the previous issue, something else should be done here? no?
>> class:        PerforceScmProvider
>> method:     public static String getClientspecName(
>> PerforceScmProviderRepository repo, File workDir )
>> bad line:    return System.getProperty( DEFAULT_CLIENTSPEC_PROPERTY,
>> generateDefaultClientspecName( repo, workDir ) );
>>
>> Thanks
> 
> 
> 
> 


Re: continuum and perforce

Posted by Emmanuel Venisse <em...@venisse.net>.
Perforce isn't well supported in continuum due to a Maven-SCM issue in the perforce provider (http://jira.codehaus.org/browse/SCM-292)
When this issue will be fixed, Continuum will work well with Perforce.

Emmanuel

leahpar a écrit :
> Hello world,
> 
> 1-
> 
> There's an issue with continuum and perforce with evenisse 512303 : 
> class:		ContinuDefaultContinuumScm
> method:		private ScmRepository getScmRepository( Project project, boolean
> useCredentialsCache )
> bad? line:	System.setProperty( "maven.scm.perforce.clientspec.name", null ); 
> proposed line:	System.clearProperty(
> PerforceScmProvider.DEFAULT_CLIENTSPEC_PROPERTY);
> because:	value of Properties cannot be null 
> 
> 2-
> Link to the previous issue, something else should be done here? no?
> class:		PerforceScmProvider
> method: 	public static String getClientspecName(
> PerforceScmProviderRepository repo, File workDir )
> bad line:	return System.getProperty( DEFAULT_CLIENTSPEC_PROPERTY,
> generateDefaultClientspecName( repo, workDir ) );
> 
> Thanks 
>