CN102012816B - 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
CN102012816B
CN102012816B CN201010566383.0A CN201010566383A CN102012816B CN 102012816 B CN102012816 B CN 102012816B CN 201010566383 A CN201010566383 A CN 201010566383A CN 102012816 B CN102012816 B CN 102012816B
Authority
CN
China
Prior art keywords
file
module
ide
parameter
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.)
Active
Application number
CN201010566383.0A
Other languages
Chinese (zh)
Other versions
CN102012816A (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, but because the diversity of existing IDE, different groups, different departments, the IDE that different companies is used is not necessarily identical, and for the each group, department, the company that develop same project, integrate a large amount of work that repeat such as IDE compiling parameter if use different IDE to cause.
Summary of the invention
The object of the embodiment of the present invention is to provide the method and apparatus of a kind of IDE of generation project file and solution file, is intended to solve for each group, department of the same project of exploitation, the problem that the IDE of company is different.
The embodiment of the present invention is achieved in that a kind of method of the IDE of generation project file and solution file, said method comprising the steps of:
According to the compiling parameter of the given item file of standardization template definition;
By the root directory of project file, the IDE instrument of choice for use;
In the time that application system starts, load general module, described general module comprises Command Line Parsing module, checking module and log pattern;
Resolve configuration file, and the IDE tool types initialization system contextual information of selecting according to user;
By the dependence of described checking module inspection item intermodule;
For dependent file sorts, generate sorted lists, sorted lists is added in context environmental to the initialization of completion system context;
Project file and the solution file of the IDE instrument of selecting according to user described in described sorted lists recursive generation;
By described log pattern recording operation information.
Another object of the embodiment of the present invention is to provide the device of a kind of IDE of generation project file and solution file, and described device comprises:
Specification compiling parameter-definition unit, for according to the compiling parameter of the given item file of standardization template normalized definition;
IDE instrument selected cell, for by the root directory of project file, selects IDE instrument;
General module loading unit, for load general module in the time that application system starts, described general module comprises Command Line Parsing module, checking module and log pattern;
Command Line Parsing unit, for resolving common configuration file, and the IDE tool types initialization system contextual information of selecting according to user;
Inspection unit, for by the circulation dependence between described checking module inspection item module;
System initialization completes unit, for the dependent file that sorts, sorted lists is added in context environmental to completion system initialization;
Project file and solution file generating unit, for according to described sorted lists, IDE generation module recurrence generates the project file and the solution file that meet the IDE instrument that user selects to project;
Operation information record cell, for passing through described log pattern recording operation information.
In embodiments of the present invention, according to the compiling parameter of normalized template definition item file, select IDE instrument by project file root directory, by resolving configuration file initialization system contextual information, the dependence that checks and sort between projects module, the initialization of completion system context, according to project file and the solution file of the sorted lists recursive generation IDE instrument generating.Can be quick by the embodiment of the present invention, project file and the solution file of the multiple IDE instrument of easy generation.
Brief description of the drawings
Fig. 1 is the generation IDE project file that provides of the embodiment of the present 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 present invention and the installation drawing of solution.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, according to the compiling parameter of normalized template definition item file, select IDE instrument by project file root directory, by resolving configuration file initialization system contextual information, the dependence that checks and sort between projects module, the initialization of completion system context, according to project file and the solution file of the sorted lists recursive generation IDE instrument generating.Can be quick by the embodiment of the present invention, project file and the solution file of the multiple IDE instrument of easy generation
Be illustrated in figure 1 generation IDE project file that the embodiment of the present invention provides and the process flow diagram of solution document method, details are as follows:
Step S101, 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; Standardization template changes according to project, does not belong to the scope of protection of the invention for the definition of standardization template.
Step S102, enters project file root directory, selects IDE instrument.
Step S103, starts application system, loads general module, and described general module comprises Command Line Parsing module, checking module and log pattern.
Step S104, Command Line Parsing block configuration file, the IDE tool types initialization system contextual information of selecting according to user.
In embodiments of the present invention, Command Line Parsing module, after parsing module configuration file, is kept at the parameter information of acquisition in Parameter Dictionary.
Whether step S105, exist circulation to rely between checking module verification projects module.To enter step S106; No, enter step S107.
In embodiments of the present invention, the parameter information of preserving in checking module recursive analysis Parameter Dictionary, adopts depth-first algorithm according to described parameter information, and whether the dependence between computational item module exists circulation to rely between analysis project module.
Step S106, sequence dependent file, adds sorted lists in context environmental completion system initialization.
In embodiments of the present invention, according to topological sorting algorithm, for dependent file module sorts, unidirectional dependence between Guarantee item module, adds sorted lists in context environmental, the initialization of completion system.
Step S107, according to described sorted lists, IDE generation module recurrence generates project file and the solution file of the IDE instrument that meets user's selection to project.
Step S108, log pattern recording operation information, exits application system.
In embodiments of the present invention, according to the compiling parameter of normalized template definition item file, select IDE instrument by project file root directory, by resolving configuration file initialization system contextual information, the dependence that checks and sort between projects module, the initialization of completion system context, according to project file and the solution file of the sorted lists recursive generation IDE instrument generating.Can be quick by the embodiment of the present invention, project file and the solution file of the multiple IDE instrument of easy generation.
Be illustrated in figure 2 generation IDE project file that the embodiment of the present invention provides and the installation drawing of solution file, described device comprises:
Specification compiling parameter-definition unit 21, for according to the compiling parameter of standardization template normalized definition item file;
IDE instrument selected cell 22, for by the root directory of project file, selects IDE instrument;
General module loading unit 23, for load general module in the time that application system starts, described general module comprises: Command Line Parsing module, checking module and log pattern;
Command Line Parsing unit 24, for resolving common configuration file, and the IDE tool types initialization system contextual information of selecting according to user;
Whether inspection unit 25, for existing circulation to rely between inspection item module;
Described dependence inspection unit also comprises:
Parameter information is analyzed subelement 251, the parameter information of preserving for recursive analysis Parameter Dictionary;
Dependence computation subunit 252, for adopting depth-first algorithm, the dependence between computational item module according to described parameter information;
System initialization completes unit 26, for the dependent file that sorts, sorted lists is added in context environmental to completion system initialization;
Described system initialization completes unit 26 and also comprises:
Dependent file sequence subelement 261, for according to topological sorting algorithm, for dependent file module sorts;
Sorted lists adds subelement 262, joins system context environment for the sorted lists that described dependent file sequence subelement 261 is generated;
Project file and solution file generating unit 27, for according to described sorted lists, IDE generation module recurrence generates the project file and the solution file that meet the IDE instrument that user selects to project;
Operation information record cell 28, for recording operation information.
In embodiments of the present invention, according to the compiling parameter of normalized template definition item file, select IDE instrument by project file root directory, by resolving configuration file initialization system contextual information, the dependence that checks and sort between projects module, the initialization of completion system context, according to project file and the solution file of the sorted lists recursive generation IDE instrument generating.Can be quick by the embodiment of the present invention, project file and the solution file of the multiple IDE instrument of easy generation
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in 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:
According to the compiling parameter of the given item file of standardization template definition;
By the root directory of project file, the IDE instrument of choice for use;
In the time that application system starts, load general module, described general module comprises Command Line Parsing module, checking module and log pattern;
Resolve configuration file, and the IDE tool types initialization system contextual information of selecting according to user;
By the dependence of described checking module inspection item intermodule;
For dependent file sorts, generate sorted lists, sorted lists is added in context environmental to the initialization of completion system context;
Project file and the solution file of the IDE instrument of selecting according to user described in described sorted lists recursive generation;
By described log pattern recording operation information.
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, after described parsing configuration file, also comprises: be kept in Parameter Dictionary resolving the parameter information obtaining after configuration file.
4. method as claimed in claim 3, it is characterized in that the parameter information of preserving in recursive analysis Parameter Dictionary adopts depth-first algorithm according to described parameter information, whether the dependence between computational item module, exist circulation to rely between analysis project module.
5. method as claimed in claim 4, is characterized in that, according to topological sorting algorithm, for dependent file module sorts, unidirectional dependence between Guarantee item module, adds sorted lists in context environmental, the initialization of completion system.
6. generate a device for IDE project file and solution file, described device comprises:
Specification compiling parameter-definition unit, for according to the compiling parameter of the given item file of standardization template normalized definition;
IDE instrument selected cell, for by the root directory of project file, selects IDE instrument;
General module loading unit, for load general module in the time that application system starts, described general module comprises Command Line Parsing module, checking module and log pattern;
Command Line Parsing unit, for resolving common configuration file, and the IDE tool types initialization system contextual information of selecting according to user;
Inspection unit, for by the circulation dependence between described checking module inspection item module;
System initialization completes unit, for the dependent file that sorts, sorted lists is added in context environmental to completion system initialization;
Project file and solution file generating unit, for according to described sorted lists, IDE generation module recurrence generates the project file and the solution file that meet the IDE instrument that user selects to project;
Operation information record cell, for passing through described log pattern recording operation information.
7. device as claimed in claim 6, is characterized in that, described inspection unit also comprises:
Parameter information is analyzed subelement, the parameter information of preserving for recursive analysis Parameter Dictionary;
Dependence computation subunit, for adopting depth-first algorithm according to described parameter information, whether the dependence between computational item module, exist circulation to rely between analysis project module.
8. device as claimed in claim 7, is characterized in that, described system initialization completes unit and also comprises:
Dependent file sequence subelement, for according to topological sorting algorithm, for dependent file module sorts;
Sorted lists adds subelement, joins system context environment for the sorted lists that described dependent file sequence subelement is generated.
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 CN102012816A (en) 2011-04-13
CN102012816B true 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)

Families Citing this family (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
CN106681785B (en) * 2016-12-28 2020-02-07 东方网力科技股份有限公司 Software generation method and device
CN110286886B (en) * 2019-06-27 2023-08-08 龙芯中科技术股份有限公司 Integrated development environment configuration method, device, electronic equipment and storage medium

Citations (2)

* 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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042645A (en) * 2007-01-17 2007-09-26 北京立通无限科技有限公司 Method, equipment and system for unionize software development environment
CN101430643B (en) * 2007-11-05 2012-06-27 国际商业机器公司 Method and apparatus for providing item development environment, and item development system
CN101697125B (en) * 2009-11-04 2013-05-08 中兴通讯股份有限公司 Method and device for development environment conversion

Patent Citations (2)

* 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

Also Published As

Publication number Publication date
CN102012816A (en) 2011-04-13
HK1155532A1 (en) 2012-05-18

Similar Documents

Publication Publication Date Title
CN105022691B (en) A kind of increasingly automated method for testing software based on uml diagram
CN103425572B (en) Code analysis methods and code analysis system
CN101853200B (en) High-efficiency dynamic software vulnerability exploiting method
CN103870308A (en) Data processing method and device
CN111626028A (en) Report generation method, device and equipment based on function analysis and computer medium
CN102012816B (en) Method and device for generating IDE engineering file and solution file
Landing et al. Cluster-based parallel testing using semantic analysis
CN112597062A (en) Military software structured quality data extraction method and device and software testing device
CN113282513B (en) Interface test case generation method and device, computer equipment and storage medium
CN108897678B (en) Static code detection method, static code detection system and storage device
Reider et al. Feature-based testing by using model synthesis, test generation and parameterizable test prioritization
CN113609008A (en) Test result analysis method and device and electronic equipment
CN104536880A (en) GUI program testing case augmentation method based on symbolic execution
CN111506305A (en) Tool kit generation method and device, computer equipment and readable storage medium
CN115168929A (en) Dynamo-based BIM model element coding information input method
CN111881055B (en) Simulink model design method for military software evaluation specification
CN114880673A (en) Method and system for detecting private data leakage aiming at applet source code
Tatale et al. A Survey on Test Case Generation using UML Diagrams and Feasibility Study to Generate Combinatorial Logic Oriented Test Cases.
CN111966598A (en) C + + Test customization method and aerospace model software code unit static analysis method
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN104765602A (en) Quantitative selection method of nonfunctional requirement implementation strategies
Yan et al. Efficient behavioral-difference detection between business process models
CN114448851B (en) Automatic data testing method and system
Kosindrdecha et al. A test case generation technique and process
CN113900874A (en) Test vector management system and test vector management method

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