Skip to content

Commit 3662967

Browse files
committed
java 执行shell 功能
1 parent 127a699 commit 3662967

5 files changed

Lines changed: 121 additions & 0 deletions

File tree

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,7 @@
109109
<module>study-spring-boot-jpa</module>
110110
<module>study-json</module>
111111
<module>study-spring-boot-multi-datasource</module>
112+
<module>study-spring-boot-env</module>
113+
<module>study-java-shell</module>
112114
</modules>
113115
</project>

study-java-shell/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# study-java-shell #
2+
study-java-shell 学习笔记
3+
4+
## 参考链接 ##
5+
- blaze [https://github.com/fizzed/blaze](https://github.com/fizzed/blaze)
6+
- cloudterm [https://github.com/javaterminal/cloudterm](https://github.com/javaterminal/cloudterm)
7+
8+
- ExecOSCommand [https://github.com/SpencerZhang/ExecOSCommand](https://github.com/SpencerZhang/ExecOSCommand)

study-java-shell/pom.xml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
<parent>
6+
<artifactId>study</artifactId>
7+
<groupId>com.bage</groupId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>study-java-shell</artifactId>
13+
14+
<name>study-java-shell</name>
15+
<!-- FIXME change it to the project's website -->
16+
<url>http://www.example.com</url>
17+
18+
<properties>
19+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
<maven.compiler.source>1.7</maven.compiler.source>
21+
<maven.compiler.target>1.7</maven.compiler.target>
22+
</properties>
23+
24+
<dependencies>
25+
<dependency>
26+
<groupId>junit</groupId>
27+
<artifactId>junit</artifactId>
28+
<version>4.11</version>
29+
<scope>test</scope>
30+
</dependency>
31+
</dependencies>
32+
33+
<build>
34+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
35+
<plugins>
36+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
37+
<plugin>
38+
<artifactId>maven-clean-plugin</artifactId>
39+
<version>3.1.0</version>
40+
</plugin>
41+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
42+
<plugin>
43+
<artifactId>maven-resources-plugin</artifactId>
44+
<version>3.0.2</version>
45+
</plugin>
46+
<plugin>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<version>3.8.0</version>
49+
</plugin>
50+
<plugin>
51+
<artifactId>maven-surefire-plugin</artifactId>
52+
<version>2.22.1</version>
53+
</plugin>
54+
<plugin>
55+
<artifactId>maven-jar-plugin</artifactId>
56+
<version>3.0.2</version>
57+
</plugin>
58+
<plugin>
59+
<artifactId>maven-install-plugin</artifactId>
60+
<version>2.5.2</version>
61+
</plugin>
62+
<plugin>
63+
<artifactId>maven-deploy-plugin</artifactId>
64+
<version>2.8.2</version>
65+
</plugin>
66+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
67+
<plugin>
68+
<artifactId>maven-site-plugin</artifactId>
69+
<version>3.7.1</version>
70+
</plugin>
71+
<plugin>
72+
<artifactId>maven-project-info-reports-plugin</artifactId>
73+
<version>3.0.0</version>
74+
</plugin>
75+
</plugins>
76+
</pluginManagement>
77+
</build>
78+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.bage;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.bage;
2+
3+
import static org.junit.Assert.assertTrue;
4+
5+
import org.junit.Test;
6+
7+
/**
8+
* Unit test for simple App.
9+
*/
10+
public class AppTest
11+
{
12+
/**
13+
* Rigorous Test :-)
14+
*/
15+
@Test
16+
public void shouldAnswerWithTrue()
17+
{
18+
assertTrue( true );
19+
}
20+
}

0 commit comments

Comments
 (0)