Examples of Artifact


Examples of adept.artifact.models.Artifact

    this.attributes = attributes;
    this.filename = filename;
  }

  public Artifact getArtifact() {
    return new Artifact(hash, size.longValue(), locations);
  }
View Full Code Here

Examples of com.caucho.loader.module.Artifact

  public void resolve(ArrayList<Artifact> artifactList,
                      ArtifactDependency dependency)
  {
    for (Entry entry : _entryList) {
      Artifact artifact = entry.getArtifact();

      if (artifact != null && artifact.isMatch(dependency))
        artifactList.add(artifact);
    }
  }
View Full Code Here

Examples of com.tinkerpop.gremlin.groovy.plugin.Artifact

        // note that the service loader utilized the classloader from the groovy shell as shell class are available
        // from within there given loading through Grape.
        final List<GremlinPlugin> pluginsFound = new ArrayList<>();
        ServiceLoader.load(GremlinPlugin.class, loader).forEach(pluginsFound::add);

        artifactsToUse.add(new Artifact(group, artifact, version));

        return pluginsFound;
    }
View Full Code Here

Examples of com.tuenti.supernanny.repo.artifacts.Artifact

    Set<Artifact> chosenArtifacts = new HashSet<Artifact>();
    List<Artifact> unresolved = new ArrayList<Artifact>();
    // process the initial list of requirements first getting the most
    // recent artifact for all the requirements
    for (Requirement req : initialRequirements) {
      Artifact artifact = getArtifactFor(req);
      chosenArtifacts.add(artifact);
      unresolved.add(artifact);
    }

    // resolve all dependencies of the the artifacts chosen until now
    while (unresolved.size() > 0) {
      Artifact artifact = unresolved.remove(0);
      // resolve the requirements for each
      List<Artifact> newArtifacts = resolveReq(artifact, chosenArtifacts);
      unresolved.addAll(newArtifacts);
      chosenArtifacts.addAll(newArtifacts);
    }
View Full Code Here

Examples of dataaccess.Artifact

          t_message.addAll(ArtifactMessage.getArtifactMessages(artifacts.get(j), new Date(interval_begin.getMillis()), new Date(interval_end.getMillis())));
         
         
          if(t_message.size() != 0)
          {
            Artifact tmp = new Artifact(artifacts.get(j), true);
           
            if(tmp.getM_open_date().after(new Date(interval_begin.getMillis())) == true &&
                tmp.getM_open_date().before(new Date(interval_end.getMillis())) == true && tmp.getM_submitted_by() != 100)
            {
              sn.add(tmp.getM_submitted_by());
            }
            
            for(int k= 0; k < t_message.size(); k++)
            {
              if(sn.contains(t_message.get(k).getM_submitted_by()) == false && t_message.get(k).getM_submitted_by() != 100)
View Full Code Here

Examples of de.arago.rike.commons.data.Artifact

    @Override
    public void execute(IDataWrapper data) {

        Task task = new Task();
        String user = SecurityHelper.getUserEmail(data.getUser());
        Artifact artifact = new DataHelperRike<Artifact>(Artifact.class).find(data.getRequestAttribute("artifact"));

        task.setTitle(data.getRequestAttribute("title"));
        task.setUrl(data.getRequestAttribute("url"));
        task.setArtifact(artifact);
        task.setCreated(new Date());
View Full Code Here

Examples of de.fraunhofer.fit.collabreview.core.Artifact

        ArrayList list = new ArrayList();
        list.add(articleName);
        list.add(latestVersion);
        list.add(page_views);
       
        Artifact artifact = CollabReviewSingleton.get().getRepository().getLatestForName(articleName, "");
        if (artifact != null) {
          ArtifactIdentifier aid = artifact.getId();
         
          float quality = CollabReviewSingleton.get().getMeasurementsManager().getArtifactQualityAssessor().assessQuality(aid);
          List<Review> wiki_reviews = (List<Review>) CollabReviewSingleton.get().getRepository().listReviews(aid.getName(), "");
          artifact.setRepository(CollabReviewSingleton.get().getRepository());
          NavigableMap<Author, Float> latest_contributions = CollabReviewSingleton.get().getMeasurementsManager().getArtifactResponsibility().listResponsibilities(artifact);
          ArrayList<String>authornames = new ArrayList();
          for (Review review : wiki_reviews) {
            if (review != null) {
              Author review_author = review.getAuthor();
View Full Code Here

Examples of fr.jayasoft.ivy.Artifact

      new ModuleId(org, module);   
    ModuleRevisionId revId =
      new ModuleRevisionId(moduleId, rev);
    ModuleDescriptor md =
      new DefaultModuleDescriptor(revId, "integration", new Date());   
    Artifact artifact =
      new MDArtifact(md, module, type, type);
   
    ArtifactDownloadReport report =
      ivy.download(artifact, null);
   
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.Artifact

          @Override
          public void onClick(AjaxRequestTarget target) {
            try {
              Project project = ProjectArtifactsPanel.this.getModelObject();
              Artifact artifact = getModelObject();
             
              projectService.removeArtifact(project, artifact);
              Session.get().success(getString("project.description.artifacts.remove.success"));
            } catch (Exception e) {
              LOGGER.error("Error occured while removing artifact", e);
              Session.get().error(getString("project.description.artifacts.remove.error"));
            }
            target.add(getPage());
            FeedbackUtils.refreshFeedback(target, getPage());
          }
         
          @Override
          protected void onConfigure() {
            super.onConfigure();
            setVisible(MavenArtifactNotifierSession.get().hasRoleAdmin());
          }
        }.add(new AuthenticatedOnlyBehavior()));
      }
    };
    add(artifactListView);
   
    add(new WebMarkupContainer("emptyList") {
      private static final long serialVersionUID = 6700720373087584498L;

      @Override
      public void onConfigure() {
        super.onConfigure();
        setVisible(artifactListView.size() <= 0);
      }
    });
   
    // Add artifact form
    IModel<Artifact> emptyArtifactModel = new GenericEntityModel<Long, Artifact>(null);
   
    final ArtifactDropDownChoice artifactDropDown = new ArtifactDropDownChoice("artifact", emptyArtifactModel,
        new ProjectArtifactSelect2AjaxAdapter(ArtifactDropDownChoice.CHOICE_RENDERER));
    artifactDropDown.setWidth(DropDownChoiceWidth.NORMAL);
    artifactDropDown.setRequired(true);
    artifactDropDown.setLabel(new ResourceModel("project.description.artifacts.chooseOne"));
    artifactDropDown.add(new LabelPlaceholderBehavior());
    artifactDropDown.add(new AuthenticatedOnlyBehavior());
   
    final Form<Artifact> addArtifactForm = new StatelessForm<Artifact>("addArtifactForm", emptyArtifactModel) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onConfigure() {
        super.onConfigure();
        setVisible(MavenArtifactNotifierSession.get().hasRoleAdmin());
      }
    };
    addArtifactForm.add(artifactDropDown);
    addArtifactForm.add(new AjaxSubmitLink("addArtifactLink", addArtifactForm) {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
        Project project = ProjectArtifactsPanel.this.getModelObject();
        Artifact selectedArtifact = artifactDropDown.getModelObject();
       
        if (selectedArtifact != null) {
          if (selectedArtifact.getProject() == null) {
            try {
              projectService.addArtifact(project, selectedArtifact);
              getSession().success(getString("project.description.artifacts.add.success"));
            } catch (Exception e) {
              LOGGER.error("Unknown error occured while adding an artifact to a project", e);
View Full Code Here

Examples of net.masterthought.cucumber.json.Artifact

    @Test
    public void validConfigurationShouldReturnMap() throws Exception {
        String configuration = "Account has sufficient funds again~the account balance is 300~account~account_balance.txt~xml";
        ArtifactProcessor artifactProcessor = new ArtifactProcessor(configuration);
        Map<String,Artifact> map = artifactProcessor.process();
        Artifact artifact = map.get("Account has sufficient funds againthe account balance is 300");
        assertThat(artifact.getScenario(),is("Account has sufficient funds again"));
        assertThat(artifact.getStep(),is("the account balance is 300"));
        assertThat(artifact.getKeyword(),is("account"));
        assertThat(artifact.getArtifactFile(),is("account_balance.txt"));
        assertThat(artifact.getContentType(),is("xml"));
    }
View Full Code Here
TOP
Copyright © 2015 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.