Package org.codehaus.plexus.util

Examples of org.codehaus.plexus.util.InterpolationFilterReader


            try
            {
                // interpolation with token @...@
                Map<String, Object> composite = getInterpolationValueSource();
                reader = ReaderFactory.newXmlReader( originalFile );
                reader = new InterpolationFilterReader( reader, composite, "@", "@" );
                xml = IOUtil.toString( reader );
            }
            finally
            {
                IOUtil.close( reader );
View Full Code Here


        BufferedReader reader = null;
        try
        {
            Map<String, Object> composite = getInterpolationValueSource();
            reader = new BufferedReader( new InterpolationFilterReader( newReader( tokenFile ), composite ) );

            String line = null;
            while ( ( line = reader.readLine() ) != null )
            {
                result.addAll( collectListFromCSV( line ) );
View Full Code Here

            try
            {
                // interpolation with token @...@
                Map<String, Object> composite = getInterpolationValueSource();
                reader = ReaderFactory.newXmlReader( originalFile );
                reader = new InterpolationFilterReader( reader, composite, "@", "@" );
                xml = IOUtil.toString( reader );
            }
            finally
            {
                IOUtil.close( reader );
View Full Code Here

        BufferedReader reader = null;
        Writer writer = null;
        try
        {
            // interpolation with token @...@
            reader = new BufferedReader(new InterpolationFilterReader(ReaderFactory.newXmlReader(originalFile), filter, "@", "@" ));
            writer = WriterFactory.newXmlWriter( interpolatedFile );
            String line = null;
            while ( ( line = reader.readLine() ) != null )
            {
                writer.write( line );
View Full Code Here

    if(pluginDescriptor == null) {
      try {
        InputStream is = getClass().getResourceAsStream("/META-INF/maven/plugin.xml");
        try {
          XmlStreamReader reader = ReaderFactory.newXmlReader(is);
          InterpolationFilterReader interpolationFilterReader = new InterpolationFilterReader(
            new BufferedReader(reader), container.getContext().getContextData());

          PlexusContainer pc = getContainer();
          pluginDescriptor = new PluginDescriptorBuilder().build(interpolationFilterReader);
          Artifact artifact = pc.lookup(RepositorySystem.class).createArtifact(
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.util.InterpolationFilterReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.