constellation : Java Glossary

go to home page C words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 2008-08-09 by Roedy Green ©1996-2008 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
constellation
A grouping of files to be processed, for example to be searched, indexed, tidied, macro-expanded…

A constellation has a way to specify which drives, directories, files and extensions to include and which drives, directories, files and extensions to exclude. This could be handled with lists, wildcards and/or regexes.

A constellation should have a name so that it can be specified and updated in one place, and referenced by a short name as a parameter to some utility.

Implementation

A constellation is a file itself. It is XML based to allow for extensions.

Unfortunately, the concept of constellation has not yet penetrated the programming world, so there is no uniform way to specify them, or reuse them in different programs. There is no standard DTD for the layout. This is primarily a political problem. Hint, hint. I invite you to share your ideas with me.

The definition of a standard constellation file format and constellation library would allow you to easily add filtering to any program designed to process just a single file. It would also the user to define a constellation once, and reuse it with a large number of different utilities.

How about some ideas on what the XML syntax for such a beast would look like? I could write a library to read it and let you then convert any single-file processing utility into a constellation-of-files processing utility. I will convert all my multi-file software to the new format and publish all source code. Maybe the idea will catch on. Here isz what a constellation file might look like:

It means, consider for backup the following files: All of the E:\mindprod directory tree. However, exclude the subtree kjv, and the subdirectory quadra (but not its subdirs). Exclude everything in the replicator subdirectory, however include all the *.html files except for the *log.html files which should be excluded. Also include all the z*.zip files in the replicator directory. Also consider the e:\com directory tree. Include all the *.java, *.html, *.txt and all the manifest.txt files. Finally include four files: E:/env/2008/taxreturn.xls, E:/env/secretpasswords.enc, E:/env/purchasedsoftwarekeys.txt and C:/personal/todo.txt.

Obviously the fine points of the grammar need to be sorted out, but that gives you the general picture.

Eventually you could have GUI tools to create them with check boxes. You could have a uniform pre-check to let you know just what files would be processed.

Constellation Utilities

If you use a standard constellation format, you can write some generic utilities to manipulate them:

Examples of Existing Constellations

The Replicator requires a constellation of files to distribute to others. Compactor requires a constellation of files to compact. Untouch requires a constellation of directories to redate back if files have not really changed. HTML static macros requires a constellation of files composing a website that contain macros to be expanded. Xenu requires a constellation of files to be spidered to look for broken links. Funduc Search and Replace requires a constellation of files to search. Copernic Desktop Search requires a constellation of files to index. Backup progams need to define a constellation of file to back up. Typically they do it in an inept way so the raw list of files needs to be modified every time to account for new files is some of the directories.

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] The information on this page is for non-military use only.
You are visitor number 11. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/constellation.html J:\mindprod\jgloss\constellation.html