Community
Participate
Working Groups
For some of my ant scripts I get the error message "tool's file does not exist for the external tool named /project/build.xml" after hitting the run button of the ant wizard. The scripts are working fine from the command line.
Moving to Platform UI for comments.
Please indicate build number. Are you using the Run Ant... action or a configured external tool? Does it always give this behaviour for the same script, or is it intermittent?
Mhh, strangely enough I am no longer able to reproduce the problem. Now I am getting an "Ant runner internal error" without any output in the Log Console for every script (by both using "Run Ant..." and "Run|External Tools..."). I am using build F2.
In the "Edit External Tool" Dialog, I see a warning "Tool working directory does not exist or is invalid". The working directory field has the content "${container_loc}".
Sorry, obviously I am getting confused... %-( With "${workspace_loc}" as working directory, the warning disappears, but the error remains. The error is always reading "*External tool* runner internal error", though...
Please attach your .log file.
I don't get any log-entry by this bug. To verify this, I deleted the .log file, restarted Eclipse and reproduced the error. I didn't get any .log file created.
Are you on the F2 build (20020602)? Do you get a {workspace_loc} var in the file name field when you choose the build file in the workspace?
I am using the F2 build and get an ${workspace_loc:<filepath>} entry for the build file.
Can you include in this problem report the value of all the fields when you edit the tool configuration for /project/build.xml We can then create the same here and debug it. Also, could you include the build.xml file?
Location: ${workspace_loc:/_Test/build.xml} Arguments: ${ant_target:all} Directory: <project default="all"> <target name="all"/> </project>
I have not been able to reproduce this with the given steps.
Ilja, could you please try to reproduce this using the latest build? Tod, could you also please try to reproduce this?
I cannot reproduce either.
I will try to reproduce it using the F3 build when it is available. Unfortunately I currently don't have the resources to try an integration build.
Can not reproduce. Please reopen if problem re-occurs.
Now, in F3, the error message changed to "Could not find one or more classes. Please check the Ant classpath." The ant classpath is containing ant.jar, jakarta-ant-1.4.1-optional.jar and xerces.jar
Rodrigo, since this error comes from ant core, what needs to be done to fix it? Could the build.xml file using ant 1.5 instead of 1.4?
If you mean the error "Could not find one or more classes. Please check the Ant classpath." it means that the JARs in the Ant preferences do not exist anymore. Could you verify that this is true? If the location of the ant.jar or xerces.jar does not exist on disk, try clicking "Restore defaults" in the Ant preferences. It should work.
Rodrigo, that did the trick! I didn't notice that the folder names of the ant plugin were changed - Doh! Thank you very much for your help!