Re: [Nxtcommand-developers] Samples and Resources
Status: Beta
Brought to you by:
bbagnall
From: Peter J. <ptg...@ch...> - 2006-11-25 01:49:09
|
This also does not work because if you run the sample from within eclipse the file is looked for in the root directory of the icommand-samples project. But, ... I think I have found a / the solution: Run the sample as java program. This will fail, because the file is not found. But what we have achieved: a run configuration is created. Now edit the run configuration: - Right click sample - popup menu:Run As - Run ... - In the run configuration window: - select the run configuration of the sample, - choose tab Arguments - set radio button of working directory to: Other - click button workspace - select the direcory: src/main/resources - click button run (It takes more time to describe, than to perform this actions) Now the sample runs correct. the run configuration is saved. the next time you can choose the run the sample from the run menu on the toolbar. If you do not see the sample in the run menu, edit the runtime configuration again. In the run configuration window, select tab Common, Option 'display in favourites menu', click options 'run' and 'debug' Peter Joosten. On Fri, 2006-11-24 at 18:35 -0600, Brian Bagnall wrote: > What do you think about putting each sample project in its own subdirectory? > Most will have only one file, the source file. > |