100+ results results for 'if version startswith windows 9' (300 ms)
6CUR_OS = _curos() 7IS_WIN = CUR_OS in ['Windows', 'cli'] 8IS_NIX = (not IS_WIN) and any( 8IS_NIX = (not IS_WIN) and any( 9 CUR_OS.startswith(i) for i in 10 ['CYGWIN', 'MSYS', 'Linux', 'Darwin', 'SunOS', 57 except ImportError: 58 try: # older Python versions with backported ordereddict lib 59 from ordereddict import OrderedDict as _OrderedDict 59 from ordereddict import OrderedDict as _OrderedDict 60 except ImportError: # older Python versions without ordereddict lib 61 # Py2.6,3.0 compat, from PEP 372 239 try: 240 return encoding.lower().startswith('utf-') or ('U8' == encoding) 241 except:Path.java https://github.com/hyunjung/hadoop-common.git | Java | 350 lines
44 static final boolean WINDOWS 45 = System.getProperty("os.name").startsWith("Windows"); 46 100 101 // add a slash in front of paths with Windows drive letters 102 if (hasWindowsDrive(pathString, false)) 120 // parse uri authority, if any 121 if (pathString.startsWith("//", start) && 122 (pathString.length()-start > 2)) { // has authority 162 163 // trim trailing slash from non-root path (ignoring windows drive) 164 int minLength = hasWindowsDrive(path, true) ? 4 : 1; 256 if (path.indexOf('/')==0 && 257 hasWindowsDrive(path, true) && // has windows drive 258 uri.getScheme() == null && // but no schemeterminalwriter.py https://gitlab.com/phongphans61/machine-learning-tictactoe | Python | 423 lines
9import py 10py3k = sys.version_info[0] >= 3 11py33 = sys.version_info >= (3, 3) 54 55 # XXX the windows getdimensions may be bogus, let's sanify a bit 56 if width < 40: 139 and os.environ.get('TERM') != 'dumb' \ 140 and not (sys.platform.startswith('java') and os._name == 'nt') 141 184 185 .. versionadded:: 1.5.0 186 194 195 .. versionadded:: 1.6.0 196ResolverConfig.java https://bitbucket.org/Trugath/xabber.git | Java | 540 lines
20 * <LI>On Windows, ipconfig/winipcfg is called and its output parsed. This 21 * may fail for non-English versions on Windows. 22 * <LI>"localhost" is used as the nameserver, and the search path is empty. 54 String vendor = System.getProperty("java.vendor"); 55 if (OS.indexOf("Windows") != -1) { 56 if (OS.indexOf("95") != -1 || 233 while ((line = br.readLine()) != null) { 234 if (line.startsWith("nameserver")) { 235 StringTokenizer st = new StringTokenizer(line); 238 } 239 else if (line.startsWith("domain")) { 240 StringTokenizer st = new StringTokenizer(line); 246 } 247 else if (line.startsWith("search")) { 248 if (!lsearch.isEmpty())MbrolaSynthesizer.java https://bitbucket.org/marytts/marytts.git | Java | 284 lines
8 * it under the terms of the GNU Lesser General Public License as published by 9 * the Free Software Foundation, version 3 of the License. 10 * 81 String mbrolaCallerProperty; 82 if (System.getProperty("os.name").startsWith("Windows") && false) { // let's try without this, use cygwin binary instead... 83 mbrolaCallerProperty = "mbrolasynthesizer.mbrolacaller.class.win32";FileUtil.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 468 lines
3// AUTHOR : Manfred Duchrow 4// VERSION : 1.1 - 14/03/2003 5// HISTORY : 26 * @author Manfred Duchrow 27 * @version 1.1 28 */ 355 * understands. That is all elements are separated by a forward slash rather 356 * than back slashes as on Windows systems. 357 * 389 filename = this.javaFilename(filename) ; 390 startedFromRoot = filename.startsWith( "/" ) ; 391 nameElements = this.str().parts( filename, "/" ) ;SymLinks.java https://github.com/ikeji/openjdk7-jdk.git | Java | 374 lines
5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 282 // on Windows we test with the DOS hidden attribute set 283 if (System.getProperty("os.name").startsWith("Windows")) { 284 DosFileAttributeView view = FilesApplicationIntegrationSpec.groovy https://github.com/andrewhj-mn/gradle.git | Groovy | 447 lines
3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 25 26import static org.hamcrest.Matchers.startsWith 27 63 builder.executable "application" 64 if (OperatingSystem.current().windows) { 65 builder.environment('APPLICATION_OPTS', '-DtestValue=value -DtestValue2="some value" -DtestValue3="some value"') 292 then: 293 result.assertThatCause(startsWith("The specified installation directory '${file('build')}' is neither empty nor does it contain an installation")) 294 where: 310 generatedWindowsStartScript.exists() 311 assertLineSeparators(generatedWindowsStartScript, TextUtil.windowsLineSeparator, 90); 312OutputWriter.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 296 lines
8 * under the terms of the GNU General Public License as published by the Free 9 * Software Foundation; either version 2 of the License, or (at your option) 10 * any later version. 113 String os = System.getProperty("os.name").toLowerCase(); 114 if (os.startsWith("windows") || 115 os.startsWith("mac os")) 251 // Go over the specified input entries and write their processed 252 // versions. 253 new InputReader(configuration).readInput(" Copying resources from program ",RegistryUtil.cs https://gitlab.com/nerdymishka/kweh | C# | 320 lines
27 @"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 28 @"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall", 29 @"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 29 @"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 30 @"HKCU:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall", 31 $"HKU:\\{sid}\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall", 31 $"HKU:\\{sid}\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall", 32 $"HKU:\\{sid}\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall", 33 }; 77 @"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 78 @"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall", 79 @"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", 200 case "userprofile": 201 subKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" + sid); 202 if (subKey == null)Gen.java https://github.com/ikeji/openjdk7-langtools.git | Java | 384 lines
5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 87 static private final boolean isWindows = 88 System.getProperty("os.name").startsWith("Windows"); 89 269 // Visual C++ supports the i64 suffix, not LL. 270 if (isWindows) 271 constString = value.toString() + "i64";juce_PluginHostType.h https://github.com/plasm-language/pyplasm.git | C Header | 247 lines
7 Permission is granted to use this software under the terms of either: 8 a) the GPL v2 (or any later version) 9 b) the Affero GPL v3 201 202 #elif JUCE_WINDOWS 203 if (hostFilename.containsIgnoreCase ("Live 6.")) return AbletonLive6; 230 if (hostFilename.containsIgnoreCase ("rm-host")) return MuseReceptorGeneric; 231 if (hostFilename.startsWith ("FL")) return FruityLoops; 232 if (hostFilename.contains ("ilbridge.")) return FruityLoops; 236 if (hostPath.containsIgnoreCase ("Merging Technologies")) return MergingPyramix; 237 if (hostFilename.startsWithIgnoreCase ("Sam")) return MagixSamplitude; 238GetBatchPoolCommandTests.cs https://gitlab.com/jslee1/azure-powershell | C# | 233 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 18using Microsoft.Rest.Azure; 19using Microsoft.WindowsAzure.Commands.ScenarioTest; 20using Moq; 31{ 32 public class GetBatchPoolCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase 33 { 122 cmdlet.Id = null; 123 cmdlet.Filter = "startswith(id,'test')"; 124 cmdlet.Select = "id,state";NativeLibraryLoader.java https://gitlab.com/taichu/netty | Java | 346 lines
4 * The Netty Project licenses this file to you under the Apache License, 5 * version 2.0 (the "License"); you may not use this file except in compliance 6 * with the License. You may obtain a copy of the License at: 84 // This shouldn't happen, but just in case .. 85 if (isWindows()) { 86 f = toDirectory(System.getenv("TEMP")); 117 // Last resort. 118 if (isWindows()) { 119 f = new File("C:\\Windows\\Temp"); 148 private static boolean isWindows() { 149 return OSNAME.startsWith("windows"); 150 } 152 private static boolean isOSX() { 153 return OSNAME.startsWith("macosx") || OSNAME.startsWith("osx"); 154 }GetBatchTaskCommandTests.cs https://gitlab.com/jslee1/azure-powershell | C# | 271 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 18using Microsoft.Rest.Azure; 19using Microsoft.WindowsAzure.Commands.ScenarioTest; 20using Moq; 155 cmdlet.Id = null; 156 cmdlet.Filter = "startswith(id,'test')"; 157 cmdlet.Select = "id,state";history.py https://gitlab.com/gregtyka/frankenserver | Python | 530 lines
5 6- `GNU Readline`_, which is built into versions of Python on the Mac 7 and Unix systems 7 and Unix systems 8- `pyreadline`_, which many people use on Windows systems 9- A dummy fallback history implementation that does nothing, for when readline 65 try: 66 _have_pyreadline = readline.rl.__module__.startswith('pyreadline.') 67 except AttributeError:MavenArtifactRepository.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 408 lines
7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 166 167 public List<String> findVersions( Artifact artifact ) 168 { 243 // special case: if omitted // on protocol, keep path as is 244 if ( retValue.startsWith( "//" ) ) 245 { 249 { 250 // special case: if there is a windows drive letter, then keep the original return value 251 retValue = retValue.charAt( 0 ) + ":" + retValue.substring( 2 ); 261 262 // special case: if there is a windows drive letter, then keep the original return value 263 if ( retValue.length() >= 2 && ( retValue.charAt( 1 ) == '|' || retValue.charAt( 1 ) == ':' ) )SarifDiagnostics.cpp https://gitlab.com/williamwp/riscv-rv32x-llvm | C++ | 349 lines
12 13#include "clang/Basic/Version.h" 14#include "clang/Lex/Preprocessor.h" 76 StringRef Root = sys::path::root_name(Filename); 77 if (Root.startswith("//")) { 78 // There is an authority, so add it to the URI. 89 std::for_each(++Iter, End, [&Ret](StringRef Component) { 90 // For reasons unknown to me, we may get a backslash with Windows native 91 // paths for the initial backslash following the drive component, which 234 {"language", "en-US"}, 235 {"version", getClangFullVersion()}}; 236} 345 "http://json.schemastore.org/sarif-2.0.0-csd.2.beta.2018-11-28"}, 346 {"version", "2.0.0-csd.2.beta.2018-11-28"}, 347 {"runs", json::Array{createRun(Diags)}}};TestDiskError.java https://github.com/RS1999ent/hadoop-hdfs.git | Java | 197 lines
5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 73 public void testShutdown() throws Exception { 74 if (System.getProperty("os.name").startsWith("Windows")) { 75 /** 77 * that does not have write permissions for the user. Apparently it is 78 * not the case on Windows (at least under Cygwin), and possibly AIX. 79 * This is disabled on Windows.Configuration.cs https://gitlab.com/minaz922/subtitleedit | C# | 264 lines
169 Instance._dataDir = BaseDirectory; 170 System.Windows.Forms.MessageBox.Show("Please re-install Subtitle Edit (installer version)"); 171 System.Windows.Forms.Application.ExitThread(); 174 } 175 else if (BaseDirectory.ToLower().StartsWith(pf.ToLower()) && Environment.OSVersion.Version.Major >= 6 ) // 6 == Vista/Win2008Server/Win7 176 { // windows vista and newer does not like programs writing to PF (nor does WinXp with non admin...) 185 Instance._dataDir = BaseDirectory; 186 System.Windows.Forms.MessageBox.Show("Please do not install portable version in 'Program Files' folder."); 187 System.Windows.Forms.Application.ExitThread(); 202 string installerPath = null; 203 var key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SubtitleEdit_is1"); 204 if (key != null) 211 { 212 key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SubtitleEdit_is1"); 213 if (key != null)TypeInstanceDialog.java https://gitlab.com/Manouchehri/binnavi | Java | 263 lines
3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 18import com.google.common.base.Preconditions; 19import com.google.security.zynamics.binnavi.Gui.GraphWindows.types.TypeComboBox; 20import com.google.security.zynamics.binnavi.Gui.GraphWindows.types.TypeListModel; 47 48 private static final long serialVersionUID = -7912640983889588677L; 49 private JTextField instanceName; 76 boolean hex = false; 77 if (textFieldString.startsWith("0x")) { 78 textFieldString = textFieldString.substring(2);main.cpp https://bitbucket.org/jpe/experimental-shiboken.git | C++ | 448 lines
172 if (!apiVersions.isEmpty()) 173 args["api-version"] = apiVersions.join("|"); 174 return true; 259 generalOptions.insert("license-file=<license-file>", "File used for copyright headers of generated files"); 260 generalOptions.insert("version", "Output version information and exit"); 261 generalOptions.insert("generator-set=<\"generator module\">", "generator-set to be used. e.g. qtdoc"); 261 generalOptions.insert("generator-set=<\"generator module\">", "generator-set to be used. e.g. qtdoc"); 262 generalOptions.insert("api-version=<\"package mask\">,<\"version\">", "Specify the supported api version used to generate the bindings"); 263 generalOptions.insert("drop-type-entries=\"<TypeEntry0>[;TypeEntry1;...]\"", "Semicolon separated list of type system entries (classes, namespaces, global functions and enums) to be dropped from generation."); 375 if (argsHandler.argExists("api-version")) { 376 QStringList versions = argsHandler.removeArg("api-version").split("|"); 377 foreach (QString fullVersion, versions) { 382 version = parts.last(); 383 extractor.setApiVersion(package, version.toAscii()); 384 }FileSystemHelper.cs https://gitlab.com/jslee1/azure-powershell | C# | 321 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 17using System.IO; 18using Microsoft.WindowsAzure.Commands.Common; 19using Microsoft.WindowsAzure.Commands.Utilities.CloudService; 19using Microsoft.WindowsAzure.Commands.Utilities.CloudService; 20using Microsoft.WindowsAzure.Commands.Utilities.Common; 21using Microsoft.Azure.Commands.Common.Authentication; 24 25namespace Microsoft.WindowsAzure.Commands.Test.Utilities.Common 26{ 191 Debug.Assert(!string.IsNullOrEmpty(fullPath)); 192 Debug.Assert(fullPath.StartsWith(RootPath, StringComparison.OrdinalIgnoreCase)); 193 return fullPath.Substring(RootPath.Length, fullPath.Length - RootPath.Length);makemessages.py https://github.com/andrewxhill/MOL.git | Python | 321 lines
32 for i, ext in enumerate(ext_list): 33 if not ext.startswith('.'): 34 ext_list[i] = '.%s' % ext_list[i] 42 """ 43 Friendly wrapper around Popen for Windows 44 """ 49 """ 50 A version of os.walk that can follow symlinks for Python < 2.6 51 """ 151 152 # We require gettext version 0.15 or newer. 153 output = _popen('xgettext --version')[0] 155 if match: 156 xversion = (int(match.group('major')), int(match.group('minor'))) 157 if xversion < (0, 15):_htmlparser.py https://bitbucket.org/bendikro/deluge-yarss-plugin.git | Python | 350 lines
30# strict=True works well on Python 3.2.2. 31major, minor, release = sys.version_info[:3] 32CONSTRUCTOR_TAKES_STRICT = major == 3 and minor == 2 and release >= 3 134 # XXX workaround for a bug in HTMLParser. Remove this once 135 # it's fixed in all supported versions. 136 # http://bugs.python.org/issue13633 136 # http://bugs.python.org/issue13633 137 if name.startswith('x'): 138 real_name = int(name.lstrip('x'), 16) 138 real_name = int(name.lstrip('x'), 16) 139 elif name.startswith('X'): 140 real_name = int(name.lstrip('X'), 16) 147 # code points, but sometimes they reference code points in 148 # some other encoding (ahem, Windows-1252). E.g. “ 149 # instead of É for LEFT DOUBLE QUOTATION MARK. ThisNewAzureDeployment.cs https://gitlab.com/jslee1/azure-powershell | C# | 284 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 19using Microsoft.Azure.Commands.Common.Authentication.Models; 20using Microsoft.WindowsAzure.Commands.Common; 21using Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions; 21using Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions; 22using Microsoft.WindowsAzure.Commands.ServiceManagement.Helpers; 23using Microsoft.WindowsAzure.Commands.ServiceManagement.Properties; 23using Microsoft.WindowsAzure.Commands.ServiceManagement.Properties; 24using Microsoft.WindowsAzure.Commands.Utilities.Common; 25using Microsoft.WindowsAzure.Management.Compute.Models; 64 [Parameter(Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Deployment slot [Staging | Production].")] 65 [ValidateSet(Microsoft.WindowsAzure.Commands.ServiceManagement.Model.DeploymentSlotType.Staging, Microsoft.WindowsAzure.Commands.ServiceManagement.Model.DeploymentSlotType.Production, IgnoreCase = true)] 66 public string SlotCGI.java https://github.com/dereke/browsermob-proxy.git | Java | 378 lines
45 * commands passed to exec. This can be used on systems that need assistance 46 * to execute a particular file type. For example on windows this can be set 47 * to "perl" so that perl scripts are executed. 55 * 56 * @version $Revision: 1.27 $ 57 * @author Julian Gosnell 126 String n= (String)e.nextElement(); 127 if (n != null && n.startsWith("ENV_")) 128 _env.set(n.substring(4),getInitParameter(n)); 198 199 // these ones are from "The WWW Common Gateway Interface Version 1.1" 200 // look at : http://Web.Golux.Com/coar/cgi/draft-coar-cgi-v11-03-clean.html#6.1.1 308 // See http://CGI-Spec.Golux.Com/draft-coar-cgi-v11-03-clean.html#7.2.1.2 309 if (!redirect.startsWith("http:/")&&!redirect.startsWith("https:/")) 310 res.sendRedirect(redirect);ResourcesExtensions.cs https://gitlab.com/jslee1/azure-powershell | C# | 268 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 26using Microsoft.Azure.Management.Resources.Models; 27using Microsoft.WindowsAzure.Commands.Utilities.Common; 28using Newtonsoft.Json; 56 PropertiesText = resource.Properties, 57 Tags = TagsConversionHelper.CreateTagHashtable(resource.Tags), 58 Permissions = minimal ? null : client.GetResourcePermissions(identifier), 82 result.AppendLine(string.Format("{0, -15}: {1}", "Uri", templateLink.Uri)); 83 result.AppendLine(string.Format("{0, -15}: {1}", "ContentVersion", templateLink.ContentVersion)); 84 155 { 156 PSTagValuePair tagValuePair = TagsConversionHelper.Create(tag); 157 if (tagValuePair != null)view.jsp https://github.com/l15k4/liferay-plugins.git | JavaServer Pages | 294 lines
6 * the terms of the GNU Lesser General Public License as published by the Free 7 * Software Foundation; either version 2.1 of the License, or (at your option) 8 * any later version. 45 46portletURL.setWindowState(WindowState.NORMAL); 47%> 84 85 <c:if test="<%= !StringUtil.startsWith(user2.getLastName(), lastNameAnchor) %>"> 86 95 96 <liferay-portlet:renderURL windowState="<%= LiferayWindowState.EXCLUSIVE.toString() %>" var="viewSummaryURL"> 97 <portlet:param name="jspPage" value="/contacts_center/view_user.jsp" />Win32PrintServiceLookup.java https://github.com/ikeji/openjdk7-jdk.git | Java | 343 lines
5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 90 // See "OpenPrinter" for more info. 91 if (osName != null && osName.startsWith("Windows 98")) { 92 return; 119 if (printers == null) { 120 // In Windows it is safe to assume no default if printers == null so we 121 // don't get the default.setup.py https://github.com/signalnine/cr48.git | Python | 391 lines
7import sys 8if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0, 'final'): 9 raise SystemExit("Mercurial requires Python 2.4 or later.") 184 from mercurial import __version__ 185 version = __version__.version 186except ImportError: 367if os.name == 'nt': 368 # Windows binary file versions for exe/dll files must have the 369 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535 369 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535 370 setupversion = version.split('+', 1)[0] 371 372setup(name='mercurial', 373 version=setupversion, 374 author='Matt Mackall',Screenshot.py https://gitlab.com/freedmpure/robotframework | Python | 328 lines
2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 16import os 17if sys.platform.startswith('java'): 18 from java.awt import Toolkit, Robot, Rectangle 22 import clr 23 clr.AddReference('System.Windows.Forms') 24 clr.AddReference('System.Drawing') 43from robot.libraries.BuiltIn import BuiltIn 44from robot.version import get_version 45 85 ROBOT_LIBRARY_SCOPE = 'TEST SUITE' 86 ROBOT_LIBRARY_VERSION = get_version() 87setup.py https://github.com/RoDaniel/featurehouse.git | Python | 201 lines
2You will need to have freetype, libpng and zlib installed to comile 3matplotlib, inlcuding the *-devel versions of these libraries if you 4are using a package manager like RPM or debian. 16import sys 17major, minor1, minor2, s, tmp = sys.version_info 18if major==2 and minor1<4 or major<2: 49for line in file('lib/matplotlib/__init__.py').readlines(): 50 if (line.startswith('__version__')): 51 exec(line.strip()) 57if sys.platform == 'win32': 58 print_status('Windows version', sys.getwindowsversion()) 59print_raw("") 181distrib = setup(name="matplotlib", 182 version= __version__, 183 description = "Python plotting package",conf.py https://github.com/thurday/pyzmq.git | Python | 218 lines
56intersphinx_mapping = {'python': ('http://docs.python.org/', None)} 57# The version info for the project you're documenting, acts as replacement for 58# |version| and |release|, also used in various other places throughout the 61def extract_version(): 62 """extract pyzmq version from core/version.pyx, so it's not multiply defined""" 63 with open(os.path.join('..', '..', 'zmq', 'core', 'version.pyx')) as f: 64 line = f.readline() 65 while not line.startswith("__version__"): 66 line = f.readline() 67 exec(line) 68 return __version__ 69 69 70vs = extract_version() 71# The short X.Y version.register.py https://gitlab.com/Ivy001/pants | Python | 227 lines
17from pants.subsystem.subsystem import Subsystem 18from pants.version import PANTS_SEMVER, VERSION 19 56 name=name, 57 version=VERSION, 58 description=description, 110 """ 111 suffix = version.public[len(version.base_version):] 112 components = version.base_version.split('.') + [suffix] 119 else: 120 raise ValueError('Unparseable pants version number: {}'.format(version)) 121 121 122 def notes_for_version(self, version): 123 """Given the parsed Version of pants, return its release notes.Strings.php https://bitbucket.org/iiic/iszp.git | PHP | 580 lines
61 } 62 if (PHP_VERSION_ID >= 50400) { 63 ini_set('mbstring.substitute_character', 'none'); 89 */ 90 public static function startsWith($haystack, $needle) 91 { 174 if (ICONV_IMPL === 'glibc') { 175 $s = @iconv('UTF-8', 'WINDOWS-1250//TRANSLIT', $s); // intentionally @ 176 $s = strtr($s, "\xa5\xa3\xbc\x8c\xa7\x8a\xaa\x8d\x8f\x8e\xaf\xb9\xb3\xbe\x9c\x9a\xba\x9d\x9f\x9e"configuration.py https://github.com/changm/tessa.git | Python | 378 lines
4# 5# The contents of this file are subject to the Mozilla Public License Version 6# 1.1 (the "License"); you may not use this file except in compliance with 29# under the terms of either the GPL or the LGPL, and not to allow others to 30# use your version of this file under the terms of the MPL, indicate your 31# decision by deleting the provisions above and replace them with the notice 71def _configSub(ostest, cputest): 72 if ostest.startswith('win') or ostest.startswith('cygwin'): 73 os = 'windows' 73 os = 'windows' 74 elif ostest.startswith('darwin') or ostest.startswith('apple-darwin'): 75 os = 'darwin' 75 os = 'darwin' 76 elif ostest.startswith('linux') or ostest.startswith('pc-linux'): 77 os = 'linux'TextureBundleXBT.cpp https://gitlab.com/nghia-n-v2007/xbmc | C++ | 318 lines
6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2, or (at your option) 8 * any later version. 34 35#ifdef TARGET_WINDOWS 36#pragma comment(lib,"liblzo2.lib") 126 std::string path = files[i].GetPath(); 127 if (StringUtils::StartsWithNoCase(path, testPath)) 128 textures.push_back(path);site.py https://github.com/pombredanne/google-refine.git | Python | 427 lines
6 7In earlier versions of Python (up to 1.5a3), scripts or modules that 8needed to use site-specific modules would place ``import site'' 15sys.exec_prefix (if different) and appends 16lib/python<version>/site-packages as well as lib/site-python. 17On other platforms (such as Windows), it tries each of the 67 dir = os.path.join(*paths) 68 if dir == '__classpath__' or dir.startswith('__pyclasspath__'): 69 return dir, dir 106 from distutils.util import get_platform 107 s = "build/lib.%s-%.3s" % (get_platform(), sys.version) 108 s = os.path.join(os.path.dirname(sys.path[-1]), s) 137 for line in f: 138 if line.startswith("#"): 139 continuegitindex.h https://gitlab.com/zhaohaiyi/tortoisegit | C Header | 489 lines
1// TortoiseGit - a Windows shell extension for easy version control 2 6// modify it under the terms of the GNU General Public License 7// as published by the Free Software Foundation; either version 2 8// of the License, or (at your option) any later version. 109 { 110 if (CStringUtils::StartsWith((*it).first, thePath)) 111 toRemove.push_back((*it).first); 140 141 int IsUnderVersionControl(const CString &gitdir, 142 CString path, 143 bool isDir, 144 bool *isVersion, 145 bool isLoadUpdateIndex=true); 257 bool CheckHeadAndUpdate(const CString &gitdir, bool readTree = true); 258 int IsUnderVersionControl(const CString& gitdir, CString path, bool isDir, bool* isVersion); 259};template_verifier.py https://github.com/balp/NaCl-main.git | Python | 311 lines
12License as published by the Free Software Foundation; 13version 2.1 of the License only. 14 76 stderr separately(to get around "killed by signal 15" getting 77 included as part of the file). Also, works on Windows.""" 78 (input, out, err) = os.popen3(command, 't') 136def fetch(url): 137 if url.startswith('file://'): 138 # just open the file directly because urllib is dumb about these things 175 # We can't rename atomically on top of an existing file on 176 # Windows. Unlinking the existing file will fail if the 177 # file is being held open by a process, but there's onlyplcfactory.py https://gitlab.com/gregor_ulm/plc_factory | Python | 416 lines
16__status__ = "Production" 17__env__ = "Python version 2.7" 18 133 for i in range(len(lines)): 134 if lines[i].startswith(tag): 135 tagPos = i 176 177# ensures that filenames are legal in Windows 178# (OSX automatically replaces illegal characters) 343 line = line.rstrip() 344 if not line.startswith("#COUNTER") \ 345 and not line.startswith("#FILENAME"):PortletUrlHelper.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 298 lines
134 url.setPortletMode(getPortletMode(request, portletMode)); 135 url.setWindowState(getWindowState(request, windowState)); 136 } catch (Exception e) { 169 if(StringUtils.isNotEmpty(modeNamespace)) { 170 if(!modeNamespace.startsWith("/")) { 171 sb.append("/"); 249 * @param portletReq The RenderRequest. 250 * @param windowState The WindowState as a String. 251 * @return The WindowState that mathces the <tt>windowState</tt> String, or if 253 */ 254 private static WindowState getWindowState(RenderRequest portletReq, 255 String windowState) { 255 String windowState) { 256 WindowState state = portletReq.getWindowState(); 257 if (StringUtils.isNotEmpty(windowState)) {MorePaths.java https://gitlab.com/smartether/buck | Java | 304 lines
3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may 5 * not use this file except in compliance with the License. You may obtain 55 56 public static String pathWithWindowsSeparators(Path path) { 57 return path.toString().replace('/', '\\'); 64 public static String pathWithPlatformSeparators(Path path) { 65 if (Platform.detect() == Platform.WINDOWS) { 66 return pathWithWindowsSeparators(path); 122 123 // On Windows, if path1 is "" then Path.relativize returns ../path2 instead of path2 or ./path2 124 if (EMPTY_PATH.equals(path1)) { 171 if (input.isAbsolute()) { 172 return input.normalize().startsWith(normalizedRoot); 173 } else {juce_ApplicationBase.cpp https://gitlab.com/bill-auger/JUCE | C++ | 308 lines
7 Permission is granted to use this software under the terms of either: 8 a) the GPL v2 (or any later version) 9 b) the Affero GPL v3 109 110 if (message.startsWith (appName + "/")) 111 app->anotherInstanceStarted (message.substring (appName.length() + 1)); 140 141#if JUCE_WINDOWS && ! defined (_CONSOLE) 142 173 174#if JUCE_WINDOWS 175 const char* const* juce_argv = nullptr; 259 260 #if JUCE_WINDOWS && JUCE_STANDALONE_APPLICATION && (! defined (_CONSOLE)) && (! JUCE_MINGW) 261 if (AttachConsole (ATTACH_PARENT_PROCESS) != 0)itkBase.py https://github.com/chrismullins/ITK.git | Python | 256 lines
4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 59 for k, v in this_module.__dict__.items(): 60 if not (k.startswith('_') or k == 'swig'): 61 namespace[k] = v 86 try: 87 # for a windows tree 88 execfile(os.path.join(path, '..', 'Configuration', conf), data) 134 for k, v in module.__dict__.items(): 135 if not k.startswith('__'): 136 setattr(this_module.swig, k, v) 136 setattr(this_module.swig, k, v) 137 if namespace is not None and not k.startswith('__'): 138 setattr(swig, k, v)func_inspect.py https://gitlab.com/sirarredondo/Plasmid_Assembly | Python | 303 lines
48 line_no = 1 49 if source_file.startswith('<doctest '): 50 source_file, line_no = re.match( 76def _clean_win_chars(string): 77 """Windows cannot encode some characters in filename.""" 78 import urllib 101 If true, substitute special characters using urllib.quote 102 This is useful in Windows, as it cannot encode some filenames 103 """ 124 parts = filename.split(os.sep) 125 if parts[-1].startswith('<ipython-input'): 126 # function is defined in an IPython session. The filename 152 if os.name == 'nt' and win_characters: 153 # Stupid windows can't encode certain characters in filenames 154 name = _clean_win_chars(name)boot.py https://github.com/aruder77/applause.git | Python | 177 lines
15 except ImportError: 16 for k in [k for k in sys.modules if k.startswith('google')]: 17 del sys.modules[k] 78 names that are available. 79 This version works for django deployments which are file based or 80 contained in a ZIP (in sys.path). 122 # Also we add the compiler/parser module back and enable https connections 123 # (seem to be broken on Windows because the _ssl module is disallowed). 124 if not have_appserver:Start.java https://github.com/mahogny/Endrov.git | Java | 531 lines
69 platformExt.add("mac"); 70 else if(OS.startsWith("windows")) 71 { 81 platformExt.add("linux"); 82 else if(OS.startsWith("sunos")) 83 platformExt.add("solaris"); 200 { 201 if(line.startsWith("j:")) 202 addJar(v,line.substring(2)); //j: 259 //Print current version. need to be put in starter jar to work 260 System.out.println("Endrov "+EvBuild.version); 261 System.exit(0); 526Windows NT 527Windows XP*/ 528appdirs.py https://gitlab.com/pooja043/Globus_Docker_4 | Python | 346 lines
14__version_info__ = (1, 2, 0) 15__version__ = '.'.join(map(str, __version_info__)) 16 87 it is the owning company name. 88 "version" is an optional version path element to append to the 89 path. You might want to use this if you want multiple versions 234 return user_cache_dir(self.appname, self.appauthor, 235 version=self.version) 236 @property 238 return user_log_dir(self.appname, self.appauthor, 239 version=self.version) 240 259 key = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, 260 r"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders") 261 dir, type = _winreg.QueryValueEx(key, shell_folder_name)HuPuWebView.java https://gitlab.com/gzsll/TLint | Java | 323 lines
84 settings.setAllowFileAccess(true); 85 settings.setSupportMultipleWindows(false); 86 settings.setJavaScriptCanOpenWindowsAutomatically(true); 89 settings.setUseWideViewPort(true); 90 if (Build.VERSION.SDK_INT > 6) { 91 settings.setAppCacheEnabled(true); 129 String scheme = uri.getScheme(); 130 if (url.startsWith("hupu") || url.startsWith("kanqiu")) { 131 if (scheme != null) { 210 jSONObject.put("device", Build.PRODUCT); 211 jSONObject.put("osVer", Build.VERSION.RELEASE); 212 } catch (JSONException e) {ico_tools.py https://github.com/chromium/chromium.git | Python | 385 lines
22 """Determines whether a sequence of bytes is a PNG.""" 23 return png_data.startswith(b'\x89PNG\r\n\x1a\n') 24 34 Returns: 35 The raw bytes of a PNG file, an optimized version of the input. 36 """ 57 Returns: 58 The raw bytes of a PNG file, an optimized version of the input. 59 """ 74def BytesPerRowBMP(width, bpp): 75 """Computes the number of bytes per row in a Windows BMP image.""" 76 # width * bpp / 8, rounded up to the nearest multiple of 4. 121 Returns: 122 The raw bytes of a PNG file, an optimized version of the input. 123 """Helpers.cs https://gitlab.com/jslee1/azure-powershell | C# | 199 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 17using Microsoft.Azure.Management.Batch.Models; 18using Microsoft.WindowsAzure.Commands.Utilities.Common; 19using System; 141 { 142 if (tagValuePair.Name.StartsWith(ExcludedTagPrefix)) 143 {gestures.py https://bitbucket.org/beqa/nvdadependencyvirtualenvironment.git | Python | 310 lines
2 3#Version 0.0.1 4 7 8#Released under the terms of the wxWindows License. 9 79#Add "Ends With": AddGestureEndsWith(self, gesture, action, args) 80#Add "Starts With": AddGestuteStartsWith(self, gesture, action, args) 81runUnitTests.py https://github.com/mogaal/editra.git | Python | 354 lines
5## Copyright: (c) 2008 Cody Precord <staff@editra.org> # 6## License: wxWindows License # 7################################################################################ 47 for arg in args: 48 if arg.startswith("-") and not arg.startswith("--"): 49 # handle the case where opt and arg are conjoined 89 for _name in [ n[:-3] for n in os.listdir(self.rootdir) 90 if n.startswith("test") and n.endswith(".py") ]: 91 _module_names[ _name.lower() ] = _name 141 # TODO: pull logic into wxtest 142 # or use the version of unittest instead 143 if sys.version_info[0:2] >= (2,5): 290 output("Platform [sys.platform]: %s" % sys.platform) 291 output("Python Version [sys.version]: %s" % sys.version) 292 output("wx Version [wx.version()]: %s" % wx.version())TestDataNodeVolumeFailureReporting.java https://github.com/RS1999ent/hadoop-hdfs.git | Java | 278 lines
5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 102 public void testSuccessiveVolumeFailures() throws Exception { 103 assumeTrue(!System.getProperty("os.name").startsWith("Windows")); 104 246 public void testVolFailureStatsPreservedOnNNRestart() throws Exception { 247 assumeTrue(!System.getProperty("os.name").startsWith("Windows")); 248config.py https://gitlab.com/gupta.d.gaurav/paramiko | Python | 287 lines
7# terms of the GNU Lesser General Public License as published by the Free 8# Software Foundation; either version 2.1 of the License, or (at your option) 9# any later version. 38 convenience to posix users (since the OpenSSH format is a de-facto 39 standard on posix) but should work fine on Windows too. 40 40 41 .. versionadded:: 1.6 42 """ 62 line = line.strip() 63 if not line or line.startswith('#'): 64 continue 81 else: 82 if value.startswith('"') and value.endswith('"'): 83 value = value[1:-1]Runtime.cs https://github.com/jlangridge/monodevelop.git | C# | 319 lines
103 foreach (AddinRepository rep in reps.GetRepositories ()) { 104 if (rep.Url.StartsWith ("http://go-mono.com/md/") || 105 (rep.Url.StartsWith ("http://monodevelop.com/files/addins/")) || 105 (rep.Url.StartsWith ("http://monodevelop.com/files/addins/")) || 106 (rep.Url.StartsWith ("http://addins.monodevelop.com/") && !validUrls.Contains (rep.Url))) 107 reps.RemoveRepository (rep.Url); 119 string platform; 120 if (PropertyService.IsWindows) 121 platform = "Win32"; 126 127 return "http://addins.monodevelop.com/" + quality + "/" + platform + "/" + AddinManager.CurrentAddin.Version + "/main.mrep"; 128 } 213 { 214 if (Environment.OSVersion.Platform == PlatformID.Unix) { 215 try {LoginScreenManager.java https://github.com/aherbert/openmicroscopy.git | Java | 296 lines
71 /** This should not be there.*/ 72 private static final String version = "4.3.1"; 73 74 /** The version the plugin. */ 75 private static final String VERSION = "v1.0 (for server version: "+version+")"; 76 105 * 106 * @param server The version of the server. 107 * @param client The version of the client. 116 client = client.split("-")[0]; 117 if (client.startsWith("Beta")) 118 client = client.substring(4); 265 * {@link ScreenLogin}. 266 * @see WindowStateListener#windowStateChanged(WindowEvent) 267 */base.py https://github.com/hradec/chemshapes.git | Python | 386 lines
76 'accum_alpha_size', 77 'major_version', 78 'minor_version', 82 83 major_version = None 84 minor_version = None 102 def _requires_gl_3(self): 103 if self.major_version is not None and self.major_version >= 3: 104 return True 181 182 self.major_version = base_config.major_version 183 self.minor_version = base_config.minor_version 243 _workaround_checks = [ 244 # GDI Generic renderer on Windows does not implement 245 # GL_UNPACK_ROW_LENGTH correctly.test_time.py https://github.com/atoun/empythoned.git | Python | 250 lines
20 21 def test_conversions(self): 22 self.assertTrue(time.ctime(self.t) 38 except ValueError: 39 self.fail('conversion specifier: %r failed.' % format) 40 41 # Issue #10762: Guard against invalid/non-supported format string 42 # so that Python don't crash (Windows crashes when the format string 43 # input to [w]strftime is not kosher. 43 # input to [w]strftime is not kosher. 44 if sys.platform.startswith('win'): 45 with self.assertRaises(ValueError): 118 except ValueError: 119 self.fail("conversion specifier %r failed with '%s' input." % 120 (format, strf_output))bootstrap.py https://bitbucket.org/Chris2048/watchdog.git | Python | 278 lines
108parser = OptionParser(usage=usage) 109parser.add_option("-v", "--version", dest="version", 110 help="use a specific zc.buildout version") 180 if options.setup_version: 181 setup_args['version'] = options.setup_version 182 if options.use_distribute: 226requirement = 'zc.buildout' 227version = options.version 228if version is None and not options.accept_buildout_test_releases: 231 _final_parts = '*final-', '*final' 232 def _final_version(parsed_version): 233 for part in parsed_version: 254 best.sort() 255 version = best[-1].version 256if version:DeviceResolutionEmulator.html https://gitlab.com/crsr/openui5 | HTML | 379 lines
19 landscapeDefault : true, 20 ua : "Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5" 21 },*/ 32 "short" : 320, 33 ua : "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5" 34 }, 38 "short" : 320, 39 ua : "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A406 Safari/7534.48.3" 40 }, 44 "short" : 480, 45 ua : "Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" 46 }, 81 var trimmedUrl = jQuery.trim(url); 82 return !jQuery.sap.startsWith(trimmedUrl, "http:") && !jQuery.sap.startsWith(trimmedUrl, "https:") 83 && !jQuery.sap.startsWith(trimmedUrl, "javascript:") && !jQuery.sap.startsWith(trimmedUrl, "/");sw.js https://gitlab.com/ratpoopmachine/3kh0-github-io | JavaScript | 399 lines
36 "type": "downloading-update", 37 "version": version 38 }); 44 "type": "update-ready", 45 "version": version 46 }); 91 92function GetCacheVersionName(version) 93{ 224 225 const version = data.version; 226 const fileList = data.fileList; 227 const lazyLoadList = data.lazyLoad; 228 const currentCacheName = GetCacheVersionName(version); 229Platform.java https://github.com/akafugu/Xmegaduino.git | Java | 231 lines
9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 22 23package processing.app.windows; 24 68 69 CommandLine toDevicePath = CommandLine.parse("reg query \"HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\" /v \"" + folderType + "\""); 70 executor.execute(toDevicePath); 74 /** 75 * Remove extra quotes, slashes, and garbage from the Windows PATH. 76 */ 82 for (String item : pieces) { 83 if (item.startsWith("\"")) { 84 item = item.substring(1);filebased.py https://gitlab.com/areema/myproject | Python | 154 lines
35 36 def get(self, key, default=None, version=None): 37 fname = self._key_to_file(key, version) 47 48 def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None): 49 self._createdir() # Cache dir can be deleted at any time. 49 self._createdir() # Cache dir can be deleted at any time. 50 fname = self._key_to_file(key, version) 51 self._cull() # make some room if necessary 65 def delete(self, key, version=None): 66 self._delete(self._key_to_file(key, version)) 67 118 """ 119 key = self.make_key(key, version=version) 120 self.validate_key(key)qevdevmousehandler.cpp https://bitbucket.org/cvp2ri/qt5-tlsauth.git | C++ | 239 lines
18** Alternatively, this file may be used under the terms of the GNU Lesser 19** General Public License version 2.1 as published by the Free Software 20** Foundation and appearing in the file LICENSE.LGPL included in the 21** packaging of this file. Please review the following information to 22** ensure the GNU Lesser General Public License version 2.1 requirements 23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 26** rights. These rights are described in the Digia Qt LGPL Exception 27** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28** 30** Alternatively, this file may be used under the terms of the GNU 31** General Public License version 3.0 as published by the Free Software 32** Foundation and appearing in the file LICENSE.GPL included in the 33** packaging of this file. Please review the following information to 34** ensure the GNU General Public License version 3.0 requirements will be 35** met: http://www.gnu.org/copyleft/gpl.html.GetRecoverableDatabaseTests.cs https://gitlab.com/jslee1/azure-powershell | C# | 282 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 20using Microsoft.VisualStudio.TestTools.UnitTesting; 21using Microsoft.WindowsAzure.Commands.SqlDatabase.Test.UnitTests.MockServer; 22using Microsoft.WindowsAzure.Commands.SqlDatabase.Test.UnitTests.Server.Cmdlet; 22using Microsoft.WindowsAzure.Commands.SqlDatabase.Test.UnitTests.Server.Cmdlet; 23using Microsoft.WindowsAzure.Commands.SqlDatabase.Test.Utilities; 24using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; 24using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; 25using Microsoft.WindowsAzure.Commands.Utilities.Common; 26using Microsoft.WindowsAzure.Management.Sql.Models; 26using Microsoft.WindowsAzure.Management.Sql.Models; 27using Microsoft.WindowsAzure.Commands.Common; 28symlink.py https://gitlab.com/dglmoore/betse | Python | 307 lines
8 9## Microsoft Windows 10 10 11Microsoft Windows does _not_ comply with POSIX standards and hence does _not_ 12generally support symbolic links. 13 14While post-Vista versions of Microsoft Windows _do_ purport to support symbolic 15links, the Windows version of the (Ana|Mini)conda Python distribution does _not_ 16appear to (at least, not reliably). Since this renders symbolic links useless 17for standard Windows use, this module assumes Windows to _never_ support 18symbolic links regardless of version. 19 20Under Microsoft Windows, this module "fakes" symbolic link-based installation by 21artifically prepending the Python-specific `sys.path` list of search dirnamesDefaultSettingsBuilder.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 272 lines
7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 102 103 // for the special case of a drive-relative Windows path, make sure it's absolute to save plugins from trouble 104 String localRepository = userSettings.getLocalRepository(); 107 File file = new File( localRepository ); 108 if ( !file.isAbsolute() && file.getPath().startsWith( File.separator ) ) 109 {TestHelper.java https://github.com/ikeji/openjdk7-jdk.git | Java | 385 lines
5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 57 static final boolean isWindows = 58 System.getProperty("os.name", "unknown").startsWith("Windows"); 59 static final boolean is64Bit = 63 static final boolean isSolaris = 64 System.getProperty("os.name", "unknown").startsWith("SunOS"); 65 static final boolean isLinux =Delete_VM_Files_Window.cpp https://gitlab.com/pranith/aqemu | C++ | 414 lines
9** it under the terms of the GNU General Public License as published by 10** the Free Software Foundation; either version 2 of the License. 11** 404 if( ! QFile::exists(path) ) return false; 405 if( path.startsWith("/dev/") ) return false; // FIXME Windows version 406which.py https://github.com/aherbert/openmicroscopy.git | Python | 335 lines
43 -h, --help Print this help and exit. 44 -V, --version Print the version info and exit. 45 69__version_info__ = (1, 1, 0) 70__version__ = '.'.join(map(str, __version_info__)) 71 94 try: 95 key = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\" +\ 96 exeName 163 path = os.environ.get("PATH", "").split(os.pathsep) 164 if sys.platform.startswith("win"): 165 path.insert(0, os.curdir) # implied by Windows shell 168 169 # Windows has the concept of a list of extensions (PATHEXT env var). 170 if sys.platform.startswith("win"):BuildTargetParser.java https://gitlab.com/smartether/buck | Java | 169 lines
3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may 5 * not use this file except in compliance with the License. You may obtain 80 if (buildTargetName.contains(BUILD_RULE_PREFIX) && 81 !buildTargetName.startsWith(BUILD_RULE_PREFIX)) { 82 int slashIndex = buildTargetName.indexOf(BUILD_RULE_PREFIX); 107 Preconditions.checkNotNull(baseName); 108 // On Windows, baseName may contain backslashes, which are not permitted by BuildTarget. 109 baseName = baseName.replace("\\", "/"); 135 } 136 if (!baseName.startsWith(BUILD_RULE_PREFIX)) { 137 throw new BuildTargetParseException( 143 String baseNamePath = baseName.substring(BUILD_RULE_PREFIX.length()); 144 if (baseNamePath.startsWith("/")) { 145 throw new BuildTargetParseException(test_scandir.py https://gitlab.com/Smileyt/KomodoEdit | Python | 279 lines
18 19IS_PY3 = sys.version_info >= (3, 0) 20 34 except NotImplementedError: 35 # Windows versions before Vista don't support symbolic links 36 symlinks_supported = False 79 dir_link = join(TEST_PATH, 'linkdir', 'link_to_dir') 80 if sys.version_info >= (3, 3): 81 # "target_is_directory" was only added in Python 3.3 205 self.assertTrue(isinstance(path, bytes)) 206 entries = [e for e in self.scandir_func(path) if e.name.startswith(b'unicod')] 207 self.assertEqual(len(entries), 1) 212 213 # b'unicod?.txt' on Windows, b'unicod\xc6\x8f.txt' (UTF-8) or similar on POSIX 214 entry_name = u'unicod\u018f.txt'.encode(sys.getfilesystemencoding(), 'replace')AnonymousBVT.cs https://gitlab.com/jslee1/azure-powershell | C# | 256 lines
3// Copyright Microsoft Corporation 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 22using StorageTestLib; 23using StorageBlob = Microsoft.WindowsAzure.Storage.Blob; 24 109 110 Test.Assert(uri.ToString().StartsWith(uriPrefix), string.Format("The prefix of container uri should be {0}, actually it's {1}", uriPrefix, uri)); 111 }glances_stats.py https://gitlab.com/132nd-etcher/glances | Python | 407 lines
8# it under the terms of the GNU Lesser General Public License as published by 9# the Free Software Foundation, either version 3 of the License, or 10# (at your option) any later version. 34 '.*BSD.*': 'bsd', 35 '.*Windows.*': 'windows', 36 '.*Cisco.*': 'cisco', 71 # Check if the attribute starts with 'get' 72 if item.startswith('get'): 73 # Get the plugin name 90 for item in os.listdir(plugins_path): 91 if (item.startswith(header) and 92 item.endswith(".py") and 357 port=self.args.snmp_port, 358 version=self.args.snmp_version, 359 community=self.args.snmp_community,_MozillaCookieJar.py https://gitlab.com/dahbearz/CRYENGINE | Python | 149 lines
20 the browser (in fact, Mozilla on unix will overwrite your saved cookies if 21 you change them on disk while it's running; on Windows, you probably can't 22 save at all while the browser is running). 26 27 In particular, the cookie version and port number information is lost, 28 together with information about whether or not Path, Port and Discard were 65 # skip comments and blank lines XXX what is $ for? 66 if (line.strip().startswith(("#", "$")) or 67 line.strip() == ""): 80 81 initial_dot = domain.startswith(".") 82 assert domain_specified == initial_dot 128 else: secure = "FALSE" 129 if cookie.domain.startswith("."): initial_dot = "TRUE" 130 else: initial_dot = "FALSE"TestLocalDirAllocator.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 211 lines
5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 53 final static private boolean isWindows = 54 System.getProperty("os.name").startsWith("Windows"); 55 final static int SMALL_FILE_SIZE = 100; 74 assertTrue("Checking for " + BUFFER_DIR[i] + " in " + result + " - FAILED!", 75 result.getPath().startsWith(new File(BUFFER_DIR[i], FILENAME).getPath())); 76 } 94 public void test0() throws Exception { 95 if (isWindows) return; 96 try { 112 public void test1() throws Exception { 113 if (isWindows) return; 114 try {which.py https://bitbucket.org/yomagg/2012-12-12-clusterwatch.git | Python | 250 lines
16 * does not search ``PATH`` for files that have a path specified in their name already 17 * uses ``PATHEXT`` on Windows, providing a default value for different Windows versions 18 34 If the ``PATHEXT`` variable is not set, then the default *pathext* value is hardcoded 35 for different Windows versions, to match the actual search performed on command execution. 36 On Windows <= 4.x, ie. NT and older, it defaults to '.COM;.EXE;.BAT;.CMD'. 57 58_windows = sys.platform.startswith('win') 59 81 if not winver: 82 winver = sys.getwindowsversion() 83 102 If the PATHEXT variable is not set, then the default pathext value is hardcoded 103 for different Windows versions, to match the actual search performed on command execution. 104qmakeglobals.cpp https://gitlab.com/f3822/qttools | C++ | 392 lines
18** Alternatively, this file may be used under the terms of the GNU 19** General Public License version 3 as published by the Free Software 20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 53#else 54#include <windows.h> 55#endif 134 default: 135 if (arg.startsWith(QLatin1Char('-'))) { 136 if (arg == QLatin1String("--")) { 249 return fileName; 250 if (fileName.startsWith(source_root) 251 && (fileName.length() == source_root.length() 348 properties.insert(ProKey(name), value); 349 if (name.startsWith(QLatin1String("QT_"))) { 350 enum { PropPut, PropRaw, PropGet } variant;path.cc https://gitlab.com/jslee1/omaha | C++ | 475 lines
2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 161 // For example: regsvr32 /u /s "c:\program files\google\googletoolbar3.dll" 162 if (String_StartsWith(str, kRegSvr32Cmd1, true) || 163 String_StartsWith(str, kRegSvr32Cmd2, true)) { 168 // Handle the string starting with "rundll32" 169 // For example: "rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 C:\WINDOWS\INF\PCHealth.inf" // NOLINT 170 if (String_StartsWith(str, kRunDll32Cmd1, true) || 170 if (String_StartsWith(str, kRunDll32Cmd1, true) || 171 String_StartsWith(str, kRunDll32Cmd2, true)) { 172 int idx_space = str.Find(_T(' ')); 186 // For example: MsiExec.exe /I{25A13826-8E4A-4FBF-AD2B-776447FE9646} 187 if (String_StartsWith(str, kMsiExecCmd1, true) || 188 String_StartsWith(str, kMsiExecCmd2, true)) {UUIDGen.java https://github.com/mkneissl/scala.git | Java | 364 lines
46 * <p> 47 * Starting with version 2, this implementation tries to obtain the MAC address 48 * of the network card. Under Microsoft Windows, the <code>ifconfig</code> 52 * <p> 53 * The MAC address code has been tested extensively in Microsoft Windows, 54 * Linux, Solaris 8, HP-UX 11, but should work in MacOS X and BSDs, too. 59 * @author <a href="mailto:jb@eaio.de">Johann Burkard</a> 60 * @version $Id: UUIDGen.java 2914 2010-04-23 11:35:00Z johann $ 61 * @see com.eaio.uuid.UUID 120 121 if (osname.startsWith("Windows")) { 122 p = Runtime.getRuntime().exec( 125 // Solaris code must appear before the generic code 126 else if (osname.startsWith("Solaris") 127 || osname.startsWith("SunOS")) {juce_Application.cpp https://bitbucket.org/teamaxe/markingtool.git | C++ | 303 lines
9 JUCE can be redistributed and/or modified under the terms of the GNU General 10 Public License (Version 2), as published by the Free Software Foundation. 11 A copy of the license is included in the JUCE distribution, or can be found 62 63 if (message.startsWith (appName + "/")) 64 app->anotherInstanceStarted (message.substring (appName.length() + 1)); 248 249#if ! JUCE_WINDOWS 250#if JUCE_IOSwget.py https://gitlab.com/eientei95/crunchy-xml-decoder | Python | 399 lines
23 24PY3K = sys.version_info >= (3, 0) 25if PY3K: 32 33__version__ = "2.2" 34 62 # several filename params is illegal, but just in case 63 fnames = [x for x in cdtype[1:] if x.strip().startswith('filename=')] 64 if len(fnames) > 1: 77 name, ext = filename.rsplit('.', 1) 78 names = [x for x in os.listdir(dirname) if x.startswith(name)] 79 names = [x.rsplit('.', 1)[0] for x in names] 82 suffixes = [x[2:-1] for x in suffixes 83 if x.startswith(' (') and x.endswith(')')] 84 indexes = [int(x) for x in suffixeswindows_testing_downloader.ps1 https://gitlab.com/github-cloud-corporation/scikit-learn | Powershell | 270 lines
6# To quickly execute the script, run the following Powershell command: 7# powershell.exe -ExecutionPolicy unrestricted "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/continuous_integration/windows/windows_testing_downloader.ps1'))" 8 8 9# This is a stopgap solution to make Windows testing easier 10# until Windows CI issues are resolved. 11 12# Rackspace's default Windows VMs have several security features enabled by default. 13# The DisableInternetExplorerESC function disables a feature which 14# prevents any webpage from opening without explicit permission. 15# This is a default setting of Windows VMs on Rackspace, and makes it annoying to 16# download other packages to test! 20# from a Powershell terminal with administrator rights to enable scripts. 21# To start an administrator Powershell terminal, right click second icon from the left on Windows Server 2012's bottom taskbar. 22itkBase.py https://github.com/paniwani/ITK.git | Python | 242 lines
4# 5# Licensed under the Apache License, Version 2.0 (the "License"); 6# you may not use this file except in compliance with the License. 48 for k, v in this_module.__dict__.items(): 49 if not (k.startswith('_') or k == 'swig'): namespace[k] = v 50 return 73 try: 74 # for a windows tree 75 execfile(os.path.join(path, '..', 'Configuration', name + 'Config.py'), data) 118 for k, v in module.__dict__.items(): 119 if not k.startswith('__'): setattr(this_module.swig, k, v) 120 if namespace is not None and not k.startswith('__'): setattr(swig, k, v) 179 180 if sys.platform.startswith('darwin'): 181 dlopenflags = darwin_dlopenflagsSetSavedDataPage.cpp https://gitlab.com/hussinhassan80/tortoisegit | C++ | 402 lines
1// TortoiseGit - a Windows shell extension for easy version control 2 8// as published by the Free Software Foundation; either version 2 9// of the License, or (at your option) any later version. 10 29#include "Git.h" 30#include "WindowsCredentialsStore.h" 31 91 CString sHistName = loghistlist.GetNext(pos); 92 if (CStringUtils::StartsWithI(sHistName, L"commit") || CStringUtils::StartsWithI(sHistName, L"merge")) 93 { 126 CString path { static_cast<LPCWSTR>(pszPath) }; 127 path += L"\\Subversion\\auth\\"; 128 142 CStringList credStore; 143 CWindowsCredentialsStore::ListCredentials(L"git:*", credStore); 144 nSimple += static_cast<int>(credStore.GetCount());Common.cs https://bitbucket.org/hphuong/eventbrite-win8.git | C# | 282 lines
12#if !WINRT_NOT_PRESENT 13using Windows.Data.Xml.Dom; 14#endif 82 { 83 public const int NOTIFICATION_CONTENT_VERSION = 1; 84 162 bool goodPrefix = this.StrictValidation || value == null; 163 goodPrefix = goodPrefix || value.StartsWith("http://", StringComparison.OrdinalIgnoreCase); 164 goodPrefix = goodPrefix || value.StartsWith("https://", StringComparison.OrdinalIgnoreCase); 164 goodPrefix = goodPrefix || value.StartsWith("https://", StringComparison.OrdinalIgnoreCase); 165 goodPrefix = goodPrefix || value.StartsWith("ms-appx:///", StringComparison.OrdinalIgnoreCase); 166 goodPrefix = goodPrefix || value.StartsWith("ms-appdata:///local/", StringComparison.OrdinalIgnoreCase);ioutils.cpp https://gitlab.com/f3822/qtbase | C++ | 339 lines
18** Alternatively, this file may be used under the terms of the GNU 19** General Public License version 3 as published by the Free Software 20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 35#ifdef Q_OS_WIN 36# include <qt_windows.h> 37#else 104#ifdef QMAKE_BUILTIN_PRFS 105 if (path.startsWith(QLatin1String(":/"))) 106 return false; 121#else 122 if (path.startsWith(QLatin1Char('/'))) 123 return false; 264 } 265# if defined(_POSIX_VERSION) && _POSIX_VERSION >= 200809L 266 const struct timespec times[2] = { { 0, UTIME_NOW }, st.st_mtim };setup.py https://github.com/jobovy/galpy.git | Python | 326 lines
108 if sys.version_info < (2,7): #subprocess.check_output does not exist 109 gsl_version= subprocess.Popen(cmd,shell=sys.platform.startswith('win'), 110 stdout=subprocess.PIPE).communicate()[0] 123 gsl_version= gsl_version.split('.') 124extra_compile_args.append("-D GSL_MAJOR_VERSION=%s" % (gsl_version[0])) 125 209if float(gsl_version[0]) >= 1. \ 210 and (float(gsl_version[0]) >= 2. or float(gsl_version[1]) >= 14.): 211 galpy_c_incl= True 223if float(gsl_version[0]) >= 1. \ 224 and (float(gsl_version[0]) >= 2. or float(gsl_version[1]) >= 14.) and \ 225 os.path.exists('galpy/actionAngle/actionAngleTorus_c_ext/torus/src') \ 299 this_str= 'this installation' 300 print('If you believe that %s should have worked, make sure\n(1) that the GSL include/ directory can be found by the compiler (you might have to edit CFLAGS for this: export CFLAGS="$CFLAGS -I/path/to/gsl/include/", or equivalent for C-type shells; replace /path/to/gsl/include/ with the actual path to the include directory),\n(2) that the GSL library can be found by the linker (you might have to edit LDFLAGS for this: export LDFLAGS="$LDFLAGS -L/path/to/gsl/lib/", or equivalent for C-type shells; replace /path/to/gsl/lib/ with the actual path to the lib directory),\n(3) and that `gsl-config --version` returns the correct version' % this_str) 301JavaEnvUtilsTest.java https://bitbucket.org/kaendfinger/apache-ant.git | Java | 140 lines
73 assertTrue(j+" is normalized and not in the JRE dir", 74 !j.startsWith(javaHome)); 75 111 assertTrue(j+" is normalized and in the JDK dir", 112 j.startsWith(javaHomeParent)); 113 113 114 if (Os.isFamily("mac") && JavaEnvUtils.getJavaVersionNumber() <= JavaEnvUtils.VERSION_1_6) { 115 assertTrue(j+" is normalized and in the JRE dir", 115 assertTrue(j+" is normalized and in the JRE dir", 116 j.startsWith(javaHome)); 117 } else { 133 "Current java version is not at least the current java version...", 134 JavaEnvUtils.isAtLeastJavaVersion(JavaEnvUtils.getJavaVersion())); 135 assertFalse(SubmoduleUpdateDlg.cpp https://gitlab.com/Sajjad-dehghani/tortoisegit | C++ | 311 lines
1// TortoiseGit - a Windows shell extension for easy version control 2 6// modify it under the terms of the GNU General Public License 7// as published by the Free Software Foundation; either version 2 8// of the License, or (at your option) any later version. 41{ 42 s_bSortLogical = !CRegDWORD(L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoStrCmpLogical", 0, false, HKEY_CURRENT_USER); 43 if (s_bSortLogical) 43 if (s_bSortLogical) 44 s_bSortLogical = !CRegDWORD(L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoStrCmpLogical", 0, false, HKEY_LOCAL_MACHINE); 45} 84 CString prefix = prefixList->at(i) + _T("/"); 85 if (CStringUtils::StartsWith(path, prefix)) 86 list->push_back(path);SystemWarningWindow.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 420 lines
6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License only. 8 * 102 103 public static int numWarningWindowsOpen = 0; 104 129 130 if (logAlert.text.startsWith("{")) { 131 text = MessageText.expandValue(logAlert.text); 195 }); 196 numWarningWindowsOpen--; 197 } 412 shell.open(); 413 numWarningWindowsOpen++; 414 }ipm.py https://github.com/leaflabs/projects.git | Python | 430 lines
6# Python-on-a-Chip is free software: you can redistribute it and/or modify 7# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1. 8# 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12# A copy of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 13# is seen in the file COPYING in this directory. 69NEED_PYSERIAL = "Install the pySerial module from http://pyserial.sourceforge.net/" 70if not sys.platform.lower().startswith("win"): 71 PMVM_EXE = "../platform/desktop/main.out" 72else: 73 PMVM_EXE = "../platform/windows/Debug/pymite.exe" 74IPM_PROMPT = "ipm> " 89 90if sys.platform.lower().startswith("win"): 91 EOF_KEY = 'Z'ExecutorRunner.scala https://github.com/shivaram/spark.git | Scala | 189 lines
4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 100 // SPARK-698: do not call the run.cmd script, as process.destroy() 101 // fails to kill a process tree on Windows 102 Seq(runner) ++ buildJavaOpts() ++ Seq(command.mainClass) ++ 117 // Figure out our classpath with the external compute-classpath script 118 val ext = if (System.getProperty("os.name").startsWith("Windows")) ".cmd" else ".sh" 119 val classPath = Utils.executeAndGetOutput(SetAccess.java https://github.com/ikeji/openjdk7-jdk.git | Java | 186 lines
5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 53 public static void doTest(File f) throws Exception { 54 if (!System.getProperty("os.name").startsWith("Windows")) { 55 if (!f.setReadOnly()) 123 } else { 124 //Windows platform 125 if (f.isFile()) {SetupUtil.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 265 lines
9 * The contents of this file are subject to the terms of either the GNU 10 * General Public License Version 2 only ("GPL") or the Common 11 * Development and Distribution License("CDDL") (collectively, the 20 * particular file as subject to the "Classpath" exception as provided 21 * by Oracle in the GPL Version 2 section of the License file that 22 * accompanied this code. If applicable, add the following below the 79 File userDir = new File(workingDir.getParentFile(), 80 System.getProperty("os.name").startsWith("Windows") ? WORKDIR_SPACES : WORKDIR); 81 System.getProperties().setProperty("netbeans.user", userDir.getAbsolutePath());CounterTestHelperFunctions.ps1 https://gitlab.com/unofficial-mirrors/PowerShell | Powershell | 300 lines
20 private const int PDH_MAX_COUNTER_PATH = 2048; 21 private const string SubKeyPath = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009"; 22 146 147if ( $IsWindows ) 148{ 161 162 if ($path.StartsWith("\\")) 163 { 174{ 175 if ( $IsWindows ) 176 { 176 { 177 $key = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage' 178 return (Get-ItemProperty -Path $key -Name Counter).CounterScalaTool.scala https://gitlab.com/mdimjasevic/scala-2.10-debian-package-take-2 | Scala | 276 lines
27 * @author Gilles Dubochet 28 * @version 1.1 29 */ 40 def isPermissible(value: String): Boolean = 41 (value == "") || values.exists(_.startsWith(value)) 42 } 45 object Platforms extends PermissibleValue { 46 val values = List("unix", "windows") 47 } 49 /** The path to the exec script file. `".bat"` will be appended for the 50 * Windows BAT file, if generated. */ 51 private var file: Option[File] = None 55 56 /** Supported platforms for the script. Either `"unix"` or `"windows"`. 57 * Defaults to both. */