krysalis-update/src/java/org/krysalis/depot/update/util UpdateConstants.java,NONE,1.1
Nick Chalko <[email protected]> Wed, 08 Dec 2004 09:07:21 +0000
| Newsgroups | gmane.comp.krysalis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/krysalis/krysalis-update/src/java/org/krysalis/depot/update/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24726/src/java/org/krysalis/depot/update/util
Added Files:
UpdateConstants.java
Log Message:
Copied from the apache incubator.
--- NEW FILE: UpdateConstants.java ---
/*
* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.krysalis.depot.update.util;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.krysalis.depot.update.util.net.VirtualResourceLocator;
/**
* Provides some basic constants which can be used throughout the depot-updater application.
*
* @author <a href="http://incubator.apache.org/depot">The Apache Incubator Depot Project</a>
*/
public class UpdateConstants {
public final static List EMPTY_LIST = new ArrayList();
public final static String DEFAULT_CONFIG_XML = "depot-update.xml";
public final static String FILE_PREFIX = "file://";
public final static String STANDARD = "standard";
public final static String DEFAULT = "default";
public final static String UNNAMED = "unnamed";
public final static String DEPOT_HOME = "http://www.apache.org/depot/";
public final static String MD5 = "md5";
public final static String MD5_EXTN = "." + MD5;
public final static String ASC = "asc";
public final static String ASC_EXTN = "." + ASC;
public final static String LIBRARY = "lib";
public final static String TEST = "test";
public final static String MOCK = "mock";
// Repository locations
public final static String APACHE_LOCATION = "http://www.apache.org/library/projects/";
public final static String MAVEN_LOCATION = "http://www.ibiblio.org/maven/";
// selector/comparator
public final static String SELECTOR = "SELECTOR";
public final static String COMPARATOR = "COMPARATOR";
// :TODO: How can I make these final? -- probably don't need this, it should be in xml
public static URL MAVEN_URL;
static {
try {
MAVEN_URL = new URL(MAVEN_LOCATION);
}
catch (Exception e) {
e.printStackTrace(System.err);
}
}
// :TODO: How can I make these final?
public static VirtualResourceLocator MAVEN_VRL;
static {
try {
MAVEN_VRL = new VirtualResourceLocator(MAVEN_LOCATION);
}
catch (Exception e) {
e.printStackTrace(System.err);
}
}
// :TODO: How can I make these final?
public static VirtualResourceLocator APACHE_VRL;
static {
try {
APACHE_VRL = new VirtualResourceLocator(APACHE_LOCATION);
}
catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/