初始化项目结构,包括基本的文件和目录设置

此次提交创建了项目的基本文件和目录结构,涵盖了.gitignore文件、源代码的初始Java类、一个测试文件、一个配置文件(tianhe.yml)、以及Maven的项目对象模型(pom.xml)。这为项目的进一步开发打下了基础。
master
linbin 2024-09-02 21:46:56 +08:00
commit b01671d7f3
7 changed files with 165 additions and 0 deletions

10
.gitignore vendored 100644
View File

@ -0,0 +1,10 @@
#过滤target文件下生成的编译文件
target/
.project
.settings/
.metadata/
.classpath
*.MF
.idea
*.iml

25
pom.xml 100644
View File

@ -0,0 +1,25 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>tianhe</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>tianhe</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,13 @@
package org.tianhe;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

View File

@ -0,0 +1,39 @@
package org.tianhe.common;
public interface Command
{
/**
*
*
* @return
*/
CommandName name();
/**
* id
*
* @return
*/
String envId();
/**
* id id
*
* @return
*/
String agentId();
/**
*
*
* @return
*/
String commandId();
/**
* jfireSE 使 Base64便 http
*
* @return
*/
String content();
}

View File

@ -0,0 +1,6 @@
package org.tianhe.common;
public enum CommandName
{
}

View File

@ -0,0 +1,38 @@
package org.tianhe;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}

34
tianhe.yml 100644
View File

@ -0,0 +1,34 @@
Operation:
enable: true
download:
prefix: http://localhost:2000
datasource:
url: jdbc:mysql://localhost:3306/operation?useUnicode=true&characterEncoding=utf8&useSSL=false&&allowPublicKeyRetrieval=true
username: root
password: root
Agent:
enable: true
duration:
report: 100000
next_command: 1000
download:
mode: 2
size: 524288
upload:
size: 5242880
app:
cloudApp:
url: http://localhost:10081/cloudApp/endpoint
port: 10081
hosApp:
url: http://localhost:10086/config/endpoint
port: 10086
operation:
url: http://localhost:39999/api
env:
envId: TestId
agentId: 1
datasource:
url: jdbc:mysql://localhost:3306/chsdrg?useUnicode=true&characterEncoding=utf8&useSSL=false&&allowPublicKeyRetrieval=true
username: root
password: root