Creating a New Java Module Documentation

LabKey Support Forum (Inactive)
Creating a New Java Module Documentation micahs  2013-12-13 10:33
Status: Closed
 
I'm not seeing a build.xml (or webapp) directory when following the docs at: https://www.labkey.org/wiki/home/Documentation/page.view?name=createNewModule. I do see lib, resource, src, module.properties and MyModule.iml. Is the documentation still valid for 13.3?

I didn't see errors when executing the ant task.

Thanks, Micah
 
 
Steve responded:  2013-12-13 11:41
Hi Micah:

Thanks for note. Yes, the build process has changed. I will reply to this thread when I have more details for you.

Thanks, Steve
 
Steve responded:  2013-12-16 23:16
I've updated the topic "Creating a New Java Module" at: https://www.labkey.org/wiki/home/Documentation/page.view?name=createNewModule

Information on building the module is available here: https://www.labkey.org/wiki/home/Documentation/page.view?name=customizingBuild
 
micahs responded:  2013-12-17 09:30
Hi Steve,

Thanks for the updates. Are there corresponding docs for a build and deploy of the module? These docs are great but they seem to focus on the initial module layout.

Micah
 
Steve responded:  2013-12-17 11:42
Updating the broader set of module docs is on our list, but I don't have an exact date yet for when these updates will be completed.

For module deployment, see: https://www.labkey.org/wiki/home/Documentation/page.view?name=moduleDevelopmentDeployment
 
micahs responded:  2013-12-17 12:05
Thanks. Is that link valid for Java modules? It looked (via jar -tvf on an existing module) like if a Java module contained JSP files they were pre-compiled and placed in the lib dir. Can I just jar up a Java module with the structure detailed in the previous post and drop it in the external modules dir?
 
adam responded:  2013-12-17 13:12
The "moduleDevelopmentDeployment" page is intended for non-Java modules. As you've seen, we simplified the Java module build process recently to remove the need for a build.xml file in most cases. The main build should build and deploy your custom module, assuming its source directory is referenced in the "standard.modules" file (either explicitly or implicitly via wildcards). The main build will compile your Java files and JSPs, package all code and resources into a .module file, and deploy that module.

Adam