US20120216186A1 - Packaging files having automatic conversion across platforms - Google Patents

Packaging files having automatic conversion across platforms Download PDF

Info

Publication number
US20120216186A1
US20120216186A1 US13/402,613 US201213402613A US2012216186A1 US 20120216186 A1 US20120216186 A1 US 20120216186A1 US 201213402613 A US201213402613 A US 201213402613A US 2012216186 A1 US2012216186 A1 US 2012216186A1
Authority
US
United States
Prior art keywords
file
encoding
files
client
program code
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.)
Abandoned
Application number
US13/402,613
Inventor
Jeffrey O. Fisher
Satish B. Reddy
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.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to US13/402,613 priority Critical patent/US20120216186A1/en
Publication of US20120216186A1 publication Critical patent/US20120216186A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • Embodiments of the inventive subject matter generally relate to packaging software, and in particular, cross-platform software packaging.
  • Modern data processing systems in an enterprise environment typically are multi-platform systems. These also typically involve distributed file and application services across a network to provide resources to the multiple users which are connected to the resources via a network.
  • the network may include a Local Area Network (LAN) a Wide Area Network (WAN) additionally, a large enterprise, these networks may additionally be connected via the Internet.
  • LAN Local Area Network
  • WAN Wide Area Network
  • Software resources in this environment often include multiple files that may constitute executable files to provide some application service, associated documentation which may be in text or binary form and data required by the particular application.
  • These applications may be available to the users to provide particular functionality required by the user or may provide administrative applications, or testcase software, as discussed in the commonly owned co-pending U.S. patent application Ser. No. 10/636,985 entitled “Systems and Methods for Synchronizing Software Execution Across Data Processing Systems and Platforms” hereby incorporated herein by reference.
  • These files, in view of the distributed nature of the enterprise data processing environment may be packaged on one platform but may be used on another. (Methods and systems for automatically building such packages using the inventive principles discussed hereinbelow are described in the co-pending commonly-owned U.S.
  • a set of files to be shared and packaged for example on a Unix or Unix-like operating system (such as Linux) may have attributes that are incompatible with a target platform, say Windows.
  • a target platform say Windows.
  • text files, for example, created on the Unix platform may have embedded line breaks that are incompatible with the representation of line breaks on the target window's system (linefeeds on the Unix platform and a carriage return linefeed pair on Windows).
  • Executable files packaged for sharing across an enterprise data processing system may also be problematic. For example, file extensions as used in a Windows environment are not meaningful on Unix, or Unix-like platforms.
  • a binary executable in a package of files packaged in a Windows environment may not be recognized as an executable file in a Unix environment.
  • a shell script which is a Unix executable would not be recognized as an executable file in a Windows environment, and such a file maintained in a Windows environment would not be flagged appropriately. Consequently, a package of files that is to be shared across multiple platforms may require, when moving from one platform to another, manual linefeed/carriage return translation (commonly referred to in the art as “CTRL+M” translation) and manual resetting of execution flags.
  • CTR+M manual linefeed/carriage return translation
  • Embodiments of the inventive subject matter include a method for a client to extract files from a software package.
  • the method comprises receiving a reply in response to a request from the client to a server to extract files from a software package.
  • the reply comprises an archive file of the files and attribute information for the files.
  • the files and the attribute information are extracted from the archive file. It is determined that at least one of the files is associated with a first encoding different than a second encoding of the client. With the attribute information, it is determined that the at least one of the files is not a binary file.
  • the at least one file is translated from the first encoding to the second encoding.
  • FIG. 1 illustrates, in block diagram form, a distributed resource data processing system which may be used in conjunction with the present inventive principles
  • FIG. 2 illustrates, an architecture for software package management in accordance with the present inventive principles
  • FIG. 3 illustrates, in flowchart form, a software package client process which may be used in conjunction with the architecture of FIG. 2 ;
  • FIG. 4 illustrates, in flowchart form, a methodology for handling software package requests which may be used in conjunction with the client process of FIG. 3 ;
  • FIG. 5 illustrates, in flowchart form, a methodology for creating a public software package which may be used in conjunction with the methodology of FIG. 4 ;
  • FIG. 6 illustrates, in flowchart form, a methodology for processing file specification which may be used in conjunction with the methodology of FIG. 5 ;
  • FIG. 7 illustrates, in flowchart form, a software package server process which may be used in conjunction with the architecture of FIG. 2 ;
  • FIGS. 8A-8C illustrate, in flowchart form, a methodology for processing software package requests which may be used in conjunction with the methodology of FIG. 7 ;
  • FIG. 9 illustrates, in flowchart form, a methodology for processing software package request replies which may be used in conjunction with the client process of FIG. 3 ;
  • FIGS. 10A-10B illustrate, in flowchart form, a methodology for restoring file attributes and CR/LF transformations across platforms which may be used in conjunction with the methodology of FIG. 9 ;
  • FIG. 11 illustrates, in flowchart form, a methodology for codepage translation in accordance with an embodiment of the present inventive subject matter.
  • FIG. 12 illustrates, in block diagram form, a data processing system which may be used in conjunction with the methodologies incorporating the present inventive principles.
  • a mechanism in accordance with the present inventive principles for sharing files, and sets of related files, or packages of files, in a multi-host, multi-platform environment is provided.
  • the sets of related files may also be referred to as a file tree archive.
  • a public package client handles user requests to perform operations on a software package. Operations may include package creation, file insertion and file deletion. Additionally, information about the package and the files contained therein may be obtained.
  • a server responsive to the client, performs the operations on the package. Data about the files is set in a data structure which may be stored in an archive along with the files themselves. In particular, this data may identify each file as either a text or binary file.
  • the data may identify a file as either an executable file or a non-executable file. Further data may identify the originating platform, that is, operating system. A host accessing the archived files via the client may access, in accordance with the present inventive principles, the aforementioned data to determine if the file or files require further processing to adapt the file to the operating system on the client. Such further processing may, for example, include linefeed/carriage return translation and codepage translation, or setting file attributes.
  • FIG. 1 illustrates, schematically, a distributed data processing environment which may be used in conjunction with the present inventive subject matter.
  • System 100 includes a plurality of hosts, 102 a - 102 e.
  • Hosts 102 a and 102 b are depicted as connected to a network 104 which may be, for example, a local area network (LAN) or a wide area network (WAN).
  • LAN local area network
  • WAN wide area network
  • hosts 102 a and 102 b connected to network 104 are exemplary.
  • hosts 102 c - 102 e are connected to a network 106 which may also be a LAN or a WAN.
  • networks 104 and 106 may be coupled via Internet work, now commonly referred to as the Internet 108 .
  • Servers 110 a and 110 b reside on networks 104 and 106 , respectively.
  • servers 110 a and 110 b are exemplary.
  • Server 110 a and 110 b may provide file archiving and sharing services to the data processing system, and to the clients on the network, such as hosts 102 a and 102 b on network 104 and hosts 102 c - 102 e on network 106 .
  • hosts on network 104 may obtain file archiving and sharing services from server 104 b via the Internet 108 .
  • hosts 102 c - 102 e may obtain file archiving and sharing services from server 110 a via Internet 108 .
  • these services may be provided by servers 110 a and 110 b in accordance with the present inventive subject matter, as described further below.
  • hosts 102 a - 102 e need not deploy the same operating system, either among themselves, or with servers 110 a and 110 b. Additionally, the operating system deployed by server 110 a need not be the same operating system deployed on server 110 b.
  • the file archiving and sharing services provided by servers 110 a and 110 b may include methodologies to effect the promulgation of packages, or file tree archives, across multiple hosts and multiple platforms in accordance with the principles of the present inventive subject matter.
  • FIG. 2 illustrates an architecture 200 for a public software package management system (or facility) in accordance with the present inventive principles.
  • Host 202 includes a public package server 204 , and an associated application program interface (API) 206 . Note that a host 202 may be used in an embodiment of servers 110 a and 110 b FIG. 1 .
  • API application program interface
  • Public package server 204 services requests from a public package client 208 , residing in host 210 .
  • a host 210 may be used in an embodiment of hosts 102 a - e, FIG. 1 .
  • a user “creates” or performs other operations on a public package via client 208 .
  • Public package server 204 may be multi-threaded, each thread 212 handling a separate request. Packages may be stored in conventional storage devices such as archive store 214 .
  • Commands may be sent to public package server 204 via network 216 .
  • communications between a client and a server may be via sockets supported by the TCP/IP protocol suite.
  • public package server 204 and client 208 will be described in conjunction with FIGS. 3-11 , below.
  • Process 300 may represent a client process that may be executed for each request, the requirements of a particular request being performed by a set of request handlers invoked by the process.
  • the flowcharts provided herein are not necessarily indicative of the serialization of operations being performed in an embodiment of the present inventive subject matter. Steps disclosed within these flowcharts may be performed in parallel. The flowcharts are indicative of those considerations that may be performed to produce the operations available to create and use public software packages. It is further noted that the order presented is illustrative and does not necessarily imply that the steps must be performed in the order shown.
  • client process 300 receives user input requesting a public package operation, or service.
  • User input may be in the form of a command-line command and associated parameters, typically in the form of a keyword and a value or list of values.
  • the type of request that is, the operation requested, is determined, step 304 , and in step 306 , a request handler 306 a - c is invoked.
  • the type of request may be specified by a command-line keyword corresponding to request, for example, CREATE PUBPKG to create a software package, DELETE FILES to delete files from a software package (which may be specified by additional keyword-value pairs), DELETE PUBPKG, to delete an entire software package etc.
  • Step 306 may be implemented as a multiway branch, or switch statement, for example.
  • Operations that may be requested include a request to create a public package, to add files to an existing package, to delete files from an existing public package, to copy a public package from one server to another, to list files in a package, to extract some or all files from a package to a client, to query information about a package, etc.
  • a request handler will be described in conjunction with FIGS. 4-6 below.
  • Process 300 contacts the public package server, step 308 , and attempts a connection in step 310 . If the connection is not made, the client continues to attempt to connect until a predetermined timeout elapses, step 312 . A typical timeout value may be ten seconds.
  • the request is sent to the server, step 314 .
  • a request may be in the form of a packet sent via TCP/IP in an embodiment of the present inventive subject matter.
  • the public software package server services the request and returns a response.
  • step 316 client process receives the response from the server.
  • step 318 the reply is processed.
  • a method for processing a reply is described below in conjunction with FIG. 7 .
  • Process 300 terminates in step 320 .
  • step 402 the package data is retrieved from the command parameters.
  • the request may be command line parameters in the form of keywords or keyword-value pairs.
  • the “value” in the pair may be a list of values, which may be numerical values, strings etc. depending on the type of parameter the values represent.
  • Input data may include, depending on the particular public package action requested, a public software package name, keywords associated with package management/access control, such as overwrite permission, passwords associated with the package (read and/or change), contact information, that is information that specifies a contact person for the package, or an autodelete lifetime (described below in conjunction with FIG. 7 ).
  • one or more (i.e. a list) of file specifications may be input in associated with a “FILES” keyword to specify files that are subject to the requested action, for example, insertion into or deletion from a package.
  • a file specification may include a pathname (full or partial, if a directory specification is included).
  • a file specification may include wildcard characters and other metacharacters, as discussed further below.
  • Additional keyword-value pairs that may be associated with a file specify file attributes, such as a text file, binary file, or a executable file. Note that for the purposes herein an executable file need not necessarily be a binary file.
  • a script such as a shell script, or a script written in a scripting language such as Perl, would be understood to be executable files.
  • Perl script
  • step 404 a handler corresponding to the type of request is invoked.
  • Process 500 may be invoked in step 404 , FIG. 4 .
  • the package data is set into a data structure, which may be an object in an object-oriented programming model, such a Java, and the data structure is serialized.
  • Serialization provides a mechanism for writing the complete state of the data structure to an output stream, such as a file or a socket (for sending over a network), and which allows for the data structure to be recreated by reading the serialized state.
  • Typical modern high-level programming environments provide built-in mechanisms for serializing data structures.
  • Java for example, provides a writeObject( ) method and a readObject( ) method to serialize data structures (objects in Java) and de-serialize them, respectively.
  • the package data includes the information retrieved from the request input parameters, for example in step 402 , FIG. 4 .
  • step 506 and process 500 proceeds to step 308 , FIG. 3 to pass the create public package request including the file archive generated in processing the file specifications and the serialized package information (from step 502 , FIG. 5 ) to the public package server.
  • a method for processing the file specifications will be described in conjunction with FIG. 6 .
  • step 506 is bypassed, and the create public package request is sent to the server as before, including the serialized public package information.
  • a file specification may be more general than simply a file name, or directory path and file name.
  • a file specification may include “wildcard” characters or other metacharacters.
  • a file specification may include regular expressions.
  • a regular expression is string comprised of a sequence of text and special characters that represents a pattern to be matched.
  • Unix and Unix-like platforms provide for regular expression based pattern matching as do programming languages such as Perl, Python and Java (in Java 2 Platform, Standard Edition, version 1.4). In this way, a file specification may be used to specify a set of files to be included in a software package. (Similarly, a set of files may be specified for deletion from a public package in a delete request.)
  • step 602 a loop over the file specifications in the request is entered.
  • step 602 the files on the local host matching the current file specification are determined.
  • step 604 files matching the current file specification are listed.
  • step 606 the read/write/executable and text/binary flags are determined in step 608 .
  • the file type may be determined by a postfixed extension such as .exe for executable files and .txt for text files in a Windows platform, or by examining the file type using a file command on Unix or Unix-like systems.
  • Java provides instance methods of the File class to determine file attributes, as do other high-level programming languages, as Perl and Python.
  • keyword-value pairs may be defined to force a matching file to be tagged as a binary or text file.
  • keyword-value pair TEXT_FSPEC ⁇ textfspec> may be used to tag a file whose file specification matches textfspec to be tagged as a text file.
  • keyword-value pair BINARY_FSPEC ⁇ binaryfspec> may be used to tag a file whose file specification matches binaryfspec to be tagged as a binary file. Defaults may also be defined, for example, if neither of these keyword-value pairs is used, a file may be tagged as a binary by default.
  • keywords may be defined to set defaults. For example, a default to tag files as text, such as DEF_TO_TEXT, or default to tag as binary, such as DEF_TO_BINARY, may be used.
  • file attributes may be used to effect automatic linefeed and carriage return (LF/CR) translation and executable file tagging across platforms.
  • the file attributes determined in step 608 are set in a vector, which may be referred to as an attribute vector, associated with the current file.
  • a vector may be an instance of the Java Vector class, which implements an array of objects. The objects need not be of the same type. Other programming languages, such as Python, implement similar data structures.
  • the vector may be an element of table storing each vector with the name of the corresponding file. However, any data structure may be used to contain the attributes for the files.
  • This structure provides a temporary storage mechanism for the file attributes pending the storage of the files in a file archive for transmission to the package server. Steps 608 and 610 are repeated for each file matching the current file specification until process 600 breaks out of the loop over files, in step 612 .
  • Process 600 continues to the next file specification, if any, via the “No” branch of step 614 and adds attribute vectors corresponding to files matching the next file specification. If there are no further file specifications, in step 614 , the process exits the loop over file specifications entered in step 602 . Thus, in steps 602 - 614 a data structure that represents a list of files matching the input file specifications and associated file attributes is generated.
  • step 616 process 600 loops over the vectors in the table.
  • step 618 the corresponding file is compressed, and the attribute flags contained in the associated vector are stored in an archive file. That is, an attribute file containing tags representing read/write/execute and text/binary attributes of each file is included in the archive file.
  • the attribute tags may be written into a text file, for example, each set of attributes with the associated file name.
  • a file list and a hash table keyed by the corresponding file names may be used and serialized for incorporation into the archive file. Additionally, a codepage identifier may be inserted.
  • a codepage defines a mapping between text characters and an internal machine representation, typically a one or two byte value; codepages deployed on a platform may have a predetermined identified associated therewith.
  • a ZIP archive file may be used.
  • a ZIP archive file stores the files in a compressed form.
  • uncompressed archives such as TAR commonly available on Unix platforms may be used.
  • a TAR archive may subsequently be compressed.
  • GZIP a compression process commonly available on Unix platforms may be used.
  • a TAR archive may be compressed by creating a ZIP file of the TAR archive.
  • the archive type may be specified by the user in a command-line parameter.
  • the present inventive principles are not implicated by the particular compressed file archive mechanism used. It would be appreciated by those of ordinary skill in the art that using compressed archives may reduce network bandwidth demands in passing the create request to the software package server, in step 314 , FIG. 3 .
  • the process breaks out of the loop over vectors in step 620 after all attribute vectors in the table have been stored along with the corresponding compressed files, and proceeds to step 308 , FIG. 3 .
  • a server process 700 for handling software package requests from clients is depicted in FIG. 7 .
  • Process 700 is a multithreaded process. In FIG. 7 , two threads, an autodelete daemon thread, and a request handling thread are shown. As discussed hereinabove, a separate thread may be spawned by a server to handle each request.
  • step 702 the thread enters a loop in which the thread sleeps for a predetermined interval of time, one hour, for example. On expiration of the time interval, the thread “wakes up” in step 704 , breaking out of the “sleep” loop. In this way, the autodelete daemon periodically loops through the archive store, such as archive store 214 , FIG. 2 , to delete software packages that have been specified for automatic deletion.
  • the archive store such as archive store 214 , FIG. 2
  • step 706 the thread enters a loop over the software packages in the archive store.
  • the autodelete lifetime is determined.
  • the autodelete lifetime may be determined by accessing the package information file provided by the client when the package was created, for example, in step 502 , FIG. 5 .
  • the data may be accessed by deserializing the file and reading the autodelete value therefrom.
  • step 710 it is determined if the autodelete time has expired and an autodelete time has been specified. If the autodelete time has expired, in step 712 , the package is deleted from the archive store, such as archive store. If the autodelete time has not expired, step 712 is bypassed.
  • the thread returns to step 706 , to loop over the packages in the archive store, repeating steps 708 - 712 for each package. After the last package has been tested, the thread returns to step 702 , and sleeps until the next pass through the archive store.
  • step 752 the request thread listens on a socket for a request from a client to perform an operation on a specified package, looping until a request is received in step 754 .
  • a socket would be recognized by one of ordinary skill in the art as a logical representation of a communication endpoint in a data processing system. If a request is received, a thread 756 to process the request and return a reply to the requesting client is spawned. The original thread returns to step 752 to continue to listen for requests.
  • step 760 thread 756 processes the request.
  • a method for processing a request which may be used in conjunction with step 760 is described in connection with FIG. 8 . If the request is not a query, in step 766 , the lifetime for the package is reset. In step 764 , if the request is a query, step 766 is bypassed. Thread 756 terminates in step 768 .
  • Method 800 may be used to perform step 760 , FIG. 7 .
  • step 802 it is determined if the package specified in the request exists. If the package does not exist, a corresponding error message is generated, step 804 , and returned to the requesting client via step 762 , FIG. 7 . If the package exists, in step 806 it is determined if the package is password protected. If the package is password protected, the password supplied in the request is matched against the password set in the package. If the password fails, step 808 , because of a mismatch or no password was supplied in the request, a corresponding error message is generated in step 804 , and returned to the client, as before.
  • step 806 If the package is not password protected, step 806 , or the supplied password is correct, step 808 , the requested package operation is performed, in step 809 .
  • Operations may include retrieving data form the package, copying a package to a host, retrieving information about a package, etc.
  • FIG. 8B illustrating the substeps that may be performed by step 809 in response to a request to extract files from a package.
  • step 810 it is determined if the specified files exist. If so, the files are extracted from the package, step 812 .
  • the files may be stored in a compressed archive file, such as a ZIP file, to be returned to the client via step 762 , FIG. 7 .
  • the serialized package information object file (described in conjunction with step 502 , FIG. 5 ) and the attribute file (described in conjunction with step 616 , FIG. 6 ) are added to the archive file with the extracted files. If the files do not exist in step 810 , an error message is generated, step 804 , and returned to the client as before.
  • Another exemplary request may be to create a shadow of a package. If a shadowed package is changed by, for example, adding or deleting files, the changes may be passed to the shadow host, that is the host on which the shadowed package is copied.
  • a method for creating a shadow package which may be used in conjunction with step 809 , FIG. 8A is illustrated in FIG. 8C .
  • step 820 the name of the shadow host is retrieved from the request received in step 754 , FIG. 7 .
  • a public software package server may maintain a shadow list containing the names of any shadow hosts and the software packages shadowed thereon. Lists may be maintained for each package that is shadowed, that is, on a “per package” basis. The list may be used by the server to send updates with respect to shadowed packages to the respective shadow hosts.
  • step 822 it is determined if the list exists on the server servicing the request. If not, the list is created, step 824 . If the list already exists, step 824 is bypassed.
  • step 826 the shadow host name and the public package being shadowed thereon is added to the list, and in step 828 , the package is copied to the shadow host. If the copy failed, because, for example, a network connection to the shadow host could not be made, an error message is returned to the client via step 808 , FIG. 8A and the “No” branch of step 830 . If the shadow copy was successful, in step 832 a success message is returned to the client via the “Yes” branch of step 830 .
  • a client processes replies from a software package server.
  • client process 300 processes replies in step 318 .
  • a client method 900 for processing software package server replies is illustrated in FIG. 9 .
  • Process 900 may be used to perform step 318 , FIG. 3 .
  • step 902 it is determined if the reply is an error message. If so, the message is displayed in step 904 .
  • the server may return an error code and text message to the client, which displays at the command line.
  • the text may provide a brief description of the nature of the error.
  • an error message PUBPRG_ERR_PUBPKG_DOES_NOT_EXIST may be returned, and displayed. This would inform the user that the requested package (or path) did not exist.
  • an error message such as PUBPKG_GRR_SYNTAX_KEYWORD may be returned and displayed.
  • the reply contains the specified files, as described in conjunction with steps 810 and 812 , FIG. 8B .
  • the reply is a message that is formatted and displayed in step 908 .
  • a request may be for a list of files contained in a specific package, wherein the returned message may be a text message containing the list of files, similar to a list of files generated by a shell command for listing files in a file system directory, such as the is command in a Unix or Linux platform.
  • the server and client may communicate via sockets and a message may be passed by writing to the socket and reading from the socket; sockets are typically supported by the TCP/IP protocol suite.
  • step 910 the files are decompressed, and the read/write/execute flags and text/binary flags are retrieved, and file attributes are set and CR/LF translation is performed.
  • Process 900 proceeds to step 320 , FIG. 3 .
  • codepage translation may be performed in step 910 .
  • FIG. 10 illustrating a methodology for performing CR/LF translation and restoring file attributes based on the source and target platforms in accordance with an embodiment of the present inventive subject matter.
  • step 1002 file and package information is retrieved.
  • the attribute file described above in conjunction with step 616 , FIG. 6 is extracted from the archive, such as a ZIP archive.
  • step 1003 the serialized package information object file is extracted and deserialized. Recall that deserializing the file reconstructs the underlying object (or other data structure), the members of which include the package information data, such as the originating operating system.
  • step 1004 a loop is entered over each of files extracted from the package and returned by the server.
  • step 1006 the file is extracted from the returned archive, and expanded. Because, as discussed hereinabove, the files may have been created on a different operating system, or platform, than the operating system of the local host on which the unpackaging process is executing, file translation and flagging may be required.
  • step 1008 it is determined if the target operating system is the same as the originating operating system. This may be performed using the originating operating system identifier in the package information object, reconstructed in step 1003 .
  • step 1010 it is determined if the current file is a binary file. This may be determined by examining the text/binary attribute in the attribute file extracted in step 1002 . If the file is not a binary file, in step 1012 , line feed/carriage return translation is performed.
  • executable files may include shell scripts, for example. Although these are executable files, they are composed of text.
  • the originating operating system is a windows platform and the target operating system is a Unix platform, or a Unix-like platform, such as Linux
  • carriage returns would be deleted from the carriage return/line feed pairs used in windows to denote line breaks in text files.
  • a technique which may be used in an embodiment of the present inventive subject matter to perform step 1012 may be regular expression substitution.
  • facilities for performing regular express matching and substitution are available on Unix and Unix-like platforms and several programming environments, including Java and Perl. It would be appreciated by those of ordinary skill in the art that alternative techniques may be used to effect the line feed/carriage return translations and such embodiments would fall into the spirit and scope of the present inventive subject matter. If, in step 1010 , the current file is a binary file step 1012 is bypassed.
  • step 1014 it is determined if the current file is executable. If, in step 1016 , the current operating system has an executable flag (a Unix-like system, for example) the file is marked as executable in step 1018 .
  • an executable flag a Unix-like system, for example
  • steps 1016 and 1018 are bypassed.
  • step 1020 the file's read/write flag is restored. If the current file is not the last file in the package, step 1022 , process 1000 returns to step 1004 to continue to loop over files in the package. Otherwise, process 1000 terminates in step 1024 .
  • process 1000 bypasses the linefeed translation operation, and proceeds to step 1014 to restore the read/write flag and the executable flag (on Unix-like systems) as previously described.
  • codepage translation may be performed.
  • data processing systems internally represent text characters as a set of “numerical” values, typically one or two bytes long.
  • a codepage defines the mapping between the integer values and the characters represented.
  • Two codepages that are widely used to define the mapping for the English alphabet are the eight-bit ASCII (American Standard Code for Information Exchange) character codes, commonly used on personal computers and workstations, and EBCDIC (Extended Binary Coded Decimal Interchange Code) character codes which has typically been used on mainframe computers. Additionally codepages have been defined to represent the alphabets of other languages.
  • a “universal” codepage defines a sixteen-bit representation that includes characters represent most if not all of the languages used around the world. Given two codepages, a mapping between the two may be defined as array in which the first character code provides an index in to the array and the encoding in accordance with the second codepage represented by the values. By associating an identifier with each codepage, a text file encoded using one codepage may be translated into a text file encoded in accordance with a second codepage via the mapping. Commonly used codepages have been assigned identifier by industry practice, or by standards-settings bodies. For example, in the Microsoft®.
  • FIG. 11 depicts, in flowchart form, a process 1100 for performing codepage translation in accordance with the present inventive subject matter.
  • step 1102 the attribute file described above in conjunction with step 616 , FIG. 6 , is extracted from the archive, such as a ZIP archive.
  • step 1104 a codepage identifier for the codepage defining the encoding of text files in the package is read. If the codepage on the target platform differs from the codepage used to encode the text files, step 1106 , codepage translation is performed via steps 1108 - 1118 . Otherwise, no codepage translation is performed, and process 1100 terminates in step 1120 .
  • step 1108 a loop over files in the package is entered.
  • step 1110 it is determined if a current file is a binary file. If not, in steps 1112 codepage translation is performed on the file by looping over the characters in the file, step 1112 , and mapping each character into the corresponding character in the target codepage, step 1114 . The mapping may be performed using the translation table, discussed above, for the encoding and target code tables.
  • step 1116 After the last character is mapped, step 1116 , in step 1118 it is determined of the current file is the last file in the package. If so, process 1100 terminates in step 1120 . Otherwise, process 1200 continues to loop over files by returning to step 1108 .
  • step 1116 if the current file is a binary file, no translation is performed, and process 1100 proceeds to step 1118 to determine if the last file has been translated (if needed). If so, process 1200 terminates in step 1120 . Otherwise, process 1200 continues to loop over files as previously described.
  • FIG. 12 illustrates an exemplary hardware configuration of data processing system 1100 in accordance with the subject inventive subject matter.
  • the system in conjunction with the methodologies illustrated in FIGS. 3-6 , 9 - 11 may be used, in one embodiment, to perform software package client operations in accordance with the present inventive principles.
  • the system in conjunction with the methodologies in FIGS. 7 and 8 A- 8 C may be used to perform software package server operations in accordance with the present inventive subject matter.
  • Data processing system 1200 includes central processing unit (CPU) 1210 , such as a conventional microprocessor, and a number of other units interconnected via system bus 1212 .
  • CPU central processing unit
  • Data processing system 1200 also includes random access memory (RAM) 1214 , read only memory (ROM) 1216 and input/output (I/O) adapter 1218 for connecting peripheral devices such as disk units 1220 to bus 1212 , user interface adapter 1222 for connecting keyboard 1214 , mouse 1226 , trackball 1232 and/or other user interface devices such as a touch screen device (not shown) to bus 1212 .
  • System 1200 also includes communication adapter 1234 for connecting data processing system 1200 to a data processing network, enabling the system to communicate with other systems, and display adapter 1236 for connecting bus 1212 to display device 1238 .
  • CPU 1210 may include other circuitry not shown herein, which will include circuitry commonly found within a microprocessor, e.g. execution units, bus interface units, arithmetic logic units, etc. CPU 1210 may also reside on a single integrated circuit.
  • Preferred implementations of the inventive subject matter include implementations as a computer system programmed to execute the method or methods described herein, and as a computer program product.
  • sets of instructions for executing the method or methods are resident in the random access memory 1214 of one or more computer systems configured generally as described above. These sets of instructions, in conjunction with system components that execute them may in one embodiment perform software package server operations and, in another embodiment perform public package client operations, as described hereinabove.
  • the set of instructions may be stored as a computer program product in another computer memory, for example, in disk drive 1220 (which may include a removable memory such as an optical disk or floppy disk for eventual use in the disk drive 1220 ).
  • the computer program product can also be stored at another computer and transmitted to the users work station by a network or by an external network such as the Internet.
  • a network such as the Internet.
  • the physical storage of the sets of instructions physically changes the medium upon which is the stored so that the medium carries computer readable information.
  • the change may be electrical, magnetic, chemical, biological, or some other physical change. While it is convenient to describe the inventive subject matter in terms of instructions, symbols, characters, or the like, the reader should remember that all of these in similar terms should be associated with the appropriate physical elements.
  • inventive subject matter may describe terms such as comparing, validating, selecting, identifying, or other terms that could be associated with a human operator.
  • inventive subject matter may describe terms such as comparing, validating, selecting, identifying, or other terms that could be associated with a human operator.
  • no action by a human operator is desirable.
  • the operations described are, in large part, machine operations processing electrical signals to generate other electrical signals.
  • aspects of the present inventive subject matter may be embodied as a system, method or computer program product. Accordingly, aspects of the present inventive subject matter may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present inventive subject matter may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
  • the computer readable medium may be a computer readable signal medium or a computer readable storage medium.
  • a computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof.
  • a computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out operations for aspects of the present inventive subject matter may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • LAN local area network
  • WAN wide area network
  • Internet Service Provider for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
  • the computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

Abstract

A client receives a response to a request from a client to a server to extract files from a software package. The reply includes an archive file of the files and attribute information for the files. The files and the attribute information are extracted from the archive file. The client determines that at least one of the files is associated with a first encoding different than a second encoding of the client. With the attribute information, the client determines that the at least one of the files is not a binary file. The client translates the at least one file from the first encoding to the second encoding.

Description

    CROSS REFERENCE TO RELATED APPLICATIONS
  • This patent application is a continuation application that claims the benefit under 35 U.S.C. §120 of U.S. patent application Ser. No. 11/969,950, which was filed on Jan. 7, 2008 and which claimed the benefit of U.S. Pat. No. 7,346,904 filed on Aug. 7, 2003. This patent application is related to the following U.S. patent applications: Ser. No. 10/636,988 entitled “Systems and Methods for Cooperatively Building Public Software Packages”; Ser. No. 10/637,067 entitled “Systems and Methods for a Bootstrap Mechanism for Software Testcase Execution”; and Ser. No. 10/636,985 entitled “Systems and Methods for Synchronizing Software Execution Across Data Processing Systems and Platforms.”
  • BACKGROUND
  • Embodiments of the inventive subject matter generally relate to packaging software, and in particular, cross-platform software packaging.
  • Modern data processing systems in an enterprise environment typically are multi-platform systems. These also typically involve distributed file and application services across a network to provide resources to the multiple users which are connected to the resources via a network. The network may include a Local Area Network (LAN) a Wide Area Network (WAN) additionally, a large enterprise, these networks may additionally be connected via the Internet.
  • Software resources in this environment often include multiple files that may constitute executable files to provide some application service, associated documentation which may be in text or binary form and data required by the particular application. These applications may be available to the users to provide particular functionality required by the user or may provide administrative applications, or testcase software, as discussed in the commonly owned co-pending U.S. patent application Ser. No. 10/636,985 entitled “Systems and Methods for Synchronizing Software Execution Across Data Processing Systems and Platforms” hereby incorporated herein by reference. These files, in view of the distributed nature of the enterprise data processing environment may be packaged on one platform but may be used on another. (Methods and systems for automatically building such packages using the inventive principles discussed hereinbelow are described in the co-pending commonly-owned U.S. patent application Ser. No. 10/636,988 entitled “Systems and Methods for Building Public Software Packages,” hereby incorporated herein by reference.) Thus, for example, a set of files to be shared and packaged, for example on a Unix or Unix-like operating system (such as Linux) may have attributes that are incompatible with a target platform, say Windows. Thus, text files, for example, created on the Unix platform may have embedded line breaks that are incompatible with the representation of line breaks on the target window's system (linefeeds on the Unix platform and a carriage return linefeed pair on Windows). Executable files packaged for sharing across an enterprise data processing system may also be problematic. For example, file extensions as used in a Windows environment are not meaningful on Unix, or Unix-like platforms. Thus, a binary executable in a package of files packaged in a Windows environment may not be recognized as an executable file in a Unix environment. Conversely, a shell script, which is a Unix executable would not be recognized as an executable file in a Windows environment, and such a file maintained in a Windows environment would not be flagged appropriately. Consequently, a package of files that is to be shared across multiple platforms may require, when moving from one platform to another, manual linefeed/carriage return translation (commonly referred to in the art as “CTRL+M” translation) and manual resetting of execution flags. These manual processes can be tedious, time consuming and error prone.
  • Consequently, there is a need in the art for mechanisms to automate the adaptation of shared file packages across platforms, and in particular text file linefeed/carriage return translation and file type flags in multi-user shared resource data processing systems.
  • Additionally, management of these filesets can be problematic. In such an environment, over time the number of archived packages of files may become unwieldy to manage and costly in terms of storage resources. However, because, particularly in a large enterprise, the number of users of a particular package of files may be unknown, or which particular users are using a set of files are difficult to determine or are otherwise unknown, the tendency is to maintain file archives indefinitely. Consequently, there is an additional need in the art for mechanisms to manage archived file packages, particularly with respect to the deletion and/or modification of such packages.
  • SUMMARY
  • Embodiments of the inventive subject matter include a method for a client to extract files from a software package. The method comprises receiving a reply in response to a request from the client to a server to extract files from a software package. The reply comprises an archive file of the files and attribute information for the files. The files and the attribute information are extracted from the archive file. It is determined that at least one of the files is associated with a first encoding different than a second encoding of the client. With the attribute information, it is determined that the at least one of the files is not a binary file. The at least one file is translated from the first encoding to the second encoding.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The present embodiments may be better understood, and numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
  • FIG. 1 illustrates, in block diagram form, a distributed resource data processing system which may be used in conjunction with the present inventive principles;
  • FIG. 2 illustrates, an architecture for software package management in accordance with the present inventive principles;
  • FIG. 3 illustrates, in flowchart form, a software package client process which may be used in conjunction with the architecture of FIG. 2;
  • FIG. 4 illustrates, in flowchart form, a methodology for handling software package requests which may be used in conjunction with the client process of FIG. 3;
  • FIG. 5 illustrates, in flowchart form, a methodology for creating a public software package which may be used in conjunction with the methodology of FIG. 4;
  • FIG. 6 illustrates, in flowchart form, a methodology for processing file specification which may be used in conjunction with the methodology of FIG. 5;
  • FIG. 7 illustrates, in flowchart form, a software package server process which may be used in conjunction with the architecture of FIG. 2;
  • FIGS. 8A-8C illustrate, in flowchart form, a methodology for processing software package requests which may be used in conjunction with the methodology of FIG. 7;
  • FIG. 9 illustrates, in flowchart form, a methodology for processing software package request replies which may be used in conjunction with the client process of FIG. 3;
  • FIGS. 10A-10B illustrate, in flowchart form, a methodology for restoring file attributes and CR/LF transformations across platforms which may be used in conjunction with the methodology of FIG. 9;
  • FIG. 11 illustrates, in flowchart form, a methodology for codepage translation in accordance with an embodiment of the present inventive subject matter; and
  • FIG. 12 illustrates, in block diagram form, a data processing system which may be used in conjunction with the methodologies incorporating the present inventive principles.
  • DESCRIPTION OF EMBODIMENT(S)
  • The description that follows includes exemplary systems, methods, techniques, instruction sequences and computer program products that embody techniques of the present inventive subject matter. However, it is understood that the described embodiments may be practiced without these specific details. In other instances, well-known instruction instances, protocols, structures and techniques have not been shown in detail in order not to obfuscate the description.
  • A mechanism in accordance with the present inventive principles for sharing files, and sets of related files, or packages of files, in a multi-host, multi-platform environment is provided. Note that for the purposes herein, the sets of related files may also be referred to as a file tree archive. A public package client handles user requests to perform operations on a software package. Operations may include package creation, file insertion and file deletion. Additionally, information about the package and the files contained therein may be obtained. A server, responsive to the client, performs the operations on the package. Data about the files is set in a data structure which may be stored in an archive along with the files themselves. In particular, this data may identify each file as either a text or binary file. Additionally, the data may identify a file as either an executable file or a non-executable file. Further data may identify the originating platform, that is, operating system. A host accessing the archived files via the client may access, in accordance with the present inventive principles, the aforementioned data to determine if the file or files require further processing to adapt the file to the operating system on the client. Such further processing may, for example, include linefeed/carriage return translation and codepage translation, or setting file attributes.
  • In the following description, numerous specific details are set forth to provide a thorough understanding of the present inventive subject matter. For example, particular operating systems may be referred to, however, it would be recognized by those of ordinary skill in the art that the present inventive subject matter may be practiced without such specific details, and, in other instances, well-known circuits have been shown in block diagram form in order not to obscure the present inventive subject matter in unnecessary detail. Refer now to the drawings, wherein depicted elements are not necessarily shown to scale and wherein like or similar elements are designated by the same reference numeral through the several views.
  • FIG. 1 illustrates, schematically, a distributed data processing environment which may be used in conjunction with the present inventive subject matter. System 100 includes a plurality of hosts, 102 a-102 e. Hosts 102 a and 102 b are depicted as connected to a network 104 which may be, for example, a local area network (LAN) or a wide area network (WAN). It would be appreciated by those of ordinary skill in the art that, typically, a number of hosts exceeding two would be connected to such a network, and hosts 102 a and 102 b connected to network 104 are exemplary. Similarly, hosts 102 c-102 e are connected to a network 106 which may also be a LAN or a WAN. Furthermore, networks 104 and 106 may be coupled via Internet work, now commonly referred to as the Internet 108. Servers 110 a and 110 b reside on networks 104 and 106, respectively. Again, it would be appreciated by those of ordinary skill in the art that in a typical distributed data processing environment, a plurality of servers may reside on each of the networks, and servers 110 a and 110 b are exemplary. Server 110 a and 110 b may provide file archiving and sharing services to the data processing system, and to the clients on the network, such as hosts 102 a and 102 b on network 104 and hosts 102 c-102 e on network 106. Additionally, the hosts on network 104 may obtain file archiving and sharing services from server 104 b via the Internet 108. Likewise, hosts 102 c-102 e may obtain file archiving and sharing services from server 110 a via Internet 108. In particular, these services may be provided by servers 110 a and 110 b in accordance with the present inventive subject matter, as described further below.
  • Note that, in accordance with the present inventive principles, hosts 102 a-102 e need not deploy the same operating system, either among themselves, or with servers 110 a and 110 b. Additionally, the operating system deployed by server 110 a need not be the same operating system deployed on server 110 b. The file archiving and sharing services provided by servers 110 a and 110 b may include methodologies to effect the promulgation of packages, or file tree archives, across multiple hosts and multiple platforms in accordance with the principles of the present inventive subject matter.
  • FIG. 2 illustrates an architecture 200 for a public software package management system (or facility) in accordance with the present inventive principles. Host 202 includes a public package server 204, and an associated application program interface (API) 206. Note that a host 202 may be used in an embodiment of servers 110 a and 110 b FIG. 1.
  • Public package server 204 services requests from a public package client 208, residing in host 210. A host 210 may be used in an embodiment of hosts 102 a-e, FIG. 1. A user “creates” or performs other operations on a public package via client 208. Public package server 204 may be multi-threaded, each thread 212 handling a separate request. Packages may be stored in conventional storage devices such as archive store 214.
  • Commands may be sent to public package server 204 via network 216. As described below, communications between a client and a server may be via sockets supported by the TCP/IP protocol suite.
  • The operation of public package server 204 and client 208 will be described in conjunction with FIGS. 3-11, below.
  • Refer now to FIG. 3, illustrating in flowchart form, client process 300 in accordance with an embodiment of the present inventive subject matter. Process 300 may represent a client process that may be executed for each request, the requirements of a particular request being performed by a set of request handlers invoked by the process. Note that the flowcharts provided herein are not necessarily indicative of the serialization of operations being performed in an embodiment of the present inventive subject matter. Steps disclosed within these flowcharts may be performed in parallel. The flowcharts are indicative of those considerations that may be performed to produce the operations available to create and use public software packages. It is further noted that the order presented is illustrative and does not necessarily imply that the steps must be performed in the order shown.
  • In step 302, client process 300 receives user input requesting a public package operation, or service. User input may be in the form of a command-line command and associated parameters, typically in the form of a keyword and a value or list of values. From the user input, the type of request, that is, the operation requested, is determined, step 304, and in step 306, a request handler 306 a-c is invoked. The type of request may be specified by a command-line keyword corresponding to request, for example, CREATE PUBPKG to create a software package, DELETE FILES to delete files from a software package (which may be specified by additional keyword-value pairs), DELETE PUBPKG, to delete an entire software package etc. It would be appreciated by persons of ordinary skill in the art that the aforementioned keywords are exemplary, and that other keywords may be used to represent the requested operations. Step 306 may be implemented as a multiway branch, or switch statement, for example. There may be a corresponding request handler for each action that may be performed on a software package. Operations that may be requested include a request to create a public package, to add files to an existing package, to delete files from an existing public package, to copy a public package from one server to another, to list files in a package, to extract some or all files from a package to a client, to query information about a package, etc. A request handler will be described in conjunction with FIGS. 4-6 below.
  • Process 300 contacts the public package server, step 308, and attempts a connection in step 310. If the connection is not made, the client continues to attempt to connect until a predetermined timeout elapses, step 312. A typical timeout value may be ten seconds. On establishing a connection, the request is sent to the server, step 314. As previously described in conjunction with FIG. 2, a request may be in the form of a packet sent via TCP/IP in an embodiment of the present inventive subject matter. As described below in conjunction with FIGS. 7-9, the public software package server services the request and returns a response.
  • In step 316, client process receives the response from the server. In step 318, the reply is processed. A method for processing a reply is described below in conjunction with FIG. 7.
  • Process 300 terminates in step 320.
  • Referring now to FIG. 4, depicted therein is a process 400 for handling requests that maybe used in conjunction with step 306, FIG. 3. In step 402, the package data is retrieved from the command parameters. Recall, that the request may be command line parameters in the form of keywords or keyword-value pairs. (As previously noted, if a keyword represents a list, the “value” in the pair may be a list of values, which may be numerical values, strings etc. depending on the type of parameter the values represent. Such input data representations would be recognized by persons of ordinary skill in the programming art.) Input data may include, depending on the particular public package action requested, a public software package name, keywords associated with package management/access control, such as overwrite permission, passwords associated with the package (read and/or change), contact information, that is information that specifies a contact person for the package, or an autodelete lifetime (described below in conjunction with FIG. 7). Also, one or more (i.e. a list) of file specifications may be input in associated with a “FILES” keyword to specify files that are subject to the requested action, for example, insertion into or deletion from a package. Note that a file specification may include a pathname (full or partial, if a directory specification is included). Also a file specification may include wildcard characters and other metacharacters, as discussed further below. Additional keyword-value pairs that may be associated with a file specify file attributes, such as a text file, binary file, or a executable file. Note that for the purposes herein an executable file need not necessarily be a binary file. A script, such as a shell script, or a script written in a scripting language such as Perl, would be understood to be executable files. The foregoing is exemplary, and other sets of parameters may be used in alternative embodiments in accordance with the present inventive principles.
  • In step 404, a handler corresponding to the type of request is invoked.
  • Refer now to FIG. 5, illustrating a process 500 for creating a public package. Process 500 may be invoked in step 404, FIG. 4. In step 502, the package data is set into a data structure, which may be an object in an object-oriented programming model, such a Java, and the data structure is serialized. Serialization provides a mechanism for writing the complete state of the data structure to an output stream, such as a file or a socket (for sending over a network), and which allows for the data structure to be recreated by reading the serialized state. Typical modern high-level programming environments provide built-in mechanisms for serializing data structures. Java, for example, provides a writeObject( ) method and a readObject( ) method to serialize data structures (objects in Java) and de-serialize them, respectively. The package data includes the information retrieved from the request input parameters, for example in step 402, FIG. 4.
  • If the create request includes at least one file specification, the file specifications are processed, step 506 and process 500 proceeds to step 308, FIG. 3 to pass the create public package request including the file archive generated in processing the file specifications and the serialized package information (from step 502, FIG. 5) to the public package server. A method for processing the file specifications will be described in conjunction with FIG. 6.
  • If the request included no file specifications, step 506 is bypassed, and the create public package request is sent to the server as before, including the serialized public package information.
  • Refer now to FIG. 6 illustrating a method 600 for processing file specifications. As noted above, a file specification may be more general than simply a file name, or directory path and file name. A file specification may include “wildcard” characters or other metacharacters. In particular, a file specification may include regular expressions. (A regular expression is string comprised of a sequence of text and special characters that represents a pattern to be matched.) Unix and Unix-like platforms provide for regular expression based pattern matching as do programming languages such as Perl, Python and Java (in Java 2 Platform, Standard Edition, version 1.4). In this way, a file specification may be used to specify a set of files to be included in a software package. (Similarly, a set of files may be specified for deletion from a public package in a delete request.)
  • In step 602, a loop over the file specifications in the request is entered. In step 602, the files on the local host matching the current file specification are determined. In step 604, files matching the current file specification are listed. For each file, step 606, the read/write/executable and text/binary flags are determined in step 608. The file type may be determined by a postfixed extension such as .exe for executable files and .txt for text files in a Windows platform, or by examining the file type using a file command on Unix or Unix-like systems. Additionally, Java provides instance methods of the File class to determine file attributes, as do other high-level programming languages, as Perl and Python. Furthermore, in an embodiment of the present inventive subject matter, keyword-value pairs may be defined to force a matching file to be tagged as a binary or text file. For example the keyword-value pair TEXT_FSPEC<textfspec> may be used to tag a file whose file specification matches textfspec to be tagged as a text file. Similarly, the keyword-value pair BINARY_FSPEC<binaryfspec> may be used to tag a file whose file specification matches binaryfspec to be tagged as a binary file. Defaults may also be defined, for example, if neither of these keyword-value pairs is used, a file may be tagged as a binary by default. Alternatively, keywords may be defined to set defaults. For example, a default to tag files as text, such as DEF_TO_TEXT, or default to tag as binary, such as DEF_TO_BINARY, may be used.
  • As discussed hereinbelow, these file attributes may be used to effect automatic linefeed and carriage return (LF/CR) translation and executable file tagging across platforms. In step 610, the file attributes determined in step 608 are set in a vector, which may be referred to as an attribute vector, associated with the current file. In an embodiment of the present inventive subject matter, a vector may be an instance of the Java Vector class, which implements an array of objects. The objects need not be of the same type. Other programming languages, such as Python, implement similar data structures. For example, the vector may be an element of table storing each vector with the name of the corresponding file. However, any data structure may be used to contain the attributes for the files. This structure provides a temporary storage mechanism for the file attributes pending the storage of the files in a file archive for transmission to the package server. Steps 608 and 610 are repeated for each file matching the current file specification until process 600 breaks out of the loop over files, in step 612.
  • Process 600 continues to the next file specification, if any, via the “No” branch of step 614 and adds attribute vectors corresponding to files matching the next file specification. If there are no further file specifications, in step 614, the process exits the loop over file specifications entered in step 602. Thus, in steps 602-614 a data structure that represents a list of files matching the input file specifications and associated file attributes is generated.
  • In step 616, process 600 loops over the vectors in the table. In step 618, the corresponding file is compressed, and the attribute flags contained in the associated vector are stored in an archive file. That is, an attribute file containing tags representing read/write/execute and text/binary attributes of each file is included in the archive file. The attribute tags may be written into a text file, for example, each set of attributes with the associated file name. Alternatively, a file list and a hash table keyed by the corresponding file names may be used and serialized for incorporation into the archive file. Additionally, a codepage identifier may be inserted. As described further below, a codepage defines a mapping between text characters and an internal machine representation, typically a one or two byte value; codepages deployed on a platform may have a predetermined identified associated therewith. It would be appreciated by persons of ordinary skill in the art that the present inventive principles are not implicated by the particular mechanism used to store the file attributes. In an embodiment of the present inventive subject matter, a ZIP archive file may be used. A ZIP archive file stores the files in a compressed form. However, uncompressed archives, such as TAR commonly available on Unix platforms may be used. Also a TAR archive may subsequently be compressed. GZIP, a compression process commonly available on Unix platforms may be used. Alternatively, a TAR archive may be compressed by creating a ZIP file of the TAR archive. The archive type may be specified by the user in a command-line parameter. The present inventive principles are not implicated by the particular compressed file archive mechanism used. It would be appreciated by those of ordinary skill in the art that using compressed archives may reduce network bandwidth demands in passing the create request to the software package server, in step 314, FIG. 3. The process breaks out of the loop over vectors in step 620 after all attribute vectors in the table have been stored along with the corresponding compressed files, and proceeds to step 308, FIG. 3.
  • Requests are handled by a public package server, as previously noted. A server process 700 for handling software package requests from clients is depicted in FIG. 7. Process 700 is a multithreaded process. In FIG. 7, two threads, an autodelete daemon thread, and a request handling thread are shown. As discussed hereinabove, a separate thread may be spawned by a server to handle each request.
  • Considering first the autodelete daemon, in step 702, the thread enters a loop in which the thread sleeps for a predetermined interval of time, one hour, for example. On expiration of the time interval, the thread “wakes up” in step 704, breaking out of the “sleep” loop. In this way, the autodelete daemon periodically loops through the archive store, such as archive store 214, FIG. 2, to delete software packages that have been specified for automatic deletion.
  • In step 706, the thread enters a loop over the software packages in the archive store. For each of the software packages, in step 708 the autodelete lifetime is determined. The autodelete lifetime may be determined by accessing the package information file provided by the client when the package was created, for example, in step 502, FIG. 5. As noted in conjunction therewith, the data may be accessed by deserializing the file and reading the autodelete value therefrom. In step 710 it is determined if the autodelete time has expired and an autodelete time has been specified. If the autodelete time has expired, in step 712, the package is deleted from the archive store, such as archive store. If the autodelete time has not expired, step 712 is bypassed. The thread returns to step 706, to loop over the packages in the archive store, repeating steps 708-712 for each package. After the last package has been tested, the thread returns to step 702, and sleeps until the next pass through the archive store.
  • Consider now the request thread. In step 752, the request thread listens on a socket for a request from a client to perform an operation on a specified package, looping until a request is received in step 754. A socket would be recognized by one of ordinary skill in the art as a logical representation of a communication endpoint in a data processing system. If a request is received, a thread 756 to process the request and return a reply to the requesting client is spawned. The original thread returns to step 752 to continue to listen for requests.
  • In step 760, thread 756 processes the request. A method for processing a request which may be used in conjunction with step 760 is described in connection with FIG. 8. If the request is not a query, in step 766, the lifetime for the package is reset. In step 764, if the request is a query, step 766 is bypassed. Thread 756 terminates in step 768.
  • Refer now to FIGS. 8A and 8B illustrating a method 800 for processing software package requests by a package server. Method 800 may be used to perform step 760, FIG. 7.
  • In step 802, it is determined if the package specified in the request exists. If the package does not exist, a corresponding error message is generated, step 804, and returned to the requesting client via step 762, FIG. 7. If the package exists, in step 806 it is determined if the package is password protected. If the package is password protected, the password supplied in the request is matched against the password set in the package. If the password fails, step 808, because of a mismatch or no password was supplied in the request, a corresponding error message is generated in step 804, and returned to the client, as before.
  • If the package is not password protected, step 806, or the supplied password is correct, step 808, the requested package operation is performed, in step 809. Operations may include retrieving data form the package, copying a package to a host, retrieving information about a package, etc.
  • Consider FIG. 8B illustrating the substeps that may be performed by step 809 in response to a request to extract files from a package. In step 810, it is determined if the specified files exist. If so, the files are extracted from the package, step 812. The files may be stored in a compressed archive file, such as a ZIP file, to be returned to the client via step 762, FIG. 7. Additionally, the serialized package information object file (described in conjunction with step 502, FIG. 5) and the attribute file (described in conjunction with step 616, FIG. 6) are added to the archive file with the extracted files. If the files do not exist in step 810, an error message is generated, step 804, and returned to the client as before.
  • Another exemplary request may be to create a shadow of a package. If a shadowed package is changed by, for example, adding or deleting files, the changes may be passed to the shadow host, that is the host on which the shadowed package is copied. A method for creating a shadow package which may be used in conjunction with step 809, FIG. 8A is illustrated in FIG. 8C.
  • In step 820, the name of the shadow host is retrieved from the request received in step 754, FIG. 7. A public software package server may maintain a shadow list containing the names of any shadow hosts and the software packages shadowed thereon. Lists may be maintained for each package that is shadowed, that is, on a “per package” basis. The list may be used by the server to send updates with respect to shadowed packages to the respective shadow hosts. In step 822, it is determined if the list exists on the server servicing the request. If not, the list is created, step 824. If the list already exists, step 824 is bypassed. In step 826, the shadow host name and the public package being shadowed thereon is added to the list, and in step 828, the package is copied to the shadow host. If the copy failed, because, for example, a network connection to the shadow host could not be made, an error message is returned to the client via step 808, FIG. 8A and the “No” branch of step 830. If the shadow copy was successful, in step 832 a success message is returned to the client via the “Yes” branch of step 830.
  • As previously described in conjunction with FIG. 3, a client processes replies from a software package server. For example, client process 300 processes replies in step 318. A client method 900 for processing software package server replies is illustrated in FIG. 9. Process 900 may be used to perform step 318, FIG. 3.
  • In step 902, it is determined if the reply is an error message. If so, the message is displayed in step 904. For example, the server may return an error code and text message to the client, which displays at the command line. The text may provide a brief description of the nature of the error. Thus, if a package name was specified in a request, and the package (specified by a path/packguard) is not found, that is, does not exist, an error message PUBPRG_ERR_PUBPKG_DOES_NOT_EXIST may be returned, and displayed. This would inform the user that the requested package (or path) did not exist. Similarly, if the syntax of a request is improper, for example the request included an undefined keyword, an error message such as PUBPKG_GRR_SYNTAX_KEYWORD may be returned and displayed.
  • If the request for which the reply being processed was an extract request, the reply contains the specified files, as described in conjunction with steps 810 and 812, FIG. 8B. In step 906, it is determined if the reply is in response to an extract request. If not, the reply is a message that is formatted and displayed in step 908. For example, a request may be for a list of files contained in a specific package, wherein the returned message may be a text message containing the list of files, similar to a list of files generated by a shell command for listing files in a file system directory, such as the is command in a Unix or Linux platform. As previously noted, the server and client may communicate via sockets and a message may be passed by writing to the socket and reading from the socket; sockets are typically supported by the TCP/IP protocol suite.
  • If the reply is returned in response to an extract request, in step 910, the files are decompressed, and the read/write/execute flags and text/binary flags are retrieved, and file attributes are set and CR/LF translation is performed. Process 900 proceeds to step 320, FIG. 3. In an alternative embodiment, described below, codepage translation may be performed in step 910.
  • Refer now to FIG. 10 illustrating a methodology for performing CR/LF translation and restoring file attributes based on the source and target platforms in accordance with an embodiment of the present inventive subject matter.
  • In steps 1002 and 1003 file and package information is retrieved. In step 1002, the attribute file described above in conjunction with step 616, FIG. 6, is extracted from the archive, such as a ZIP archive. In step 1003, the serialized package information object file is extracted and deserialized. Recall that deserializing the file reconstructs the underlying object (or other data structure), the members of which include the package information data, such as the originating operating system.
  • In step 1004, a loop is entered over each of files extracted from the package and returned by the server. In step 1006, the file is extracted from the returned archive, and expanded. Because, as discussed hereinabove, the files may have been created on a different operating system, or platform, than the operating system of the local host on which the unpackaging process is executing, file translation and flagging may be required. In step 1008, it is determined if the target operating system is the same as the originating operating system. This may be performed using the originating operating system identifier in the package information object, reconstructed in step 1003.
  • If the operating systems are different, in step 1010 it is determined if the current file is a binary file. This may be determined by examining the text/binary attribute in the attribute file extracted in step 1002. If the file is not a binary file, in step 1012, line feed/carriage return translation is performed. Recall that executable files may include shell scripts, for example. Although these are executable files, they are composed of text. Thus, for example, if the originating operating system is a windows platform and the target operating system is a Unix platform, or a Unix-like platform, such as Linux, in step 1012, carriage returns would be deleted from the carriage return/line feed pairs used in windows to denote line breaks in text files. A technique which may be used in an embodiment of the present inventive subject matter to perform step 1012 may be regular expression substitution. As previously noted, facilities for performing regular express matching and substitution are available on Unix and Unix-like platforms and several programming environments, including Java and Perl. It would be appreciated by those of ordinary skill in the art that alternative techniques may be used to effect the line feed/carriage return translations and such embodiments would fall into the spirit and scope of the present inventive subject matter. If, in step 1010, the current file is a binary file step 1012 is bypassed.
  • In step 1014 it is determined if the current file is executable. If, in step 1016, the current operating system has an executable flag (a Unix-like system, for example) the file is marked as executable in step 1018.
  • Returning to step 1014, if the file is not executable, steps 1016 and 1018 are bypassed.
  • In step 1020, the file's read/write flag is restored. If the current file is not the last file in the package, step 1022, process 1000 returns to step 1004 to continue to loop over files in the package. Otherwise, process 1000 terminates in step 1024.
  • Returning to step 1008, if the originating and target operating systems are the same, process 1000 bypasses the linefeed translation operation, and proceeds to step 1014 to restore the read/write flag and the executable flag (on Unix-like systems) as previously described.
  • As previously described above, in an alternative embodiment, in step 910, FIG. 9, codepage translation may be performed. As would be appreciated by those of ordinary skill in the art, data processing systems internally represent text characters as a set of “numerical” values, typically one or two bytes long. A codepage defines the mapping between the integer values and the characters represented. Two codepages that are widely used to define the mapping for the English alphabet are the eight-bit ASCII (American Standard Code for Information Exchange) character codes, commonly used on personal computers and workstations, and EBCDIC (Extended Binary Coded Decimal Interchange Code) character codes which has typically been used on mainframe computers. Additionally codepages have been defined to represent the alphabets of other languages. A “universal” codepage, referred to as Unicode, defines a sixteen-bit representation that includes characters represent most if not all of the languages used around the world. Given two codepages, a mapping between the two may be defined as array in which the first character code provides an index in to the array and the encoding in accordance with the second codepage represented by the values. By associating an identifier with each codepage, a text file encoded using one codepage may be translated into a text file encoded in accordance with a second codepage via the mapping. Commonly used codepages have been assigned identifier by industry practice, or by standards-settings bodies. For example, in the Microsoft®. Windows operating system the ASCII codepage is designated by the identifier “1252” and the ISO (International Organization for Standardization) Latin-1 codepage may be identified as “8859-1” (ISO Latin-1 includes the characters used in most Western European languages and is the default character set used in HTML.) It would be understood by one of ordinary skill in the art that the present inventive principles are not implicated by the particular identifiers used to identify codepages, and any predetermined set of identifiers may be used in conjunction with the present inventive subject matter. FIG. 11, described below, depicts, in flowchart form, a process 1100 for performing codepage translation in accordance with the present inventive subject matter.
  • Referring to FIG. 11, in step 1102 the attribute file described above in conjunction with step 616, FIG. 6, is extracted from the archive, such as a ZIP archive. In step 1104, a codepage identifier for the codepage defining the encoding of text files in the package is read. If the codepage on the target platform differs from the codepage used to encode the text files, step 1106, codepage translation is performed via steps 1108-1118. Otherwise, no codepage translation is performed, and process 1100 terminates in step 1120.
  • In step 1108 a loop over files in the package is entered. In step 1110 it is determined if a current file is a binary file. If not, in steps 1112 codepage translation is performed on the file by looping over the characters in the file, step 1112, and mapping each character into the corresponding character in the target codepage, step 1114. The mapping may be performed using the translation table, discussed above, for the encoding and target code tables.
  • After the last character is mapped, step 1116, in step 1118 it is determined of the current file is the last file in the package. If so, process 1100 terminates in step 1120. Otherwise, process 1200 continues to loop over files by returning to step 1108.
  • Returning to step 1116, if the current file is a binary file, no translation is performed, and process 1100 proceeds to step 1118 to determine if the last file has been translated (if needed). If so, process 1200 terminates in step 1120. Otherwise, process 1200 continues to loop over files as previously described.
  • FIG. 12 illustrates an exemplary hardware configuration of data processing system 1100 in accordance with the subject inventive subject matter. The system in conjunction with the methodologies illustrated in FIGS. 3-6, 9-11 may be used, in one embodiment, to perform software package client operations in accordance with the present inventive principles. In another embodiment, the system in conjunction with the methodologies in FIGS. 7 and 8A-8C may be used to perform software package server operations in accordance with the present inventive subject matter. Data processing system 1200 includes central processing unit (CPU) 1210, such as a conventional microprocessor, and a number of other units interconnected via system bus 1212. Data processing system 1200 also includes random access memory (RAM) 1214, read only memory (ROM) 1216 and input/output (I/O) adapter 1218 for connecting peripheral devices such as disk units 1220 to bus 1212, user interface adapter 1222 for connecting keyboard 1214, mouse 1226, trackball 1232 and/or other user interface devices such as a touch screen device (not shown) to bus 1212. System 1200 also includes communication adapter 1234 for connecting data processing system 1200 to a data processing network, enabling the system to communicate with other systems, and display adapter 1236 for connecting bus 1212 to display device 1238. CPU 1210 may include other circuitry not shown herein, which will include circuitry commonly found within a microprocessor, e.g. execution units, bus interface units, arithmetic logic units, etc. CPU 1210 may also reside on a single integrated circuit.
  • Preferred implementations of the inventive subject matter include implementations as a computer system programmed to execute the method or methods described herein, and as a computer program product. According to the computer system implementation, sets of instructions for executing the method or methods are resident in the random access memory 1214 of one or more computer systems configured generally as described above. These sets of instructions, in conjunction with system components that execute them may in one embodiment perform software package server operations and, in another embodiment perform public package client operations, as described hereinabove. Until required by the computer system, the set of instructions may be stored as a computer program product in another computer memory, for example, in disk drive 1220 (which may include a removable memory such as an optical disk or floppy disk for eventual use in the disk drive 1220). Further, the computer program product can also be stored at another computer and transmitted to the users work station by a network or by an external network such as the Internet. One skilled in the art would appreciate that the physical storage of the sets of instructions physically changes the medium upon which is the stored so that the medium carries computer readable information. The change may be electrical, magnetic, chemical, biological, or some other physical change. While it is convenient to describe the inventive subject matter in terms of instructions, symbols, characters, or the like, the reader should remember that all of these in similar terms should be associated with the appropriate physical elements.
  • Note that the inventive subject matter may describe terms such as comparing, validating, selecting, identifying, or other terms that could be associated with a human operator. However, for at least a number of the operations described herein which form part of at least one of the embodiments, no action by a human operator is desirable. The operations described are, in large part, machine operations processing electrical signals to generate other electrical signals.
  • As will be appreciated by one skilled in the art, aspects of the present inventive subject matter may be embodied as a system, method or computer program product. Accordingly, aspects of the present inventive subject matter may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present inventive subject matter may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
  • Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out operations for aspects of the present inventive subject matter may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • Aspects of the present inventive subject matter are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the inventive subject matter. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
  • The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • While the embodiments are described with reference to various implementations and exploitations, it will be understood that these embodiments are illustrative and that the scope of the inventive subject matter is not limited to them. In general, techniques for packaging and unpackaging software as described herein may be implemented with facilities consistent with any hardware system or hardware systems. Many variations, modifications, additions, and improvements are possible.
  • Plural instances may be provided for components, operations or structures described herein as a single instance. Finally, boundaries between various components, operations and data stores are somewhat arbitrary, and particular operations are illustrated in the context of specific illustrative configurations. Other allocations of functionality are envisioned and may fall within the scope of the inventive subject matter. In general, structures and functionality presented as separate components in the exemplary configurations may be implemented as a combined structure or component. Similarly, structures and functionality presented as a single component may be implemented as separate components. These and other variations, modifications, additions, and improvements may fall within the scope of the inventive subject matter.
  • Although the present inventive subject matter and its advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the inventive subject matter as defined by the appended claims.

Claims (20)

1. A method for a client to extract files from a software package, the method comprising:
receiving a reply in response to a request sent from the client to a server to extract files from a software package, wherein the reply comprises an archive file of the files and attribute information for the files;
extracting the files and the attribute information from the archive file;
determining that at least one of the files is associated with a first encoding different than a second encoding of the client;
determining, with the attribute information, that the at least one of the files is not a binary file; and
translating the at least one file from the first encoding to the second encoding.
2. The method of claim 1 further comprising extracting package information about the software package from the archive file.
3. The method of claim 2, wherein said determining that the at least one of the files is associated with the first encoding different than the second encoding of the client comprises determining, with the package information, that a first operating system associated with the at least one file is different than a second operating system of the client.
4. The method of claim 3, wherein said translating the at least one file from the first encoding to the second encoding comprises translating newline encodings of the first operating system in the at least one file into newline encodings of the second operating system.
5. The method of claim 4, wherein said translating newline representations of the first operating system in the at least one file into newline representations of the second operating system comprises one of:
removing carriage returns from carriage return line feed pairs in the at least one file; and
inserting a carriage return before each line feed in the at least one file.
6. The method of claim 1, wherein said determining that at least one of the files is associated with the first encoding different than the second encoding of the client comprises determining, with the attribute information, that the at least one file is associated with a first code page and the client is associated with a second code page.
7. The method of claim 6, wherein said translating the at least one file from the first encoding to the second encoding comprises performing codepage translation of the at least one file based on the first codepage and the second codepage.
8. The method of claim 1 further comprising:
determining whether the at least one file is an executable file;
marking the at least one file as executable if the at least one file is an executable file; and
restoring read/write flags of the files.
9. The method of claim 1, wherein the first encoding corresponds to a platform of a second client that originated the at least one file with respect to the software package.
10. A computer program product for extracting files from a software package in a distributed environment, the computer program product comprising:
a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code comprising a computer usable program code configured to:
receive a reply in response to a request from a client to a server to extract files from a software package, wherein the reply comprises an archive file of the files and attribute information for the files;
extract the files and the attribute information from the archive file; and
for each of the files,
determine whether the file is associated with a first encoding different than a second encoding of the client;
determine, with the attribute information, whether the file is a binary file; and
translate the file from the first encoding to the second encoding.
11. The computer program product of claim 10 further comprising computer usable program code configured to extract package information about the software package from the archive file.
12. The computer program product of claim 11, wherein the computer usable program code configured to determine whether the file is associated with a first encoding different than a second encoding of the client comprises the computer usable program code configured to determine, with the package information, whether the file is associated with a different operating system than the client operating system.
13. The computer program product of claim 12, wherein the computer usable program code configured to translate the file from the first encoding to the second encoding comprises the computer usable program code configured to translate newline encodings of the operating system associated with the file into newline encodings of the client operating system.
14. The computer program product of claim 13, wherein the computer usable program code configured to translate newline encodings of the operating system associated with the file into newline encodings of the client operating system comprises the computer usable program configured to:
remove carriage returns from carriage return line feed pairs in the file; or insert a carriage return before each line feed in the file.
15. The computer program product of claim 10, wherein the computer usable program code configured to determine whether the file is associated with a first encoding different than a second encoding of the client comprises the computer usable program code configured to determine, with the attribute information, whether the file is associated with a codepage different than a codepage of the client.
16. The computer program product of claim 15, wherein the computer usable program code configured to translate the file from the first encoding to the second encoding comprises the computer usable program code configured to perform codepage translation of the file based on the codepage associated with the file and the codepage of the client.
17. The computer program product of claim 10 further comprising computer usable program code configured to:
determine whether each of the files determined not to be binary is an executable file;
marking those of the filed determined to be executable as executable; and
restore read/write flags of the files.
18. An apparatus comprising:
a processor;
a communications adapter; and
a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code comprising a computer usable program code configured to:
receive a reply in response to a request from a client to a server to extract files from a software package, wherein the reply comprises an archive file of the files and attribute information for the files;
extract the files and the attribute information from the archive file; and
for each of the files,
determine whether the file is associated with a first encoding different than a second encoding of the client;
determine, with the attribute information, whether the file is a binary file; and
translate the file from the first encoding to the second encoding.
19. The apparatus of claim 18 further comprising computer usable program code configured to:
extract package information about the software package from the archive file;
wherein the computer usable program code configured to determine whether the file is associated with a first encoding different than a second encoding of the client comprises the computer usable program code configured to determine, with the package information, whether the file is associated with a different operating system than the client operating system;
wherein the computer usable program code configured to translate the file from the first encoding to the second encoding comprises the computer usable program code configured to translate newline encodings of the operating system associated with the file into newline encodings of the client operating system.
20. The apparatus of claim 18,
wherein the computer usable program code configured to determine whether the file is associated with a first encoding different than a second encoding of the client comprises the computer usable program code configured to determine, with the attribute information, whether the file is associated with a codepage different than a codepage of the client;
wherein the computer usable program code configured to translate the file from the first encoding to the second encoding comprises the computer usable program code configured to perform codepage translation of the file based on the codepage associated with the file and the codepage of the client.
US13/402,613 2003-08-07 2012-02-22 Packaging files having automatic conversion across platforms Abandoned US20120216186A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/402,613 US20120216186A1 (en) 2003-08-07 2012-02-22 Packaging files having automatic conversion across platforms

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US10/637,015 US7346904B2 (en) 2003-08-07 2003-08-07 Systems and methods for packaging files having automatic conversion across platforms
US11/969,950 US8141074B2 (en) 2003-08-07 2008-01-07 Packaging files having automatic conversion across platforms
US13/402,613 US20120216186A1 (en) 2003-08-07 2012-02-22 Packaging files having automatic conversion across platforms

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US11/969,950 Continuation US8141074B2 (en) 2003-08-07 2008-01-07 Packaging files having automatic conversion across platforms

Publications (1)

Publication Number Publication Date
US20120216186A1 true US20120216186A1 (en) 2012-08-23

Family

ID=34116510

Family Applications (3)

Application Number Title Priority Date Filing Date
US10/637,015 Active 2025-07-31 US7346904B2 (en) 2003-08-07 2003-08-07 Systems and methods for packaging files having automatic conversion across platforms
US11/969,950 Active 2026-08-04 US8141074B2 (en) 2003-08-07 2008-01-07 Packaging files having automatic conversion across platforms
US13/402,613 Abandoned US20120216186A1 (en) 2003-08-07 2012-02-22 Packaging files having automatic conversion across platforms

Family Applications Before (2)

Application Number Title Priority Date Filing Date
US10/637,015 Active 2025-07-31 US7346904B2 (en) 2003-08-07 2003-08-07 Systems and methods for packaging files having automatic conversion across platforms
US11/969,950 Active 2026-08-04 US8141074B2 (en) 2003-08-07 2008-01-07 Packaging files having automatic conversion across platforms

Country Status (1)

Country Link
US (3) US7346904B2 (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2004027624A1 (en) * 2002-07-09 2006-01-19 セイコーエプソン株式会社 Electronic file operation method and layout editing apparatus
US9053239B2 (en) 2003-08-07 2015-06-09 International Business Machines Corporation Systems and methods for synchronizing software execution across data processing systems and platforms
US7346904B2 (en) * 2003-08-07 2008-03-18 International Business Machines Corporation Systems and methods for packaging files having automatic conversion across platforms
TWI238355B (en) * 2004-05-06 2005-08-21 Lite On It Corp Firmware updating method
US8082178B2 (en) * 2004-07-15 2011-12-20 Google Inc. System and method for managing advertising campaign data
JP4815938B2 (en) * 2005-08-16 2011-11-16 ソニー株式会社 Information processing apparatus and method, and program
CN100433004C (en) * 2005-09-23 2008-11-12 纬创资通股份有限公司 File system setting-up device and method therefor
US8191060B2 (en) * 2006-08-29 2012-05-29 Adobe Systems Incorporated Software installation using template executables
US7827549B2 (en) * 2006-09-15 2010-11-02 Symantec Corporation Method and system for creating and executing generic software packages
US8522207B1 (en) * 2006-09-19 2013-08-27 United Services Automobile Association (Usaa) Systems and methods for automated centralized build/merge management
US20080127179A1 (en) * 2006-09-25 2008-05-29 Barrie Jon Moss System and apparatus for deployment of application and content to different platforms
US8185872B2 (en) * 2006-11-27 2012-05-22 Red Hat, Inc. Cross-platform software package generation
US8185889B2 (en) * 2007-06-19 2012-05-22 Red Hat, Inc. Methods and systems for porting software packages from one format to another
US8464249B1 (en) 2009-09-17 2013-06-11 Adobe Systems Incorporated Software installation package with digital signatures
US8839102B2 (en) * 2010-11-30 2014-09-16 International Business Machines Corporation Method to automatically display filenames encoded in multiple code sets
US8612963B2 (en) * 2010-12-02 2013-12-17 International Business Machines Corporation Guided problem resolution in deploying an application
US9294896B2 (en) * 2011-07-05 2016-03-22 Zia Shlaimoun Method and system for video messaging
US9141623B2 (en) 2012-08-03 2015-09-22 International Business Machines Corporation System for on-line archiving of content in an object store
US8863099B2 (en) 2012-11-05 2014-10-14 International Business Machines Corporation Compilation and placement of instructions in a memory system
US8914778B2 (en) * 2012-11-05 2014-12-16 International Business Machines Corporation Data placement for execution of an executable
TW201521403A (en) * 2013-11-19 2015-06-01 Inst Information Industry Software roaming system, method and computer readable storage medium thereof
US9910685B2 (en) 2015-08-13 2018-03-06 Samsung Electronics Co., Ltd. System and method for identifying, indexing, and navigating to deep states of mobile applications
US9983892B2 (en) * 2015-11-06 2018-05-29 Samsung Electronics Co., Ltd. Deep linking to mobile application states through programmatic replay of user interface events
US9858094B2 (en) 2015-11-10 2018-01-02 Samsung Electronics Co., Ltd. Monitoring and actuation of view controller parameters to reach deep states without manual developer intervention
US10649846B2 (en) 2016-02-12 2020-05-12 Red Hat, Inc. Disassembly and reassembly of a tar archive
US11386205B2 (en) * 2019-01-14 2022-07-12 Mcafee, Llc Detection of malicious polyglot files

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8141074B2 (en) * 2003-08-07 2012-03-20 International Business Machines Corporation Packaging files having automatic conversion across platforms

Family Cites Families (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3068A (en) * 1843-05-02 Improvement in dyeing
US123185A (en) * 1872-01-30 Improvement in steam-pumps
US124241A (en) * 1872-03-05 Improvement in cultivators
US551185A (en) * 1895-12-10 Voting-machine
US124205A (en) * 1872-03-05 Improvement in bed-bottoms
US5214780A (en) 1990-03-23 1993-05-25 Sun Microsystems, Inc. Synchronized journaling system
US5511185A (en) 1990-11-27 1996-04-23 Mercury Interactive Corporation System for automatic testing of computer software having output synchronization and capable of responding to asynchronous events
JPH04274535A (en) 1991-03-01 1992-09-30 Chugoku Nippon Denki Software Kk System for accessing file on plural operating systems
JPH0540721A (en) 1991-08-07 1993-02-19 Nec Corp Computer system
US5555419A (en) * 1993-01-06 1996-09-10 Digital Equipment Corporation Correlation system
US5504846A (en) * 1993-12-16 1996-04-02 International Business Machines Corporation Method and apparatus for improved area demarcation in bit mapped image derived from multi-color bit mapped image
US5584023A (en) 1993-12-27 1996-12-10 Hsu; Mike S. C. Computer system including a transparent and secure file transform mechanism
US5845090A (en) * 1994-02-14 1998-12-01 Platinium Technology, Inc. System for software distribution in a digital computer network
WO1995033235A1 (en) 1994-05-31 1995-12-07 Fujitsu Limited System and method for executing job between different operating systems
US5640592A (en) 1994-09-30 1997-06-17 Mitsubishi Kasei America, Inc. System for transferring utility algorithm stored within a peripheral device to a host computer in a format compatible with the type of the host computer
WO1997029426A1 (en) * 1996-02-09 1997-08-14 Sony Corporation Information processor, file name changing method and recording medium on which file name changing program is stored
FR2745649B1 (en) 1996-03-01 1998-04-30 Bull Sa SYSTEM FOR CONFIGURING PRECONFIGURED SOFTWARE ON NETWORK OPEN SYSTEMS IN A DISTRIBUTED ENVIRONMENT AND METHOD IMPLEMENTED BY SUCH A SYSTEM
US6279124B1 (en) 1996-06-17 2001-08-21 Qwest Communications International Inc. Method and system for testing hardware and/or software applications
US6023580A (en) * 1996-07-03 2000-02-08 Objectswitch Corporation Apparatus and method for testing computer systems
US5946486A (en) * 1996-12-10 1999-08-31 International Business Machines Corporation Apparatus and method for tracing entries to or exits from a dynamic link library
US6002869A (en) 1997-02-26 1999-12-14 Novell, Inc. System and method for automatically testing software programs
US6253234B1 (en) * 1997-10-17 2001-06-26 International Business Machines Corporation Shared web page caching at browsers for an intranet
US6097887A (en) * 1997-10-27 2000-08-01 Kla-Tencor Corporation Software system and method for graphically building customized recipe flowcharts
US6185701B1 (en) * 1997-11-21 2001-02-06 International Business Machines Corporation Automated client-based web application URL link extraction tool for use in testing and verification of internet web servers and associated applications executing thereon
US6157940A (en) * 1997-11-21 2000-12-05 International Business Machines Corporation Automated client-based web server stress tool simulating simultaneous multiple user server accesses
US6079047A (en) 1998-05-22 2000-06-20 Unisys Corporation Unwrapping system and method for multiple files of a container
US6343371B1 (en) * 1999-01-14 2002-01-29 Compaq Computer Corporation System and method for statically detecting potential race conditions in multi-threaded computer programs
US6675382B1 (en) * 1999-06-14 2004-01-06 Sun Microsystems, Inc. Software packaging and distribution system
JP2001022715A (en) 1999-07-13 2001-01-26 Hitachi Ltd Mechanism and method for data format conversion in multi-platform environment
JP2002007174A (en) 2000-06-27 2002-01-11 Hitachi Ltd Data control system for storage device
GB0017336D0 (en) * 2000-07-15 2000-08-30 Ibm Preferable modes of software package deployment
US6754850B2 (en) * 2001-03-02 2004-06-22 National Instruments Corporation System and method for performing batch synchronization for a test sequence
US6971084B2 (en) * 2001-03-02 2005-11-29 National Instruments Corporation System and method for synchronizing execution of a batch of threads
CN1240011C (en) * 2001-03-29 2006-02-01 国际商业机器公司 File classifying management system and method for operation system
US7152109B2 (en) * 2001-04-20 2006-12-19 Opsware, Inc Automated provisioning of computing networks according to customer accounts using a network database data model
US7131123B2 (en) * 2001-04-30 2006-10-31 Opsware Inc. Automated provisioning of computing networks using a network database model
US7013462B2 (en) * 2001-05-10 2006-03-14 Hewlett-Packard Development Company, L.P. Method to map an inventory management system to a configuration management system
US6851075B2 (en) * 2002-01-04 2005-02-01 International Business Machines Corporation Race detection for parallel software
US7159021B2 (en) * 2002-06-27 2007-01-02 Microsoft Corporation System and method for testing peer-to-peer network applications
US7174554B2 (en) * 2002-12-20 2007-02-06 Microsoft Corporation Tools and methods for discovering race condition errors
US7092974B2 (en) * 2003-03-12 2006-08-15 Right Hemisphere Limited Digital asset server and asset management system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8141074B2 (en) * 2003-08-07 2012-03-20 International Business Machines Corporation Packaging files having automatic conversion across platforms

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"The Gzip Home Page", 4-2002, retrieved from http://www.gzip.org, 7 pages. *
Renz et al., "An HTTP Interface to SALIERI", 1998, University of Michigan Library, Vol. 1998, pp. 1-4. *

Also Published As

Publication number Publication date
US7346904B2 (en) 2008-03-18
US20050034121A1 (en) 2005-02-10
US8141074B2 (en) 2012-03-20
US20080109803A1 (en) 2008-05-08

Similar Documents

Publication Publication Date Title
US8141074B2 (en) Packaging files having automatic conversion across platforms
US6083279A (en) Platform independent technique for transferring software programs over a network
JP5019669B2 (en) Virtual network file server
US20170257254A1 (en) Cloud Storage Using Merkle Trees
KR100868410B1 (en) Managed file system filter model and architecture
US6298353B1 (en) Checking serialization compatibility between versions of java classes
US7316015B2 (en) Method, apparatus, and program for constructing an execution environment, and computer readable medium recording program thereof
US20020143785A1 (en) Database and operating system independent copying/archiving of a web base application
US8793222B1 (en) Systems and methods for indexing backup content
US20050210054A1 (en) Information management system
US20070124302A1 (en) Mapping a Source File From a Source System To a Target System
US8930401B2 (en) Accessing and providing access to computer files over a computer network
US8275750B2 (en) Method to efficiently use the disk space while unarchiving
CN104781791A (en) Universal pluggable cloud disaster recovery system
CN107402798B (en) Method and apparatus for converting sequencing scripts to reuse JCL in different coding environments
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
AU741232B2 (en) Method and apparatus capable of embedding, extracting and processing data within a file having an HTML format
US10019185B2 (en) System and method for copying directory structures
US20100185589A1 (en) Disaster recovery data sync
US8239403B2 (en) Enhancing soft file system links
CN111736762B (en) Synchronous updating method, device, equipment and storage medium of data storage network
US7979904B2 (en) Method, system and program product for maximizing virus check coverage while minimizing redundancy in virus checking
US7634521B1 (en) Technique for scanning stealthed, locked, and encrypted files
US20150347402A1 (en) System and method for enabling a client system to generate file system operations on a file system data set using a virtual namespace
US20060294127A1 (en) Tagging based schema to enable processing of multilingual text data

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE