Docsity

CSE775 Project 3: Developing a Code Repository System - Prof. James Fawcett, Study Guides, Projects, Research of Engineering

Toggle sidebar
bg1
CSE775 – Distributed Objects
Spring 2008
Project #3 – Local Code Repository due
Monday, April 14
version #2.1
Purpose:
This project requires you to develop a software system that manages code. That is, the results of
this project will support the insertion and extraction of code into and from a set of managed
directories. Code is to be represented by a, possibly large, collection of modules, linked by their
dependency one on another.
Each module is represented by an XML manifest file that describes the module by name,
purpose, parts, and dependencies. For example, a C++ module might consist of a header file,
implementation file, documentation file, library file, and test drivers 1. It may depend on an
arbitrary number of lower level modules, each of which is described by a reference to a lower
level module in this module’s manifest file.
To support this, you will build at least two programs2:
1. A Manifest tool that supports user creation of a module manifest by visually navigating
through a user’s directory system and selecting code parts, as described above.
a. The interface, that provides this view, should remain open, allowing multiple
selections in, possibly multiple directories, until the user explicitly closes the view 3.
b. Two kinds of selections are to be supported, module parts, and lower level modules,
on which this module depends. Lower level modules are added by selecting the XML
manifests of those modules from the repository.
c. When the view is closed, the XML manifest is created. The user should also be able to
use this tool to edit an existing manifest to add or remove parts and dependencies.
This manifest tool will be implemented as a component that a client program loads.
2. A Code Manager that performs check-in and check-out, based on a specified manifest file:
a. On check-in the code manager creates a module directory, based on the module
name, scans the manifest, and loads each part into the module directory, based on
paths specified in the manifest. It then revises the manifest paths to match the
repository path.
b. On check-out, the code manager, given the name of a module to extract, delivers all of
the files specified in the manifest to the user’s current working directory, along with all
of the parts of each lower level module on which it depends4. You may wish to provide
an option to extract only selected parts of the named module5.
c. No management of check-in or check-out rights is required. This project simply
provides the mechanics to insert and extract code by module and dependency.
d. No versioning is required. However, if you view versions as simply different modules
with names that support version numbers, e.g., Toker.1.h, Toker.1.cpp, for example,
then versioning could be handled with very little additional design. If you chose to do
that, you will be awarded additional points, based on the quality of that
implementation 6.
1 A module is not some arbitrary logical entity. For C++ program s its source code consists of at most two
files, a header file and an implementation file, of the same name with the “.h” and “.cpp” extensions.
2 You will find Handouts/CSE681/code/scanner to be a good resource to use as you implement both the
Manifest Builder and Manifest Scanner components.
3 You may find the TreeViewPlus control, provided in CSE775/code/controls, of help implementing this
functionality.
4 Presumably you would do this by recursively scanning XML manifests.
5 You might do this with check boxes for code, documentation, and lower level modules.
6 There are a number of issues that this does not address. For example, build scripts or projects would have
to be edited for new version numbers, etc. – not terribly difficult to automate, but just more detail to handle.
pf2

Partial preview of the text

Download CSE775 Project 3: Developing a Code Repository System - Prof. James Fawcett and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

CSE775 – Distributed Objects

Spring 2008

Project #3 – Local Code Repository due

Monday, April 14

version #2.

Purpose:

This project requires you to develop a software system that manages code. That is, the results of this project will support the insertion and extraction of code into and from a set of managed directories. Code is to be represented by a, possibly large, collection of modules, linked by their dependency one on another. Each module is represented by an XML manifest file that describes the module by name, purpose, parts, and dependencies. For example, a C++ module might consist of a header file, implementation file, documentation file, library file, and test drivers^1. It may depend on an arbitrary number of lower level modules, each of which is described by a reference to a lower level module in this module’s manifest file. To support this, you will build at least two programs^2 :

  1. A Manifest tool that supports user creation of a module manifest by visually navigating through a user’s directory system and selecting code parts, as described above. a. The interface, that provides this view, should remain open, allowing multiple selections in, possibly multiple directories, until the user explicitly closes the view^3. b. Two kinds of selections are to be supported, module parts, and lower level modules, on which this module depends. Lower level modules are added by selecting the XML manifests of those modules from the repository. c. When the view is closed, the XML manifest is created. The user should also be able to use this tool to edit an existing manifest to add or remove parts and dependencies. This manifest tool will be implemented as a component that a client program loads.
  2. A Code Manager that performs check-in and check-out, based on a specified manifest file: a. On check-in the code manager creates a module directory, based on the module name, scans the manifest, and loads each part into the module directory, based on paths specified in the manifest. It then revises the manifest paths to match the repository path. b. On check-out, the code manager, given the name of a module to extract, delivers all of the files specified in the manifest to the user’s current working directory, along with all of the parts of each lower level module on which it depends^4. You may wish to provide an option to extract only selected parts of the named module^5. c. No management of check-in or check-out rights is required. This project simply provides the mechanics to insert and extract code by module and dependency. d. No versioning is required. However, if you view versions as simply different modules with names that support version numbers, e.g., Toker.1.h, Toker.1.cpp, for example, then versioning could be handled with very little additional design. If you chose to do that, you will be awarded additional points, based on the quality of that implementation^6. (^1) A module is not some arbitrary logical entity. For C++ programs its source code consists of at most two files, a header file and an implementation file, of the same name with the “.h” and “.cpp” extensions. (^2) You will find Handouts/CSE681/code/scanner to be a good resource to use as you implement both the Manifest Builder and Manifest Scanner components. (^3) You may find the TreeViewPlus control, provided in CSE775/code/controls, of help implementing this functionality. (^4) Presumably you would do this by recursively scanning XML manifests. (^5) You might do this with check boxes for code, documentation, and lower level modules. (^6) There are a number of issues that this does not address. For example, build scripts or projects would have to be edited for new version numbers, etc. – not terribly difficult to automate, but just more detail to handle.

CSE775 – Distributed Objects

Spring 2008

It is expected that you will implement the Code Manager as one or more components, loaded by your repository program. You are asked to provide a set of controls and components designed to support this functionality. These will reside on the user interface windows of the programs cited above and in the Repository server. Specifically, you will build:

  1. A .Net control to support the selection process described in 1.a, above.

2. An ActiveX control that displays the total number of files to be delivered and the path to

which they will be delivered, before the user confirms this extraction.

  1. A component that manages the creation of XML manifests.
  2. A component that identifies all the files to be delivered by scanning XML manifests. The hosts for the controls and components cited above are a client that hosts the Manifest tool and controls to support user specification of check-in and check-out contents, and a server that hosts the Code Manager.

Requirements:

Your Repository programs:

1. shall use standard C++ and the standard library, the ATL Library and Managed C++ for the

controls, subject to the limitations set out above. Your project shall build, using VC++ 2008, as provided in ECS clusters and operate in the environment provided there. You may use C# or C++/CLI WinForms to host controls for your user interfaces.

2. shall provide check-in and check-out processes for code insertion and extraction as

described in the Purpose section.

3. shall provide at least two controls, one built with managed .Net code that supports selection

of parts and dependencies for building a module’s manifest, and one that display’s the check- out deliverables, built with ActiveX technology.

4. shall supply at least two components, one that handles all the element creation and parsing

for building XML manifests, and one that handles scanning of manifests to find parts and lower level modules to extract.

5. shall provide a client host that supports check-in and check-out and provide a Repository

host that supports the management of code. Because this project is fairly large, you may, if you wish, team with one other member of the class to share the design and implementation. mod 1. 3 .mod mod 2. 1 .mod mod 3. 2 .mod file 1. 2 .cs file 2. 1 .cs file 3. 3 .doc file 4. 1 .cs file 5. 1 .cs file 6. 2 .cs file 7. 1 .doc program 1. 2 .prg program 2. 1 .prg system 1. 3 .sys Module Dependency Representation Item Manifest files contain :

  • a brief summary
  • a list of keywords
  • a list of references to lower level components and files. Definitions Item: A manifest and all the files it directly references. Component: An item and all the items it references.