Skip to content

Commit

Permalink
版本修改成2.8.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
huwei committed Apr 9, 2016
1 parent 0d2eca9 commit b90c684
Show file tree
Hide file tree
Showing 66 changed files with 105 additions and 100 deletions.
2 changes: 1 addition & 1 deletion dubbo-admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-admin</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-cluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-cluster</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-common</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-config/dubbo-config-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-config</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-config-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-config/dubbo-config-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>dubbo-config</artifactId>
<groupId>com.alibaba</groupId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,45 +256,50 @@ private static Set<String> getClassNamesFromPackage(String packName) throws IOEx
URL packageURL;
Set<String> names = new HashSet<String>();
String packageName = packName.replace(".", "/");
packageURL = classLoader.getResource(packageName);

if (packageURL.getProtocol().equals("jar")) {
String jarFileName;
JarFile jf;
Enumeration<JarEntry> jarEntries;
String entryName;

// build jar file name, then loop through zipped entries
jarFileName = URLDecoder.decode(packageURL.getFile(), "UTF-8");
jarFileName = jarFileName.substring(5, jarFileName.indexOf("!"));
System.out.println(">" + jarFileName);
jf = new JarFile(jarFileName);
jarEntries = jf.entries();
while (jarEntries.hasMoreElements()) {
entryName = jarEntries.nextElement().getName();
if (entryName.startsWith(packageName) && entryName.length() > packageName.length() + 5) {

if (entryName.lastIndexOf('.') != -1) {
entryName = entryName.substring(0, entryName.lastIndexOf('.'));

Enumeration<URL> packageUrls = classLoader.getResources(packageName);
while (packageUrls.hasMoreElements()) {
packageURL = packageUrls.nextElement();
if (packageURL.getProtocol().equals("jar")) {
String jarFileName;
JarFile jf;
Enumeration<JarEntry> jarEntries;
String entryName;

// build jar file name, then loop through zipped entries
jarFileName = URLDecoder.decode(packageURL.getFile(), "UTF-8");
jarFileName = jarFileName.substring(5, jarFileName.indexOf("!"));
System.out.println(">" + jarFileName);
jf = new JarFile(jarFileName);
jarEntries = jf.entries();
while (jarEntries.hasMoreElements()) {
entryName = jarEntries.nextElement().getName();
if (entryName.startsWith(packageName) && entryName.length() > packageName.length() + 5) {
if (entryName.lastIndexOf(".class") != -1) {
entryName = entryName.substring(0, entryName.lastIndexOf('.'));
names.add(entryName);
}
}
names.add(entryName);
}
}

// loop through files in classpath
} else {
URI uri = new URI(packageURL.toString());
File folder = new File(uri.getPath());
// won't work with path which contains blank (%20)
// File folder = new File(packageURL.getFile());
File[] contenuti = folder.listFiles();
String entryName;
for (File actual : contenuti) {
entryName = actual.getName();
if (entryName.lastIndexOf(".class") != -1) {
entryName = packName + "." + entryName.substring(0, entryName.lastIndexOf(".class"));
// loop through files in classpath
} else {
URI uri = new URI(packageURL.toString());
File folder = new File(uri.getPath());
// won't work with path which contains blank (%20)
// File folder = new File(packageURL.getFile());
File[] contenuti = folder.listFiles();
String entryName;
for (File actual : contenuti) {
if (actual.isDirectory()) {
continue;
}
entryName = actual.getName();
if (entryName.lastIndexOf(".class") != -1) {
entryName = packName + "." + entryName.substring(0, entryName.lastIndexOf(".class"));
names.add(entryName);
}
}
names.add(entryName);
}
}
return names;
Expand Down
2 changes: 1 addition & 1 deletion dubbo-config/dubbo-config-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-config</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-config-spring</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-config</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-javaconfig/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-javaconfig</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-jetty</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-log4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-log4j</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-logback/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-logback</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/dubbo-container-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-container</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container-spring</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-container/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-container</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-demo/dubbo-demo-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-demo</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-demo-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-demo/dubbo-demo-consumer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-demo</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-demo-consumer</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-demo/dubbo-demo-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-demo</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-demo-provider</artifactId>
<packaging>war</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-demo</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-filter/dubbo-filter-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-filter</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-filter-cache</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-filter/dubbo-filter-validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-filter</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-filter-validation</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-filter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-filter</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>dubbo-parent</artifactId>
<groupId>com.alibaba</groupId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion dubbo-monitor/dubbo-monitor-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-monitor</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-monitor-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-monitor/dubbo-monitor-default/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-monitor</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-monitor-default</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-monitor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-monitor</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/dubbo-registry-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/dubbo-registry-default/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry-default</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/dubbo-registry-multicast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry-multicast</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/dubbo-registry-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry-redis</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/dubbo-registry-zookeeper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-registry</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry-zookeeper</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-parent</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-registry</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-remoting/dubbo-remoting-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-remoting</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-remoting-api</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-remoting/dubbo-remoting-grizzly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-remoting</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-remoting-grizzly</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion dubbo-remoting/dubbo-remoting-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>com.alibaba</groupId>
<artifactId>dubbo-remoting</artifactId>
<version>2.8.4.2</version>
<version>2.8.4.3</version>
</parent>
<artifactId>dubbo-remoting-http</artifactId>
<packaging>jar</packaging>
Expand Down
Loading

0 comments on commit b90c684

Please sign in to comment.