I implemented ClearCase support, but I only tested on windows. I have zero experience on Linux, so your comments are highly appreciated!
see below...
2006/1/27, Piotr Kosiorowski <
[EMAIL PROTECTED]>:
I'm not sure who should set the logger, so maybe Emmanuel can answer this?
This works on windows, but seeming that it does not on linux, we should change this. Create a JIRA issue for this.
I did not know that was possible. I would propose to have an extra flag in the clearcase-settings.xml file. Something like "useViewStorage". Please create a JIRA for this also.
Please list them all, so we know about them and the clearcase plugin can improve.
regards,
Wim
Hello,
I was trying to setup a CI server for my project using maven2 &
Continuum with ClearCase on Unix. I think I made it work finally but
found some issues with it - especially with maven-scm-clearcase. So I
will try to describe my findings here. I might be wrong as I am not that
experienced with both maven2 and ClearCase.
1) Update fails in version 1.0.beta2 and in trunk because
update command uses changelog command without setting logger on it - so
changelog command fails with NullPointerException at the beggining of
execution in:
getLogger().debug( "executing changelog command..." );
The required change is in
ClearCaseUpdateCommand.java:
protected ChangeLogCommand getChangeLogCommand()
{
return new ClearCaseChangeLogCommand();
}
should be:
protected ChangeLogCommand getChangeLogCommand()
{
ClearCaseChangeLogCommand c= new ClearCaseChangeLogCommand();
c.setLogger(getLogger());
return c;
}
I'm not sure who should set the logger, so maybe Emmanuel can answer this?
2) Checkout fails on Unix:
Lets assume it uses
/abc/def/1 as a working directory
First thing it does is it removes /abc/def/1 directory and than sets
working directory to
/abc/def/1/..
with:
command.setWorkingDirectory( new File(
workingDirectory,"..").getAbsolutePath() );
But because /abc/def/1 does not exists at this point command execution
fails (on Unix - I do not know how it works on Windows).
It should set it to
/abc/def
using
command.setWorkingDirectory( new File( workingDirectory, ".."
).getCanonicalPath() );
This change is to be introduced in ClearCaseCheckOutCommand.java .
This works on windows, but seeming that it does not on linux, we should change this. Create a JIRA issue for this.
3) I do not run ClearCase LT but I do not want to use -vws parameter for
checkout command - my environment is configured to work without it and
in fact I cannot even find a way to make it work with this parameter
from command line. In my opinion the best approach would be not to use
default view storage if one is not present in configuration file, but
skip -vws parameter in command line construction in this case. If
someone wants -vws parameter to be passed he should specify it in
config file.
I did not know that was possible. I would propose to have an extra flag in the clearcase-settings.xml file. Something like "useViewStorage". Please create a JIRA for this also.
I have some other minor issues but these ones are difficult to workaround.
Please list them all, so we know about them and the clearcase plugin can improve.
regards,
Wim
Regards
Piotr Kosiorowski