Commit 8d0c9f65 authored by zhouzihao's avatar zhouzihao

dev-添加全文覆盖的方法

parent 19d06489
......@@ -2,6 +2,7 @@
var _ = require('lodash');
const execa = require('execa');
const replace = require('replace-in-file');
const fs = require('fs');
/**
* 构建Java项目
......@@ -97,6 +98,7 @@ const buildJava = async (projectObj, envObj, typeObj, configList, branch, versio
break;
case 2:
// 覆盖模式
fs.writeFileSync(`${project_dir}/${config.path}`, config.content);
break;
default:
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