Package org.pentaho.di.repository

Examples of org.pentaho.di.repository.RepositoriesMeta


    if (repositoryName == null)
    {
      throw new NullPointerException();
    }

    final RepositoriesMeta repositoriesMeta = new RepositoriesMeta();
    try
    {
      repositoriesMeta.readData();
    }
    catch (KettleException ke)
    {
      // we're a bit low to bubble a dialog to the user here..
      // when ramaiz fixes readData() to stop throwing exceptions
      // even when successful we can remove this and use
      // the more favorable repositoriesMeta.getException() or something
      // like it (I'm guessing on the method name)
    }

    // Find the specified repository.
    final RepositoryMeta repositoryMeta = repositoriesMeta.findRepository(repositoryName);

    if (repositoryMeta == null)
    {
      // repository object is not necessary for filesystem transformations
      return null;
View Full Code Here


    if (repositoryName == null)
    {
      throw new NullPointerException();
    }

    final RepositoriesMeta repositoriesMeta = new RepositoriesMeta();
    try
    {
      repositoriesMeta.readData();
    }
    catch (final KettleException ke)
    {
      // we're a bit low to bubble a dialog to the user here..
      // when ramaiz fixes readData() to stop throwing exceptions
      // even when successful we can remove this and use
      // the more favorable repositoriesMeta.getException() or something
      // like it (I'm guessing on the method name)
    }

    // Find the specified repository.
    final RepositoryMeta repositoryMeta = repositoriesMeta.findRepository(repositoryName);

    if (repositoryMeta == null)
    {
      // repository object is not necessary for filesystem transformations
      return null;
View Full Code Here

    try {
      if ( ComponentBase.debug ) {
        debug( Messages.getInstance().getString( "Kettle.DEBUG_META_REPOSITORY" ) ); //$NON-NLS-1$
      }

      RepositoriesMeta repositoriesMeta = null;
      try {
        repositoriesMeta = new RepositoriesMeta();
      } catch ( Exception e ) {
        error( Messages.getInstance().getErrorString( "Kettle.ERROR_0007_BAD_META_REPOSITORY" ), e ); //$NON-NLS-1$
        return null;
      }
      /*
       * Unreachable code below if (repositoriesMeta == null) {
       * error(Messages.getInstance().getErrorString("Kettle.ERROR_0007_BAD_META_REPOSITORY")); //$NON-NLS-1$
       * debug(getKettleLog(true)); return null; }
       */

      if ( ComponentBase.debug ) {
        debug( Messages.getInstance().getString( "Kettle.DEBUG_POPULATING_META" ) ); //$NON-NLS-1$
      }
      try {
        // TODO: add support for specified repositories.xml files...
        repositoriesMeta.readData(); // Read from the default
        // $HOME/.kettle/repositories.xml
        // file.
      } catch ( Exception e ) {
        error( Messages.getInstance().getErrorString( "Kettle.ERROR_0018_META_REPOSITORY_NOT_POPULATED" ), e ); //$NON-NLS-1$
        return null;
      }
      if ( ( repositoriesXMLFile != null ) && !"".equals( repositoriesXMLFile ) ) //$NON-NLS-1$
      {
        error( Messages.getInstance().getErrorString( "Kettle.ERROR_0017_XML_REPOSITORY_NOT_SUPPORTED" ) ); //$NON-NLS-1$
        debug( getKettleLog( true ) );
        return null;
      }

      if ( ComponentBase.debug ) {
        debug( Messages.getInstance().getString( "Kettle.DEBUG_FINDING_REPOSITORY" ) ); //$NON-NLS-1$
      }
      // Find the specified repository.
      RepositoryMeta repositoryMeta = null;
      try {
        repositoryMeta = repositoriesMeta.findRepository( repositoryName );
      } catch ( Exception e ) {
        error( Messages.getInstance().getErrorString( "Kettle.ERROR_0004_REPOSITORY_NOT_FOUND", repositoryName ), e ); //$NON-NLS-1$
        return null;
      }

View Full Code Here

TOP

Related Classes of org.pentaho.di.repository.RepositoriesMeta

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.