PageRenderTime 1499ms queryTime 47ms sortTime 2ms getByIdsTime 1370ms findMatchingLines 42ms

50+ results for 'windowscommand' (1499 ms)

Not the results you expected?
ArgumentListBuilderTest.java https://gitlab.com/CORP-RESELLER/jenkins | Java | 241 lines
                    
105    @Test
                    
106    public void testToWindowsCommand() {
                    
107        ArgumentListBuilder builder = new ArgumentListBuilder().
                    
115        // By default, does not escape %VAR%
                    
116        assertThat(builder.toWindowsCommand().toCommandArray(), is(new String[] { "cmd.exe", "/C",
                    
117                "\"ant.bat", "-Dfoo1=abc", "\"-Dfoo2=foo bar\"", "\"-Dfoo3=/u*r\"", "\"-Dfoo4=/us?\"", 
                    
121        // Pass flag to escape %VAR%
                    
122        assertThat(builder.toWindowsCommand(true).toCommandArray(), is(new String[] { "cmd.exe", "/C",
                    
123                "\"ant.bat", "-Dfoo1=abc", "\"-Dfoo2=foo bar\"", "\"-Dfoo3=/u*r\"", "\"-Dfoo4=/us?\"", 
                    
129        // By default, does not escape %VAR%
                    
130        assertThat(builder.toWindowsCommand().toString(), is("cmd.exe /C \"ant.bat -Dfoo1=abc \"\"-Dfoo2=foo bar\"\" \"-Dfoo3=/u*r\" \"-Dfoo4=/us?\" \"-Dfoo10=bar,baz\" \"-Dfoo5=foo;bar^baz\" \"-Dfoo6=<xml>&here;</xml>\" \"-Dfoo7=foo|bar\"\"baz\" \"\"-Dfoo8=% %QED% %comspec% %-%(%.%\"\" -Dfoo9=%'''%%@% ****** && exit %%ERRORLEVEL%%\"" ));
                    
131        // Pass flag to escape %VAR%
                    
131        // Pass flag to escape %VAR%
                    
132        assertThat(builder.toWindowsCommand(true).toString(), is("cmd.exe /C \"ant.bat -Dfoo1=abc \"\"-Dfoo2=foo bar\"\" \"-Dfoo3=/u*r\" \"-Dfoo4=/us?\" \"-Dfoo10=bar,baz\" \"-Dfoo5=foo;bar^baz\" \"-Dfoo6=<xml>&here;</xml>\" \"-Dfoo7=foo|bar\"\"baz\" \"\"-Dfoo8=% %\"Q\"ED% %\"c\"omspec% %-%(%.%\"\" -Dfoo9=%'''%%@% ****** && exit %%ERRORLEVEL%%\""));
                    
133    }
                    
                
DriverUtils.cpp https://bitbucket.org/freebsd/freebsd-base.git | C++ | 253 lines
                    
81    if (s == "windows")
                    
82      return cl::TokenizeWindowsCommandLine;
                    
83    return cl::TokenizeGNUCommandLine;
                    
85  if (Triple(sys::getProcessTriple()).getOS() == Triple::Win32)
                    
86    return cl::TokenizeWindowsCommandLine;
                    
87  return cl::TokenizeGNUCommandLine;
                    
                
LibDriver.cpp https://gitlab.com/Birhetia/platform_external_llvm | C++ | 154 lines
                    
105  StringSaver Saver(Alloc);
                    
106  cl::ExpandResponseFiles(Saver, cl::TokenizeWindowsCommandLine, NewArgs);
                    
107  ArgsArr = NewArgs;
                    
                
atom_api_window.h https://gitlab.com/lishaomin/electron | C Header | 192 lines
                    
75  void OnRendererResponsive() override;
                    
76  void OnExecuteWindowsCommand(const std::string& command_name) override;
                    
77
                    
                
ForkingGradleExecuter.java https://github.com/cwalker67/gradle.git | Java | 342 lines
                    
78
                    
79        CommandBuilder commandBuilder = OperatingSystem.current().isWindows() ? new WindowsCommandBuilder()
                    
80                : new UnixCommandBuilder();
                    
149
                    
150    private class WindowsCommandBuilder implements CommandBuilder {
                    
151        public void build(ExecHandleBuilder builder) {
                    
                
native_window_views_win.cc https://gitlab.com/lishaomin/electron | C++ | 145 lines
                    
74
                    
75bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {
                    
76  std::string command = AppCommandToString(command_id);
                    
76  std::string command = AppCommandToString(command_id);
                    
77  NotifyWindowExecuteWindowsCommand(command);
                    
78  return false;
                    
                
WebBrowser.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 248 lines
                    
91  private static final String[] unixBrowsers = { "mozilla", "netscape" };
                    
92  private static final String[] windowsCommands
                    
93    = { "rundll32 url.dll,FileProtocolHandler {1}" };
                    
142    {
                    
143    String commands[] = (windows ? windowsCommands : unixCommands);
                    
144    String browsers[] = (windows ? windowsBrowsers : unixBrowsers);
                    
                
CheckSettingsLogic.cs https://github.com/fraga/gitextensions.git | C# | 295 lines
                    
124
                    
125        private IEnumerable<string> GetWindowsCommandLocations(string possibleNewPath = null)
                    
126        {
                    
164            {
                    
165                var command = (from cmd in GetWindowsCommandLocations(possibleNewPath)
                    
166                               let output = Module.RunCmd(cmd, string.Empty)
                    
                
ProjectNode.cs https://bitbucket.org/mvptracker/cosmos.git | C# | 1455 lines
                    
162        /// </summary>
                    
163        private const VsCommands2K ExploreFolderInWindowsCommand = (VsCommands2K)1635;
                    
164		
                    
                
JSONCompilationDatabase.cpp https://bitbucket.org/freebsd/freebsd-base.git | C++ | 433 lines
                    
151    llvm::SmallVector<const char *, 64> T;
                    
152    llvm::cl::TokenizeWindowsCommandLine(EscapedCommandLine, Saver, T);
                    
153    std::vector<std::string> Result(T.begin(), T.end());
                    
                
tst_qapplication.cpp https://bitbucket.org/cvp2ri/qt5-tlsauth.git | C++ | 1696 lines
                    
169
                    
170    void windowsCommandLine_data();
                    
171    void windowsCommandLine();
                    
                
Helpers.java https://bitbucket.org/lp/programming-multiactivities.git | Java | 94 lines
                    
88
                    
89    static public String escapeWindowsCommand(String command) {
                    
90        String res = command.replaceAll("\"", "\\\"");
                    
                
new_task_manager_view.h https://gitlab.com/jonnialva90/iridium-browser | C Header | 148 lines
                    
72  bool CanMinimize() const override;
                    
73  bool ExecuteWindowsCommand(int command_id) override;
                    
74  base::string16 GetWindowTitle() const override;
                    
                
window_delegate.h https://github.com/akesling/chromium.git | C Header | 143 lines
                    
85  // was handled, false if it was not.
                    
86  virtual bool ExecuteWindowsCommand(int command_id) { return false; }
                    
87
                    
                
task_manager_view.cc https://github.com/akesling/chromium.git | C++ | 630 lines
                    
188  virtual bool CanMaximize() const;
                    
189  virtual bool ExecuteWindowsCommand(int command_id);
                    
190  virtual std::wstring GetWindowTitle() const;
                    
                
LauncherUtil.java https://github.com/jenkinsci/shiningpanda-plugin.git | Java | 101 lines
                    
56	    // Launch the process
                    
57	    return 0 == launcher.launch().cmds(FilePathUtil.isUnix(pwd) ? args : args.toWindowsCommand())
                    
58		    .envs(environment).stdout(listener).pwd(pwd).join();
                    
                
CommandLineJavaCompilerArgumentsGenerator.java https://github.com/andrewhj-mn/gradle.git | Java | 76 lines
                    
38        Iterable<String> allArgs = Iterables.concat(launcherOptions, remainingArgs);
                    
39        if (exceedsWindowsCommandLineLengthLimit(allArgs)) {
                    
40            return Iterables.concat(launcherOptions, shortenArgs(spec.getTempDir(), remainingArgs));
                    
44
                    
45    private boolean exceedsWindowsCommandLineLengthLimit(Iterable<String> args) {
                    
46        int length = 0;
                    
                
Compiler.java https://github.com/cmaglie/Arduino.git | Java | 621 lines
                    
44import processing.app.legacy.PApplet;
                    
45import processing.app.tools.DoubleQuotedArgumentsOnWindowsCommandLine;
                    
46
                    
                
cmCTestLaunch.cxx https://github.com/LuaDist/cmake.git | C++ | 712 lines
                    
167      {
                    
168      cmSystemTools::ParseWindowsCommandLine(line.c_str(), this->RealArgs);
                    
169      }
                    
                
ArgumentListBuilder2Test.java https://gitlab.com/CORP-RESELLER/jenkins | Java | 112 lines
                    
94        args.add(arguments);
                    
95        args = args.toWindowsCommand();
                    
96
                    
                
ProjectNode.cs https://github.com/89sos98/nemerle.git | C# | 1741 lines
                    
162		/// </summary>
                    
163		private const VsCommands2K ExploreFolderInWindowsCommand = (VsCommands2K)1635;
                    
164
                    
                
Process.php https://gitlab.com/code26/selah | PHP | 1562 lines
                    
315            $this->options['bypass_shell'] = true;
                    
316            $commandline = $this->prepareWindowsCommandLine($commandline, $env);
                    
317        } elseif (!$this->useFileHandles && $this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
                    
                
main.cpp https://github.com/Mendeley/Update-Installer.git | C++ | 201 lines
                    
197	char** argv;
                    
198	ProcessUtils::convertWindowsCommandLine(GetCommandLineW(),argc,argv);
                    
199	return main(argc,argv);
                    
                
ArgumentListBuilderTest.java https://gitlab.com/kalyanjk29/jenkins | Java | 186 lines
                    
112    @Test
                    
113    public void testToWindowsCommand() {
                    
114        ArgumentListBuilder builder = new ArgumentListBuilder(
                    
128                + " -Dfoo9=%'''%%@% && exit %%ERRORLEVEL%%\"" },
                    
129                builder.toWindowsCommand().toCommandArray());
                    
130        // Pass flag to escape %VAR%
                    
136                + " -Dfoo9=%'''%%@% && exit %%ERRORLEVEL%%\"" },
                    
137                builder.toWindowsCommand(true).toCommandArray());
                    
138    }
                    
                
Compiler.java https://github.com/ricklon/Arduino.git | Java | 1322 lines
                    
49import processing.app.preproc.PdePreprocessor;
                    
50import processing.app.tools.DoubleQuotedArgumentsOnWindowsCommandLine;
                    
51
                    
                
AsAdmin.java git://github.com/Codeartisans/asadmin.git | Java | 375 lines
                    
125                final String command = "\"\"" + StringUtils.join( cmds, "\" \"" ) + "\"\"";
                    
126                final String[] windowsCommand;
                    
127                if( SystemUtils.IS_OS_WINDOWS_95 || SystemUtils.IS_OS_WINDOWS_98 || SystemUtils.IS_OS_WINDOWS_ME )
                    
128                {
                    
129                    windowsCommand = new String[]
                    
130                    {
                    
135                {
                    
136                    windowsCommand = new String[]
                    
137                    {
                    
140                }
                    
141                outPrintln( "Will run the following command: " + StringUtils.join( windowsCommand, " " ) );
                    
142                if( env.length > 0 )
                    
143                {
                    
144                    proc = Runtime.getRuntime().exec( windowsCommand, env );
                    
145                }
                    
                
widget_delegate.h https://gitlab.com/jonnialva90/iridium-browser | C Header | 223 lines
                    
100  // was handled, false if it was not.
                    
101  virtual bool ExecuteWindowsCommand(int command_id);
                    
102
                    
                
ntservice.h https://gitlab.com/0072016/0072016-ApplePayDevice- | C Header | 103 lines
                    
87 *
                    
88 * The result is suitable for passing to mongo::constructUtf8WindowsCommandLine() to construct
                    
89 * a properly quoted command line string.
                    
                
cmVisualStudioGeneratorOptions.cxx https://github.com/LuaDist/cmake.git | C++ | 302 lines
                    
123  std::vector<std::string> args;
                    
124  cmSystemTools::ParseWindowsCommandLine(flags, args);
                    
125
                    
                
ArgumentListBuilderTest.java https://github.com/andham/hudson.git | Java | 177 lines
                    
112    @Test
                    
113    public void testToWindowsCommand() {
                    
114        ArgumentListBuilder builder = new ArgumentListBuilder(
                    
127                + " -Dfoo9=%'''%%@% && exit %%ERRORLEVEL%%\"" },
                    
128                builder.toWindowsCommand().toCommandArray());
                    
129    }
                    
                
main.cc https://gitlab.com/generic-library/webrtc | C++ | 93 lines
                    
42
                    
43  rtc::WindowsCommandLineArguments win_args;
                    
44  int argc = win_args.argc();
                    
                
widget_delegate.cc https://gitlab.com/jonnialva90/iridium-browser | C++ | 212 lines
                    
107
                    
108bool WidgetDelegate::ExecuteWindowsCommand(int command_id) {
                    
109  return false;
                    
                
lld.cpp https://bitbucket.org/freebsd/freebsd-base.git | C++ | 169 lines
                    
67  if (Triple(sys::getProcessTriple()).getOS() == Triple::Win32)
                    
68    return cl::TokenizeWindowsCommandLine;
                    
69  return cl::TokenizeGNUCommandLine;
                    
                
ParseCLICommand.java https://bitbucket.org/akshayk1987/javaexamples.git | Java | 100 lines
                    
42
                    
43		CLICommands.WindowsCommands wcmd = CLICommands.WindowsCommands
                    
44				.value(cmd);
                    
                
native_window_views.h https://gitlab.com/Rockyspade/electron | C Header | 184 lines
                    
116#if defined(OS_WIN)
                    
117  bool ExecuteWindowsCommand(int command_id) override;
                    
118#endif
                    
                
DriverUtils.cpp https://github.com/freebsd/freebsd.git | C++ | 259 lines
                    
81    if (s == "windows")
                    
82      return cl::TokenizeWindowsCommandLine;
                    
83    return cl::TokenizeGNUCommandLine;
                    
85  if (Triple(sys::getProcessTriple()).isOSWindows())
                    
86    return cl::TokenizeWindowsCommandLine;
                    
87  return cl::TokenizeGNUCommandLine;
                    
                
PythonCommand.java https://github.com/jenkinsci/shiningpanda-plugin.git | Java | 95 lines
                    
92	// Check if on UNIX to return the right command
                    
93	return isUnix ? args : args.toWindowsCommand();
                    
94    }
                    
                
Command.java https://github.com/jenkinsci/shiningpanda-plugin.git | Java | 247 lines
                    
244	return (isUnix ? new UnixCommand(command, ignoreExitCode, convert)
                    
245		: new WindowsCommand(command, ignoreExitCode, convert));
                    
246    }
                    
                
Fake.DotNet.NuGet.fs https://github.com/fsharp/FAKE.git | F# | 122 lines
                    
14                |> NuGet.toPushCliArgs
                    
15                |> Args.toWindowsCommandLine
                    
16                  
                    
34                |> NuGet.toPushCliArgs
                    
35                |> Args.toWindowsCommandLine
                    
36    
                    
                
cmd.js https://gitlab.com/boxnia/NFU_MOVIL | JavaScript | 120 lines
                    
26
                    
27function getWindowsCommand(command) {
                    
28    var fullCommand;
                    
64    if (isWin) {
                    
65        command = getWindowsCommand(command);
                    
66    }
                    
                
text_test.cpp https://gitlab.com/0072016/0072016-ApplePayDevice- | C++ | 91 lines
                    
52
                    
53TEST(WindowsCommandLineConstruction, EmptyCommandLine) {
                    
54    ASSERT_EQUALS("", constructUtf8WindowsCommandLine(svec(NULL)));
                    
56
                    
57TEST(WindowsCommandLineConstruction, NothingToQuote) {
                    
58    ASSERT_EQUALS("abc d \"\" e", constructUtf8WindowsCommandLine(svec("abc", "d", "", "e", NULL)));
                    
60
                    
61TEST(WindowsCommandLineConstruction, ThingsToQuote) {
                    
62    ASSERT_EQUALS("a\\\\\\b \"de fg\" h",
                    
62    ASSERT_EQUALS("a\\\\\\b \"de fg\" h",
                    
63                  constructUtf8WindowsCommandLine(svec("a\\\\\\b", "de fg", "h", NULL)));
                    
64    ASSERT_EQUALS("\"a\\\\b c\" d e",
                    
64    ASSERT_EQUALS("\"a\\\\b c\" d e",
                    
65                  constructUtf8WindowsCommandLine(svec("a\\\\b c", "d", "e", NULL)));
                    
66    ASSERT_EQUALS("\"a \\\\\" \\", constructUtf8WindowsCommandLine(svec("a \\", "\\", NULL)));
                    
                
AkBankPathUtil.cs https://gitlab.com/NunezG/villeEmergente | C# | 226 lines
                    
193
                    
194	public static void ConvertToWindowsCommandPath(ref string path)
                    
195    {
                    
                
commands_test.go https://gitlab.com/klauer/caddy | Go | 291 lines
                    
72
                    
73func TestParseWindowsCommand(t *testing.T) {
                    
74	tests := []struct {
                    
153
                    
154		actual := parseWindowsCommand(test.input)
                    
155		if len(actual) != len(test.expected) {
                    
                
text.h https://github.com/RedBeard0531/mongo.git | C Header | 118 lines
                    
94
                    
95    class WindowsCommandLine {
                    
96        MONGO_DISALLOW_COPYING(WindowsCommandLine);
                    
100    public:
                    
101        WindowsCommandLine(int argc, wchar_t* argvW[], wchar_t* envpW[]);
                    
102        ~WindowsCommandLine();
                    
115     */
                    
116    std::string constructUtf8WindowsCommandLine(const std::vector<std::string>& argv);
                    
117
                    
                
DriverUtils.cpp https://gitlab.com/torshie/modern-tool.git | C++ | 650 lines
                    
36using llvm::cl::ExpandResponseFiles;
                    
37using llvm::cl::TokenizeWindowsCommandLine;
                    
38using llvm::sys::Process;
                    
                
WindowsCommand.java https://github.com/jenkinsci/shiningpanda-plugin.git | Java | 127 lines
                    
28
                    
29public class WindowsCommand extends ShellCommand {
                    
30
                    
45     */
                    
46    protected WindowsCommand(String command, boolean ignoreExitCode, boolean convert) {
                    
47	super(command, ignoreExitCode, convert);
                    
                
GroupCCS.java https://bitbucket.org/lp/programming-multiactivities.git | Java | 148 lines
                    
76        String cbCommand = ((CommandBuilderProActive) commandBuilder).buildCommand(hostInfo, gcma, false);
                    
77        //cbCommand = Helpers.escapeWindowsCommand(cbCommand);
                    
78        cbCommand += " -c 1 ";
                    
                
Shell.java https://gitlab.com/xiaoliuliu2050/hadoop | Java | 859 lines
                    
69   */
                    
70  public static void checkWindowsCommandLineLength(String...commands)
                    
71      throws IOException {
                    
                
Launcher.java https://bitbucket.org/ianspigeon/applauncher.git | Java | 153 lines
                    
45	
                    
46	protected String executeWindowsCommand(final String[] command){
                    
47
                    
                
CommandFactory.scala https://bitbucket.org/mehmedbasic/scalaudiobookconverter.git | Scala | 40 lines
                    
15    val command: Command = OperatingSystem.locate match {
                    
16      case Windows => createWindowsCommand()
                    
17      case Unix => createUnixCommand()
                    
22
                    
23  protected def createWindowsCommand(): Command
                    
24
                    
                
 

Source

Language