1AWSRES(1)                      AWS User's Guide                      AWSRES(1)
2
3
4

NAME

6       awsres - build resource files for Ada Web Server applications
7

SYNOPSIS

9       awsres [-h] [-r unit] [-q] file...
10

DESCRIPTION

12       The  Ada  Web Server is a library that allows you to embed a web server
13       into your Ada application.  It provides not only HTTP  but  also  SOAP,
14       WSDL and several other facilities.  Thus you can write full-fledged web
15       applications.  awsres allows you to embed resources, such as  pictures,
16       into your final executable, so that your executable is completely self-
17       contained and does not need to read other files at run time.
18
19       awsres works by creating Ada source files that  contain  the  data  for
20       your  resources  as arrays of bytes.  You then compile these Ada source
21       files into your executable.  At run time, the AWS library automatically
22       loads the resources from the executable whenever available.
23
24       awsres creates one parent Ada package named, by default, `res', and one
25       child package for each of the files given on  the  command  line.   The
26       package `res' registers each resource when your application starts.  To
27       link `res' into your executable you simply add a `with res;'  statement
28       in one of your source files.
29

EXAMPLE

31       $ ls
32       image.png
33       $ awsres image.png
34       AWSRes - Resource Creator v1.0
35
36       creating image.png...
37        -> registered
38
39       $ ls
40       res.adb  res.ads  res-image_png.ads  image.png
41

OPTIONS

43       -h     Display help message.
44
45       -r name
46              Set the root unit name. Default is `res'.
47
48       -q     Quiet mode.
49

SEE ALSO

51       wsdl2aws(1)
52
53       The Ada Web Server User's Guide in package aws-doc.
54

AUTHOR

56       awsres  was written by Dmitriy Anisimkov <anisimkov@yahoo.com> and Pas‐
57       cal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server.
58
59       This    manual    page    was     written     by     Ludovic     Brenta
60       <ludovic.brenta@insalien.org>  for  Debian GNU/Linux.  adopted by Pavel
61       Zhukov <landgraf@fedoraproject.org> for Fedora Project
62
63
64
65GNU Ada Tools                     29 JAN 2004                        AWSRES(1)
Impressum