2011-11-10 5 views
0

는 내가의 build.xml 파일이 벌드 항아리.문제는

Buildfile: C:\Project\Workspaces\Wrk_tst\TestPrj\build.xml 
clean: 
    [echo] clean starts 
    [echo] clean ends 
prepare: 
    [echo] prepare starts 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] prepare ends 
compile: 
    [echo] complile starts 
    [javac] Compiling 1 source file to C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [echo] complile ends 
jar: 
    [echo] jar starts 
     [jar] Building jar: C:\Project\Workspaces\Wrk_tst\TestPrj\dest\roseindia.jar 
    [echo] jar ends 
clean: 
    [echo] clean starts 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] clean ends 
prepare: 
    [echo] prepare starts 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] prepare ends 
compile: 
    [echo] complile starts 
    [javac] Compiling 1 source file to C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [echo] complile ends 
clean: 
    [echo] clean starts 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] clean ends 
prepare: 
    [echo] prepare starts 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [mkdir] Created dir: C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] prepare ends 
clean: 
    [echo] clean starts 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\build 
    [delete] Deleting directory C:\Project\Workspaces\Wrk_tst\TestPrj\dest 
    [echo] clean ends 
BUILD SUCCESSFUL 
Total time: 669 milliseconds 
+3

51 질문, 답변이 없습니다 ... –

+0

'jar' 작업을 실행중인 경우 - 모든 사항이 정상입니다. 'jar'는'complile'을 호출하고'compile'은'prepare'를 호출합니다. –

+0

@LukasKnuth 그리고 512 개 사용자 프로필보기))) –

답변

1

출력을 보면 종속성이 양호한 것처럼 보입니다. 빌드를 시작하면 jar 대상에 종속성이 있으므로 대상이 올바르게 실행됩니다.

문제는 무엇입니까? 당신 개미 출력은 전혀 오류가없는 것 같습니다.

+0

나는 예상 된 작전이 깨끗해야하고, 준비하고, 벌레를 만들어야한다고 생각한다. 그러나 그것들을 다시 임의의 순서로 수행한다. 왜? – user93796

+0

시퀀스는 jar, 컴파일, 준비 및 정리입니다. ant 명령을 어떻게 호출합니까? 동일한 대상이 두 번 호출되는 이유가 놀랍습니다. – Ayusman