Search the Community
Showing results for tags 'set-up'.
-
Here, you're going to learn how to set up your Eclipse for the following: Automatically compile and save your scripts to script folder folder each time you save your work. Share the same script files across many projects. Recompile everything in the event of script conflicts or corruptions. Let's start: Automatically compile and save your scripts to script folder folder each time you save your work 1. Open Eclipse and navigate to Window > Preferences. 2. Navigate to General > Workspace > Linked Resources 3. Click "New..." and create a new resource, then give the new path a name and set the location to OSBot script folder 4. Click "Ok" and the new resource will be listed 5. Navigate to Java > Compiler > Building, then under "Output Folder" untick the "Scrub output folders when cleaning projects" 6. Apply and close your preferences then make a new script project 7. Name the project and click "Next" 8. Where it says "Default output folder:" click browse 9. Very important: select the project! Then click the "Create New Folder..." button 10. Open the advanced options and select the variable you created earlier. 11. Select the new folder path and click "OK" Your OSBot folder will now be used to compile and save your scripts directly to. 12. Time to test. Click on the "Libraries" tab, then click the "Add External JARs..." button and add OSBot, then click "Finish". 13. Create a new script 14. Add a script manifest and some code 15. Launch OSBot and check to see if your script appears in the list Share the same script files across many projects 1. Create a new framework project 2. Right click your script project, go to "Properties", click on the "Projects" tab and add your framework to the list Recompile everything in the event of script conflicts or corruptions Note: you should only really need to do this if you've been messing with the files in OSBot/scripts without using Eclipse, or if you've got multiple Eclipse workspaces all outputting to the same folder, or you've deleted some Eclipse projects that are being used by other projects. 1. Go to "Project" and "Clean..." 2. Select all (or some) of the projects you want to totally recompile