Examples of VersionInfo


Examples of org.jitterbit.integration.client.project.jitterpack.VersionInfo

    private JitterPackDescriptor createDescriptorFromData(Properties data, final String folderName, boolean encrypted)
                    throws IllegalDataFormatException {
        String projectName = readProjectName(data);
        String comment = readComment(data);
        Date created = readCreatedDate(data);
        VersionInfo versionInfo = readVersionInfo(data);
        boolean readOnly = isReadOnly(data);
        return new DefaultJitterPackDescriptor(projectName, versionInfo, folderName, created, comment, encrypted, readOnly);
    }
View Full Code Here

Examples of org.locationtech.geogig.api.porcelain.VersionInfo

        GeoGIG geogig = cli.getGeogig();
        if (geogig == null) {
            geogig = new GeoGIG();
        }
        this.console = cli.getConsole();
        VersionInfo info = geogig.command(VersionOp.class).call();

        try {
            printVersionProperty("Project Version", info.getProjectVersion());
            printVersionProperty("Build Time", info.getBuildTime());
            printVersionProperty("Build User Name", info.getBuildUserName());
            printVersionProperty("Build User Email", info.getBuildUserEmail());
            printVersionProperty("Git Branch", info.getBranch());
            printVersionProperty("Git Commit ID", info.getCommitId());
            printVersionProperty("Git Commit Time", info.getCommitTime());
            printVersionProperty("Git Commit Author Name", info.getCommitUserName());
            printVersionProperty("Git Commit Author Email", info.getCommitUserEmail());
            printVersionProperty("Git Commit Message", info.getCommitMessageFull());
        } catch (IOException e) {
            Throwables.propagate(e);
        }
    }
View Full Code Here

Examples of org.mindswap.pellet.utils.VersionInfo

            context.addHandler(new PelletDIGServer());

            // Start the http server
            server.start();

            VersionInfo vinfo = VersionInfo.getInstance();
            System.out.println();
            System.out.print( "PelletDIGServer " );
            System.out.print( "Version " + vinfo.getVersionString() );
            System.out.print( " (" + vinfo.getReleaseDate() + ")");
            System.out.println();
            System.out.println( "Port: " + port );
           
            log.fine( "Debug is enabled" );
        }
View Full Code Here

Examples of org.pentaho.platform.util.VersionInfo

  @GET
  @Path( "/show" )
  @Produces( TEXT_PLAIN )
  @Facet ( name = "Unsupported" )
  public Response getVersion() {
    VersionInfo versionInfo = VersionHelper.getVersionInfo( PentahoSystem.class );
    return Response.ok( versionInfo.getVersionNumber() ).type( MediaType.TEXT_PLAIN ).build();
  }
View Full Code Here

Examples of org.semanticweb.owlapi.util.VersionInfo

public class VerifyVersionInfoTestCase {

    @Test
    public void checkMatchVersion() throws Exception {
        // given
        VersionInfo info = VersionInfo.getVersionInfo();
        Document doc = DocumentBuilderFactory.newInstance()
                .newDocumentBuilder().parse(new File("pom.xml"));
        NodeList list = doc.getDocumentElement().getChildNodes();
        boolean found = false;
        for (int i = 0; i < list.getLength() && !found; i++) {
            Node n = list.item(i);
            if (n instanceof Element
                    && ((Element) n).getTagName().equals("version")) {
                String version = n.getTextContent();
                if (!version.equals(info.getVersion())) {
                    System.out
                            .println("VerifyVersionInfo.checkMatchVersion() WARNING: update the version in VersionInfo");
                }
                // assertEquals(version, info.getVersion());
                found = true;
            }
        }
        if (!found) {
            File file = new File("../pom.xml");
            if (file.exists()) {
                doc = DocumentBuilderFactory.newInstance().newDocumentBuilder()
                        .parse(file);
                list = doc.getDocumentElement().getChildNodes();
                found = false;
                for (int i = 0; i < list.getLength() && !found; i++) {
                    Node n = list.item(i);
                    if (n instanceof Element
                            && ((Element) n).getTagName().equals("version")) {
                        String version = n.getTextContent();
                        if (!version.equals(info.getVersion())) {
                            System.out
                                    .println("VerifyVersionInfo.checkMatchVersion() WARNING: update the version in VersionInfo");
                        }
                        // assertEquals(version, info.getVersion());
                        found = true;
View Full Code Here

Examples of org.zanata.apicompat.rest.dto.VersionInfo

    public void getVersionXml() {
        IVersionResource versionClient =
                super.createProxy(
                        createClientProxyFactory(TRANSLATOR, TRANSLATOR_KEY),
                        IVersionResource.class);
        VersionInfo versionInfo = versionClient.get().getEntity();

        assertThat(versionInfo.getVersionNo(), notNullValue());
        assertThat(versionInfo.getBuildTimeStamp(), notNullValue());
    }
View Full Code Here

Examples of org.zanata.rest.dto.VersionInfo

     * @param username username
     * @param apiKey user api key
     */
    public ZanataRestCaller(String username, String apiKey) {
        try {
            VersionInfo versionInfo = VersionUtility.getAPIVersionInfo();
            String baseUrl =
                    PropertiesHolder.getProperty(Constants.zanataInstance
                            .value());
            zanataProxyFactory =
                    new ZanataProxyFactory(new URI(baseUrl), username, apiKey,
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.