Java Module Help | trent | 2011-07-18 16:27 |
Status: Closed | ||
Wondering if someone can point me in the right direction re: java modules?So anyway, I've seen the Demo module, but I think it would be more beneficial for me to create my own to learn how everything ties in.So anyway, I run the create_module ant script, give it a name of helloworld. Point it to the path of <labkey_src_root>servermoduleshelloworldJust so its in the same directory as all the other modules, and so that I don't need to worry about more VM parameters, passing an external directory. Once I've got it working, i'll be more confident to do that.At this stage, I have made no changes to the module, try running and building and go to Admin -> Manage Project -> Folder Settings. On the right, you can see a list of the available modules, but I see no presence of the one I have just created.Back in intelliJ I notice the classes for said module, have a red circle with a line through them, like the no smoking graphic. I found the key for icons for IntelliJ - http://www.jetbrains.com/idea/webhelp/symbols.html - that this means "Java Class located out of the source root" so thought perhaps this is affecting it being included as a module.So I saw in the File Menu the New Module… item, where you can import an existing module (which I guess is what you are talking about in the documentation when you mention about importing modules from an external directory). So I clicked that -> import existing module, pointed it to the .iml file and followed the steps. Now the red circle with line is gone.I build again and run and go to Admin -> Manage Project -> Folder Settings. But, still see no presence of the module I have just created.Am I doing something wrong or missing any steps? After running the create_module ant script, are there some other configs that need doing before the module appears in LabKey? Or is it because the generated module is too basic to be included as a module. |
||