Skip to content

Commit 7202f00

Browse files
author
liwenlong
committed
I just added a IdePrettyCommentGenerator file on the basis of the original mybatis-generator-core.
1 parent 97ec6d1 commit 7202f00

File tree

308 files changed

+47438
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+47438
-0
lines changed

pom.xml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.mybatis.generator</groupId>
9+
<artifactId>mybatis-generator</artifactId>
10+
<version>1.3.6</version>
11+
</parent>
12+
13+
<groupId>com.lwl</groupId>
14+
<artifactId>mybatis-generator-tool</artifactId>
15+
<version>1.3.6</version>
16+
17+
<properties>
18+
<github.global.server>github</github.global.server>
19+
</properties>
20+
21+
<dependencies>
22+
<dependency>
23+
<groupId>log4j</groupId>
24+
<artifactId>log4j</artifactId>
25+
<scope>provided</scope>
26+
<optional>true</optional>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.slf4j</groupId>
30+
<artifactId>slf4j-api</artifactId>
31+
<scope>provided</scope>
32+
<optional>true</optional>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.apache.logging.log4j</groupId>
36+
<artifactId>log4j-api</artifactId>
37+
<scope>provided</scope>
38+
<optional>true</optional>
39+
</dependency>
40+
<dependency>
41+
<groupId>commons-logging</groupId>
42+
<artifactId>commons-logging</artifactId>
43+
<scope>provided</scope>
44+
<optional>true</optional>
45+
</dependency>
46+
<dependency>
47+
<groupId>org.apache.ant</groupId>
48+
<artifactId>ant</artifactId>
49+
<scope>provided</scope>
50+
<optional>true</optional>
51+
</dependency>
52+
<!-- <dependency>
53+
<groupId>junit</groupId>
54+
<artifactId>junit</artifactId>
55+
<scope>test</scope>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.hsqldb</groupId>
59+
<artifactId>hsqldb</artifactId>
60+
<scope>test</scope>
61+
</dependency>-->
62+
<!-- <dependency>
63+
<groupId>com.github.javaparser</groupId>
64+
<artifactId>javaparser-core</artifactId>
65+
<scope>test</scope>
66+
</dependency>-->
67+
</dependencies>
68+
69+
<distributionManagement>
70+
<repository>
71+
<id>com.lwl</id>
72+
<url>file://${project.build.directory}/mvn-repo</url>
73+
</repository>
74+
</distributionManagement>
75+
76+
77+
<build>
78+
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-compiler-plugin</artifactId>
83+
<version>3.5.1</version>
84+
<configuration>
85+
<source>1.8</source>
86+
<target>1.8</target>
87+
<encoding>UTF-8</encoding>
88+
</configuration>
89+
</plugin>
90+
91+
<plugin>
92+
<groupId>com.github.github</groupId>
93+
<artifactId>site-maven-plugin</artifactId>
94+
<version>0.12</version>
95+
<configuration>
96+
<message>Maven artifacts for ${project.version}</message>
97+
<noJekyll>true</noJekyll>
98+
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory><!--本地jar地址-->
99+
<branch>refs/heads/master</branch><!--分支-->
100+
<merge>true</merge>
101+
<includes>
102+
<include>**/*</include>
103+
</includes>
104+
<repositoryName>maven-repo</repositoryName><!--对应github上创建的仓库名称 name-->
105+
<repositoryOwner>brucelwl</repositoryOwner><!--github 仓库所有者-->
106+
</configuration>
107+
<executions>
108+
<execution>
109+
<goals>
110+
<goal>site</goal>
111+
</goals>
112+
<phase>deploy</phase>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
117+
</plugins>
118+
119+
120+
</build>
121+
122+
</project>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Copyright 2006-2016 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.mybatis.generator.ant;
17+
18+
import org.apache.tools.ant.Project;
19+
import org.apache.tools.ant.Task;
20+
import org.mybatis.generator.internal.NullProgressCallback;
21+
22+
/**
23+
* This callback logs progress messages with the Ant logger.
24+
*
25+
* @author Jeff Butler
26+
*/
27+
public class AntProgressCallback extends NullProgressCallback {
28+
29+
/** The task. */
30+
private Task task;
31+
32+
/** The verbose. */
33+
private boolean verbose;
34+
35+
/**
36+
* Instantiates a new ant progress callback.
37+
*
38+
* @param task
39+
* the task
40+
* @param verbose
41+
* the verbose
42+
*/
43+
public AntProgressCallback(Task task, boolean verbose) {
44+
super();
45+
this.task = task;
46+
this.verbose = verbose;
47+
}
48+
49+
/* (non-Javadoc)
50+
* @see org.mybatis.generator.internal.NullProgressCallback#startTask(java.lang.String)
51+
*/
52+
@Override
53+
public void startTask(String subTaskName) {
54+
if (verbose) {
55+
task.log(subTaskName, Project.MSG_VERBOSE);
56+
}
57+
}
58+
}

0 commit comments

Comments
 (0)