Ant in Eclipse: quietly completed

I am using Ant build script for my project developed in Eclipse 3.4.2 . This is actually a Flex 4 project (using the Flash Builder Eclipse Plug-in ).

Everything is working fine. But sometime something happened, and now the execution of Ant build script is disabled every time it starts.

When you try to debug an Ant script, the ID environment stops momentarily at a breakpoint, and then skips it.

Stand-alone Ant execution (using the command line) works well for my script.

How to solve this problem? Any ideas?

+4
source share
5 answers

This usually happens if:

  • You changed the location of eclipse
  • You changed the location of your jdk / jre
  • AND

  • If you changed the location of the eclipse, go to Window -> Preferences -> Ant -> Runtime. On the classpath tab, verify that the Ant home entries are correct. If not, carefully find the folder in which they are located (they are all in the same folder as the eclipse plugins folder) and add them again and then delete the invalid entries.

  • If you changed the location of your jre / jdk:

    a) Go to Window -> Preferences -> Ant -> Runtime and on the classpath tab expand the Global Entries tree. Make sure that the location of tools.jar is valid and where it is indicated that it is on the file system.

    b) Click Run β†’ External Tools β†’ Configure External Tools. Expand Ant Build, select each of your Ant build files in the workspace, then expand the jre tab and make sure you either check "Run in the same JRE as the workspace" or your separate JRE indicates a valid installed JRE.

+9
source

I think you found a solution, but for those who don't, I had the same problem, and the problem in my case was the workspace. The only solution I found was to create a new workspace.

+3
source

I had the same problem after changing "Installed JREs" under "Window -> Preferences -> Java" in Eclipse. I changed the location of the JRE back and it worked fine. Still researching what happened and why it happened.

+2
source

I ran into this problem changing it and get back to the Flash perspective

+1
source

You need to change the ANT_HOME entry in Eclipse. Click on the new Eclipse installation (let's say on Linux). Window => Prefrences => Ant (No further). There, select Always run the new Ant configuration in the same JRE as the workspace. Application and assembly should work .

When the workspace changes, this will happen when the Ant installation is different. In my case, I had a workspace for the window and ported to ubuntu. He discovered an old one like C: \ Ant

Once selected above, Ant => Runtime => Claspath (Tab) / opta / sts -bundle will appear, and now this is the correct entry for Ant Home Records (default) You cannot delete this from here, but most likely

Window => Preferences => Ant (No further) There, select Always launch a new Ant configuration in the same JRE as the workspace

0
source

Source: https://habr.com/ru/post/1303666/


All Articles