Archive for the ‘Adobe Flex Builder’ Category

Linking an external folder to Eclipse / Flex Builder Project

December 6, 2010

At times, there may be a need to link some external folder to the source code of our project in Eclipse or Flex Builder project. One common need is to link the output of our java project in Eclipse to the WEB-INF folder of our web server.  Do the following steps for this.

1. Right click on the project -> new -> Folder.

2. In the dialog box shown, click on the Advanced button, if the advanced section is not expanded. This will expand the advanced section in the dialog box.

3.Now check the checkbox with label : “Link to folder in the file system”. This will enable the text box for entering the path and the Browse and Variables button.

4.Now either enter the path to the folder to which you need to link in the text box or select the folder using the “Browse” button.

5. Click Finish.

BINGO!! This will show the new folder in the folder list under the project. The folder will be having a special icon, denoting that this is a external linked folder. This folder can then be used as source folder or output folder using the Configure Build Path options.

Happy Coding Guyz… Cheers. 🙂

Advertisements

Redirecting the Eclipse/Flex Builder Console output to a log file

August 17, 2010

Usually we write some Java standalone programs / try to debug some web applications in Eclipse, which will generate lots of SOP / log statements. The console has a limited amount of capacity of displaying logs (even though we can change the capacity). Also if we run it again the previous console output will go away. In these cases we would require the output of the console to be written to one log file in the hard disk. You can do this in the following way :

In the eclipse Run / Debug configurations dialogue box, on the right side, you can see several tabs, where you will provide classpath, parameters, etc.
Click on the last tab, labelled as ‘Common’.
Look for the control group with title ‘Standard input and output’. There you can see one checkbox with label ‘File’.
Checking on this will activate the text box next to it. You can give the path of the log file in that text box.
You can otherwise select a directory from either workspace or file system using the corresponding buttons under that.

Don’t forget to check on the ‘Append’ checkbox if you want the log file to be keep on appending.

Now click on ‘RUN’ and you can see the new log file generated on the selected location.

Happy Coding 🙂


%d bloggers like this: