CN110825429A - Web project packaging method and system - Google Patents

Web project packaging method and system Download PDF

Info

Publication number
CN110825429A
CN110825429A CN201911106358.1A CN201911106358A CN110825429A CN 110825429 A CN110825429 A CN 110825429A CN 201911106358 A CN201911106358 A CN 201911106358A CN 110825429 A CN110825429 A CN 110825429A
Authority
CN
China
Prior art keywords
jre
path
installation package
web
installation
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.)
Withdrawn
Application number
CN201911106358.1A
Other languages
Chinese (zh)
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.)
Beijing Zhongfu Taihe Technology Development Co Ltd
Zhongfu Information Co Ltd
Zhongfu Safety Technology Co Ltd
Original Assignee
Beijing Zhongfu Taihe Technology Development Co Ltd
Zhongfu Information Co Ltd
Zhongfu Safety Technology 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 Beijing Zhongfu Taihe Technology Development Co Ltd, Zhongfu Information Co Ltd, Zhongfu Safety Technology Co Ltd filed Critical Beijing Zhongfu Taihe Technology Development Co Ltd
Priority to CN201911106358.1A priority Critical patent/CN110825429A/en
Publication of CN110825429A publication Critical patent/CN110825429A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The invention provides a web project packaging method and a system, which are characterized in that installation scripts, web project related files and related information of jre path processing are input into an installation package; when the installation package is operated, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths. According to the invention, relevant information for processing jre paths is input into the installation package, during installation, the system jre path can be automatically searched, no jre is required to be arranged in the installation package, the size of the installation package can be reduced, the storage and transmission are easy, and the installation efficiency can be improved; the printed installation package can be installed under each operating system, does not depend on operating system environment, and saves packaging cost.

Description

Web project packaging method and system
Technical Field
The invention relates to the field of web project packaging, in particular to a web project packaging method and a web project packaging system.
Background
The operation of the web project depends on the environment of the system jre, the jre paths of the operating system are different, if jre is printed into the installation package of the web project, the size of the installation package is increased, and the installation package is not easy to store and transmit. And each time an operating system is adapted, the corresponding jre version needs to be searched, which is time-consuming and labor-consuming.
Disclosure of Invention
In order to solve the problems, the invention provides a web project packaging method and system, jre is not required to be included in an installation package, the size of the installation package is reduced, and the installation efficiency is improved.
The technical scheme of the invention is as follows: a web item packaging method, comprising:
the installation script, the web project related file and the related information of the processing jre path are typed into the installation package;
when the installation package is operated, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
Further, the obtaining jre paths according to the information about the processed jre paths contained in the installation package, and obtaining jre directories according to the obtained jre paths specifically include:
querying a soft connection path corresponding to the operating system jre;
searching a corresponding real jre path according to the inquired soft connection path;
obtain jre directory from queried real jre path.
Further, the air conditioner is provided with a fan,
querying a soft connection path corresponding to the operating system jre by executing a which java command;
and searching a corresponding real jre path according to the inquired soft connection path by executing a readlink-f command.
Further, when the installation package is run, the obtained jre directory is also updated to a relevant location under the web project.
Further, the information about the process jre path is injected into the installation package in the form of jar package.
The technical scheme of the invention also comprises a web project packaging system, which comprises:
a packaging module: the installation script, the web project related file and the related information of the processing jre path are typed into the installation package;
when the installation package packaged by the packaging module runs, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
Further, the installation package packaged by the packaging module realizes jre path acquisition according to the jre path related information contained in the installation package, and jre directory acquisition according to the obtained jre path by the following units:
a soft connection path query unit: querying a soft connection path corresponding to the operating system jre;
a real path query unit: searching a corresponding real jre path according to the inquired soft connection path;
jre catalog retrieval unit: obtain jre directory from queried real jre path.
Further, the air conditioner is provided with a fan,
the soft connection path query unit queries a soft connection path corresponding to the operating system jre by executing which java commands;
and the real path query unit searches a corresponding real jre path according to the queried soft connection path by executing a readlink-f command.
Further, the installation package packaged by the packaging module also updates the obtained jre directory to a relevant location under the web project at runtime.
Further, the packaging module types information about the processing jre path into an installation package in the form of jar packages.
According to the web project packaging method provided by the invention, the related information of processing jre path is input into the installation package, the system jre path can be automatically searched during installation, no jre is required to be arranged in the installation package, the size of the installation package can be reduced, the storage and transmission are easy, and the installation efficiency can be improved; the printed installation package can be installed under each operating system, does not depend on operating system environment, and saves packaging cost.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of a method.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
Example one
The embodiment provides a web project packaging method, which is characterized in that relevant information of a processed jre path is input into an installation package, a jre directory is obtained according to the information, jre does not need to be contained in the installation package, the size of the installation package is reduced, and the installation efficiency is improved.
As shown in fig. 1, the method comprises the steps of: the installation script, the web project related file and the related information of the processing jre path are typed into the installation package; when the installation package is operated, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
It should be noted that, the relevant information of the jre path is processed and injected into the installation package in the form of jar package, wherein, obtaining jre path according to the relevant information of the jre path contained in the installation package, and obtaining jre directory according to the obtained jre path, and processing jre path by calling jar package specifically include:
querying a soft connection path corresponding to the operating system jre;
searching a corresponding real jre path according to the inquired soft connection path;
obtain jre directory from queried real jre path.
In the process, a soft connection path corresponding to the operating system jre is queried by executing a which java command; and searching a corresponding real jre path according to the inquired soft connection path by executing a readlink-f command. In addition, finding two layers up from the queried real jre path may obtain jre directory.
In this embodiment, when the installation package is run, the obtained jre directory is also updated to a relevant location under the web project. Jre is specifically cataloged into JAVA _ HOME in tomcat/bin/catalina.sh file under web engineering.
In this embodiment, the installation script, the information related to the processing jre path, and the web project related file are typed into a run-format installation package by commands such as tarczvf. When the run file is run, the file in the installation package is released to the specified directory through commands such as tar xzvf.
It should be noted that the web project is installed in the server operating system by default, and the operating system is required to check jre environment by default when installed, if jre environment is not installed, jre installation package needs to be provided additionally, otherwise, when the installation package created by the scheme is started, the startup fails because jre path cannot be found.
Example two
The embodiment provides a web project packaging system for implementing the method of the embodiment, which comprises a packaging module: the installation script, the web project related files, and the information related to the process jre path are typed into the installation package. When the installation package packaged by the packaging module runs, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
It should be noted that, the packaging module injects the relevant information of the jre processing path into the installation package in the form of jar package, and when the installation package is run, the jar package is called to process the jre path, specifically, the jre path is obtained according to the jre path relevant information included in the installation package through the following units, and the jre directory is obtained according to the obtained jre path:
a soft connection path query unit: querying a soft connection path corresponding to the operating system jre;
a real path query unit: searching a corresponding real jre path according to the inquired soft connection path;
jre catalog retrieval unit: obtain jre directory from queried real jre path.
Wherein, the soft connection path query unit queries the soft connection path corresponding to the operating system jre by executing which java command; and the real path query unit searches a corresponding real jre path according to the queried soft connection path by executing a readlink-f command. It should be noted that the jre directory retrieving unit finds two layers upwards according to the queried real jre path, and can retrieve the jre directory.
In this embodiment, the installation package packaged by the packaging module further updates the obtained jre directory to a relevant location under the web project when the installation package is run. Jre is specifically cataloged into JAVA _ HOME in tomcat/bin/catalina.sh file under web engineering.
In this embodiment, the packaging module packages the installation script, the information related to the processing jre path, and the web project related file into an installation package in a run format through commands such as tar czvf. When the run file is run, the file in the installation package is released to the specified directory through a command such as tarxzvf.
It should be noted that the web project is installed in the server operating system by default, and the operating system is required to check jre environment by default when installed, if jre environment is not installed, jre installation package needs to be provided additionally, otherwise, when the installation package created by the scheme is started, the startup fails because jre path cannot be found.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for packaging web items, comprising:
the installation script, the web project related file and the related information of the processing jre path are typed into the installation package;
when the installation package is operated, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
2. The web project package installation method of claim 1, wherein the obtaining jre paths according to the processing jre path related information contained in the installation package, and obtaining jre directories according to the obtained jre paths specifically comprises:
querying a soft connection path corresponding to the operating system jre;
searching a corresponding real jre path according to the inquired soft connection path;
obtain jre directory from queried real jre path.
3. The web item packaging method of claim 2, wherein,
querying a soft connection path corresponding to the operating system jre by executing a which java command;
and searching a corresponding real jre path according to the inquired soft connection path by executing a readlink-f command.
4. A web project packaging method according to claim 1, 2 or 3, characterized in that when the installation package is run, the obtained jre directory is also updated to a relevant position under the web project.
5. The web item packaging method of claim 4, wherein the information related to the processing jre path is injected into the installation package in the form of jar package.
6. A web item packaging system, comprising:
a packaging module: the installation script, the web project related file and the related information of the processing jre path are typed into the installation package;
when the installation package packaged by the packaging module runs, jre paths can be obtained according to processing jre path related information contained in the installation package, and jre directories can be obtained according to obtained jre paths.
7. The web project packaging system of claim 6, wherein the installation package packaged by the packaging module realizes jre path acquisition according to the processing jre path related information contained in the installation package and jre directory acquisition according to the obtained jre path by:
a soft connection path query unit: querying a soft connection path corresponding to the operating system jre;
a real path query unit: searching a corresponding real jre path according to the inquired soft connection path;
jre catalog retrieval unit: obtain jre directory from queried real jre path.
8. The web item packaging system of claim 7,
the soft connection path query unit queries a soft connection path corresponding to the operating system jre by executing which java commands;
and the real path query unit searches a corresponding real jre path according to the queried soft connection path by executing a readlink-f command.
9. The web project packaging system of claim 6, 7 or 8, wherein the installation package packaged by the packaging module further updates the obtained jre directory to a relevant location under the web project at runtime.
10. The web project packaging system of claim 9, wherein the packaging module types information about the process jre path into the installation package in the form of jar packages.
CN201911106358.1A 2019-11-13 2019-11-13 Web project packaging method and system Withdrawn CN110825429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911106358.1A CN110825429A (en) 2019-11-13 2019-11-13 Web project packaging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911106358.1A CN110825429A (en) 2019-11-13 2019-11-13 Web project packaging method and system

Publications (1)

Publication Number Publication Date
CN110825429A true CN110825429A (en) 2020-02-21

Family

ID=69554810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911106358.1A Withdrawn CN110825429A (en) 2019-11-13 2019-11-13 Web project packaging method and system

Country Status (1)

Country Link
CN (1) CN110825429A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626555A (en) * 2021-10-12 2021-11-09 中孚安全技术有限公司 Method and system for displaying oversized form through sectional loading
CN114356439A (en) * 2021-12-21 2022-04-15 四川启睿克科技有限公司 Method for starting WEB application without installation in offline mode

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183367A (en) * 2007-01-23 2008-05-21 腾讯科技(深圳)有限公司 Method for managing document by label, instantaneous communications customer terminal and system
CN101729753A (en) * 2009-11-06 2010-06-09 深圳市同洲电子股份有限公司 Method and device for loading pictures during java application
CN101923515A (en) * 2010-09-07 2010-12-22 上海市共进通信技术有限公司 Method for operating Web page in flash memory of embedding system application device
CN104573093A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for managing file catalog
CN104714788A (en) * 2013-12-12 2015-06-17 腾讯科技(深圳)有限公司 Method and device for automatically generating software installation package
CN105511868A (en) * 2015-11-30 2016-04-20 深圳联友科技有限公司 IOS application program packing method
CN107015996A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 A kind of resource access method, apparatus and system
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN109324792A (en) * 2018-10-09 2019-02-12 深圳点猫科技有限公司 A kind of the route construction automatic method and electronic equipment of language based on programming
CN109375929A (en) * 2018-11-22 2019-02-22 东软集团股份有限公司 Installation kit generation method, device, storage medium and the equipment of Java web application
CN109508198A (en) * 2018-11-09 2019-03-22 Oppo广东移动通信有限公司 Application program installation method, device, storage medium and terminal
CN109800028A (en) * 2018-12-30 2019-05-24 贝壳技术有限公司 A kind of dispositions method and device of Web environment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183367A (en) * 2007-01-23 2008-05-21 腾讯科技(深圳)有限公司 Method for managing document by label, instantaneous communications customer terminal and system
CN101729753A (en) * 2009-11-06 2010-06-09 深圳市同洲电子股份有限公司 Method and device for loading pictures during java application
CN101923515A (en) * 2010-09-07 2010-12-22 上海市共进通信技术有限公司 Method for operating Web page in flash memory of embedding system application device
CN104714788A (en) * 2013-12-12 2015-06-17 腾讯科技(深圳)有限公司 Method and device for automatically generating software installation package
CN104573093A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for managing file catalog
CN105511868A (en) * 2015-11-30 2016-04-20 深圳联友科技有限公司 IOS application program packing method
CN107015996A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 A kind of resource access method, apparatus and system
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN109324792A (en) * 2018-10-09 2019-02-12 深圳点猫科技有限公司 A kind of the route construction automatic method and electronic equipment of language based on programming
CN109508198A (en) * 2018-11-09 2019-03-22 Oppo广东移动通信有限公司 Application program installation method, device, storage medium and terminal
CN109375929A (en) * 2018-11-22 2019-02-22 东软集团股份有限公司 Installation kit generation method, device, storage medium and the equipment of Java web application
CN109800028A (en) * 2018-12-30 2019-05-24 贝壳技术有限公司 A kind of dispositions method and device of Web environment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113626555A (en) * 2021-10-12 2021-11-09 中孚安全技术有限公司 Method and system for displaying oversized form through sectional loading
CN113626555B (en) * 2021-10-12 2022-03-18 中孚安全技术有限公司 Method and system for displaying oversized form through sectional loading
CN114356439A (en) * 2021-12-21 2022-04-15 四川启睿克科技有限公司 Method for starting WEB application without installation in offline mode
CN114356439B (en) * 2021-12-21 2023-06-13 四川启睿克科技有限公司 Method for starting WEB application in offline installation-free manner

Similar Documents

Publication Publication Date Title
US7503034B2 (en) Method and system for dynamically mapping archive files in an enterprise application
CN110825429A (en) Web project packaging method and system
US9880889B2 (en) Virtual application extension points
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
US10887171B2 (en) Routing configuration method of view files, storage medium, terminal device and apparatus
CN101246535A (en) Method, system and device for renovating abnormal document
US20070106716A1 (en) Shared Classes Cache Computer System and Method Therefor
CN102999352A (en) Embedded system assembly loading method
CN103186622A (en) Updating method of index information in full text retrieval system and device thereof
CN103631603A (en) Software cleaning method and system
CN108629052B (en) Kettle task scheduling method, system, computer equipment and storage medium
GB9925510D0 (en) Incorporating native code in java archive files
CN107832620A (en) A kind of memory SPD guard method and device
CN103186400A (en) Web application program upgrading method and system
CN102520994A (en) Method and system for steaming loading virtual files
CN111552518B (en) Method and device for loading control for starting application
CN106648582B (en) method for realizing international same-name resource file deployment and update
US6658658B1 (en) Implicit forwarding and resolving of a reference made by an importing module to an exporting module for a specified export
CN108628632B (en) Packing method and device
CN104536785B (en) Real-time system update method and device
CN104572876A (en) Method and device for reading configuration file corresponding to software
CN100357943C (en) A method for inspecting garbage files in cluster file system
CN110673849B (en) Method and device for presetting file security contexts in batches
CN115543546B (en) Spring-based module hot deployment method and system
CN104536784A (en) Method and device for updating real-time 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200221

WW01 Invention patent application withdrawn after publication