Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static void setConfigSpec(String viewTag, String configSpecFilePath) {
        try {
            Process pr = Runtime.getRuntime().exec("cleartool setcs -tag " + viewTag + " " + configSpecFilePath);
            pr.waitFor();
            pr.destroy();
        } catch (Exception e) {
            throw new RuntimeException("cleartool setcs error!", e);
        }

    }
}