CN109885295A - A kind of graphical representation method and system of Gradle configuration file - Google Patents
A kind of graphical representation method and system of Gradle configuration file Download PDFInfo
- Publication number
- CN109885295A CN109885295A CN201910211066.8A CN201910211066A CN109885295A CN 109885295 A CN109885295 A CN 109885295A CN 201910211066 A CN201910211066 A CN 201910211066A CN 109885295 A CN109885295 A CN 109885295A
- Authority
- CN
- China
- Prior art keywords
- closure
- configuration file
- dependence
- gradle
- information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 239000003086 colorant Substances 0.000 claims description 13
- 230000006870 function Effects 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000011161 development Methods 0.000 abstract description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000007717 exclusion Effects 0.000 description 5
- 238000012827 research and development Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000001520 comb Anatomy 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Abstract
The invention discloses a kind of graphical representation method and system of Gradle configuration file, belong to development project automation constructing technology field.The graphical representation method of Gradle configuration file of the invention, this method reads Gradle configuration file, the Gradle configuration file of reading is subjected to piecemeal according to function, it is divided into global setting, dependence closure and project information closure, global variable is injected into the configuration item of dependence closure and project information closure, makes graphically to show the information of dependence closure and project information closure functional block respectively.The graphical representation method of the Gradle configuration file of the invention makes program research staff that can be convenient for development and maintenance with the configuration information of more intuitive understanding Gradle, reduces the time expended on configuration file, has good application value.
Description
Technical field
The present invention relates to development projects to automate constructing technology field, specifically provides a kind of Gradle configuration file
Graphical representation method and system.
Background technique
In the exploitation of large software, project automatic technology is always a kind of important the build tool.It was sent out from 2000
The ANT of cloth improves all the time to the Maven of publication in 2004, then Gradle burning hot till now, project automation framework, and
And more conveniences are brought for software development.
Gradle be 2012 publication a kind of project based on Apache Ant and Apache Maven concept it is automatic
Change construction tool, it uses a kind of specific area language (DSL) Lai Shengming item setup based on Groovy, has abandoned and has been based on
The various cumbersome configurations of XML.It is the build tool of a universal flexible based on JVM, supports the warehouse Maven, Ivy,
Transitivity is supported to rely on management, without remote warehouse either pom.xml and ivy.xml configuration file.
Although Gradle simplifies software development building, but its configuration file is still unavoidable excessively cumbersome, it is difficult to
Intuitive the problem of reading, these disadvantages seem especially significant in mega project, this makes research and development of software personnel in maintenance engineering
Middle packet relies on and the newly-increased efficiency relied on is lower, has certain limitation, is further improved.
Summary of the invention
Technical assignment of the invention is that in view of the above problems, providing a kind of program research staff can be more intuitive
Understanding Gradle configuration information, be convenient for development and maintenance, reduce the Gradle for the time expended on configuration file
The graphical representation method of configuration file.
The further technical assignment of the present invention is to provide a kind of graphical representation system of Gradle configuration file.
To achieve the above object, the present invention provides the following technical scheme that
A kind of graphical representation method of Gradle configuration file, this method reads Gradle configuration file, by reading
Gradle configuration file carries out piecemeal according to function, is divided into global setting, dependence closure and project information closure, will be global
Variable is injected into the configuration item of dependence closure and project information closure, is made dependence closure graphically
It is shown respectively with the information of project information closure functional block.
When handling the information of dependence closure, information can be read from the long-range library that relies on automatically, it will be between each packet
Dependence show, and can be carried out according to sentences such as the exclusion of dependence, transmitting, pressure and dynamics different aobvious
Show.Make program research staff that can be convenient for exploitation and dimension with the configuration information of more intuitive understanding Gradle configuration file
Shield.
Preferably, this method specifically includes the following steps:
S1, Gradle configuration file is read, Gradle configuration file is subjected to intuitiveization and is shown;
S2, Gradle configuration file is carried out by piecemeal by plug-in unit, is divided into global setting, dependence closure and project letter
Closure is ceased, and is shown respectively;
S3, overall situation setting is substituted into one by one in dependence closure and project information closure, is made graphically
The information of dependence closure and project information closure functional block is shown.
In step S1, program reads in build.gradle file, it is carried out piecemeal according to functional block difference.
Preferably, being constructed using Java and Groovy language for parsing Gradle configuration file and cutting in step S2
Point conversion Gradle configuration file analysis plug-in unit, analysis plug-in unit by closure name come the division of arbitration functions block.
Preferably, the closure name data are stored in the character string dimension in analysis plug-in unit.
It is String type character string in the string data.
Preferably, dependence closure carries out classification displaying in step S3, it is divided into local dependence, library relies on and long-range
It relies on, local rely on is shown with text mode;Library, which is relied on, shows base relation by text and dendrogram;It is long-range to rely on connection far
Journey relies on library, and specifying information and the displaying that this relies on are read in library from long-range rely on.
It relies on the sentences such as exclusion, dependence transmitting to be shown using the text of different colours, and progress phase is relied on to this
It should handle.
Preferably, when project information closure is shown, directly showing the key-value information of each level, no in step S3
Same layer name is identified using different colours.Key and value value are identified using two kinds of uniform colors in the present invention.
A kind of graphical representation system of Gradle configuration file, the system comprise the following modules:
Configuration file read module: for reading Gradle configuration file, Gradle configuration file is subjected to intuitiveization exhibition
Show;
Piecemeal module: for Gradle configuration file to be carried out piecemeal, it is divided into global setting, dependence closure and project
Information closure, and shown respectively;
Information display module: for showing the information of dependence closure and project information closure functional block.
Program reads in build.gradle file in configuration file read module, it is divided according to functional block difference
Block.
Preferably, piecemeal module is constructed using Java and Groovy language for parsing Gradle configuration file and cutting
Convert Gradle configuration file analysis plug-in unit, analysis plug-in unit by closure name come the division of arbitration functions block, closure concrete number
According in the character string dimension being stored in analysis plug-in unit.
Preferably, the information display module is used for the information of dependence closure and project information closure functional block
It shows respectively, wherein dependence closure is carried out classification displaying, project information closure is directly shown.
Dependence closure carries out classification displaying, is divided into local dependence, library dependence and long-range dependence, local dependence is with text
Mode is shown;Library, which is relied on, shows base relation by text and dendrogram;It is long-range to rely on the long-range dependence library of connection, it is relied on from long-range
The specifying information of this dependence and displaying are read in library.Rely on exclude, rely on transmitting etc. sentences using different colours text into
Row is shown, and is relied on this and carried out respective handling.
When project information closure is shown, directly show that the key-value information of each level, different layers name use different colours
Mark.Key and value value are identified using two kinds of uniform colors in the present invention.
Compared with prior art, the graphical representation method of Gradle configuration file of the invention has with following prominent
Beneficial effect: in the graphical representation method of the Gradle configuration file, by the way that Gradle configuration file is parsed, automatically by
Remote warehouse combs the dependence of packet, allows the configuration file of Gradle to pass through graphic interface to show
Come, this relies on packet the difficulty of maintenance by substantially reducing in research and development of software, reduce the time expended on configuration file, and program is ground
Hair personnel can be convenient for development and maintenance with the configuration information of more intuitive understanding Gradle, and there is good popularization to answer
With value.
Detailed description of the invention
Fig. 1 is the flow chart of the graphical representation method of Gradle configuration file of the present invention.
Specific embodiment
Below in conjunction with drawings and examples, to the graphical representation method and system of Gradle configuration file of the invention
It is described in further detail.
Embodiment
As shown in Figure 1, the graphical representation method of Gradle configuration file of the invention, this method reads Gradle configuration
The Gradle configuration file of reading is carried out piecemeal according to function by file, is divided into global setting, dependence closure and project letter
Closure is ceased, global variable is injected into the configuration item of dependence closure and project information closure, is made graphically
The information of dependence closure and project information closure functional block is shown respectively.In the information of processing dependence closure
When, information can be read from the long-range library that relies on automatically, the dependence between each packet be shown, and can according to according to
The sentences such as bad exclusion, transmitting, pressure and dynamic carry out different displays.Make program research staff can be with more intuitive understanding
The configuration information of Gradle configuration file, is convenient for development and maintenance.
This method specifically includes the following steps:
S1, Gradle configuration file is read, Gradle configuration file is subjected to intuitiveization and is shown.
Program reads in build.gradle file, it is carried out piecemeal according to functional block difference.
S2, Gradle configuration file is carried out by piecemeal by plug-in unit, is divided into global setting, dependence closure and project letter
Closure is ceased, and is shown respectively.
Using the building of Java and Groovy language for parsing Gradle configuration file and cutting conversion Gradle configuration text
The analysis plug-in unit of part, analysis plug-in unit by closure name come the division of arbitration functions block.Closure name data are stored in analysis plug-in unit
Character string dimension in.It is String type character string in string data.
S3, overall situation setting is substituted into one by one in dependence closure and project information closure, is made graphically
The information of dependence closure and project information closure functional block is shown.
Dependence closure carries out classification displaying, is divided into local dependence, library dependence and long-range dependence, local dependence is with text
Mode is shown;Library, which is relied on, shows base relation by text and dendrogram;It is long-range to rely on the long-range dependence library of connection, it is relied on from long-range
The specifying information of this dependence and displaying are read in library.
It relies on the sentences such as exclusion, dependence transmitting to be shown using the text of different colours, and progress phase is relied on to this
It should handle.
When project information closure is shown, directly show that the key-value information of each level, different layers name use different colours
Mark.Key and value value are identified using two kinds of uniform colors in the present invention.
A kind of graphical representation system of Gradle configuration file of the invention, the system comprise the following modules:
Configuration file read module: for reading Gradle configuration file, Gradle configuration file is subjected to intuitiveization exhibition
Show.Program reads in build.gradle file, it is carried out piecemeal according to functional block difference.
Piecemeal module: for Gradle configuration file to be carried out piecemeal, it is divided into global setting, dependence closure and project
Information closure, and shown respectively.
Piecemeal module is constructed using Java and Groovy language for parsing Gradle configuration file and cutting conversion
The analysis plug-in unit of Gradle configuration file analyzes plug-in unit by the way that, come the division of arbitration functions block, closure name data are deposited to closure name
In the character string dimension in analysis plug-in unit.
Information display module: for showing the information of dependence closure and project information closure functional block.
Information display module is used to for overall situation setting being substituted into one by one in dependence closure and project information closure, uses
Patterned mode shows the information of dependence closure and project information closure functional block, wherein dependence is closed
Packet carries out classification displaying, and project information closure is directly shown.
Dependence closure carries out classification displaying, is divided into local dependence, library dependence and long-range dependence, local dependence is with text
Mode is shown;Library, which is relied on, shows base relation by text and dendrogram;It is long-range to rely on the long-range dependence library of connection, it is relied on from long-range
The specifying information of this dependence and displaying are read in library.Rely on exclude, rely on transmitting etc. sentences using different colours text into
Row is shown, and is relied on this and carried out respective handling.
When project information closure is shown, directly show that the key-value information of each level, different layers name use different colours
Mark.Key and value value are identified using two kinds of uniform colors in the present invention.
The graphical representation system of the Gradle configuration file handle dependence closure information when, can automatically from
Information is read in the long-range library that relies on, and the dependence between each packet is shown, and can according to the exclusion of dependence, pass
Pass, force and dynamic etc. sentences carry out different displays.Configure program research staff can with more intuitive understanding Gradle
The configuration information of file.
Embodiment described above, the only present invention more preferably specific embodiment, those skilled in the art is at this
The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.
Claims (9)
1. a kind of graphical representation method of Gradle configuration file, it is characterised in that: this method reads Gradle configuration file,
The Gradle configuration file of reading is subjected to piecemeal according to function, is divided into global setting, dependence closure and project information and closes
Packet, global variable is injected into the configuration item of dependence closure and project information closure, and making graphically will be according to
The information of relation closure and project information closure functional block is relied to show respectively.
2. the graphical representation method of Gradle configuration file according to claim 1, it is characterised in that: this method is specific
The following steps are included:
S1, Gradle configuration file is read, Gradle configuration file is subjected to intuitiveization and is shown;
S2, Gradle configuration file is carried out by piecemeal by plug-in unit, is divided into global setting, dependence closure and project information and closes
Packet, and shown respectively;
S3, overall situation setting is substituted into one by one in dependence closure and project information closure, making graphically will be according to
The information of relation closure and project information closure functional block is relied to show.
3. the graphical representation method of Gradle configuration file according to claim 2, it is characterised in that: in step S2,
Using the building of Java and Groovy language for parsing the analysis of Gradle configuration file and cutting conversion Gradle configuration file
Plug-in unit, analysis plug-in unit by closure name come the division of arbitration functions block.
4. the graphical representation method of Gradle configuration file according to claim 3, it is characterised in that: the closure name
Data are stored in the character string dimension in analysis plug-in unit.
5. the graphical representation method of Gradle configuration file according to claim 4, it is characterised in that: in step S3,
Dependence closure carries out classification displaying, is divided into local dependence, library dependence and long-range dependence, local dependence is with text mode exhibition
Show;Library, which is relied on, shows base relation by text and dendrogram;It is long-range to rely on the long-range dependence library of connection, it is read from long-range rely in library
The specifying information for taking this to rely on and displaying.
6. the graphical representation method of Gradle configuration file according to claim 5, it is characterised in that: in step S3,
When project information closure is shown, directly show that the key-value information of each level, different layers name are identified using different colours.
7. a kind of graphical representation system of Gradle configuration file, it is characterised in that: the system comprises the following modules:
Configuration file read module: for reading Gradle configuration file, Gradle configuration file is subjected to intuitiveization and is shown;
Piecemeal module: for Gradle configuration file to be carried out piecemeal, it is divided into global setting, dependence closure and project information
Closure, and shown respectively;
Information display module: for showing the information of dependence closure and project information closure functional block.
8. the graphical representation system of Gradle configuration file according to claim 7, it is characterised in that: piecemeal module is adopted
It is inserted with the building of Java and Groovy language for parsing the analysis of Gradle configuration file and cutting conversion Gradle configuration file
Part, analysis plug-in unit is by the way that closure name, come the division of arbitration functions block, closure name data are stored in the character string number in analysis plug-in unit
In group.
9. the graphical representation system of Gradle configuration file according to claim 7 or 8, it is characterised in that: the letter
Breath display module for showing the information of dependence closure and project information closure functional block respectively, wherein by dependence
Closure carries out classification displaying, and project information closure is directly shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910211066.8A CN109885295A (en) | 2019-03-20 | 2019-03-20 | A kind of graphical representation method and system of Gradle configuration file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910211066.8A CN109885295A (en) | 2019-03-20 | 2019-03-20 | A kind of graphical representation method and system of Gradle configuration file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885295A true CN109885295A (en) | 2019-06-14 |
Family
ID=66933098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910211066.8A Pending CN109885295A (en) | 2019-03-20 | 2019-03-20 | A kind of graphical representation method and system of Gradle configuration file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885295A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908710A (en) * | 2019-11-19 | 2020-03-24 | 天津大学 | Web front-end code dependency relationship visualization method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9323644B1 (en) * | 2015-09-30 | 2016-04-26 | Semmle Limited | Query-based software dependency analysis |
CN106886442A (en) * | 2017-03-06 | 2017-06-23 | 中山大学 | A kind of software dependence analysis method |
-
2019
- 2019-03-20 CN CN201910211066.8A patent/CN109885295A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9323644B1 (en) * | 2015-09-30 | 2016-04-26 | Semmle Limited | Query-based software dependency analysis |
CN106886442A (en) * | 2017-03-06 | 2017-06-23 | 中山大学 | A kind of software dependence analysis method |
Non-Patent Citations (3)
Title |
---|
PKANGPING: "解析build.grandle文件", 《博客园 HTTPS://WWW.CNBLOGS.EOM/PKANGPING/P/9496769.HTML》 * |
QIKUO125,: "Android Studio 如何获取gradle.properties文件中key值对应的value", 《CSDN博客 HTTPS://BLOG.CSDN.NET/QIKUO125/ARTICLE/DETAIL S/83585191》 * |
STEFFEN·DINN: "build.gradle 浅析(一)", 《博客园 HTTPS://WWW.CNBLOGS.COM/STEFFEN/P/9212765.HTML》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908710A (en) * | 2019-11-19 | 2020-03-24 | 天津大学 | Web front-end code dependency relationship visualization method |
CN110908710B (en) * | 2019-11-19 | 2023-08-29 | 天津大学 | Web front-end code dependency visualization method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102800038B (en) | Wisdom education E cartoon system platform based on Internet of Things and cloud computing | |
CN104809597B (en) | Data resource management platform based on data fusion | |
CN106445484A (en) | Method and system for realizing data tracking through software development kit | |
EP3367234A2 (en) | Systems and methods for arbitrary software logic modeling | |
CN105700888A (en) | Visualization rapid developing platform based on jbpm workflow engine | |
CN110147417A (en) | Expressway works construction supervision unified platform | |
CN102411540B (en) | Automatic management system of workflow-based common software testing process | |
CN101872176A (en) | Method and system for generating measurement and control software | |
CN107807954A (en) | Visual modeling dimensional analytic system and its method | |
CN111176613B (en) | Collaborative Task Automatic Decomposition System Based on Architecture Model | |
CN106341257A (en) | Method and tool for customizing log analysis rules and automatically analyzing logs | |
CN103886398A (en) | Service monitoring method and system in cross-system heterogeneous environment | |
US7127303B2 (en) | System for automating, monitoring and controlling technical processes and acquiring measurements thereof | |
CN106502656A (en) | List View construction method and system in a kind of IOS systems | |
CN105279255A (en) | Utilization method of structured teaching resources of knowledge and skill dependency relationship | |
CN103942722A (en) | Networked data collaborative submission and statistical system and method based on workflow | |
CN109978495A (en) | A kind of nuclear power station debugging test Report workout method and system | |
CN105718601A (en) | Dynamic business integrating model and application method thereof | |
CN110163562A (en) | A kind of mine business backlog processing method | |
CN108108460A (en) | A kind of standardized work flows intelligent management system framework and system | |
CN109885295A (en) | A kind of graphical representation method and system of Gradle configuration file | |
CN103677841B (en) | IETM code generation method and device based on element-level template | |
CN106599216A (en) | Computer based training courseware publishing system | |
CN113434425A (en) | Measurement and control system capable of being rapidly developed and measurement and control system billboard | |
CN104123138A (en) | Rapid building method for ERP system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |
|
RJ01 | Rejection of invention patent application after publication |