Wiki source code of Maven Running or Debugging as WO Application
Version 11.1 by David Holt on 2023/11/13 11:56
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | When running a WO Application in WOLips the following steps currently need to be followed in order for WOLips to resolve components and resources on the classpath. | ||
| 2 | |||
| 3 | 1. Follow this tutorial [[doc:WOL.Run or Debug a WO Application.WebHome]]. Note, the application may fail to start. | ||
| 4 | 1. Stop the application and open the run/debug configuration[[image:attach:OpenConfigurations.png]] | ||
| 5 | 1. Switch to the classpath tab[[image:attach:ClasspathTab.png]] | ||
| 6 | 1. Click on Advanced... selecting Folders[[image:attach:AdvancedOptions.png]] | ||
| 7 | 1. Add your application and dependant framework's build/.../'Java' folders[[image:attach:FolderSelection.png]] | ||
| 8 | 1. Your results will look something like this[[image:attach:ClasspathTabResult.png]] | ||
| 9 | |||
| 10 | {{tip title="Classpath Containers are more convenient"}} | ||
| 11 | You may find yourself doing the above often and it can become painful. Classpath containers become much more convenient... | ||
| 12 | |||
| 13 | 1. Follow up to point 3 above | ||
| 14 | 1. Click on Advanced... selecting Add Classpath Variables[[image:attach:Advanced_AddClasspathVariables.png]] | ||
| 15 | 1. Click the Configure Variables... button, and for each folder you would have added above define a variable. I've called mine BUNDLE_SOMETHING[[image:attach:ClasspathVariablesDefined.png]] | ||
| 16 | 1. Now you can select the ones you need for the app and click ok[[image:attach:ClasspathVariableSelection.png]] | ||
| 17 | 1. You'll have something looking like this[[image:attach:ClasspathTabResult_usingClasspathVariables.png]] | ||
| 18 | {{/tip}} | ||
| 19 | |||
| 20 | Now you can apply changes and run/debug. You may from time to time need to use Project > Clean... when WOLips gets into a weird state. |