aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes [java] Java Result: 1 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "[java] Java Result: 1 error" Watch "[java] Java Result: 1 error" New topic
Author

[java] Java Result: 1 error

rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
Buildfile: D:\eclipse\workspace\AlrrsTest\build.xml
main:
[echo] Building Project for deployment type: trial
init:
clean:
[echo] + ===================================================== +
[echo] + +
[echo] + Clean +
[echo] + +
[echo] + ===================================================== +
[delete] Deleting directory D:\eclipse\workspace\AlrrsTest\output
init:
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\classes
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\dist
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen\META-INF
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\gen\WEB-INF
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\bin
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\docs
[mkdir] Created dir: D:\eclipse\workspace\AlrrsTest\output\junit
compile:
compile.preprocessing:
[echo] + ===================================================== +
[echo] + +
[echo] + Pre-compiling +
[echo] + +
[echo] + ===================================================== +
compile.processing:
[echo] + ===================================================== +
[echo] + +
[echo] + Compiling +
[echo] + +
[echo] + ===================================================== +
[javac] Compiling 267 source files to D:\eclipse\workspace\AlrrsTest\output\classes
[javac] D:\eclipse\workspace\AlrrsTest\src\web\com\sns\govt\lri\alrrs\common\util\UploadFileUtil.java:964: warning: finally clause cannot complete normally
[javac] }
[javac] ^
[javac] D:\eclipse\workspace\AlrrsTest\src\web\com\sns\govt\lri\alrrs\notices\util\NoticeImportUtil.java:465: warning: finally clause cannot complete normally
[javac] }
[javac] ^
[javac] 2 warnings
compile.postprocessing:
[echo] + ===================================================== +
[echo] + +
[echo] + Post-compiling +
[echo] + +
[echo] + ===================================================== +
[copy] Copying 1 file to D:\eclipse\workspace\AlrrsTest\output\classes
init:
jar:
[echo] + ===================================================== +
[echo] + +
[echo] + Building jar files +
[echo] + +
[echo] + ===================================================== +
[jar] Building jar: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsEJBrel1_0.jar
init:
ejbc:
[echo] + ===================================================== +
[echo] + +
[echo] + EJBC +
[echo] + +
[echo] + ===================================================== +
[delete] Deleting 1 files from D:\eclipse\workspace\AlrrsTest\output\dist
[java] ERROR: source file: D:\eclipse\workspace\AlrrsTest/output/dist/PRE_alrrsEJBrel1_0.jar could not be found.
[java] Java Result: 1
init:
war:
[echo] + ===================================================== +
[echo] + +
[echo] + Building war files +
[echo] + +
[echo] + ===================================================== +
[echo] \\\\\\\\\\\\\\\\\\\\\war.junitee target completed//////////////////////
init:
war.project:
[copy] Copying 1 file to D:\eclipse\workspace\AlrrsTest\output\gen\WEB-INF
[war] Building war: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsWARrel1_0.war
[echo] \\\\\\\\\\\\\\\\\\\\\war.project//////////////////////
init:
ear:
[echo] + ===================================================== +
[echo] + +
[echo] + Building ear files +
[echo] + +
[echo] + ===================================================== +
[ear] Building ear: D:\eclipse\workspace\AlrrsTest\output\dist\alrrsEARrel1_0.ear
[copy] Copying 5 files to D:\eclipse\workspace\AlrrsTest\output\dist
BUILD SUCCESSFUL
Total time: 1 minute 59 seconds


I am getting "[java] Java Result: 1"(bolded one) output,when i am running ANT.what is the reason ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


[delete] Deleting 1 files from D:\eclipse\workspace\AlrrsTest\output\dist
[java] ERROR: source file: D:\eclipse\workspace\AlrrsTest/output/dist/PRE_alrrsEJBrel1_0.jar could not be found.

Are you deleting your jar before trying to access it?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [java] Java Result: 1 error