PR: MPCHANGELOG-47
quote argument on Windows git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@179938 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb36aaf659
commit
8740c9b54a
@ -197,7 +197,12 @@ class CvsChangeLogGenerator extends AbstractChangeLogGenerator
|
||||
protected String getScmDateArgument(Date before, Date to)
|
||||
{
|
||||
SimpleDateFormat outputDate = new SimpleDateFormat("yyyy-MM-dd");
|
||||
return "-d " + outputDate.format(before) + "<" + outputDate.format(to);
|
||||
String cmd = outputDate.format(before) + "<" + outputDate.format(to);
|
||||
if ( System.getProperty( "os.name" ).startsWith( "Windows" ) )
|
||||
{
|
||||
cmd = "\"" + cmd + "\"";
|
||||
}
|
||||
return "-d " + cmd;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -205,6 +205,10 @@ public class CvsChangeLogGeneratorTest extends TestCase
|
||||
assertEquals("index " + index + ": clArgs.length", expected.length, clArgs.length);
|
||||
for (int i = 0; i < expected.length; i++)
|
||||
{
|
||||
if ( clArgs[i].startsWith( "-d \"" ) )
|
||||
{
|
||||
clArgs[i] = "-d " + clArgs[i].substring( 4, clArgs[i].length() - 1 );
|
||||
}
|
||||
assertEquals("index " + index + ": clArgs[" + i + "]", expected[i], clArgs[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.8-SNAPSHOT" date="in SVN">
|
||||
<action dev="brett" type="fix" issue="MPCHANGELOG-47">Quote argument with < in it on Windows for the CVS provider - required if using CVSNT</action>
|
||||
<action dev="brett" type="fix" issue="MPCHANGELOG-55">Fix problem parsing revisions on Linux introduced by MPCHANGELOG-29</action>
|
||||
<action dev="brett" type="fix" issue="MPCHANGELOG-63" due-to="David Jackman">Add the ability to show several sets of changes</action>
|
||||
<action dev="brett" type="fix" issue="MPCHANGELOG-23">Guess factory from connection</action>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user