Class IniArtifactDataReader

    • Field Detail

      • prefix

        private java.lang.String prefix
    • Constructor Detail

      • IniArtifactDataReader

        IniArtifactDataReader()
        Constructs a data reader with the prefix "".
      • IniArtifactDataReader

        IniArtifactDataReader​(java.lang.String prefix)
        Constructs a data reader with the given prefix.
        Parameters:
        prefix - the prefix to use for loading resources from the classpath.
    • Method Detail

      • parse

        public ArtifactDescription parse​(java.lang.String resource)
                                  throws java.io.IOException
        Load an artifact description from the classpath and parse it.
        Throws:
        java.io.IOException
      • parse

        public ArtifactDescription parse​(java.net.URL res)
                                  throws java.io.IOException
        Open the given URL and parse ist.
        Throws:
        java.io.IOException
      • parseLiteral

        public ArtifactDescription parseLiteral​(java.lang.String description)
                                         throws java.io.IOException
        Parse the given String.
        Throws:
        java.io.IOException
      • parse

        private ArtifactDescription parse​(java.io.Reader reader)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • repositories

        private java.util.List<RemoteRepository> repositories​(java.util.List<java.lang.String> list)
      • dependencies

        private java.util.List<Dependency> dependencies​(java.util.List<java.lang.String> list,
                                                        boolean managed)
      • relocation

        private Artifact relocation​(java.util.List<java.lang.String> list)
      • isEmpty

        private static boolean isEmpty​(java.lang.String line)
      • cutComment

        private static java.lang.String cutComment​(java.lang.String line)