Tuesday 15 December 2015

Creating ANT build file for existing Project in Eclipse

Hi, So many people don't know how to create ANT build file for existing project. It is very simple to do that. Follow below steps,

Step 1:
Right click on project and click on Export option and select Export, one popup will be displayed.
Step 2:
In General, select Ant BuildFiles. Now a popup will be displayed, in that select the project for which you want to create the build file and click on finish.

Friday 18 September 2015

Change Web Application Context root in Eclipse/ MyEclipse

When ever we run our web project, our project name will be the default context root. For Example, if our project name is "Test" then the context root will be

 "http://localhost:8080/Test"

If you want to change this in MyEclipse,

1. Right click on the project and select properties from the list of options.
2. Select MyEclipse from the left side menu.
3. Select ‘Project Facets’ from the submenu, then select web option. 
4. On the right side you can find Web Context-root under Context Root tab having the default root context(ie., Test). Here you can change the context root.

If you want to change this in Eclipse,
1. Right click on the project and select properties from the list of options.
2. Select Web Project Settings from the left side menu.
3. In the right side you can find the Context root, which is showing the default project name as context root. Here you can change the context root.