How to build newly added folder in project?

LabKey Support Forum (Inactive)
How to build newly added folder in project? jeckels  2013-06-25 16:01
Status: Closed
 
Hello,

It's important to distinguish between the files that are part of the build, and that are part of a given installation.

Files like the JSP you're editing are part of a module that is built. These files are available to any installation that includes that module. You can add images to your module under its webapp directory. These files are then available to reference in your JSP. For an example, check out:

./server/customModules/targetedms/webapp/TargetedMS/images/TransitionGroup.gif

and its usage in:

./server/customModules/targetedms/src/org/labkey/targetedms/view/peptideSummaryView.jsp

If you upload a file through the user interface into a project or folder, it's available for that installation, but it isn't part of the module, so it's generally not a good idea to reference it from a JSP or other module-based resource. However, you can find the URL for the image using the WebDAV UI. For a standard developer install, try going to:

http://localhost:8080/labkey/_webdav

You can browse into your project and folder to find the file, and check what its URL is.

Thanks,
Josh