Changes between Version 4 and Version 5 of Web/Servlet


Ignore:
Timestamp:
Jan 23, 2015, 1:29:37 PM (5 years ago)
Author:
vadim.godunko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Web/Servlet

    v4 v5  
    4242  new Spikedog.Generic_Application_Initializer (Initializers.Server_Initializer);
    4343}}}
     44
     45== Building application's library with GNAT ==
     46
     47Application must be build as GNAT's standalone library. It is recommended to use project files to do this. Minimal project file will looks like:
     48
     49{{{#!ada
     50with "matreshka/league.gpr";
     51with "matreshka/servlet.gpr";
     52
     53library project Application is
     54
     55   for Library_Name use "MyApplication";
     56   for Library_Kind use "dynamic";
     57   for Library_Dir use ".libs";
     58   for Library_Interface use ("Initializer", "My_Servlets", "My_Filters");
     59
     60end Application;
     61}}}
     62
     63It is important to list name of application initializer's instantiation package (if used), and all filters and servlets packages as library interface. This allows compiler to generate necessary elaboration code.
     64
     65== Prepare package to deploy application ==
     66