Skip to content

Commit f73d29e

Browse files
authored
Merge pull request #268 from NigelWu95/dev
Dev
2 parents 63e2e68 + 1362979 commit f73d29e

62 files changed

Lines changed: 22 additions & 11 deletions

Some content is hidden

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

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Gradle template
22
.gradle
3-
/build/
3+
build/
44

55
### Maven template
66
target/
@@ -26,9 +26,4 @@ resources/.*
2626
assembly/
2727
.DS_Store
2828

29-
qsuits.log
30-
procedure*.log
31-
qsuits.error
32-
qsuits.info
33-
.qsuits.account
3429
logs/

docs/uploadfile.md

Lines changed: 1 addition & 1 deletion

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,16 @@
421421
<version>4.11</version>
422422
<scope>test</scope>
423423
</dependency>
424+
<dependency>
425+
<groupId>javax.activation</groupId>
426+
<artifactId>activation</artifactId>
427+
<version>1.1.1</version>
428+
</dependency>
429+
<dependency>
430+
<groupId>javax.xml.bind</groupId>
431+
<artifactId>jaxb-api</artifactId>
432+
<version>2.3.1</version>
433+
</dependency>
424434
</dependencies>
425435

426436
<build>
@@ -446,6 +456,8 @@
446456
<arg>-verbose</arg>
447457
<arg>-Xlint:deprecation</arg>
448458
</compilerArgs>
459+
<source>8</source>
460+
<target>8</target>
449461
</configuration>
450462
</plugin>
451463
<plugin>

qiniu-suits-java.iml

100755100644
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<content url="file://$MODULE_DIR$">
77
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
88
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
9-
<sourceFolder url="file://$MODULE_DIR$/src/main/test" isTestSource="true" />
9+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
1010
<excludeFolder url="file://$MODULE_DIR$/target" />
1111
</content>
1212
<orderEntry type="inheritedJdk" />
@@ -39,5 +39,8 @@
3939
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.3.5" level="project" />
4040
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.11" level="project" />
4141
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
42+
<orderEntry type="library" name="Maven: javax.activation:activation:1.1.1" level="project" />
43+
<orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
44+
<orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
4245
</component>
4346
</module>

src/main/java/com/qiniu/datasource/CloudStorageContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
import com.qiniu.util.*;
1414
import org.slf4j.Logger;
1515
import org.slf4j.LoggerFactory;
16-
import sun.misc.Signal;
17-
import sun.misc.SignalHandler;
16+
import sun.misc.*;
1817

1918
import java.io.File;
2019
import java.io.IOException;
2120
import java.time.Clock;
2221
import java.time.LocalDateTime;
2322
import java.util.*;
23+
import java.util.Timer;
2424
import java.util.concurrent.*;
2525
import java.util.stream.Collectors;
2626
import java.util.stream.Stream;

src/main/java/com/qiniu/datasource/FilepathContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ protected List<IReader<Iterator<String>>> getFileReaders(String path) throws IOE
108108
filepathReaders.add(new FilepathReader(name, lists.get(i), startLine, unitLen));
109109
}
110110
} else {
111+
String key = leftTrimSize == 0 ? sourceFile.getPath() : transferPath + sourceFile.getPath().substring(leftTrimSize);
111112
filepathReaders.add(new FilepathReader("filepath-" + path,
112-
new ArrayList<String>(){{ add(String.join(separator, sourceFile.getPath(),
113+
new ArrayList<String>(){{ add(String.join(separator, sourceFile.getPath(), key,
113114
Etag.file(sourceFile), String.valueOf(sourceFile.length()),
114115
String.valueOf(sourceFile.lastModified()), FileUtils.contentType(sourceFile)));
115116
}}, null, unitLen));
File renamed without changes.
File renamed without changes.

src/main/test/com/qiniu/config/PropertiesFileTest.java renamed to src/test/java/com/qiniu/config/PropertiesFileTest.java

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)