2010-03-04 2 views
0

빌드를 중단하지 않고 Ant에서 Windows 탐색기를 시작할 수있는 방법이 있습니까? 여기 ANT에서 Windows 탐색기를 시작 하시겠습니까?

는 내가 지금까지 무엇을 가지고 : 일시 정지 위

<project default="default"> 
<target name="default"> 
    <fail unless="customerName"> 
    You need to set the customerName. 
    -DcustomerName=Value 
    </fail> 
    <fail unless="htmlCode"> 
    You need to set the htmlCode. 
    -DcustomerName=Value 
    </fail> 
    <exec executable="cmd"> 
    <arg value="-b"> 

    </exec> 
    <exec executable="explorer"> 
    <arg value='"C:\working_copies\${customerName}\${htmlCode}"' /> 
    </exec> 
    <exec executable="explorer"> 

불행하게도 코드는 각 창을 열 나는 한 번에 내 탐색기 창을 모두하지 않습니다.

답변

3

이 작동합니다 :

<exec executable="cmd.exe" 
     dir="C:\working_copies\${customerName}\${htmlCode}"> 
     <arg line="/c explorer ." /> 
</exec> 
+0

@omermuhammed 그래서/C는 어떤 기능을 수행합니까? 나는 ANT 물건에 많이 봤어요. – leeand00

+2

/c 플래그는 명령을 실행 한 후 cmd 셸을 닫습니다. 따라서이 경우 cmd 쉘은 원하는 디렉토리에서 탐색기 창을 시작한 다음 닫습니다. – omermuhammed