How do I generate a new core.module?

LabKey Support Forum (Inactive)
How do I generate a new core.module? wit2wit  2016-08-13 22:25
Status: Closed
 
I have updated the core->login->PasswordRule.java. How do I generate a new core.module? I hope to have a step by step guide.

Thanks!
 
 
adam responded:  2016-08-14 08:08
Follow the steps on the Set up a Development Machine page, in particular, the "Build and Run LabKey" section and the table of key ant targets. Once you have built the entire server via "ant build", you can build just the core module by invoking the "ant core" target. You could also try HotSwapping Java classes, if you expect to perform many develop-build-test iterations.

Adam

 
wit2wit responded:  2016-09-16 01:39
I follow the instructions above to use compile with ant build(standard.xml).I used the source package is Labkey16.1-42836.12-src.how can I see the newly generated target file? Which directory?

Thanks!

 
jeckels responded:  2016-09-16 07:20
If the build succeeded, the newly built core.module file will be under the ./build/deploy/modules directory.

Thanks, Josh

 
wit2wit responded:  2016-09-16 19:44
I didn't find the./build/deploy/modules directory. My IDE is IntelliJ IDEA Community Edition 2016.1. Help me!

Thanks

 
jeckels responded:  2016-09-19 09:26
You need to use ./server/build.xml when running "ant build", as described here:

https://www.labkey.org/home/Documentation/wiki-page.view?name=build#build

Thanks, Josh

 
wit2wit responded:  2016-10-12 23:50
How to build C: LabKey16.1-42836.12-src build modules core classes into core.jar? how to write contents of manifest.txt?

Thanks

 
Jon (LabKey DevOps) responded:  2016-10-13 13:58
Hello,

Did you follow the guide that Adam mentioned earlier?

https://www.labkey.org/home/Documentation/wiki-page.view?name=build

Although you're using the actual SRC package rather than using SVN to pull the source code from hedgehog.fhcrc.org, the work in the end is the same. The core.jar would get automatically created upon compiling and automatically create that core.jar into the ./build/deploy/modules/core/lib/ directory.

Regards,

Jon

 
wit2wit responded:  2016-10-13 17:53
I found my ./build/deploy/modules is empty. The ./Build/modules/core/classesy have compiling generated files.

Thanks

 
Jon (LabKey DevOps) responded:  2016-10-14 11:04
Thanks for letting us know. We'll consider this closed.

Feel free to create a new support forum question if you have any new questions.

Regards,

Jon

 
wit2wit responded:  2016-10-27 03:13
I want the actual SRC package to rebuild, similar to generate your community-bin package, but was never able to achieve needs your help.

Thanks