2013-11-14 3 views
0

Windows 8.1에서는 이것을 실행할 때 출력 파일의 맨 위에 exec 명령이 추가됩니다.개미 작업 출력에는 args가 포함되어 있습니까?

<exec executable="cmd" os="Windows 8" spawn="false" dir="${basedir}" output="${build.out}" error="${build.err}"> 
    <arg value="/c"/> 
    <arg line="${build.bat}" /> 
    <arg value="-p"/> 
</exec> 

출력 파일은 다음과 같습니다

C:\yaya\the_base_dir>node C:\yaya\haha\pjsCompile.js 
//here begins the output I expected.... 

어떻게 출력에서 ​​명령을 제거 할 수 있습니까? 왜 그곳에 있습니까? 이것에

node C:\yaya\haha\pjsCompile.js 

답변

2

변경 build.bat :

@node C:\yaya\haha\pjsCompile.js 

또는 이것에 :

@echo off 
node C:\yaya\haha\pjsCompile.js 
것이 도움이 경우

이는 경우 build.bat입니다

관련 문제