Skip to content

Commit cee5b04

Browse files
authored
Merge pull request #19 from veryben/master
添加.gitignore文件并修复IniFileReader读取参数Bug和支持从文件系统加载配置
2 parents 733ccc7 + 6941700 commit cee5b04

Some content is hidden

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

43 files changed

+933
-877
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
bin
2+
build
3+
out
4+
target
5+
.settings
6+
.classpath
7+
.project
8+
.gradle
9+
.DS_Store
10+
*.iml
11+
*.ipr
12+
*.iws
13+
*.log
14+
.idea

src/HISTORY renamed to HISTORY

File renamed without changes.

src/README renamed to README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
Copyright (C) 2008 Happy Fish / YuQing
22

3-
FastDFS Java Client API may be copied only under the terms of
3+
FastDFS Java Client API may be copied only under the terms of
44
the BSD license.
55
Please visit the FastDFS Home Page for more detail.
66
English language: http://english.csource.org/
77
Chinese language: http://www.csource.org/
88

99

10-
The jar file is compiled by JDK1.5, you can download the last version
10+
The jar file is compiled by JDK1.5, you can download the last version
1111
from google code: http://code.google.com/p/fastdfs/downloads/list
1212

1313
run the FastDFS Java Client test:
1414
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.TestClient <config_filename> <upload_filename>
1515

1616
eg.:
17-
java -cp fastdfs_client_v1.25.jar org.csource.fastdfs.test.TestClient fdfs_client.conf c:\windows\system32\notepad.exe
17+
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.TestClient fdfs_client.conf c:\windows\system32\notepad.exe
1818

1919
or:
20-
java -cp fastdfs_client_v1.25.jar org.csource.fastdfs.test.TestClient fdfs_client.conf /usr/include/stdlib.h
20+
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.TestClient fdfs_client.conf /usr/include/stdlib.h
2121

2222

2323
run the FastDFS monitor:
2424
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.Monitor <config_filename>
2525

2626
eg.:
27-
java -cp fastdfs_client_v1.25.jar org.csource.fastdfs.test.Monitor fdfs_client.conf
27+
java -cp <fastdfs_client_jar_filename> org.csource.fastdfs.test.Monitor fdfs_client.conf

build.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
3+
<project name="fastdfs-client-java" default="package" basedir=".">
4+
5+
<target name="init">
6+
<property name="project.name" value="fastdfs-client-java"/>
7+
<property name="project.version" value="1.27-SNAPSHOT"/>
8+
<property name="project.java" value="${basedir}/src/main/java"/>
9+
<property name="project.resources" value="${basedir}/src/main/resources"/>
10+
<property name="project.build" value="${basedir}/build"/>
11+
<property name="project.classes" value="${project.build}/classes"/>
12+
<property name="target.jar.file" value="${project.build}/${project.name}-${project.version}.jar"/>
13+
</target>
14+
15+
<target name="compile" depends="init">
16+
<mkdir dir="${project.classes}"/>
17+
<javac destdir="${project.classes}" encoding="UTF-8" failonerror="true" debug="on">
18+
<src path="${project.java}"/>
19+
</javac>
20+
<copy todir="${project.classes}">
21+
<fileset dir="${project.resources}" includes="**/*"/>
22+
</copy>
23+
</target>
24+
25+
<target name="package" depends="compile">
26+
<jar jarfile="${target.jar.file}"
27+
basedir="${project.classes}"
28+
includes="**/*">
29+
</jar>
30+
</target>
31+
32+
<target name="clean" depends="init">
33+
<delete dir="${project.build}"/>
34+
</target>
35+
36+
</project>
37+

fdfs_client.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
connect_timeout = 2
2+
network_timeout = 30
3+
charset = UTF-8
4+
http.tracker_http_port = 8080
5+
http.anti_steal_token = no
6+
http.secret_key = FastDFS1234567890
7+
8+
tracker_server = 10.0.11.247:22122
9+
tracker_server = 10.0.11.248:22122
10+
tracker_server = 10.0.11.249:22122

pom.xml

Lines changed: 29 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,35 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
3+
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>org.csource</groupId>
6-
<artifactId>fastdfs-client-java</artifactId>
7-
<version>1.26</version>
8-
<name>fastdfs-client-java</name>
9-
<description>fastdfs client with java</description>
10-
<packaging>jar</packaging>
5+
<groupId>org.csource</groupId>
6+
<artifactId>fastdfs-client-java</artifactId>
7+
<version>1.27-SNAPSHOT</version>
8+
<name>fastdfs-client-java</name>
9+
<description>fastdfs client for java</description>
10+
<packaging>jar</packaging>
1111

12-
<properties>
13-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15-
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
16-
</properties>
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
15+
<maven.test.failure.ignore>true</maven.test.failure.ignore>
16+
<maven.test.skip>true</maven.test.skip>
17+
<jdk.version>1.5</jdk.version>
18+
</properties>
19+
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>3.5.1</version>
26+
<configuration>
27+
<encoding>UTF-8</encoding>
28+
<source>${jdk.version}</source>
29+
<target>${jdk.version}</target>
30+
</configuration>
31+
</plugin>
32+
</plugins>
33+
</build>
1734

18-
<build>
19-
<sourceDirectory>src</sourceDirectory>
20-
<plugins>
21-
<plugin>
22-
<groupId>org.apache.maven.plugins</groupId>
23-
<artifactId>maven-compiler-plugin</artifactId>
24-
<version>2.5.1</version>
25-
<configuration>
26-
<encoding>UTF-8</encoding>
27-
<skip>true</skip>
28-
<source>1.5</source>
29-
<target>1.5</target>
30-
</configuration>
31-
</plugin>
32-
<plugin>
33-
<groupId>org.apache.maven.plugins</groupId>
34-
<artifactId>maven-jar-plugin</artifactId>
35-
<version>2.4</version>
36-
<executions>
37-
<execution>
38-
<phase>package</phase>
39-
<goals>
40-
<goal>jar</goal>
41-
</goals>
42-
<configuration>
43-
<excludes>
44-
<exclude>**/test/*.class</exclude>
45-
</excludes>
46-
</configuration>
47-
</execution>
48-
</executions>
49-
</plugin>
50-
</plugins>
51-
</build>
5235
</project>

src/build.xml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)