maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r449604 - /maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java
Date Mon, 25 Sep 2006 08:24:49 GMT
Author: evenisse
Date: Mon Sep 25 01:24:49 2006
New Revision: 449604

URL: http://svn.apache.org/viewvc?view=rev&rev=449604
Log:
[SCM-187] Fix bad dates on linux
Submitted by: Fabrice BELLINGARD

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java?view=diff&rev=449604&r1=449603&r2=449604
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/changelog/AbstractCvsChangeLogCommand.java
Mon Sep 25 01:24:49 2006
@@ -79,7 +79,16 @@
 
             cl.createArgument().setValue( "-d" );
 
-            cl.createArgument().setValue( "\"" + dateRange + "\"" );
+            // There's a difference between UNIX-like OS and Windows
+            // See http://jira.codehaus.org/browse/SCM-187
+            if ( System.getProperty( "os.name" ).toLowerCase().indexOf( "windows" ) >
-1 )
+            {
+                cl.createArgument().setValue( "\"" + dateRange + "\"" );
+            }
+            else
+            {
+                cl.createArgument().setValue( dateRange );
+            }
         }
 
         if ( branch != null )



Mime
View raw message