DearZh / useful-scripts

Some useful scripts in work

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitDiffEnhancer 基于git diff 处理增量包

license Java v1.8 Maven v3.5.3 Python v3.7

使用方法:
  python gitDiffEnhancer.py --pname=E:\IdeaProjects\kbase-weixin --ocid=02c678b --ncid=f7a4d39
参数说明:

--pname: 项目工作区路径 --ocid: older commit id --ncid:newer commit id

其他说明:
  1. 基于Maven3+JDK8 测试通过,对IDEA的非实时编译性做了处理
  2. 使用前先检查 git及mvn命令是否能使用
  3. pom.xml 需要配置maven-dependency-plugin插件

1. maven-dependency-plugin插件配置Demo

<plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-dependency-plugin</artifactId>
     <executions>
         <execution>
             <phase>package</phase>
             <goals>
                 <goal>copy-dependencies</goal>
             </goals>
         </execution>
     </executions>
     <configuration>
         <includeScope>compile</includeScope>
     </configuration>
</plugin>

About

Some useful scripts in work


Languages

Language:Python 75.3%Language:Shell 18.4%Language:Batchfile 6.3%