maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Arnott (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-1152) Using multiple Ant projects with Continuum and Perforce SCM - the perforce views are incorrectly created
Date Thu, 01 Feb 2007 10:19:44 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86495
] 

Bob Arnott commented on CONTINUUM-1152:
---------------------------------------

I'm seeing the same problem, I have a number of Ant based projects, stored in Perforce. Not
only does the SCM reference both projects that I have added so far, it references the entire
contents of each project every time a scheduled build happens. This means that it builds both
projects regardless of any changes made.

My P4 SCM URLs are

scm:perforce:perforce.mycompany.com:1668://depot/scratch/boba/Project1/...
scm:perforce:perforce.mycompany.com:1668://depot/scratch/boba/Project2/...

And in the changes window when viewing the results of a build on Project2 I see:

//depot/scratch/boba/Project1/libs/ant/ant-1.7.0.jar
//depot/scratch/boba/Project1/libs/ant/ant-testutil-1.7.0.jar
//depot/scratch/boba/Project1/libs/junit/junit-3.8.2.jar
...
//depot/scratch/boba/Project2/build.properties
//depot/scratch/boba/Project2/build.xml
//depot/scratch/boba/Project2/libs/Tomcat-5.5.x/catalina-ant.jar
...

Conversely when I look at the results for a build of Project1 I see:

//depot/scratch/boba/Project2/build.properties
//depot/scratch/boba/Project2/build.xml
//depot/scratch/boba/Project2/libs/Tomcat-5.5.x/catalina-ant.jar
...
//depot/scratch/boba/Project1/libs/ant/ant-1.7.0.jar
//depot/scratch/boba/Project1/libs/ant/ant-testutil-1.7.0.jar
//depot/scratch/boba/Project1/libs/junit/junit-3.8.2.jar
...

I have had problems with Perforce and CruiseControl in the past where it wouldn't detect changes
that had been made and thus wouldn't trigger a build. So I don't know if this is P4 being
a pile of steaming poo, or if it's a proper Continuum SCM issue.

> Using multiple Ant projects with Continuum and Perforce SCM - the perforce views are
incorrectly created
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CONTINUUM-1152
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1152
>             Project: Continuum
>          Issue Type: Bug
>          Components: SCM
>    Affects Versions: 1.0.3
>         Environment: Windows Server 2003
> Ant 1.6.5
> Maven 2.0.4
> Continuum 1.0.3
> JDK 1.5.0_06
>            Reporter: Joseph Heck
>
> Using multiple Ant projects with Continuum and Perforce SCM - the perforce views are
incorrectly created
> The first client created automagically works correctly.
> The second project generates a client that references the first. From the log files:
> 1052282 [Thread-3] INFO  org.apache.maven.continuum.scm.ContinuumScm  - Checking out
project: 'GUR - Crc Generator', id: '2' to 'C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2'.
> 1052282 [Thread-3] INFO  org.apache.maven.scm.manager.ScmManager  - Checkout working
directory: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2
> 1052282 [Thread-3] INFO  org.apache.maven.scm.manager.ScmManager  - Executing: p4 client
-i
> 1052282 [Thread-3] DEBUG org.apache.maven.scm.manager.ScmManager  - Updating clientspec:
> Client: webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1
> Root: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2
> Owner: webguest
> View:
> 	//p4-tss/gur/Development/CrcGenerator/1.0/... //webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1/...
> Description:
> 	Created by maven-scm-provider-perforce
> This client that has been generated should be references working-directory\2/... not
1
> Adding a third project shows that it also references the first "client":
> 1080922 [Thread-3] INFO  org.apache.maven.continuum.scm.ContinuumScm  - Checking out
project: 'GUR - Crc Local', id: '3' to 'C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3'.
> 1080922 [Thread-3] INFO  org.apache.maven.scm.manager.ScmManager  - Checkout working
directory: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3
> 1080922 [Thread-3] INFO  org.apache.maven.scm.manager.ScmManager  - Executing: p4 client
-i
> 1080922 [Thread-3] DEBUG org.apache.maven.scm.manager.ScmManager  - Updating clientspec:
> Client: webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1
> Root: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3
> Owner: webguest
> View:
> 	//p4-tss/gur/Development/CrcLocalApi/1.0/... //webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1/...
> Description:
> 	Created by maven-scm-provider-perforce
> I haven't yet dug into the code to determine where the client view gets set, but that
appears to be where the mistake is being made.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message