Examples of Project


Examples of org.jboss.forge.projects.Project

public class MavenProjectLocator implements ProjectLocator
{
   @Override
   public Project createProject(final DirectoryResource dir)
   {
      Project project = new AbstractProject()
      {
         @Override
         public boolean supports(ProjectFacet type)
         {
            return true;
         }

         @Override
         public DirectoryResource getProjectRoot()
         {
            return dir;
         }

         @Override
         public String toString()
         {
            return dir.toString();
         }
      };

      List<Class<? extends ProjectFacet>> result = new ArrayList<Class<? extends ProjectFacet>>();
      result.add(MavenFacetImpl.class);
      result.add(MavenMetadataFacet.class);
      result.add(MavenPackagingFacet.class);
      result.add(MavenDependencyFacet.class);
      result.add(MavenResourceFacet.class);
     
      MavenFacetImpl mavenFacetImpl = new MavenFacetImpl();
      mavenFacetImpl.setOrigin(project);
      if (!project.install(mavenFacetImpl))
      {
         throw new IllegalStateException("Could not install Maven into Project located at ["
                  + dir.getFullyQualifiedName() + "]");
      }
View Full Code Here

Examples of org.jboss.resteasy.keystone.model.Project

   @Consumes("application/json")
   @Produces("application/json")
   public Access create(Authentication auth) throws Exception
   {
      String projectId = auth.getProjectId();
      Project project = null;
      if (projectId == null)
      {
         if (auth.getProjectName() == null) throw new WebApplicationException(401);
         List<Project> list = projects.getProjects(auth.getProjectName()).getList();
         if (list.size() != 1) throw new WebApplicationException(401);
         project = list.get(0);
         projectId = project.getId();
      }
      else
      {
         project = projects.getProject(projectId);
         if (project == null) throw new WebApplicationException(401);
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.Project

      return api.getDiskApiForProject(userProject.get());
   }

   @Test(groups = "live")
   public void testInsertDisk() {
      Project project = api.getProjectApi().get(userProject.get());
      zoneUrl = getDefaultZoneUrl(project.getName());
      assertOperationDoneSucessfully(api().createInZone(DISK_NAME, sizeGb, zoneUrl), TIME_WAIT);

   }
View Full Code Here

Examples of org.jrdf.query.relation.operation.Project

    public RelationFactory createRelationFactory() {
        return RELATION_FACTORY;
    }

    public QueryEngine createQueryEngine() {
        Project project = new ProjectImpl(TUPLE_FACTORY, RELATION_FACTORY);
        TupleEngine joinTupleEngine = new NaturalJoinEngine(TUPLE_FACTORY, RELATION_HELPER);
        SortMergeJoin sortMergeJoin = new SortMergeJoinImpl(joinTupleEngine, NODE_COMPARATOR, RELATION_FACTORY,
            RELATION_HELPER, TUPLE_FACTORY);
        MultiSortMergeJoinImpl multiSortMergeJoin = new MultiSortMergeJoinImpl(sortMergeJoin, NODE_COMPARATOR);
        TupleEngine optJoinTupleEngine = new SortMergeNaturalJoinEngine(RELATION_HELPER, joinTupleEngine,
View Full Code Here

Examples of org.locationtech.udig.project.internal.Project

     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetProjectInternal(Project newProjectInternal,
            NotificationChain msgs) {
        Project oldProjectInternal = projectInternal;
        projectInternal = newProjectInternal;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    ElementPackage.PROJECT_ELEMENT_ADAPTER__PROJECT_INTERNAL, oldProjectInternal,
                    newProjectInternal);
View Full Code Here

Examples of org.moltools.apps.probemaker.project.Project

    proj.getSettings().getCandidateModulesStage1().clear();
  }

  public void testCandidateGeneration() throws DuplicateIDException {
   
    Project proj = new Project("Test project"); //$NON-NLS-1$
    proj.getSettings().addDesignerProperties(GreedyTagAllocator.defaultParameters);
    proj.setTagSettings(new DefaultTagSettings(libraries1_10));
    proj.getTagAllocationTable().clearUsed();
    proj.getTargets().addSequence(t1);   
    proj.getSettings().addCandidateModuleStage1(dummy);
    pm.setProject(proj);
   
    dummy.setData(DummyModule.KEY_WARNING_CHANCE, new Integer(100));
    proj.getSettings().addCandidateModuleStage1(dummy);

    ProbeDesignTask task = pm.getProbeDesignTask(false, true, false, new GoodAcceptor(), new NoSelector(), new DefaultProbeDesigner(new GreedyTagAllocator()), new DefaultTSSConstructor(), new StreamErrorHandler(System.out,true));
    task.run();

    //Check the number of candidates tested
    long candCount = task.getCandidatesGenerated();  
    assertTrue("Tag selection, 10 candidates expected, " + candCount + " generated.",candCount==10); //$NON-NLS-1$ //$NON-NLS-2$

    proj.getSettings().getCandidateModulesStage1().clear();   
  }
View Full Code Here

Examples of org.netbeans.api.project.Project

    private static final String AUTO_COMPLETE_FILE_NAME = "__l4_auto_complete__"; // NOI18N
    private static final String AUTO_COMPLETE_FILE = AUTO_COMPLETE_FILE_NAME + ".php"; // NOI18N
    private static final String AUTO_COMPLETE_TEMPLATE_PATH = "org-nbphpcouncil-modules-php-laravel4/__l4_auto_complete__.php"; // NOI18N

    public static void generateAutoCompletionFile(PhpModule phpModule) {
        Project project = PhpProjectSupport.getProject(phpModule.getSourceDirectory());
        FileObject projectDirectory = project.getProjectDirectory();
        FileObject nbProjectDirectory = PhpProjectSupport.getNbProjectDirectory(projectDirectory);

        if (nbProjectDirectory != null) {
            FileObject autoCompleteTemplateFile = FileUtil.getConfigFile(AUTO_COMPLETE_TEMPLATE_PATH);
View Full Code Here

Examples of org.netbeans.ns.project._1.Project

    {
      InputStream inputStream = new FileInputStream(path);

      JAXBContext jc = JAXBContext.newInstance(Project.class);
      Unmarshaller um = jc.createUnmarshaller();
      Project project = ((Project) um.unmarshal(inputStream));

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();
View Full Code Here

Examples of org.nxplanner.domain.Project

        expectObjectRepositoryAccess(Project.class);
        action.setMetaRepository(mockMetaRepository);
        support.request.setParameterValue(AbstractAction.TYPE_KEY,
                new String[]{ Project.class.getName() });
        support.setForward("display", "editor.jsp");
        mockObjectRepositoryControl.expectAndReturn(mockObjectRepository.load(11), new Project());
        replay();

        ActionForward forward = support.executeAction(action);

        verify();
View Full Code Here

Examples of org.objectweb.speedo.j2eedo.database.Project

    Query query = pm.newQuery(Project.class);
    query.declareParameters("long aId");
    query.setFilter("(proid==aId)");
    Collection col = (Collection) query.execute(new Long(id));
    Iterator iter = col.iterator();
    Project p = null;
    try {
      if (!iter.hasNext()) {
        throw new RuntimeException("No project found with the id: " + id);
      }
      p = (Project) iter.next();
      if (p.getProid() != id)
        throw new RuntimeException("Bad project found (the id is different, expected: " + id + ", found:" + p.getProid());
      if (iter.hasNext())
        throw new RuntimeException("More than one project corresponding to the id: " + id);
    } finally {
      query.closeAll();
    }
        outStr.append("\nGet project " + id);
    outStr.append(", name:").append(p.getName());
    outStr.append(", budget:").append(p.getBudget());
  }
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.