Class JavaConstantResource

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<Resource>, java.lang.Iterable<Resource>, ResourceCollection

    public class JavaConstantResource
    extends AbstractClasspathResource
    A resource that is a java constant. This lets you extract values off the classpath and use them elsewhere
    Ant 1.7
    • Constructor Detail

      • JavaConstantResource

        public JavaConstantResource()
    • Method Detail

      • openInputStream

        protected openInputStream​(java.lang.ClassLoader cl)
        open the input stream from a specific classloader
        Specified by:
        openInputStream in class AbstractClasspathResource
        cl - the classloader to use. Will be null if the system classloader is used
        an open input stream for the resource
        Throws: - if an error occurs.