Convert an Ant Run Task into an Eclipse Project
You might stumble over complex Ant based projects now and then, and you won’t have nothing but complex macros and run tasks to start the application. In other words: you require detecting skills to create a debugable Eclipse project.
But there’s a cool and simple way to collect vm arguments, options and paths: use VisualVM to connect to the running application and copy the runtime settings:
- invoke the Ant run task or macro to start the application
- start VisualVM and connect to the app
- copy the runtime settings
- stop the app
- create a new Eclipse project, if you don’t already have one
- create a new debug launch config and apply the recovered settings from step 2.
- run the launch config, and refine as required
That’s it ![]()