WO2013185668A1 - Procédé et dispositif permettant de construire une application web - Google Patents

Procédé et dispositif permettant de construire une application web Download PDF

Info

Publication number
WO2013185668A1
WO2013185668A1 PCT/CN2013/079286 CN2013079286W WO2013185668A1 WO 2013185668 A1 WO2013185668 A1 WO 2013185668A1 CN 2013079286 W CN2013079286 W CN 2013079286W WO 2013185668 A1 WO2013185668 A1 WO 2013185668A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
information
module
configuration
construction
Prior art date
Application number
PCT/CN2013/079286
Other languages
English (en)
Chinese (zh)
Inventor
武彦平
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013185668A1 publication Critical patent/WO2013185668A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Definitions

  • the present invention relates to the field of network technologies, and in particular, to a method and an apparatus for constructing a network application. Background technique
  • Computers can't directly understand high-level languages. They can only understand machine language directly. Therefore, high-level languages must be translated into machine language, and computers can execute programs written in high-level languages. There are two ways to translate, one is to compile, the other is to explain, and the time for translation is different. Correspondingly, high-level languages can usually be divided into compiled languages and interpreted languages. Common compiled languages are C/C++, Pascal, etc. Common interpretive languages are JavaScript, VBScript, Python, etc.
  • Compiled language programs generate machine language programs through compilation, linking, etc. before running. This process is often called build.
  • This process is often called build.
  • the complete build environment is not just a compiler and linker, but also an integrated development environment (IDE), automated build scripts, and test tools.
  • IDE integrated development environment
  • interpret language does not need to be compiled, and are translated when the program is run.
  • the construction of an interpretive language program eliminates the need for compilation, usually including the analysis, merging, testing, and so on.
  • the embodiment of the invention provides a method and a device for constructing a network application, so as to overcome the current development.
  • An embodiment of the present invention provides a method for constructing a web application, where the method includes: acquiring configuration configuration information, where the configuration configuration information includes module information of an application and construction task information of each module;
  • the acquiring the configuration configuration information includes:
  • the information of the newly added module and the construction task information of the newly added module are added to the configuration file.
  • the configuration file further includes built-in custom task information corresponding to the module or the newly added module.
  • the embodiment of the present invention further provides a network (web) application construction apparatus, the apparatus comprising: an application manager, configured to acquire construction configuration information, where the configuration configuration information includes application module information and a construction task of each module. Information; loading a task chain for each module of the application according to the build configuration information; creating a task manager for each of the modules, and transmitting the build task information to the corresponding task manager; and, succeeding After loading all the task chains, execute each task chain in turn;
  • the task manager is configured to receive the construction task information sent by the application manager, search for a corresponding task according to the construction task information, determine that all the construction task information are legal, and construct the task. a chain, and returning to the application manager; and, when the application manager executes the current task chain, sequentially executing each task in the current task chain.
  • the device further includes: a configuration information analyzer, wherein
  • the application manager is configured to obtain build configuration information, including:
  • the configuration information analyzer is configured to, after receiving the acquisition request of the information acquisition unit, load a configuration file, parse the construction configuration information from the configuration file, and return to the application manager.
  • the information of the newly added module and the construction task information of the newly added module are added to the configuration file.
  • the configuration file further includes construction custom task information corresponding to the module or the newly added module, where the construction task information or the configuration custom task information includes a task name and a corresponding task thereof. .
  • the task manager is further configured to save the task name and its corresponding task.
  • the web application construction process can be completed conveniently and quickly, and after adding a new module in the web application, the build process can be conveniently added on the basis of the built task without rebuilding. Thereby reducing the implementation complexity and improving the development efficiency.
  • FIG. 2 is a schematic structural diagram of an embodiment of a web application construction apparatus according to an embodiment of the present invention
  • FIG. 3 is a flowchart of an embodiment of a web application construction method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for constructing a web application according to an embodiment of the present invention.
  • each application may include one or more modules that need to be separately constructed, and for each module, different construction tasks may be required; for example, the application in FIG. 1 includes module A, For modules such as B, module A needs to perform file sorting, analysis of dependencies, removal of useless files, merge of files, and reduction of files by 5 tasks. Module B needs to be built. After analyzing dependencies, merging files, shrinking files, marking file types, and analyzing files, you need to cache 5 tasks. The number of tasks, the types, and the order of tasks used to build each module in an application may be different.
  • FIG. 2 it is a schematic structural diagram of an embodiment of a device for constructing a web application according to an embodiment of the present invention.
  • the device includes: an application manager 21 and a task manager 22, where:
  • the application manager 21 is configured to obtain configuration configuration information, where the configuration configuration information includes module information of the application and construction task information of each module; and loading a task chain for each module of the application according to the configuration configuration information; Each module creates a task manager, and passes the construction task information to the corresponding task manager; and, after successfully loading all the task chains, sequentially executes each task chain;
  • the task manager 22 is configured to receive the construction task information sent by the application manager, search for a corresponding task according to the construction task information, determine that all the construction task information are legal, and construct the a task chain, and returning to the application manager; and, when the application manager executes the current task chain, sequentially executing each task in the current task chain.
  • the device further includes: a configuration information analyzer 23, wherein
  • the application manager 21 is configured to obtain configuration configuration information, including:
  • the configuration information analyzer 23 is configured to load a configuration file, parse the build configuration information from the configuration file, and return to the application manager.
  • the configuration file may further include constructing custom task information corresponding to the module or the newly added module; the constructing task information or the constructing the customized task information. Both include the task name and its corresponding task.
  • the process of building an application based on the web application building device of the above structure is as shown in FIG. 3, and the process includes:
  • Step 301 The construction process starts, and the application manager sends an acquisition request to the configuration information analyzer. To get the configuration information of the build;
  • Step 302 After receiving the obtaining request, the configuration information analyzer loads the configuration file, analyzes the module information in the file, and the corresponding construction task information, and returns the information to the application manager.
  • Step 303 According to the configuration information, the application manager loads a task chain for each module of the application. Specifically, the application manager creates an instance of the task manager for each application module, and needs to build the module. Task information is passed to the instance to build a task chain;
  • Step 304 The task manager searches for the corresponding task according to the task information transmitted by the application manager. If all the task information is legal, the required tasks are chained into a chain and returned to the chain head;
  • Step 305 After the application manager successfully loads all the task chains, each task chain is sequentially executed.
  • Step 307. When all tasks are executed, the entire application build process is completed.
  • the new module and the corresponding build task information need to be added to the configuration file, and the application build can proceed smoothly. If the existing task does not meet the requirements, you can add the required custom tasks.
  • the specific method is to inherit the basic task and implement some of the required functions (such as the run function required for execution), and then register the task in the task manager so that the task manager can correctly identify and load the task.
  • the configuration file can be a file in json format (the file name is usually configjson ), and its content might look like this:
  • Tasks ["dependency”, “merge”, 'minify'] ]
  • the above application contains two modules “core” and “ui” that need to be built, where “core” needs to execute “sort” and “dependency” in turn. , "merge” three tasks.
  • Configuration Information The parser can parse the contents of the configuration file into a javascript object, which can directly obtain module information and build task information based on the attribute name. You can also add a variety of other properties that are actually needed in the configuration file so that the application manager or task manager can use this information.
  • One possible implementation of a task is to define a task prototype that defines the functions and properties that each task must have in a task chain, for example:
  • the run() function defines what the task actually performs, isReady
  • the () function defines whether the task is ready to execute (perhaps only if certain preconditions are met).
  • the task implements its own run() and isReady() functions to perform the actions it needs (overriding the functions in the prototype).
  • the task manager After implementing a specific task, the task manager needs to understand this task.
  • An entry table is constructed in the Task Manager to tell the Task Manager about each task. Administrative tasks are looked up in the task manager's table to get an instance of the task. Two of the necessary values are: the task name and the corresponding task. Both the person who created the profile and the task manager should know the task name so that the task can be used normally.
  • the construction device of the web application can complete the construction process of the web application conveniently and quickly, and after adding a new module in the web application, the build process can be conveniently added on the basis of the built task without rebuilding. Thereby reducing the implementation complexity and improving the development efficiency.
  • the embodiment of the invention further provides a method for constructing a web application. As shown in FIG. 4, the method includes:
  • the obtaining the configuration configuration information includes: loading a configuration file, and parsing the configuration configuration information from the configuration file;
  • the information of the newly added module and the construction task information of the newly added module are added to the configuration file;
  • the configuration file further includes a built-in custom task information corresponding to the module or the newly added module.
  • the above application construction method based on the task, can be conveniently used in a web application, and the application system can be easily extended when the application adds a new module.
  • the task in addition to being able to use the built-in task, the task can be customized conveniently. To meet the different needs of the application.
  • the construction process of the web application can be completed conveniently and quickly, and after the new module is added in the web application, the build can be conveniently added on the basis of the built task.
  • the process does not need to be rebuilt, which reduces implementation complexity and improves development efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

L'invention concerne un procédé et un dispositif permettant de construire une application Web. Le procédé permettant de construire une application Web comprend les étapes consistant à : obtenir des informations de configuration de construction, les informations de configuration de construction comprenant des informations de module d'une application et des informations d'une tâche de construction de chaque module ; charger une chaîne de tâches pour chaque module de l'application selon les informations de configuration de construction, et construire la chaîne de tâches pour chaque module ; et exécuter chaque chaîne de tâches successivement, et exécuter chaque tâche dans une chaîne de tâches courante successivement. Au moyen des solutions techniques dans des modes de réalisation de la présente invention, un procédé de construction d'une application Web peut être aisément et rapidement achevé, et après l'ajout d'un nouveau module à une application Web, le procédé de construction peut être facilement ajouté de manière incrémentielle sur la base d'une tâche élaborée sans reconstruction, ce qui permet de réduire la complexité de mise en œuvre et d'améliorer l'efficacité de développement.
PCT/CN2013/079286 2012-07-27 2013-07-12 Procédé et dispositif permettant de construire une application web WO2013185668A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210264082.1A CN103577170A (zh) 2012-07-27 2012-07-27 网络应用的构建方法及装置
CN201210264082.1 2012-07-27

Publications (1)

Publication Number Publication Date
WO2013185668A1 true WO2013185668A1 (fr) 2013-12-19

Family

ID=49757567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079286 WO2013185668A1 (fr) 2012-07-27 2013-07-12 Procédé et dispositif permettant de construire une application web

Country Status (2)

Country Link
CN (1) CN103577170A (fr)
WO (1) WO2013185668A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463495A (zh) * 2017-07-19 2017-12-12 重庆扬讯软件技术股份有限公司 一种代码增量发布的软件测试方法及代码增量发布装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224332B (zh) * 2015-10-14 2019-06-11 深圳市金证科技股份有限公司 一种应用程序生成方法和装置
CN105975276B (zh) * 2016-05-09 2019-04-09 上海携程商务有限公司 分布式构建系统及方法

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354725A (zh) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 一种构建解析wap页面的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100416505C (zh) * 2005-08-25 2008-09-03 中兴通讯股份有限公司 一种基于配置文件的程序流程控制方法
CN101414945B (zh) * 2008-10-15 2011-05-25 上海道仑软件有限公司 一种通过信息系统的构建平台系统进行业务处理的方法
CN102479079B (zh) * 2010-11-29 2015-04-01 中兴通讯股份有限公司 应用生成方法和装置
CN102214103A (zh) * 2011-07-08 2011-10-12 珠海脉络软件有限公司 以功能单元为基础的任务程序的创建和执行方法及系统

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354725A (zh) * 2008-09-08 2009-01-28 中兴通讯股份有限公司 一种构建解析wap页面的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHAO, YUEHUA ET AL.: "Design of Java code generation based on agile", COMPUTER ENGINEERING AND DESIGN, vol. 30, no. 12, 22 July 2009 (2009-07-22), pages 3019 - 3021 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463495A (zh) * 2017-07-19 2017-12-12 重庆扬讯软件技术股份有限公司 一种代码增量发布的软件测试方法及代码增量发布装置

Also Published As

Publication number Publication date
CN103577170A (zh) 2014-02-12

Similar Documents

Publication Publication Date Title
JP7371141B2 (ja) リアルタイムデータフロープログラミング言語のためのツールおよび方法
US10152309B2 (en) Cross-library framework architecture feature sets
US9703678B2 (en) Debugging pipeline for debugging code
Ziogas et al. NPBench: A benchmarking suite for high-performance NumPy
Diaz et al. Openmp 4.5 validation and verification suite for device offload
Remenska et al. From UML to process algebra and back: An automated approach to model-checking software design artifacts of concurrent systems
Faria et al. A toolset for conformance testing against UML sequence diagrams based on event-driven colored Petri nets
Pedratscher et al. M2FaaS: Transparent and fault tolerant FaaSification of Node. js monolith code blocks
Cogumbreiro et al. Checking data-race freedom of GPU kernels, compositionally
WO2013185668A1 (fr) Procédé et dispositif permettant de construire une application web
US20130080876A1 (en) Using a template processor to determine context nodes
Dan et al. Modeling and analysis of remote memory access programming
Gao et al. Inferring data contract for web-based API
Tomar et al. JavaScript: Syntax and Practices
Murawski et al. A contextual equivalence checker for IMJ
van de Pol et al. Thoughtful brute-force attack of the RERS 2012 and 2013 Challenges
Koval et al. Lincheck: A practical framework for testing concurrent data structures on JVM
CN115686467A (zh) 动态语言中的类型推断
Blesel et al. Heimdallr: Improving compile time correctness checking for message passing with Rust
Brandner et al. Automatic generation of compiler backends
Wang et al. Decomposable relaxation for concurrent data structures
Davis Embedding ACL2 models in end-user applications
CN105723336B (zh) 用于构建时解析和类型检查引用的方法和系统
Luo et al. Automatic Transformation from SOFL Module Specifications to Program Structures
Milibary et al. USING PYTHON IN REAL-TIME SYSTEMS AND MICROCONTROLLERS

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13803903

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13803903

Country of ref document: EP

Kind code of ref document: A1