Ant exec - cannot run program 'start' CreateProcess error=2

后端 未结 3 1576
孤街浪徒
孤街浪徒 2020-12-20 16:22

I can\'t run the windows \'start\' using ant exec. Ant version 1.7.1.

Here is sample build.xml to recreate the problem



        
3条回答
  •  攒了一身酷
    2020-12-20 16:46

    start is not an executable but is an internal command of the cmd.exe shell, so to start something you'd have to:

    
              
        
    

    EDIT:

    For spawning multiple windows, this should work:

    
        
              
        
        
              
        
    
    

    but you mentioned that spawn="true" is not applicable for your environment, why is that?

提交回复
热议问题