Examples of Build


Examples of br.eti.kinoshita.testlinkjavaapi.model.Build

    /**
     * @param map
     * @return Build.
     */
    public static final Build getBuild(Map<String, Object> map) {
        Build build = null;
        if (map != null && map.size() > 0) {
            Object o = map.get(TestLinkResponseParams.ID.toString());
            if (o != null) {
                Integer id = Integer.parseInt(o.toString());

                if (id > 0) {
                    build = new Build();
                    build.setId(id);

                    build.setName(getString(map, TestLinkResponseParams.NAME.toString()));
                    build.setNotes(getString(map, TestLinkResponseParams.NOTES.toString()));
                    build.setTestPlanId(getInteger(map, TestLinkResponseParams.TEST_PLAN_ID.toString()));
                    build.setName(getString(map, TestLinkResponseParams.NAME.toString()));
                    // TBD: add is open, release date, closed on date and active
                    // to Build entity
                }

            }
View Full Code Here

Examples of com.owens.oobjloader.builder.Build

        for (String filename : argv) {

            System.err.println("LOADING FILE " + filename);
            try {
                Build builder = new Build();
                Parse obj = new Parse(builder, filename);
            } catch (java.io.FileNotFoundException e) {
                System.err.println("Exception loading object!  e=" + e);
                e.printStackTrace();
            } catch (java.io.IOException e) {
View Full Code Here

Examples of hudson.model.Build

    }

    @Override
    public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) {
        try {
            Build item = getRun(Combination.fromString(token));
            if (item != null) {
                if (item.getNumber() == this.getNumber()) {
                    return item;
                } else {
                    // redirect the user to the correct URL
                    String url = Functions.joinPath(item.getUrl(), req.getRestOfPath());
                    String qs = req.getQueryString();
                    if (qs != null) {
                        url += '?' + qs;
                    }
                    throw HttpResponses.redirectViaContextPath(url);
View Full Code Here

Examples of hudson.plugins.git.util.Build

                createInternalTag(git, internalTagName, internalTagComment);

                String changeLog = computeChangeLog(git, revToBuild, listener, buildData);

                buildData.saveBuild(new Build(revToBuild, buildNumber, null));

                // Fetch the diffs into the changelog file
                return new BuildConfig(changeLog, buildData);
            }
        });
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.datatypes.hudson.Build

  public List<Dot> getValue() {
    List<Build> builds = service.getBuilds(project);

    ArrayList<Dot> result = new ArrayList<Dot>();
    for (int i = 0; i < Math.min(5, builds.size()); i++) {
      Build build = builds.get(i);
      if (build.isBuilding()) {
        result.add(new Dot(DotColor.GRAY, build.getJob().getCode()));
      } else {
        switch (build.getResult()) {
        case SUCCESS:
          result
              .add(new Dot(DotColor.GREEN, build.getJob()
                  .getCode()));
          break;
        case UNSTABLE:
          result.add(new Dot(DotColor.YELLOW, build.getJob()
              .getCode()));
          break;
        case FAILURE:
          result.add(new Dot(DotColor.RED, build.getJob().getCode()));
          break;
        }
      }
    }
    return result;
View Full Code Here

Examples of org.apache.maven.model.Build

        // - if we're deploying within a phase then deploy has to be set, otherwise
        //   its not needed (we know we're not deploying in a phase when the artifactFile is null).
        if (this.deploy != null && this.deploy.equals(Boolean.TRUE.toString()) || artifactFile == null)
        {
            final Build build = this.project.getBuild();
            if (EXPLODED.equalsIgnoreCase(this.deploy))
            {
                artifactFile = new File(
                        build.getDirectory(),
                        build.getFinalName());
            }
            else if (artifactFile == null)
            {
                artifactFile = new File(
                        build.getDirectory(),
                        build.getFinalName() + '.' + this.getPackaging());
            }
            if (artifactFile.exists())
            {
                final File deployFile = this.getDeployFile();
                final File deployDirectory = new File(this.deployLocation);
View Full Code Here

Examples of org.apache.maven.model.Build

            // - remove the parent
            final Parent parent = model.getParent();
            final List dependencies = new ArrayList(model.getDependencies());
            final String groupId = model.getGroupId();
            final Artifact artifact = this.project.getArtifact();
            final Build build = this.project.getBuild();
            final List developers = new ArrayList(model.getDevelopers());
            final List contributors = new ArrayList(model.getContributors());
            model.setGroupId(this.getBootstrapGroupId(artifact));
            model.setParent(null);
            model.setBuild(null);
View Full Code Here

Examples of org.apache.maven.model.Build

     * @return the list of extra source directories.
     */
    private List getExtraSourceDirectories(final MavenProject project)
    {
        final List sourceDirectories = new ArrayList();
        final Build build = project.getBuild();
        if (build != null)
        {
            final PluginManagement pluginManagement = build.getPluginManagement();
            if (pluginManagement != null && !pluginManagement.getPlugins().isEmpty())
            {
                Plugin multiSourcePlugin = null;
                for (final Iterator iterator = pluginManagement.getPlugins().iterator(); iterator.hasNext();)
                {
View Full Code Here

Examples of org.apache.maven.model.Build

                            "");
                    final String repositoryDirectoryPath =
                        artifactPath.substring(
                            0,
                            artifactPath.indexOf(artifactFileName));
                    final Build build = project.getBuild();
                    final File workDirectory = new File(build.getDirectory());
                    final File distributionDirectory =
                        new File(new File(
                                directory,
                                this.artifactDirectory), repositoryDirectoryPath);
                    if (workDirectory.exists())
                    {
                        final String finalName = build.getFinalName();
                        final String[] names = workDirectory.list();
                        if (names != null)
                        {
                            final int numberOfArtifacts = names.length;
                            for (int ctr = 0; ctr < numberOfArtifacts; ctr++)
View Full Code Here

Examples of org.apache.maven.model.Build

        Map<String, String> managedVersions = new HashMap<String, String>();

        for ( int i = lineage.size() - 1; i >= 0; i-- )
        {
            Model model = lineage.get( i ).getModel();
            Build build = model.getBuild();
            if ( build != null )
            {
                for ( Plugin plugin : build.getPlugins() )
                {
                    String key = plugin.getKey();
                    if ( versions.get( key ) == null )
                    {
                        versions.put( key, plugin.getVersion() );
                        plugins.put( key, plugin );
                    }
                }
                PluginManagement mngt = build.getPluginManagement();
                if ( mngt != null )
                {
                    for ( Plugin plugin : mngt.getPlugins() )
                    {
                        String key = plugin.getKey();
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.