Commit 8d0c9f65 authored by zhouzihao's avatar zhouzihao

dev-添加全文覆盖的方法

parent 19d06489
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
var _ = require('lodash'); var _ = require('lodash');
const execa = require('execa'); const execa = require('execa');
const replace = require('replace-in-file'); const replace = require('replace-in-file');
const fs = require('fs');
/** /**
* 构建Java项目 * 构建Java项目
...@@ -97,6 +98,7 @@ const buildJava = async (projectObj, envObj, typeObj, configList, branch, versio ...@@ -97,6 +98,7 @@ const buildJava = async (projectObj, envObj, typeObj, configList, branch, versio
break; break;
case 2: case 2:
// 覆盖模式 // 覆盖模式
fs.writeFileSync(`${project_dir}/${config.path}`, config.content);
break; break;
default: default:
console.warn("Unknow Config type"); console.warn("Unknow Config type");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment