You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2013/11/26 17:26:11 UTC

svn commit: r1545711 - /uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java

Author: schor
Date: Tue Nov 26 16:26:10 2013
New Revision: 1545711

URL: http://svn.apache.org/r1545711
Log:
[UIMA-3458] bypass chmod if running on Windows (as part of build/test)

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java?rev=1545711&r1=1545710&r2=1545711&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/crypto/Crypto.java Tue Nov 26 16:26:10 2013
@@ -191,6 +191,13 @@ public class Crypto implements ICrypto {
 	}
 	
 	private void chmod(String fileName, String permissions) throws CryptoException {
+	  String osName = System.getProperty("os.name");
+	  if (osName.startsWith("Windows")) {
+	    // Windows is not supported for running
+	    // For building, some tests run through this code,
+	    //   so we bypass doing the chmod on Windows environments
+	    return;
+	  }
 		try {
 			exec("chmod "+permissions+" "+fileName);
 		}