Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dbdf41d

Browse files
committed
添加gradle的demo
添加ant打包的demo
1 parent f054fff commit dbdf41d

File tree

9 files changed

+167
-0
lines changed

9 files changed

+167
-0
lines changed

gradle-demo/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
group 'com.jay'
2+
version '1.0-SNAPSHOT'
3+
4+
apply plugin: 'java'
5+
apply plugin: 'war'
6+
7+
sourceCompatibility = 1.8
8+
9+
repositories {
10+
mavenCentral()
11+
}
12+
13+
dependencies {
14+
testCompile group: 'junit', name: 'junit', version: '4.11'
15+
testCompile group: 'junit', name: 'junit', version: '4.12'
16+
}

gradle-demo/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'gradle-demo'
2+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
5+
version="3.1">
6+
</web-app>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<%--
2+
Created by IntelliJ IDEA.
3+
User: maerfeifei
4+
Date: 2018/5/20
5+
Time: 下午4:21
6+
To change this template use File | Settings | File Templates.
7+
--%>
8+
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
9+
<html>
10+
<head>
11+
<title>$Title$</title>
12+
</head>
13+
<body>
14+
$END$
15+
</body>
16+
</html>

sayhellouseJarAnt/pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" 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+
<groupId>com.jay</groupId>
8+
<artifactId>sayhellouseJarAnt</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>pom</packaging>
11+
12+
<!-- FIXME change it to the project's website -->
13+
<url>http://www.example.com</url>
14+
15+
<distributionManagement>
16+
<site>
17+
<id>website</id>
18+
<url>scp://webhost.company.com/www/website</url>
19+
</site>
20+
</distributionManagement>
21+
22+
<properties>
23+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24+
</properties>
25+
26+
<build>
27+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
28+
<plugins>
29+
<plugin>
30+
<artifactId>maven-clean-plugin</artifactId>
31+
<version>3.0.0</version>
32+
</plugin>
33+
<plugin>
34+
<artifactId>maven-site-plugin</artifactId>
35+
<version>3.7</version>
36+
</plugin>
37+
<plugin>
38+
<artifactId>maven-project-info-reports-plugin</artifactId>
39+
<version>2.9</version>
40+
</plugin>
41+
</plugins>
42+
</pluginManagement>
43+
</build>
44+
45+
<reporting>
46+
<plugins>
47+
<plugin>
48+
<artifactId>maven-project-info-reports-plugin</artifactId>
49+
</plugin>
50+
</plugins>
51+
</reporting>
52+
</project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-----
2+
Title Here
3+
-----
4+
Author Here
5+
-----
6+
Date Here (AAAA-MM-DD)
7+
-----
8+
9+
Maven Site for your project
10+
11+
Congratulations! If you are looking at this page then you have successfully generated a
12+
template site employing the simple site archetype and you have run:
13+
14+
+-----+
15+
16+
mvn site
17+
18+
+-----+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Markdown Format with Velocity works
2+
---------------
3+
4+
#[[###]]# But Markdown conflicts with Velocity on `${esc.h}${esc.h}` syntax
5+
6+
Since `${esc.h}${esc.h}` denotes a
7+
[single line comment](http://velocity.apache.org/engine/1.7/vtl-reference.html#single-line-comments) in Velocity,
8+
Markdown headers using this syntax are suppressed from generated content.
9+
10+
You can use [unparsed content syntax](http://velocity.apache.org/engine/1.7/vtl-reference.html#unparsed-content)
11+
`${esc.h}[[#[[##]]#]]${esc.h}` or
12+
[escape tool](http://velocity.apache.org/tools/2.0/apidocs/org/apache/velocity/tools/generic/EscapeTool.html)
13+
like `${esc.d}{esc.h}${esc.d}{esc.h}`.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Markdown Format works
2+
---------------
3+
4+
You can write your documentation in Markdown...
5+
6+
<!-- MACRO{toc|fromDepth=1|toDepth=2} -->
7+
8+
### Subsection
9+
10+
If you want to filter content with Velocity (files ending in `.vm`), please have a look at
11+
explanations on [Markdown conflict with Velocity on `##` syntax](./markdown-velocity.html).
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<project name="${artifactId}" xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd">
5+
<bannerLeft>
6+
<name>${artifactId}</name>
7+
<src>https://maven.apache.org/images/apache-maven-project.png</src>
8+
<href>https://www.apache.org/</href>
9+
</bannerLeft>
10+
11+
<bannerRight>
12+
<src>https://maven.apache.org/images/maven-logo-black-on-white.png</src>
13+
<href>https://maven.apache.org/</href>
14+
</bannerRight>
15+
16+
<skin>
17+
<groupId>org.apache.maven.skins</groupId>
18+
<artifactId>maven-fluido-skin</artifactId>
19+
<version>1.7</version>
20+
</skin>
21+
22+
<body>
23+
<links>
24+
<item name="Maven" href="https://maven.apache.org/"/>
25+
</links>
26+
27+
<menu name="Documentation">
28+
<!--<item name="Xdoc Example" href="xdoc.html"/>-->
29+
</menu>
30+
31+
<menu ref="reports" />
32+
</body>
33+
</project>

0 commit comments

Comments
 (0)