This website has been translated by machine translation software and has not been subsequently revised by translators. Further information at: link. Hide
the accesskey _ mod _ content
-

Addition of licensing headers

  • Short Name:
    AddHeader
    Summary:
    The solution has two Linux scripts. The first, called “ verifies _ cabeceras.sh ”, generates 3 listings reflecting the files that have licensing header, files that have licensing header along with This and the files that have no header. By default, is configured to analyze files JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES.
    The second script, called "addition _ cabeceras.sh", adds the headers of discharge to the files you want. By default, is configured to add headers to files JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES.
    Target audience:
    Any public administration, citizen, company, AGE, REGIONAL GOVERNMENTS, Local Entities
    Agencies Responsible:
    Political ministry Territorial and Public Function
    Secretariat of state of Public Function
    General Secretariat of Digital Administration
    Usage:
    Installable product
    Contact:

    You can contact the customer support of specifying as CTT type "licensing Consultation and free software"

    https: / / ssweb.seap.minhap.es / help / consultation / CTT

     

    Type of Solution:
    Application
    Status of the Solution:
    Production
    Organic Area:
    State
    Functional Area:
    Government and the public Sector
    License:
    EUPL (European Public License)
    Interoperability level:
    Technical
    Operating system:
    Linux

    Description

    La solución cuenta con dos scripts de Linux. El primero de ellos, llamado “verifica_cabeceras.sh”, comprueba si los ficheros cuya extensión coincida con alguna de las siguientes: JAVA, XML, JSP, CSS, DTD, HTML y PROPERTIES; disponen de cabecera de licenciamiento y genera 3 ficheros de texto. Estos son:

    • File "result _ files _ with _ cabecera.txt": it contains the list of all files that have a header (does not have to be a header of licensing).
    • Fichero "resultado_ficheros_con_cabecera_extendido.txt": contiene el listado de todos los ficheros que disponen de una cabecera junto a su cabecera (no tiene por qué ser una cabecera de licenciamiento).
    • File "result _ files _ no _ cabecera.txt": it contains the list of files that do not have a header.

    The file "result _ files _ no _ cabecera.txt" we use as a basis for the creation of the file / s TXT, data source for the execution of the script "addition _ cabeceras.sh".

    The script can easily expanded the list of extensions already that is structured in procedures.

    The script also has the use of optional parameters. These parameters can change the directory and to analyse extensions.

    Finally, the script has a help that is accessed by adding the parameter "-h" to the name of the script.

    The second script, called "addition _ cabeceras.sh", adds the headers of licensing (saved in a source file) to files whose size matches any of the following: JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES.

    You can add or remove extensions and change the list of files to modify. For this account with a file called "variables.cfg that reflected the following variables:

    • file "": file / s source divided / s internally in two sections: header and list of files to modify. Section "header" will contain the header for inserting and, the list of files, the files to change.
    • header "": this variable contains the extensions of the files to be modified.
    • directory "": directory which contains the files to change.

    This script, like the previous one, easily to expand the list of extensions already that is structured in procedures.

    The script also has the use of optional parameters. These parameters can change the source file, the directory and the extension of the files which add licensing headers.

    También permite realizar una modificación de todos los ficheros cuya extensión coincida con las enumeradas anteriormente, dentro de un directorio completo y concreto.

    Finally, the script has a help that is accessed by adding the parameter "-h" to the name of the script.

    Subscriptions

    In this area you can register to receive notification of changes that occur in news, documents or forums associated with the settlement or the active semantic.

    - PAe subscription management

    Los campos con asterisco * son obligatorios. Se debe marcar al menos una de las copiones de suscripción (Noticias, Documentos o Foros) e indicar el correo en el campo de texto indicado para el alta o la baja de suscripción.

    Introduzca el email con el que desea recibir las notificaciones de la solución o del activo semántico.

    *

    Enter the email to unsubscribe from the unsubscribe.
General access point
General access point
Maintainer