PC SOFT

WINDEV的在线文档

  • Overview
  • How do I proceed?
  • Creating a batch file
  • Tip
  • Status report of a batch
  • Describing a batch
  • Running a batch in command line
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
WinDev, WebDev and WinDev Mobile give you the ability to run a set of processes (compilation, generation, and so on) that will be applied to a project or to a group of projects. These processes are grouped in a "batch".

The batches can be run immediately or by the scheduled tasks of Windows (compiling a group of projects every night for example).

How do I proceed?

Creating a batch file

To create a batch file:
  1. Select "Workshop .. Multi-project batch .. Create a batch". The wizard for batch creation starts.
  2. Specify the name of the batch, its location and its description.
    Note: The extension of the file corresponding to a batch is ".WDBatch".
  3. Select the different projects to handle in the batch via the "Add a project", "Add several projects" and "Delete from the list" buttons.
    Notes:
    • The order of the projects is very important. For example, a project generating a component used by a second project must be processed first.
    • The same project can be displayed several times in the list of projects. Indeed, the different project configurations can be processed. All the project configurations are taken into account by default. The choice of the configuration to take into account is performed in the batch description.
  4. Specify the processes that must be run by the batch. A list of processes is proposed by default. You have the ability to add or delete processes.
    You can now configure the operations that will be automatically performed during the execution of the batch via the "Edit the road map" button. These operations affect:
    • the automatic update of the components.
    • the synchronization of the project with the analysis.
    • the synchronization of templates.
    • the update of the project.
    • the management of the compilation errors (the compilation errors of GUI are ignored). If "Start the generation regardless of the errors" is selected, a "warning" will be written into the status report whenever a compilation error occurs.
    • the management of automatic tests. If "Continue the execution of the batch regardless the errors" is selected, a "warning" will be written into the status report whenever an error occurs in the automatic tests.
    • the options specific to the projects found in the SCM.
  5. Specify the post-batch actions to run. You have the ability to run an executable after the batch, to close the editor, to switch the computer off, ... A status report can also be sent into the WDBal messaging.
  6. The wizard is over. You can:
    • Edit the description of the batch. The description window of the batch is used to configure the characteristics of the batch more precisely.
    • Run the batch immediately.
    • Schedule the execution of the batch by creating a scheduled task in Windows. The wizard for creating a programmed task starts.

Tip

To process the multi-product projects (project with a configuration in WinDev and a configuration in WebDev for example), we advise you to create a batch for each product.

For example, the WinDev batch will be used to process the WinDev configuration of the project and the WebDev batch will be used to process the WebDev configuration of the project.

Status report of a batch

When running a batch, a status report is automatically generated (.wbl file). This status report can be opened in the editor:
  • via "Workshop .. Multi-project batch .. Open a batch report".
  • via "File .. Open".

Describing a batch
The description of an existing batch can be displayed at any time. To do so, open the batch:
  • via "Workshop .. Multi-project batch .. Open a batch".
  • Via "File .. Open".
The description window of a batch is used to:
  • Create a new batch ("New" button).
  • Select an existing batch.
  • Start the execution of the batch ("Start the execution" button) or schedule the execution of the batch in Windows ("Schedule the execution" button).
  • Define for each project processed by the batch:
    • the configuration to process. All the project configurations are processed by default.
    • the list of processes to perform. The main list of the batch is applied to all the projects by default. You have the ability to create a new list of processes. Each project can be associated with a different list of processes. The list of processes is displayed in the lower section of the screen. A specific road map can be defined for each list of processes.
  • Define the post-batch actions to perform ("Post-batch actions" button).

Running a batch in command line
The following syntax allows you to run a batch in command line:

In WinDev:

WinDev17.EXE /NAME="<Initials>" /PASS="<Password>" /BATCH="<Full name of batch>"

In WinDev Mobile:

WD17Mobile.EXE /NAME="<Initials>" /PASS="<Password>" /BATCH="<Full name of batch>"

In WebDev:

WebDev17.EXE /NAME="<Initials>" /PASS="<Password>" /BATCH="<Full name of batch>"

where

<Initials> corresponds to the initials used in the login window of WinDev, WebDev and WinDev Mobile.

<Password> corresponds to the password used in the login window of WinDev, WebDev and WinDev Mobile.

<Full name of batch> corresponds to the full path of the batch file to run.

For example:

WinDev17.EXE /NAME="FP" /BATCH="C:\MyProjects\Test.WDBatch"