Skip to content

Commit

Permalink
bugfix: seperate of jar entry is alway / even in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaking committed Mar 9, 2019
1 parent da7ec03 commit e491763
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README_hunter_debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-debug-plugin:0.9.5'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_debug_ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-debug-plugin:0.9.5'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_logline.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-linelog-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_logline_ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-linelog-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_okhttp.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-okhttp-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_okhttp_ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-okhttp-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_timing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-timing-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion README_hunter_timing_ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ buildscript {
}
dependencies {
classpath 'com.quinn.hunter:hunter-timing-plugin:0.9.1'
classpath 'com.quinn.hunter:hunter-transform:0.9.2'
classpath 'com.quinn.hunter:hunter-transform:0.9.3'
}
}
Expand Down
2 changes: 1 addition & 1 deletion hunter-transform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ext {
siteUrl = 'https://github.com/Leaking/Hunter'
gitUrl = 'https://github.com/Leaking/Hunter.git'

libraryVersion = '0.9.2'
libraryVersion = '0.9.3'

developerId = 'Leaking'
developerName = 'QuinnChen'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public final void weaveJar(File inputJar, File outputJar) throws IOException {
new BufferedInputStream(inputZip.getInputStream(entry));
ZipEntry outEntry = new ZipEntry(entry.getName());
byte[] newEntryContent;
if (!isWeavableClass(outEntry.getName().replace(FILE_SEP, "."))) {
// seperator of entry name is always '/', even in windows
if (!isWeavableClass(outEntry.getName().replace("/", "."))) {
newEntryContent = org.apache.commons.io.IOUtils.toByteArray(originalFile);
} else {
newEntryContent = weaveSingleClassToByteArray(originalFile);
Expand Down

0 comments on commit e491763

Please sign in to comment.