List of Gradle tasks for the Adelia Component-Based Build
adelCompoSetInit
This task initializes the build project by creating the necessary framework to enable artifacts to be generated, based on the list of Adelia components' names declared in the adelLstComponents key in the gradle.properties file.
The following diagram shows the result of the task with the adelCompoSetName=sampleApp and adelLstComponents=COMPO_1 COMPO_2 keys.
The sub-directories with Adelia component names will contain the artifacts of Adelia objects contained in each component.
The following diagram shows the structural details of an "component" directory (COMPO_1 in this example).
Each "component" subdirectory contains a location in which to build the various types of artifacts.
A location may be empty if no objects corresponding to a particular type of artifact exist in the Adelia component.
adelCompoSetCreateAS400Lib
This task creates (in the environment attributes on the declared AS400) the necessary libraries enabling Adelia objects to be generated in order to build As400Adelia and As400Server artifacts.
The libraries thus created are those defined via the adelGenAS400.as400Adelia.genLib, adelGenAS400.as400Server.genLib, adelGenAS400.language, adelGenAS400.as400Adelia.jobdLib and adelGenAS400.as400Server.jobdLib keys in the gradle.properties file.
adelCompoSetClean
This task deletes the directory with the name of the application being built, as well as the AS400 libraries specified for the purpose of building As400Adelia and As400Server artifacts (the library names are defined via the adelGenAS400.as400Adelia.genLib, adelGenAS400.as400Server.genLib, adelGenAS400.language, adelGenAS400.as400Adelia.jobdLib and adelGenAS400.as400Server.jobdLib keys in the gradle.properties file).
The build project is cleared and you must execute the adelCompoSetInit task again to initialize it.
adelCompoSetGenerate
This task launches the Adelia process that generates the objects belonging to the application areas defined by the adelLstComponents key for the environment defined by the adelEnvName key.
The number of objects generated depends on the generation mode (value of the adelGenIncremental key):
All objects if Global mode is set,
Only objects modified since the previous build if Incremental mode is set,
In both modes, if the Adelia generation process returns an error for an object, the other objects are still generated but the build is halted at the adelCompoSetGenerate task.
Note: If an Adelia object generated during a previous build has been removed from the repository, the adelCompoSetGenerate task will not delete the binary objects resulting from the previous generation and those binary objects will be included in the artifact when it is built.
Upon completion of this task, the files produced during the generation process are placed in the following directories:
Example build configured with adelCompoSetName=sampleApp and adelLstComponents=COMPO_1 |
||
Artifact type |
Target directory in which files produced by the generation process are placed |
Artifact type |
As400Adelia |
In the AS400 libraries defined by the adelGenAS400.as400Adelia.genLib key and the adelGenAS400.language key |
|
As400Server |
In the AS400 libraries defined by the adelGenAS400.as400Server.genLib key and the adelGenAS400.language key |
|
Cloud |
sampleApp\COMPO_1\ COMPO_1_Cloud\src\main sampleApp\ COMPO_1\ COMPO_1_Cloud\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
CloudEventB |
sampleApp\COMPO_1\ COMPO_1_CloudEventB\src\main sampleApp\ COMPO_1\ COMPO_1_CloudEventB\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
CloudSelenium |
sampleApp\ COMPO_1\ COMPO_1_CloudSelenium\src\main sampleApp\ COMPO_1\ COMPO_1_CloudSelenium\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files. These files are compiled by the adelCompoSetBuild task. |
CrystalReportsCloudEvent |
sampleApp\ COMPO_1\ COMPO_1_CrystalReportsCloudEvent |
Contains the Crystal Reports template files (.RPT files) produced during Cloud and/or Event generation of programs with reports |
CrystalReportsWeb |
sampleApp\ COMPO_1\ COMPO_1_CrystalReportsWeb |
Contains the Crystal Reports template files (.RPT files) produced during Web generation of programs with reports |
Event |
sampleApp\COMPO_1\ COMPO_1_Event\src\main sampleApp\ COMPO_1\ COMPO_1_Event\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
JavaClient |
sampleApp\ COMPO_1\ COMPO_1_JavaClient\src\main sampleApp\COMPO_1\COMPO_1_JavaClient\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
JavaClientWebB | sampleApp\ COMPO_1\ COMPO_1_JavaClientWebB\src\main sampleApp\COMPO_1\COMPO_1_JavaClientWebB\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
JavaServer |
sampleApp\COMPO_1\COMPO_1_JavaServer\src\main sampleApp\COMPO_1\COMPO_1_JavaServer\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
Pojo |
sampleApp\COMPO_1\COMPO_1_Pojo\src\main sampleApp\COMPO_1\COMPO_1_Pojo\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files. These files are compiled by the adelCompoSetBuild task. |
Web |
sampleApp\COMPO_1\COMPO_1_Web\src\main sampleApp\COMPO_1\COMPO_1_Web\src\s<X> (where X is a numerical value) |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
WinClient |
sampleApp\COMPO_1\COMPO_1_WinClient\src sampleApp\COMPO_1\COMPO_1_WinClient\obj |
The generation process produces the Windows source files (in the src directory) as well as the binary objects produced by the C compilation (obj directory) |
WinServer |
sampleApp\COMPO_1\COMPO_1_WinServer\src sampleApp\COMPO_1\COMPO_1_WinServer\obj |
The generation process produces the Windows source files (in the src directory) as well as the binary objects produced by the C compilation (obj directory) |
WSRest |
sampleApp\COMPO_1\COMPO_1_WSRest\src\main |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
WSSoapAar |
sampleApp\COMPO_1\COMPO_1_WSSoapAar\arc\main |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
WSSoapJar |
sampleApp\COMPO_1\COMPO_1_WSSoapJar\src\<WebServicename> |
The generation process produces the .java source files and the resource files. Java files are compiled by the adelCompoSetBuild task. |
Table 2: Generation path of the files needed for building the generated artifacts.
adelCompoSetBuild
This is the main task in an Adelia build by components. It is divided into two phases:
The adelCompoSetGenerate task is called to execute the Adelia generation process,
The files produced by phase 1 are processed to create the related artifacts.
At the end of phase 2, the generated artifacts are placed in the following directories:
Example build configured with adelCompoSetName=sampleApp, adelLstComponents=COMPO_1, adelGenAS400.language=SPANISH[COMPO_1 TSTBLDESPR],ENGLISH[COMPO_1 TSTBLDUKPR], version=1.0.0-SNAPSHOT and "prefix_compo_1" as prefix value of COMPO_1 component (click here for more details) |
||
Artifact type |
Target directory in which files produced by the generation process are placed |
Artifact type |
As400Adelia |
sampleApp\COMPO_1\COMPO_1_As400Adelia\obj\pgm sampleApp\COMPO_1\COMPO_1_As400Adelia\obj\intl\SPANISH sampleApp\COMPO_1\COMPO_1_As400Adelia\obj\intl\ENGLISH |
prefix_compo_1_as400adelia-1.0.0-SNAPSHOT.zip prefix_compo_1_as400adelia_spanish-1.0.0-SNAPSHOT.zip prefix_compo_1_as400adelia_english-1.0.0-SNAPSHOT.zip |
As400Server |
sampleApp\COMPO_1\COMPO_1_As400Server\obj\pgm sampleApp\COMPO_1\COMPO_1_As400Server\obj\intl\SPANISH sampleApp\COMPO_1\COMPO_1_As400Server\obj\intl\ENGLISH |
prefix_compo_1_as400server-1.0.0-SNAPSHOT.zip prefix_compo_1_as400server_spanish-1.0.0-SNAPSHOT.zip prefix_compo_1_as400server_english-1.0.0-SNAPSHOT.zip |
Cloud |
sampleApp\COMPO_1\COMPO_1_Cloud\build\libs |
prefix_compo_1_cloud-1.0.0-SNAPSHOT.jar |
CloudEventB | sampleApp\COMPO_1\COMPO_1_CloudEventB\build\libs | prefix_compo_1_cloudeventb-1.0.0-SNAPSHOT.jar |
CloudSelenium |
sampleApp\COMPO_1\COMPO_1_CloudSelenium\build\libs |
prefix_compo_1_cloudselenium-1.0.0-SNAPSHOT.jar |
CrystalReportsCloudEvent |
sampleApp\COMPO_1\COMPO_1_CrystalReportsCloudEvent\build |
prefix_compo_1_crystalreportscloudevent-1.0.0-SNAPSHOT.zip |
CrystalReportsWeb |
sampleApp\COMPO_1\COMPO_1_CrystalReportsWeb\build |
prefix_compo_1_crystalreportsweb-1.0.0-SNAPSHOT.zip |
Event | sampleApp\COMPO_1\COMPO_1_Event\build\libs | prefix_compo_1_event-1.0.0-SNAPSHOT.jar |
JavaClient |
sampleApp\COMPO_1\COMPO_1_JavaClient\build\libs |
prefix_compo_1_javaclient-1.0.0-SNAPSHOT.jar |
JavaClientWebB | sampleApp\COMPO_1\COMPO_1_JavaClientWebB\build\libs | prefix_compo_1_javaclientwebb-1.0.0-SNAPSHOT.jar |
JavaServer |
sampleApp\COMPO_1\COMPO_1_JavaServer\build\libs |
prefix_compo_1_javaserver-1.0.0-SNAPSHOT.jar |
Pojo |
sampleApp\COMPO_1\COMPO_1_Pojo\build\libs |
prefix_compo_1_pojo-1.0.0-SNAPSHOT.jar |
Web |
sampleApp\COMPO_1\COMPO_1_Web\build\libs |
prefix_compo_1_web-1.0.0-SNAPSHOT.jar |
WinClient |
sampleApp\COMPO_1\COMPO_1_WinClient\build |
prefix_compo_1_winclient-1.0.0-SNAPSHOT.zip |
WinServer |
sampleApp\COMPO_1\COMPO_1_WinServer\build |
prefix_compo_1_winserver-1.0.0-SNAPSHOT.zip |
WSRest |
sampleApp\COMPO_1\COMPO_1_WSRest\build\libs |
prefix_compo_1_wsrest-1.0.0-SNAPSHOT.jar |
WSSoapAar |
sampleApp\COMPO_1\COMPO_1_WSSoapAar\build\libs |
prefix_compo_1_wssoapaar-1.0.0-SNAPSHOT.aar |
WSSoapJar |
sampleApp\COMPO_1\COMPO_1_WSSoapJar\build\libs |
prefix_compo_1_wssoapjar-1.0.0-SNAPSHOT.zip |
Table 3: Description of the generated debug artifact files
For Java artifacts, the .java source files are compiled (by the adelCompoSetBuild task) using the compilation options defined in the adeliws.ini file.
Furthermore, if the value of the build parameter adelCreateSourceFilesArtifacts is Y, 3GL sources artifacts are generated in addition to the main artifacts described above:
Example build configured with adelLstComponents=COMPO_1, version=1.0.0-SNAPSHOT and "prefix_compo_1" as prefix value of COMPO_1 component (click here for more details) |
||
---|---|---|
Artifact type |
Generated file destination directory |
Name of the generated file |
Cloud | sampleApp\COMPO_1\COMPO_1_Cloud\build\libs |
prefix_compo_1_cloud-1.0.0-SNAPSHOT-sources.jar |
CloudEventB |
sampleApp\COMPO_1\COMPO_1_CloudEventB\build\libs |
prefix_compo_1_cloudeventb-1.0.0-SNAPSHOT-sources.jar |
CloudSelenium | sampleApp\COMPO_1\COMPO_1_CloudSelenium\build\libs |
prefix_compo_1_cloudselenium-1.0.0-SNAPSHOT-sources.jar |
Event |
sampleApp\COMPO_1\COMPO_1_Event\build\libs |
prefix_compo_1_event-1.0.0-SNAPSHOT-sources.jar |
JavaClient | sampleApp\COMPO_1\COMPO_1_JavaClient\build\libs |
prefix_compo_1_javaclient-1.0.0-SNAPSHOT-sources.jar |
JavaClientWebB |
sampleApp\COMPO_1\COMPO_1_JavaClientWebB\build\libs |
prefix_compo_1_javaclientwebb-1.0.0-SNAPSHOT-sources.jar |
JavaServer | sampleApp\COMPO_1\COMPO_1_JavaServer\build\libs |
prefix_compo_1_javaserver-1.0.0-SNAPSHOT-sources.jar |
Pojo | sampleApp\COMPO_1\COMPO_1_Pojo\build\libs |
prefix_compo_1_pojo-1.0.0-SNAPSHOT-sources.jar |
Web | sampleApp\COMPO_1\COMPO_1_Web\build\libs |
prefix_compo_1_web-1.0.0-SNAPSHOT-sources.jar |
WinClient | sampleApp\COMPO_1\COMPO_1_WinClient\build |
prefix_compo_1_winclient-1.0.0-SNAPSHOT-sources.zip |
WinServer | sampleApp\COMPO_1\COMPO_1_WinServer\build |
prefix_compo_1_winserver-1.0.0-SNAPSHOT-sources.zip |
WSRest | sampleApp\COMPO_1\COMPO_1_WSRest\build\libs |
prefix_compo_1_wsrest-1.0.0-SNAPSHOT-sources.jar |
WSSoapAar | sampleApp\COMPO_1\COMPO_1_WSSoapAar\build\libs |
prefix_compo_1_wssoapaar-1.0.0-SNAPSHOT-sources.jar |
WSSoapJar | sampleApp\COMPO_1\COMPO_1_WSSoapJar\build\libs |
prefix_compo_1_wssoapjar-1.0.0-SNAPSHOT-sources.jar |
Table 4: Description of the sources artifact files produced
Furthermore, if the value of the build parameter adelGenDebugMod is Y, debug artifacts are generated in addition to the main artifacts described above:
Example build configured with adelCompoSetName=sampleApp, adelLstComponents=COMPO_1, version=1.0.0-SNAPSHOT and "prefix_compo_1" as prefix value of COMPO_1 component (click here for more details) |
||
---|---|---|
Artifact type |
Generated file destination directory |
Name of the generated file |
Cloud | sampleApp\COMPO_1\COMPO_1_Cloud\build\distributions |
prefix_compo_1_clouddbg-1.0.0-SNAPSHOT.zip |
CloudEventB |
sampleApp\COMPO_1\COMPO_1_CloudEventB\build\distributions |
prefix_compo_1_cloudeventbdbg-1.0.0-SNAPSHOT.zip |
Event |
sampleApp\COMPO_1\COMPO_1_Event\build\distributions |
prefix_compo_1_eventdbg-1.0.0-SNAPSHOT.zip |
JavaClient | sampleApp\COMPO_1\COMPO_1_JavaClient\build\distributions |
prefix_compo_1_javaclientdbg-1.0.0-SNAPSHOT.zip |
JavaClientWebB |
sampleApp\COMPO_1\COMPO_1_JavaClientWebB\build\distributions |
prefix_compo_1_javaclientwebbdbg-1.0.0-SNAPSHOT.zip |
Web | sampleApp\COMPO_1\COMPO_1_Web\build\distributions |
prefix_compo_1_webdbg-1.0.0-SNAPSHOT.zip |
WinClient | sampleApp\COMPO_1\COMPO_1_WinClient\build |
prefix_compo_1_winclientdbg-1.0.0-SNAPSHOT.zip |
WSRest | sampleApp\COMPO_1\COMPO_1_WSRest\build\distributions |
prefix_compo_1_wsrestdbg-1.0.0-SNAPSHOT.zip |
WSSoapAar | sampleApp\COMPO_1\COMPO_1_WSSoapAar\build\distributions |
prefix_compo_1_wssoapaardbg-1.0.0-SNAPSHOT.zip |
WSSoapJar | sampleApp\COMPO_1\COMPO_1_WSSoapJar\build\distributions |
prefix_compo_1_wssoapjardbg-1.0.0-SNAPSHOT.zip |
Table 5: Description of the debug artifact files produced
uploadArchives
This task transfers the built artifacts to the upload repository.
You must specify the uploadArchivesReleaseRepo or uploadArchivesSnapshotRepo key, depending on the version type of the artifacts.
This task must be called after the adelCompoSetBuild task.
Unlike the Adelia application area-based build where the group ID of all the artifacts generated during a build was identical (set with the "group" key in the gradle.properties file), the artifacts built during a component-based build have a group ID from the component they belong to.
Link between component dependency and generated artifact dependencies
This section describes how a logical dependency between two A and B components results in artifact build dependencies/POMs generated by the Gradle build tool.
Definition of a dependency
Note
The Adelia build component manager is used to define a dependency between two components whose "location" may be:
- "To be derived": the dependency is automatically analyzed by the manager (by analyzing the sources of objects belonging to the component) and has the derived value "Client", "Server" or "Client Server",
- "Client": component A contains objects located (i.e. which will be executed) on the "client" machine and which depend on the objects of component B located on the "client" machine,
- "Server": component A contains objects located on the "server" machine which depend on the objects of component B located on the "server" machine,
- or "Client Server": component A contains objects located on the "client" machine which depend on the objects of component B located on the "client" machine as well as objects located on the "server" machine which depend on the objects of component B located on the "server" machine.
At Gradle level, a dependency between A and B results in an execution dependency between artifacts at generated artifact level.
This is explicitly described in the POM of each artifact generated from A.
The dependency between artifacts is a "runtime"-scope dependency except in the following dependency cases where it is "compile" scope:
- Cloud artifact of A dependent on the Pojo artifact of B,
CloudEventB artifact of A dependent on the Pojo artifact of B,
Event artifact of A dependent on the Pojo artifact of B,
- JavaClient artifact of A dependent on the Pojo artifact of B,
JavaClientWebB artifact of A dependent on the Pojo artifact of B,
Web artifact of A dependent on the Pojo artifact of B,
- Pojo artifact of A dependent on the Pojo artifact of B,
- WSRest artifact of A dependent on the Pojo artifact of B,
- WSSoapAar artifact of A dependent on the Pojo artifact of B,
- WSSoapJar artifact of A dependent on the Pojo artifact of B.
Like in the Adelia application area-based build, there is dependency between artifacts generated from the same component, namely:
- Cloud artifact of A dependent on the Pojo artifact of A,
- CloudEventB artifact of A dependent on the Pojo artifact of A,
- Event artifact of A dependent on the Pojo artifact of A,
- JavaClient artifact artifact of A dependent on the Pojo artifact of A,
- JavaClientWebB artifact of A dependent on the Pojo artifact of A,
- Web artifact of A dependent on the Pojo artifact of A,
- WSRest artifact of A dependent on the Pojo artifact of A,
- WSSoapAar artifact of A dependent on the Pojo artifact of A,
- WSSoapJar artifact of A dependent on the Pojo artifact of A.
Reminder of the types of generated artifacts:
Artifact type |
Content |
Container file type |
As400Adelia | Contains the binary objects produced during AS400 generation of Adelia interactive and batch programs | ZIP file containing a SAVF file for an AS400 library |
As400Server | Contains the binary objects produced during AS400 generation of SAdelia programs and the server parts of VAdelia programs | ZIP file containing a SAVF file for an AS400 library |
Cloud | Contains the binary objects produced during Cloud (Java) generation of the client parts of interactive VAdelia programs | JAR file containing Java .class files and other resource files |
CloudEventB |
Contains the binary objects produced during Cloud and/or Event (Java) generation of VAdelia batch programs |
JAR file containing Java .class files and other resource files |
CloudSelenium | Contains the binary objects - used when executing Selenium test scenarios - produced during Cloud (Java) generation of VAdelia Interactive programs | JAR file containing Java .class files |
CrystalReportsCloud | Contains the Crystal Reports report templates produced during Cloud and/or Event generation of VAdelia Batch programs with reports. | ZIP file containing the .RPT files for the Crystal Reports templates |
CrystalReportsWebEvent | Contains the Crystal Reports report templates produced during Java generation of WAdelia Batch programs with reports. | ZIP file containing the .RPT files for the Crystal Reports templates |
JavaClient | Contains the binary objects produced during Java generation of the client parts of VAdelia interactive programs | JAR file containing Java .class files and other resource files |
JavaClientWebB | Contains the binary objects produced during standard and/or Web (Java) generation of VAdelia batch programs | JAR file containing Java .class files and other resource files |
Event | Contains the binary objects produced during Event (Java) generation of EADELIA programs | JAR file containing Java .class files and other resource files |
JavaServer | Contains the binary objects produced during Java generation of SAdelia programs and the server parts of VAdelia and WAdelia programs | JAR file containing Java .class files and other resource files |
Pojo | Contains the binary objects produced during Java generation of Class objects | JAR file containing Java .class files and other resource files |
Web | Contains the binary objects produced during Java generation of the client parts of WAdelia programs | JAR file containing Java .class files and other resource files |
WinClient | Contains the binary objects produced during Windows generation of the client parts of VAdelia programs | ZIP file containing .exe and .dll files |
WinServer | Contains the binary objects produced during Windows generation of SAdelia programs and the server parts of VAdelia and WAdelia programs | ZIP file containing .exe and .dll files |
WSRest | Contains the binary objects produced when REST Web Services (Java) are generated for VAdelia Batch programs | JAR file containing Java .class files and other resource files |
WSSoapAar | Contains the binary objects produced when DOCUMENT Web Services (Java) are generated for VAdelia Batch programs | JAR file containing Java .class files and other resource files |
WSSoapJar | Contains the binary objects produced when DOCUMENT_JAXWS Web Services (Java) are generated for VAdelia Batch programs | ZIP file containing .jar file |
↑ Top of page
Client location dependency
Description of a "Client" dependency of component A towards component B in terms of artifact dependencies:
A depends on B |
||||||||||||||||||
Component B |
||||||||||||||||||
As400Adelia |
As400Server |
Cloud |
CloudEventB | CloudSelenium |
CrystalReportsCloudEvent |
CrystalReportsWeb |
Event | JavaClient |
JavaClientWebB | JavaServer |
Pojo |
Web |
WinClient |
WinServer |
WSRest |
WSSoapAar |
WSSoapJar |
|
Component A | ||||||||||||||||||
As400Adelia |
||||||||||||||||||
As400ServerAs400Server |
||||||||||||||||||
Cloud |
||||||||||||||||||
CloudEventB | ||||||||||||||||||
CloudSelenium |
||||||||||||||||||
CrystalReportsCloudEvent |
||||||||||||||||||
CrystalReportsWeb |
||||||||||||||||||
Event | ||||||||||||||||||
JavaClient |
||||||||||||||||||
JavaClientWebB | ||||||||||||||||||
JavaServer |
||||||||||||||||||
Pojo |
||||||||||||||||||
Web |
||||||||||||||||||
WinClient |
||||||||||||||||||
WinServer |
||||||||||||||||||
WSRest |
||||||||||||||||||
WSSoapAar |
||||||||||||||||||
WSSoapJar |
The symbol indicates that the artifact of component A (that defined on the symbol row) depends on the artifact of component B (that defined on the symbol column).
Server location dependency
Description of a "Server" dependency of component A towards component B in terms of artifact dependencies:
A depends on B |
|||||||||||||||
Component B |
|||||||||||||||
As400Adelia |
As400Server |
Cloud |
CloudSelenium |
CrystalReportsCloud |
CrystalReportsWeb |
JavaClient |
JavaServer |
Pojo |
Web |
WinClient |
WinServer |
WSRest |
WSSoapAar |
WSSoapJar |
|
Component A | |||||||||||||||
As400Adelia |
|
||||||||||||||
As400ServerAs400Server |
|||||||||||||||
Cloud |
|||||||||||||||
CloudSelenium |
|||||||||||||||
CrystalReportsCloud |
|||||||||||||||
CrystalReportsWeb |
|||||||||||||||
JavaClient |
|||||||||||||||
JavaServer |
|
|
|||||||||||||
Pojo |
|||||||||||||||
Web |
|||||||||||||||
WinClient |
|||||||||||||||
WinServer |
|||||||||||||||
WSRest |
|||||||||||||||
WSSoapAar |
|||||||||||||||
WSSoapJar |
The symbol indicates that the artifact of component A (that defined on the symbol row) depends on the artifact of component B (that defined on the symbol column).
↑ Top of page
Client Server location dependency
Description of a "Client Server" dependency of component A towards component B in terms of artifact dependencies:
A depends on B |
||||||||||||||||||
Component B |
||||||||||||||||||
As400Adelia |
As400Server |
Cloud |
CloudEventB | CloudSelenium |
CrystalReportsCloudEvent |
CrystalReportsWeb |
Event | JavaClient |
JavaClientWebB | JavaServer |
Pojo |
Web |
WinClient |
WinServer |
WSRest |
WSSoapAar |
WSSoapJar |
|
Component A | ||||||||||||||||||
As400Adelia |
||||||||||||||||||
As400ServerAs400Server |
|
|
||||||||||||||||
Cloud |
||||||||||||||||||
CloudEventB | ||||||||||||||||||
CloudSelenium |
||||||||||||||||||
CrystalReportsCloudEvent |
||||||||||||||||||
CrystalReportsWeb |
||||||||||||||||||
Event | ||||||||||||||||||
JavaClient |
||||||||||||||||||
JavaClientWebB | ||||||||||||||||||
JavaServer |
|
|
||||||||||||||||
Pojo |
||||||||||||||||||
Web |
||||||||||||||||||
WinClient |
||||||||||||||||||
WinServer |
|
|||||||||||||||||
WSRest |
||||||||||||||||||
WSSoapAar |
||||||||||||||||||
WSSoapJar |
The symbol indicates that the artifact of component A (that defined on the symbol row) depends on the artifact of component B (that defined on the symbol column).
Dependency of Gradle tasks for the Adelia build
The following table shows the inputs and dependent tasks for each build task.
Task name |
Dependent on |
Description |
adelCompoSetInit |
adelCompoSetName key, adelLstComponents key |
Initializes the Adelia build project. |
adelAppCreateAS400Lib |
adelGenAS400.language key |
Creates the AS400 libraries defined in gradle.properties. |
adelCompoSetClean |
Clears the build project. |
|
adelCompoSetGenerate |
adelCompoSetInit task, adelCompoSetCreateAS400Lib task |
Launches the Adelia generation process. |
adelCompoSetBuild |
adelCompoSetGenerate task |
Creates the Adelia artifacts. |
uploadArchives |
version key, uploadArchivesReleaseRepo key, uploadArchivesShapshotRepo key |
Transfers the versioned artifacts to a repository. |
↑ Top of page
Launches a build via a command line
The build is launched in several steps, as described below:
Open a DOS command window with an administrator profile,
Navigate to the directory containing the build project,
Run the following command, based on your choices relating to the generation mode and the storage of artifacts in a repository:
Adelia generation mode | Transfer artifacts to repository |
|
YES |
NO |
|
Global (1) |
gradlew adelCompoSetClean adelCompoSetBuild uploadArchives |
gradlew adelCompoSetClean adelCompoSetBuild |
Incremental (2) |
gradlew adelCompoSetBuild uploadArchives |
gradlew adelCompoSetBuild |
(1) : adelGenIncremental=N
(2) : adelGenIncremental=Y
Notes:
- Calling the adelCompoSetClean task in global mode ensures consistency between the content of an artifact and the generated Adelia objects (for example, if an Adelia object deleted between two builds),
- If incremental mode is enabled and the adelCompoSetClean task has been executed, the next build executed in incremental mode will have its mode forced to Global instead,
- As Gradle provides task dependency and task input caching mechanisms, calling the adelCompoSetBuild task will trigger the adelCompoSetInit (project initialization) task in the following cases:
- When the Adelia build is launched for the first time,
- If the name of the application to be built (adelCompoSetName parameter) or the list of Adelia component to be generated (adelLstComponents parameter) has been changed between two builds.
When a build is launched via Jenkins.
The online help is based on Jenkins version 2.66 and the Gradle plugin for Jenkins version 1.27.1.
In a continuous integration approach, Jenkins can be used to run and sequence jobs automatically.
You can define a job as an Adelia build in order to launch it via Jenkins.
There are two ways to do this, as described below.
Adelia build via a command line
When configuring the job, open the Build section and add a step to the build using the "Execute Windows batch command" option. You can enter a series of commands in DOS Batch format, which will then be executed sequentially; for example:
cd /d "D:\build"
call gradlew adelCompoSetClean adelCompoSetBuild uploadArchives
Adelia build via the Gradle plugin
When configuring the job, open the Build section and add a step to the build using the "Invoke Gradle script" option: select the "Use Gradle Wrapper" radio button and then configure the "Wrapper location" field (enter the path to the project containing the gradlew.bat file - in our example, D:\build) and the "Task" field (enter the list of Gradle tasks to be executed - in our example, adelCompoSetClean adelCompoSetBuild uploadArchives).
Additionally, you must specify the build project root directory. To do this, click the Advanced button and specify the "Root Build script" field (in our example, D:\build).