markma 4 years ago
commit 240d949199

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8

@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=false

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.example</groupId>
<artifactId>demo</artifactId>
<version>1.0-SNAPSHOT</version>
<name>demo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.example.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,80 @@
package com.example;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class App {
public static void main(String[] args) throws IOException {
String filenamein = new String();
String filenameto = new String();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("please enter the parent dir");
filenamein = br.readLine();
System.out.println("please enter the child dir");
filenameto = br.readLine();
File src = new File(filenamein);
File des = new File(filenameto);
try {
if(des.mkdirs())
{
System.out.println("this child path is not a extented path but we still creat it to run");
System.out.println("if it is not the one you wanna please del it later");
}
} catch (Exception e) {
e.printStackTrace();
}
copy(src, des);
System.out.println("copy successfully!");
}
public static void copy(File src, File des) {
File[] fileArray = src.listFiles();
if(fileArray != null) {
for(File src1 : fileArray) {
File des1 = new File(des, src1.getName());
if(src1.isDirectory()) {
des1.mkdir();
copy(src1, des1);//是文件夹则递归
}else {
write(src1, des1);
}
}
}
}
public static void write(File src, File des) {
FileInputStream fis = null;
FileOutputStream fos = null;
try {
fis = new FileInputStream(src);
fos = new FileOutputStream(des);
byte[] bys = new byte[1024];
int len = 0;
while((len = fis.read(bys)) != -1) {
fos.write(bys, 0, len);
}
}catch(FileNotFoundException e) {
e.printStackTrace();
}catch(IOException e){
e.printStackTrace();
}finally {
try {
fis.close();
fos.close();
}catch(IOException e){
e.printStackTrace();
}
}
}
}
//函数解析
//listFile() return a file list point to this dir
//getname return real path of a absolute name
//mkdir make a dir in this name

@ -0,0 +1,20 @@
package com.example;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}

@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Current File",
"request": "launch",
"mainClass": "${file}"
"encoding": "UTF-8"
},
{
"type": "java",
"name": "Launch App",
"request": "launch",
"mainClass": "com.example.App",
"projectName": "demo"
}
]
}

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

@ -0,0 +1,6 @@
<factorypath>
<factorypathentry kind="VARJAR" id="M2_REPO/org/projectlombok/lombok/1.18.20/lombok-1.18.20.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/log4j/log4j/1.2.17/log4j-1.2.17.jar" enabled="true" runInBatchMode="false"/>
</factorypath>

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

@ -0,0 +1,4 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8

@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations
org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations

@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7

@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1

@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.example</groupId>
<artifactId>demo</artifactId>
<version>1.0-SNAPSHOT</version>
<name>demo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.example.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,137 @@
package com.example;
import lombok.extern.slf4j.Slf4j;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.RandomAccessFile;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
@Slf4j
public class App {
public static void main(String[] args) throws ParseException,IOException {
boolean havern = true;
String[] orderlist ={"name","hp","power","brithday","deathday","sword","thname"};
Character[] gen = new Character[20];
int num =0;
String filemane = new String();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("please enter the path of file in one line");
filemane = br.readLine();
havern = lastLineisCRLF(filemane);
File f = new File(filemane);
BufferedReader br2 = new BufferedReader (new FileReader(f.getAbsolutePath()));
String line = null;
while((line=br2.readLine())!=null){
System.out.println("hello");
int hps=0;
int powers=0;
Date briths=new Date();
Date deaths=new Date();
StringBuilder bf=new StringBuilder();
bf.append(line);
StringBuilder[] inset = new StringBuilder[8];
int counter = 0;
while(counter!=7){
while(bf.indexOf(" ")==0){
bf.deleteCharAt(0);
}
// System.out.format("%d %s\n",counter,bf);
// System.out.println(bf.subSequence(0,bf.indexOf(" ")));
inset[counter]=new StringBuilder();
try {
(inset[counter])=new StringBuilder(bf.subSequence(0,bf.indexOf(" ")));
bf.delete(0,bf.indexOf(" "));
} catch (Exception e) {
inset[counter].append(bf);
}
// System.out.println(inset[counter]);
counter++;
}
hps= (Integer.valueOf(inset[1].toString())).intValue();
powers= (Integer.valueOf(inset[2].toString())).intValue();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
briths=sdf.parse(inset[3].toString());
deaths=sdf.parse(inset[4].toString());
gen[num]=new Character();
gen[num].set(inset[0],hps,powers,briths,deaths,inset[5],inset[6]);
num++;
}
br2.close();
while(true){
boolean flag=true;
System.out.println("enter the name you want checkend to quitadd to write");
String order = new String();
order = br.readLine();
if(order.equals("end")) break;
if(order.equals("add")){
File fo = new File(filemane);
FileWriter fw = new FileWriter(fo,true);
BufferedWriter bw = new BufferedWriter(fw);
for(int i =0 ; i<7;i++){
String sysin = new String();
System.out.format("please enter %s you wanna set\n",orderlist[i]);
if(i==3 || i==4) System.out.println("the format is yyyy/mm/dd");
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
sysin=bf.readLine();
if(!havern) bw.write("\n");
bw.write(sysin);
bw.write(" ");
havern = true;
}
bw.write("\n");
bw.close();
continue;
}
StringBuilder inde = new StringBuilder();
for(int i=0;i<num;i++){
inde = gen[i].getname();
if(order.equals(inde.toString())){
show(gen[i]);
flag = !flag;
}
}
if (flag)
System.out.println("no such one press any key to continue");
}
}
public static void show(Character str) throws ParseException {
System.out.format("名讳 %s\n",str.getname());
System.out.format("血量 %d\n",str.gethp());
System.out.format("武力值 %d\n",str.getpower());
System.out.format("武器 %s\n",str.getsword());
System.out.print("生 ");
System.out.println(str.getbirth());
System.out.print("卒 ");
System.out.println(str.getdeath());
System.out.format("绰号 %s\n",str.getthname());
}
public static boolean lastLineisCRLF(String filename) {
RandomAccessFile raf = null;
try {
raf = new RandomAccessFile(filename, "r");
long pos = raf.length() - 2;
if (pos < 0) return false; // too short
raf.seek(pos);
return raf.read()=='\r' || raf.read() == '\n';
} catch (IOException e) {
return false;
} finally {
if (raf != null) try {
raf.close();
} catch (IOException ignored) {
}
}
}
}

@ -0,0 +1,106 @@
package com.example;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Character {
private StringBuilder name;
private int hp;
private int power;
private StringBuilder sword;
private Date brith;
private Date death;
private StringBuilder thname;
public void set(StringBuilder str,int hps,int powers,Date briths,Date deaths, StringBuilder swords,StringBuilder othername){
this.name = str;
this.hp=hps;
this.power=powers;
this.sword=swords;
this.brith=briths;
this.death=deaths;
this.thname=othername;
}
public StringBuilder getname(){
try {
// System.out.format("名讳 %s\n",name);
return name;
} catch (Exception e) {
StringBuilder ss = new StringBuilder("Noname");
System.out.format("nothing was set");
return ss;
}
}
public int gethp(){
try {
// System.out.format("血量 %d\n",hp);
return hp;
} catch (Exception e) {
System.out.format("nothing was set");
return 0;
}
}
public int getpower(){
try {
// System.out.format("武力值 %d\n",power);
return power;
} catch (Exception e) {
System.out.format("nothing was set");
return 0;
}
}
public StringBuilder getsword(){
try {
// System.out.format("武器 %s\n",sword);
return sword;
} catch (Exception e) {
StringBuilder ss = new StringBuilder("Nosword");
System.out.format("nothing was set");
return ss;
}
}
public Date getbirth() throws ParseException{
try {
// System.out.print("生 ");
// System.out.println(brith);
return brith;
} catch (Exception e) {
String sd = new String("0000/00/00");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
Date sdd = sdf.parse(sd);
System.out.format("nothing was set");
return sdd;
}
}
public Date getdeath() throws ParseException{
try {
// System.out.print("卒 ");
// System.out.println(death);
return death;
} catch (Exception e) {
String sd = new String("0000/00/00");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd");
Date sdd = sdf.parse(sd);
System.out.format("nothing was set");
return sdd;
}
}
public StringBuilder getthname(){
try {
// System.out.format("绰号 %s\n",thname);
return thname;
} catch (Exception e) {
StringBuilder ss = new StringBuilder("Nosword");
System.out.format("nothing was set");
return ss;
}
}
}

@ -0,0 +1,3 @@
gy 999 999 0200/01/12 0270/01/01 青龙偃月刀 关二爷
zf 888 888 0200/01/12 0270/01/01 丈八蛇矛 俺也一样
phj 1 1 0200/01/12 0270/01/01 短剑 杂修

@ -0,0 +1,20 @@
package com.example;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
}

@ -0,0 +1,3 @@
gy 999 999 0200/01/12 0270/01/01 青龙偃月刀 关二爷
zf 888 888 0200/01/12 0270/01/01 丈八蛇矛 俺也一样
phj 1 1 0200/01/12 0270/01/01 短剑 杂修

@ -0,0 +1,5 @@
#Generated by Apache Maven
#Wed Aug 18 10:54:29 CST 2021
version=1.0-SNAPSHOT
groupId=com.example
artifactId=demo

@ -0,0 +1 @@
d:\desktop\doc_for_java\demo\src\main\java\com\example\App.java

@ -0,0 +1 @@
d:\desktop\doc_for_java\demo\src\test\java\com\example\AppTest.java

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite tests="1" failures="0" name="com.example.AppTest" time="0.001" errors="0" skipped="0">
<properties>
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
<property name="sun.boot.library.path" value="D:\java\jre\bin"/>
<property name="java.vm.version" value="25.241-b07"/>
<property name="java.vm.vendor" value="Oracle Corporation"/>
<property name="maven.multiModuleProjectDirectory" value="D:\desktop\doc_for_java\demo"/>
<property name="java.vendor.url" value="http://java.oracle.com/"/>
<property name="path.separator" value=";"/>
<property name="guice.disable.misplaced.annotation.check" value="true"/>
<property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
<property name="file.encoding.pkg" value="sun.io"/>
<property name="user.script" value=""/>
<property name="user.country" value="CN"/>
<property name="sun.java.launcher" value="SUN_STANDARD"/>
<property name="sun.os.patch.level" value=""/>
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
<property name="user.dir" value="D:\desktop\doc_for_java\demo"/>
<property name="java.runtime.version" value="1.8.0_241-b07"/>
<property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment"/>
<property name="java.endorsed.dirs" value="D:\java\jre\lib\endorsed"/>
<property name="os.arch" value="amd64"/>
<property name="java.io.tmpdir" value="C:\Users\HUSEN~1\AppData\Local\Temp\"/>
<property name="line.separator" value="
"/>
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
<property name="user.variant" value=""/>
<property name="os.name" value="Windows 10"/>
<property name="classworlds.conf" value="D:\shixi\apache-maven-3.8.1\bin\..\bin\m2.conf"/>
<property name="sun.jnu.encoding" value="GBK"/>
<property name="java.library.path" value="D:\java\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\shixi\bin;C:\Program Files\TortoiseSVN\bin;D:\shixi\nvm;C:\Program Files\nodejs;D:\java\bin;D:\java\jre\bin;D:\shixi\apache-maven-3.8.1\bin;D:\shixi\Git\cmd;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\Hu Sen\AppData\Local\Microsoft\WindowsApps;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\Program Files\Bandizip\;D:\shixi\nvm;C:\Program Files\nodejs;D:\microsoft\Microsoft VS Code\bin;."/>
<property name="maven.conf" value="D:\shixi\apache-maven-3.8.1\bin\../conf"/>
<property name="java.specification.name" value="Java Platform API Specification"/>
<property name="java.class.version" value="52.0"/>
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
<property name="os.version" value="10.0"/>
<property name="library.jansi.path" value="D:\shixi\apache-maven-3.8.1\bin\..\lib\jansi-native"/>
<property name="user.home" value="C:\Users\Hu Sen"/>
<property name="user.timezone" value="Asia/Shanghai"/>
<property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob"/>
<property name="java.specification.version" value="1.8"/>
<property name="file.encoding" value="GBK"/>
<property name="user.name" value="Hu Sen"/>
<property name="java.class.path" value="D:\shixi\apache-maven-3.8.1\bin\..\boot\plexus-classworlds-2.6.0.jar"/>
<property name="java.vm.specification.version" value="1.8"/>
<property name="sun.arch.data.model" value="64"/>
<property name="java.home" value="D:\java\jre"/>
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher package -f d:\desktop\doc_for_java\demo\pom.xml"/>
<property name="java.specification.vendor" value="Oracle Corporation"/>
<property name="user.language" value="zh"/>
<property name="awt.toolkit" value="sun.awt.windows.WToolkit"/>
<property name="java.vm.info" value="mixed mode"/>
<property name="java.version" value="1.8.0_241"/>
<property name="java.ext.dirs" value="D:\java\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext"/>
<property name="sun.boot.class.path" value="D:\java\jre\lib\resources.jar;D:\java\jre\lib\rt.jar;D:\java\jre\lib\sunrsasign.jar;D:\java\jre\lib\jsse.jar;D:\java\jre\lib\jce.jar;D:\java\jre\lib\charsets.jar;D:\java\jre\lib\jfr.jar;D:\java\jre\classes"/>
<property name="sun.stderr.encoding" value="cp65001"/>
<property name="java.vendor" value="Oracle Corporation"/>
<property name="maven.home" value="D:\shixi\apache-maven-3.8.1\bin\.."/>
<property name="file.separator" value="\"/>
<property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
<property name="sun.cpu.endian" value="little"/>
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
<property name="sun.stdout.encoding" value="cp65001"/>
<property name="sun.desktop" value="windows"/>
<property name="sun.cpu.isalist" value="amd64"/>
</properties>
<testcase classname="com.example.AppTest" name="shouldAnswerWithTrue" time="0.001"/>
</testsuite>

@ -0,0 +1,4 @@
-------------------------------------------------------------------------------
Test set: com.example.AppTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec
Loading…
Cancel
Save