Examples of SettingsXpp3Reader


Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

            throw new IllegalArgumentException( "input stream missing" );
        }

        try
        {
            SettingsXpp3Reader r = new SettingsXpp3Reader();
            return r.read( input, isStrict( options ) );
        }
        catch ( XmlPullParserException e )
        {
            throw new SettingsParseException( e.getMessage(), e.getLineNumber(), e.getColumnNumber(), e );
        }
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

                // Have to merge the specified settings file (dominant) and the one of the invoking Maven process
                Reader reader = null;
                try
                {
                    reader = new XmlStreamReader( interpolatedSettingsFile );
                    SettingsXpp3Reader settingsReader = new SettingsXpp3Reader();
                    Settings dominantSettings = settingsReader.read( reader );
                    Settings recessiveSettings = this.settings;

                    SettingsUtils.merge( dominantSettings, recessiveSettings, TrackableBase.USER_LEVEL );

                    mergedSettings = dominantSettings;
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

            IDocumentProvider dp = getDocumentProvider();
            IDocument doc = dp.getDocument( getEditorInput() );
            String bufferedCopy = doc.get();
            File file = new File( ( (FileStoreEditorInput) getEditorInput() ).getURI() );

            SettingsXpp3Reader settingsReader = new SettingsXpp3Reader();

            Settings copy = settingsReader.read( new StringReader( bufferedCopy ) );
            Settings orig = settingsReader.read( new FileReader( file ) );

            SettingsXmlDiff diff = new SettingsXmlDiff( orig, copy );
            hasEssentialChanges = diff.hasEssentialDiffs();
        }
        catch ( FileNotFoundException e )
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        throws IOException
    {
        Random entropy = new Random();
        try
        {
            Settings settings = new SettingsXpp3Reader().read( ReaderFactory.newXmlReader( originalSettingsXml ) );

            String localRepo = System.getProperty( "maven.repo.local" );

            if ( localRepo == null )
            {
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        assertTrue( globalSettingsFile.getAbsolutePath(), globalSettingsFile.isFile() );

        Reader reader = new InputStreamReader( new FileInputStream( globalSettingsFile ), "UTF-8" );
        try
        {
            new SettingsXpp3Reader().read( reader );
        }
        finally
        {
            reader.close();
        }
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        try
        {
            reader = ReaderFactory.newXmlReader( settingsFile );

            SettingsXpp3Reader modelReader = new SettingsXpp3Reader();

            settings = modelReader.read( reader );
        }
        finally
        {
            IOUtil.close( reader );
        }
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        File m2Dir = new File( System.getProperty( "user.home" ), ".m2" );
        File settingsFile = new File( m2Dir, "settings.xml" );
        String localRepo = null;
        if ( settingsFile.exists() )
        {
            Settings settings = new SettingsXpp3Reader().read( new FileReader( settingsFile ) );
            localRepo = settings.getLocalRepository();
        }
        if ( localRepo == null )
        {
            localRepo = System.getProperty( "user.home" ) + "/.m2/repository";
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        final File settingsXml = new File(System.getProperty("user.home") + "/.m2/settings.xml");
        if (settingsXml.exists()) {
            try {
                final FileReader reader = new FileReader(settingsXml);
                try {
                    tomEEMojo.settings = new SettingsXpp3Reader().read(reader, false);
                } finally {
                    reader.close();
                }
            } catch (final Exception e) {
                // no-op
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

                     + "settings." );
            }

            StringReader sReader = new StringReader( rawInput );

            SettingsXpp3Reader modelReader = new SettingsXpp3Reader();

            settings = modelReader.read( sReader );

            RuntimeInfo rtInfo = new RuntimeInfo( settings );

            rtInfo.setFile( settingsFile );
View Full Code Here

Examples of org.apache.maven.settings.io.xpp3.SettingsXpp3Reader

        try
        {
            log( "Loading Maven settings file: " + settingsFile.getPath(), Project.MSG_VERBOSE );
            reader = new FileReader( settingsFile );

            SettingsXpp3Reader modelReader = new SettingsXpp3Reader();

            settings = modelReader.read( reader );

            checkSettingsLocalRepository();
        }
        catch ( IOException e )
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.