Examples of ProjectConfiguration


Examples of com.volantis.mcs.project.ProjectConfiguration

//        return JDBCRepository.createRepository (properties);
    }

    private Project createJDBCProject(LocalRepository repository) {
        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(args.getValue(PROJECT));
        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectConfiguration

                }
                throw re;
            }

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectConfiguration

        String dirName = args.getValue(DESTINATION_DIR);
        File dir = new File(dirName);

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setDeleteProjectContents(args.contains(REPLACE));
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectConfiguration

     */
    private Project createProject(
            LocalRepository destinationRepository, String policyRoot) {

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(destinationRepository);
        configuration.setPolicyLocation(new File(policyRoot).getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of org.apache.cayenne.project.ProjectConfiguration

     * Creates a configuration suitable for use in the Modeler. Used mainly by subclasses.
     *
     * @since 1.2
     */
    protected Configuration buildProjectConfiguration(File projectFile) {
        ProjectConfiguration config = new ProjectConfiguration(projectFile);
        config.setLoaderDelegate(new ModelerProjectLoadDelegate(config));
        config.setSaverDelegate(new ModelerProjectSaveDelegate(config));
        return config;
    }
View Full Code Here

Examples of org.apache.cayenne.project.ProjectConfiguration

     * Creates a configuration suitable for use in the Modeler. Used mainly by subclasses.
     *
     * @since 1.2
     */
    protected Configuration buildProjectConfiguration(File projectFile) {
        ProjectConfiguration config = new ProjectConfiguration(projectFile);
        config.setLoaderDelegate(new ModelerProjectLoadDelegate(config));
        config.setSaverDelegate(new ModelerProjectSaveDelegate(config));
        return config;
    }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.ProjectConfiguration

   * (which is based on current document)
   *
   * @return ProjectConfiguration
   */
  static private ProjectConfiguration getProjectConfiguration(IFile file) {
    ProjectConfiguration projectConfiguration = null;
    if (file != null) {
      IProject project = file.getProject();
      if (project != null) {
        try {
          projectConfiguration = ConfigurationManager.getManager().getProjectConfiguration(project);
View Full Code Here

Examples of org.eclipse.wst.validation.internal.ProjectConfiguration

    if (file == null) {
      return true;
    }

    boolean enabled = true;
    ProjectConfiguration configuration = getProjectConfiguration(file);
    if (configuration != null) {
      org.eclipse.wst.validation.internal.ValidatorMetaData metadata = ValidationRegistryReader.getReader().getValidatorMetaData(JSPBatchValidator.class.getName());
      if (configuration != null && metadata != null) {
        if (!configuration.isBuildEnabled(metadata) && !configuration.isManualEnabled(metadata))
          enabled = false;
      }
    }
    return enabled;
  }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.ProjectConfiguration

    ValidationConfiguration configuration = null;
    if (file != null) {
      IProject project = file.getProject();
      if (project != null) {
        try {
          ProjectConfiguration projectConfiguration = ConfigurationManager.getManager().getProjectConfiguration(project);
          configuration = projectConfiguration;
          if (projectConfiguration == null || projectConfiguration.useGlobalPreference()) {
            configuration = ConfigurationManager.getManager().getGlobalConfiguration();
          }
        }
        catch (InvocationTargetException e) {
          Logger.log(Logger.WARNING_DEBUG, e.getMessage(), e);
View Full Code Here

Examples of org.eclipse.wst.validation.internal.ProjectConfiguration

    ValidationConfiguration configuration = null;
    if (file != null) {
      IProject project = file.getProject();
      if (project != null) {
        try {
          ProjectConfiguration projectConfiguration = ConfigurationManager.getManager().getProjectConfiguration(project);
          configuration = projectConfiguration;
          if (projectConfiguration == null || projectConfiguration.useGlobalPreference()) {
            configuration = ConfigurationManager.getManager().getGlobalConfiguration();
          }
        }
        catch (InvocationTargetException e) {
          Logger.log(Logger.WARNING_DEBUG, e.getMessage(), 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.