Update of /cvsroot/krysalis/krysalis-version/src/main/org/krysalis/version/context
In directory sc8-pr-cvs1:/tmp/cvs-serv6646/src/main/org/krysalis/version/context
Modified Files:
VersionEnvironment.java
Log Message:
Start on environment analysis (comparison against a fixed base)
Index: VersionEnvironment.java
===================================================================
RCS file: /cvsroot/krysalis/krysalis-version/src/main/org/krysalis/version/context/VersionEnvironment.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** VersionEnvironment.java 1 Nov 2003 00:36:57 -0000 1.10
--- VersionEnvironment.java 2 Nov 2003 22:11:12 -0000 1.11
***************
*** 67,71 ****
import org.krysalis.version.log.Logger;
import org.krysalis.version.specification.JavasoftVersionSpecification;
- import org.krysalis.version.util.SystemUtils;
import org.krysalis.version.util.classpath.PathContext;
import org.krysalis.version.util.debug.DebugUtils;
--- 67,70 ----
***************
*** 83,103 ****
public class VersionEnvironment implements Dumpable, DOMProducer, DOMConsumer {
public final static String ENVIRONMENT_TAG = "environment";
public final static String JAVA_TAG = "java";
private VersionContext m_context = null;
private VersionMarker m_jvmVersion = null;
private VersionMarker m_jvmSpecificationVersion = null;
private VersionRegistry m_versions = null;
- private ConstraintRegistry m_constraints = null;
- private ExtensionRegistry m_extensions = null;
! private static final Map l_parts = new HashMap();
! static {
! l_parts.put(VersionRegistry.VERSIONS_TAG, VersionRegistry.class);
! }
VersionEnvironment(VersionContext context) {
--- 82,106 ----
public class VersionEnvironment implements Dumpable, DOMProducer, DOMConsumer {
+ /** XML tag for environment */
public final static String ENVIRONMENT_TAG = "environment";
+ /** XML tag for Java components */
public final static String JAVA_TAG = "java";
+ /** The context this environment uses */
private VersionContext m_context = null;
+ /** JVM version */
private VersionMarker m_jvmVersion = null;
+ /** JVM specification version (typically less detailed than jvm version)*/
private VersionMarker m_jvmSpecificationVersion = null;
+ /** A registry of the versions located in this environment */
private VersionRegistry m_versions = null;
! /** A registry of the contraints located in this environment */
! private ConstraintRegistry m_constraints = null;
! /** A registry of the JVM extension located in this environment */
! private ExtensionRegistry m_extensions = null;
VersionEnvironment(VersionContext context) {
***************
*** 268,272 ****
document,
env,
! "Constraints",
m_constraints.iterator());
if (null != m_extensions)
--- 271,275 ----
document,
env,
! "constraints",
m_constraints.iterator());
if (null != m_extensions)
***************
*** 274,278 ****
document,
env,
! "Extensions",
m_extensions.iterator());
}
--- 277,281 ----
document,
env,
! "extensions",
m_extensions.iterator());
}
***************
*** 283,289 ****
m_context = new VersionContext();
! //Find ENV...
if (element.getNodeName().equals(ENVIRONMENT_TAG)) {
! DOMUtils.consumeDOMSubElements(this, l_parts, element);
}
}
--- 286,294 ----
m_context = new VersionContext();
! //Find ENV tag in tree...
if (element.getNodeName().equals(ENVIRONMENT_TAG)) {
! Map parts = new HashMap();
! parts.put(VersionRegistry.VERSIONS_TAG, VersionRegistry.class);
! DOMUtils.consumeDOMSubElements(this, parts, element);
}
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.