예제 #1
0
 public static void writeBaseDateFile(
     String baseDateStr, final AbstractBuild<?, ?> shimeBuild, PrintStream out) {
   WriteUtils.writeFile(
       baseDateStr.getBytes(),
       new File(shimeBuild.getRootDir().getAbsolutePath(), PMConstants.DATE_DAT_FILENAME));
   out.printf(
       "基準日ファイル(%s)をビルド #%s に書き込みました。\n", PMConstants.DATE_DAT_FILENAME, shimeBuild.getNumber());
   out.printf("書き込み先: %s \n", shimeBuild.getRootDir().getAbsolutePath());
 }
예제 #2
0
 public static void writeSeriesFile(
     AbstractProject<?, ?> project,
     String baseDateStr,
     String fileName,
     final AbstractBuild<?, ?> shimeBuild,
     PrintStream out,
     PrintStream err) {
   // stdout.printf("[%s]\n",
   // shimeBuild.getRootDir().getAbsolutePath());
   // stdout.printf("[%s]:[%s]:[%s]\n", baseDateStr,
   // shimeBuild.getNumber(), shimeBuild.getId());
   String prevData = PMUtils.findSeriesFile(project, fileName, out, err);
   String currentData = PMUtils.appendData(prevData, shimeBuild.getNumber(), baseDateStr);
   File file = new File(shimeBuild.getRootDir().getAbsolutePath(), fileName);
   WriteUtils.writeFile(currentData.getBytes(), file);
   out.printf("EVM時系列情報ファイル(%s)に情報を追記してビルド #%s に書き込みました。\n", fileName, shimeBuild.getNumber());
   out.printf("書き込み先: #%s \n", shimeBuild.getRootDir().getAbsolutePath());
 }