CN102012816A - Method and device for generating IDE engineering file and solution file - Google Patents

Method and device for generating IDE engineering file and solution file Download PDF

Info

Publication number
CN102012816A
CN102012816A CN2010105663830A CN201010566383A CN102012816A CN 102012816 A CN102012816 A CN 102012816A CN 2010105663830 A CN2010105663830 A CN 2010105663830A CN 201010566383 A CN201010566383 A CN 201010566383A CN 102012816 A CN102012816 A CN 102012816A
Authority
CN
China
Prior art keywords
file
ide
parameter
module
project
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2010105663830A
Other languages
Chinese (zh)
Other versions
CN102012816B (en
Inventor
王志国
刘波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201010566383.0A priority Critical patent/CN102012816B/en
Publication of CN102012816A publication Critical patent/CN102012816A/en
Priority to HK11109612.6A priority patent/HK1155532A1/en
Application granted granted Critical
Publication of CN102012816B publication Critical patent/CN102012816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is applied to the field of software, and provides a method and a device for generating an integrated development environment (IDE) engineering file and a solution file. The method comprises the following steps of: defining a compiling parameter of a project file according to a normalized template; selecting an IDE tool for use; analyzing a configuration file and initializing system context information according to the IDE tool; checking and ordering dependencies among project modules to generate an ordered list so as to finish the system context initialization; and recursively generating the engineering file and the solution file of the IDE tool according to the ordered list. In the embodiment of the invention, the compiling parameter of the project file is defined according to the normalized template; the system context information is initialized by analyzing the configuration file; the dependencies among the project modules are checked and ordered to finish the system context initialization; and the engineering file and the solution file of the IDE tool are recursively generated according to the generated ordered list.

Description

A kind of method and apparatus that generates IDE project file and solution file
Technical field
The invention belongs to software field, relate in particular to the method and apparatus of a kind of IDE of generation project file and solution file.
Background technology
Integrated Development Environment IDE as the platform of software development for the exploitation of software and important, yet because the diversity of existing IDE, different groups, different departments, the IDE that different companies uses is not necessarily identical, and, integrate the work that IDE compiles a large amount of repetitions such as parameter if use different IDE to cause for each group, department, the company that develop same project.
Summary of the invention
The purpose of the embodiment of the invention is to provide the method and apparatus of a kind of IDE of generation project file and solution file, is intended to solve each group for the same project of exploitation, department, problem that the IDE of company is different.
The embodiment of the invention is achieved in that the method for a kind of IDE of generation project file and solution file, said method comprising the steps of:
Compiling parameter according to standardization template definition item file;
Select the IDE instrument of use;
Resolve configuration file, according to described IDE instrument initialization system contextual information;
Dependence between inspection and ordering projects module generates sorted lists, finishes the system context initialization;
Generate the project file and the solution file of IDE instrument according to described sorted lists recurrence.
Another purpose of the embodiment of the invention is to provide the device of a kind of IDE of generation project file and solution file, and described device comprises:
Standard compiling parameter-definition unit is used for the compiling parameter according to standardization template normalized definition item file;
IDE instrument selected cell is used for the root directory by project file, selects the IDE instrument;
The general module loading unit is used for loading general module when application system starts;
The Command Line Parsing unit is used to resolve the common configuration file, and the IDE tool types initialization system contextual information of selecting according to the user;
Inspection unit is used for the circulation dependence between the inspection item module;
System initialization is finished the unit, is used to the dependent file that sorts, and sorted lists is added in the context environmental, finishes system initialization;
Project file and solution file generating unit are used for according to described sorted lists, and IDE generation module recurrence generates the project file and the solution file of the IDE instrument that meets user's selection to project;
The operation information record cell is used for recording operation information.
In embodiments of the present invention, compiling parameter according to normalized template definition item file, select the IDE instrument by the project file root directory, by resolving configuration file initialization system contextual information, dependence between inspection and ordering projects module, finish the system context initialization, generate the project file and the solution file of IDE instrument according to the sorted lists recurrence that generates.Can be quick by the embodiment of the invention, the project file and the solution file of the multiple IDE instrument of easy generation.
Description of drawings
Fig. 1 is the generation IDE project file that provides of the embodiment of the invention and the process flow diagram of solution document method;
Fig. 2 is the generation IDE project file that provides of the embodiment of the invention and the installation drawing of solution.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, compiling parameter according to normalized template definition item file, select the IDE instrument by the project file root directory, by resolving configuration file initialization system contextual information, dependence between inspection and ordering projects module, finish the system context initialization, generate the project file and the solution file of IDE instrument according to the sorted lists recurrence that generates.Can be quick by the embodiment of the invention, the project file and the solution file of the multiple IDE instrument of easy generation
Be illustrated in figure 1 as the generation IDE project file that the embodiment of the invention provides and the process flow diagram of solution document method, details are as follows:
Step S101 is according to the compiling parameter of the given item file of standardization template definition.
In embodiments of the present invention, can guarantee that according to the compiling parameter of standardization template definition item file the compiling parameter of same project keeps unified in different IDE, described compiling parameter comprises engineering parameter, platform parameter, module parameter; The standardization template change according to project, for the standardization template definition do not belong to the scope of protection of the invention.
Step S102 enters the project file root directory, selects the IDE instrument.
Step S103 starts application system, loads general module, and described general module comprises the Command Line Parsing module, checks module and log pattern.
Step S104, Command Line Parsing block configuration file is according to the IDE tool types initialization system contextual information of user's selection.
In embodiments of the present invention, the Command Line Parsing module is kept at the parameter information that obtains in the parameter dictionary after the parsing module configuration file.
Step S105 checks between the module verification projects module whether exist circulation to rely on.Be then to enter step S106; , then do not enter step S107.
In embodiments of the present invention, check the parameter information of preserving in the module recursive analysis parameter dictionary, adopt the depth-first algorithm according to described parameter information, whether the dependence between the computational item module exists circulation to rely between the analysis project module.
Step S106, the ordering dependent file adds sorted lists in the context environmental, finishes system initialization.
In embodiments of the present invention,,, guarantee unidirectional dependence between the projects module, sorted lists is added in the context environmental, finish the initialization of system for the dependent file module sorts according to topological sorting algorithm.
Step S107, according to described sorted lists, IDE generation module recurrence generates the project file and the solution file of the IDE instrument that meets user's selection to project.
Step S108, the log pattern recording operation information withdraws from application system.
In embodiments of the present invention, compiling parameter according to normalized template definition item file, select the IDE instrument by the project file root directory, by resolving configuration file initialization system contextual information, dependence between inspection and ordering projects module, finish the system context initialization, generate the project file and the solution file of IDE instrument according to the sorted lists recurrence that generates.Can be quick by the embodiment of the invention, the project file and the solution file of the multiple IDE instrument of easy generation.
Be illustrated in figure 2 as the generation IDE project file that the embodiment of the invention provides and the installation drawing of solution file, described device comprises:
Standard compiling parameter-definition unit 21 is used for the compiling parameter according to standardization template normalized definition item file;
IDE instrument selected cell 22 is used for the root directory by project file, selects the IDE instrument;
General module loading unit 23 is used for loading general module when application system starts, and described general module comprises: Command Line Parsing module, inspection module and log pattern;
Command Line Parsing unit 24 is used to resolve the common configuration file, and the IDE tool types initialization system contextual information of selecting according to the user;
Whether inspection unit 25 is used for existing between the inspection item module circulation to rely on;
Described dependence inspection unit also comprises:
Parameter information is analyzed subelement 251, is used for the parameter information that recursive analysis parameter dictionary is preserved;
Dependence computation subunit 252 is used for adopting depth-first algorithm, the dependence between the computational item module according to described parameter information;
System initialization is finished unit 26, is used to the dependent file that sorts, and sorted lists is added in the context environmental, finishes system initialization;
Described system initialization is finished unit 26 and is also comprised:
Dependent file ordering subelement 261 is used for according to topological sorting algorithm, for the dependent file module sorts;
Sorted lists adds subelement 262, is used for the sorted lists that described dependent file ordering subelement 261 generates is joined the system context environment;
Project file and solution file generating unit 27 are used for according to described sorted lists, and IDE generation module recurrence generates the project file and the solution file of the IDE instrument that meets user's selection to project;
Operation information record cell 28 is used for recording operation information.
In embodiments of the present invention, compiling parameter according to normalized template definition item file, select the IDE instrument by the project file root directory, by resolving configuration file initialization system contextual information, dependence between inspection and ordering projects module, finish the system context initialization, generate the project file and the solution file of IDE instrument according to the sorted lists recurrence that generates.Can be quick by the embodiment of the invention, the project file and the solution file of the multiple IDE instrument of easy generation
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a method that generates IDE project file and solution file is characterized in that, said method comprising the steps of:
Compiling parameter according to standardization template definition item file;
Select the IDE instrument of use;
Resolve configuration file, according to described IDE instrument initialization system contextual information;
Dependence between inspection and ordering projects module generates sorted lists, finishes the system context initialization;
Generate the project file and the solution file of described IDE instrument according to described sorted lists recurrence.
2. the method for claim 1 is characterized in that, described compiling parameter comprises:
Engineering parameter, platform parameter and module parameter.
3. the method for claim 1 is characterized in that, resolves configuration file and also comprises afterwards: the parameter information that obtains after the configuration file of resolving is kept in the parameter dictionary.
4. method as claimed in claim 3, it is characterized in that the parameter information of preserving in the recursive analysis parameter dictionary adopts the depth-first algorithm according to described parameter information, whether the dependence between the computational item module exists circulation to rely between the analysis project module.
5. method as claimed in claim 4 is characterized in that, if exist according to topological sorting algorithm, for the dependent file module sorts, guarantees unidirectional dependence between the projects module, and sorted lists is added in the context environmental, finishes the initialization of system.
6. device that generates IDE project file and solution file, described device comprises:
Standard compiling parameter-definition unit is used for the compiling parameter according to standardization template normalized definition item file;
IDE instrument selected cell is used for the root directory by project file, selects the IDE instrument;
The general module loading unit is used for loading general module when application system starts;
The Command Line Parsing unit is used to resolve the common configuration file, and the IDE tool types initialization system contextual information of selecting according to the user;
Inspection unit is used for the circulation dependence between the inspection item module;
System initialization is finished the unit, is used to the dependent file that sorts, and sorted lists is added in the context environmental, finishes system initialization;
Project file and solution file generating unit are used for according to described sorted lists, and IDE generation module recurrence generates the project file and the solution file of the IDE instrument that meets user's selection to project;
The operation information record cell is used for recording operation information.
7. device as claimed in claim 6 is characterized in that, described inspection unit also comprises:
Parameter information is analyzed subelement, is used for the parameter information that recursive analysis parameter dictionary is preserved;
The dependence computation subunit is used for adopting depth-first algorithm, the dependence between the computational item module according to described parameter information.
8. device as claimed in claim 7 is characterized in that, described system initialization is finished the unit and also comprised:
Dependent file ordering subelement is used for according to topological sorting algorithm, for the dependent file module sorts;
Sorted lists adds subelement, is used for the sorted lists that described dependent file ordering subelement 261 generates is joined the system context environment.
CN201010566383.0A 2010-11-30 2010-11-30 Method and device for generating IDE engineering file and solution file Active CN102012816B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010566383.0A CN102012816B (en) 2010-11-30 2010-11-30 Method and device for generating IDE engineering file and solution file
HK11109612.6A HK1155532A1 (en) 2010-11-30 2011-09-12 Method and apparatus for generating ide project files and solution files ide

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010566383.0A CN102012816B (en) 2010-11-30 2010-11-30 Method and device for generating IDE engineering file and solution file

Publications (2)

Publication Number Publication Date
CN102012816A true CN102012816A (en) 2011-04-13
CN102012816B CN102012816B (en) 2014-06-11

Family

ID=43842992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010566383.0A Active CN102012816B (en) 2010-11-30 2010-11-30 Method and device for generating IDE engineering file and solution file

Country Status (2)

Country Link
CN (1) CN102012816B (en)
HK (1) HK1155532A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649077A (en) * 2015-11-02 2017-05-10 中国船舶工业系统工程研究院 Method for automatically generating TPS
CN106681785A (en) * 2016-12-28 2017-05-17 东方网力科技股份有限公司 Software generating method and device
CN110286886A (en) * 2019-06-27 2019-09-27 龙芯中科技术有限公司 Integrated Development Environment configuration method, device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127707B1 (en) * 2002-10-10 2006-10-24 Microsoft Corporation Intellisense in project upgrade
CN1860437A (en) * 2003-04-16 2006-11-08 皇家飞利浦电子股份有限公司 Processing of a compileable computer program
CN101042645A (en) * 2007-01-17 2007-09-26 北京立通无限科技有限公司 Method, equipment and system for unionize software development environment
CN101430643A (en) * 2007-11-05 2009-05-13 国际商业机器公司 Method and apparatus for providing item development environment, and item development system
CN101697125A (en) * 2009-11-04 2010-04-21 中兴通讯股份有限公司 Method and device for development environment conversion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127707B1 (en) * 2002-10-10 2006-10-24 Microsoft Corporation Intellisense in project upgrade
CN1860437A (en) * 2003-04-16 2006-11-08 皇家飞利浦电子股份有限公司 Processing of a compileable computer program
CN101042645A (en) * 2007-01-17 2007-09-26 北京立通无限科技有限公司 Method, equipment and system for unionize software development environment
CN101430643A (en) * 2007-11-05 2009-05-13 国际商业机器公司 Method and apparatus for providing item development environment, and item development system
CN101697125A (en) * 2009-11-04 2010-04-21 中兴通讯股份有限公司 Method and device for development environment conversion

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649077A (en) * 2015-11-02 2017-05-10 中国船舶工业系统工程研究院 Method for automatically generating TPS
CN106681785A (en) * 2016-12-28 2017-05-17 东方网力科技股份有限公司 Software generating method and device
CN106681785B (en) * 2016-12-28 2020-02-07 东方网力科技股份有限公司 Software generation method and device
CN110286886A (en) * 2019-06-27 2019-09-27 龙芯中科技术有限公司 Integrated Development Environment configuration method, device, electronic equipment and storage medium
CN110286886B (en) * 2019-06-27 2023-08-08 龙芯中科技术股份有限公司 Integrated development environment configuration method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
HK1155532A1 (en) 2012-05-18
CN102012816B (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN105022691B (en) A kind of increasingly automated method for testing software based on uml diagram
CN111400724B (en) Operating system vulnerability detection method, system and medium based on code similarity analysis
CN103577168A (en) Test case creation system and method
CN101853200B (en) High-efficiency dynamic software vulnerability exploiting method
CN102375778A (en) Method and system for automatically testing digital signal processor (DSP)
CN103577324A (en) Static detection method for privacy information disclosure in mobile applications
CN111626028A (en) Report generation method, device and equipment based on function analysis and computer medium
CN103870308A (en) Data processing method and device
CN111026660A (en) Penetration testing method based on expert system knowledge base
CN102012816B (en) Method and device for generating IDE engineering file and solution file
Landing et al. Cluster-based parallel testing using semantic analysis
CN108897678B (en) Static code detection method, static code detection system and storage device
CN113282513B (en) Interface test case generation method and device, computer equipment and storage medium
CN108874656A (en) Code test method, device, readable storage medium storing program for executing and computer equipment
CN106598825A (en) Electronic equipment, method and device for standardizing logging code output
CN104536880A (en) GUI program testing case augmentation method based on symbolic execution
CN105893685A (en) VLSI (Very Large Scale Integration) formal verification platform and method
CN117113338A (en) System, method, storage medium and equipment for detecting VPP memory leakage
CN102799528B (en) A kind of script debugging method for circuit board level test, device and system thereof
CN111506305A (en) Tool kit generation method and device, computer equipment and readable storage medium
CN115809076A (en) ECU software automation integration method and system
CN114116471A (en) Automatic code scanning method, system, electronic equipment and storage medium
CN115617673A (en) Test case configuration method based on Cosim platform and application
CN115640155A (en) Program automatic repairing method and system based on statement dependence and patch similarity
CN105912468B (en) The method and open platform system of open platform Run Script

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1155532

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant