Skip to content

Commit

Permalink
v1.3 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
shimingxy committed Apr 2, 2020
1 parent d254e8a commit 5f74965
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
28 changes: 15 additions & 13 deletions maxkey-core/.classpath
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main"
path="src/main/java">
<classpathentry kind="src" output="bin/main" path="src/main/java">
<attributes>
<attribute name="gradle_scope" value="main" />
<attribute name="gradle_used_by_scope" value="main,test" />
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/test"
path="src/test/java">
<classpathentry kind="src" output="bin/test" path="src/test/java">
<attributes>
<attribute name="gradle_scope" value="test" />
<attribute name="gradle_used_by_scope" value="test" />
<attribute name="gradle_scope" value="test"/>
<attribute name="gradle_used_by_scope" value="test"/>
</attributes>
</classpathentry>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/" />
<classpathentry kind="con"
path="org.eclipse.buildship.core.gradleclasspathcontainer" />
<classpathentry kind="output" path="bin/default" />
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
9 changes: 4 additions & 5 deletions maxkey-core/.settings/org.eclipse.wst.common.component
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId"
project-version="1.5.0">
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="maxkey-core">
<wb-resource deploy-path="/" source-path="/src/main/java" />
<wb-resource deploy-path="/" source-path="/src/test/java" />
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/test/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>
8 changes: 5 additions & 3 deletions maxkey-core/src/main/java/org/maxkey/util/PathUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class PathUtils {
private String classPath;
private String appPath;
public static String WEB_INFO = "/WEB-INF/";
private static final String PATH_FILE_NAME = "PathUtils.properties";

/**
* getInstance .
Expand All @@ -29,15 +30,15 @@ public static synchronized PathUtils getInstance() {
public PathUtils() {
try {
classPath = java.net.URLDecoder.decode(
PathUtils.class.getResource("PathUtils.xml").getFile(),
PathUtils.class.getResource(PATH_FILE_NAME).getFile(),
"UTF-8"
);
_logger.debug("PathUtils() PathUtils " + classPath);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}

String fileProtocol = PathUtils.class.getResource("PathUtils.properties").getProtocol();
String fileProtocol = PathUtils.class.getResource(PATH_FILE_NAME).getProtocol();
_logger.info("Properties Protocol:"
+ PathUtils.class.getResource("PathUtils.properties").getProtocol());

Expand All @@ -53,7 +54,8 @@ public PathUtils() {
}

_logger.info("PathUtils Class Path : " + classPath);
classPath = classPath.substring(0, classPath.indexOf("/org/maxkey/util/PathUtils.xml"));
classPath = classPath.substring(0,
classPath.indexOf("/org/maxkey/util/" + PATH_FILE_NAME));
if (classPath.indexOf(WEB_INFO) == -1) {
appPath = classPath.substring(0, classPath.lastIndexOf("/"));
} else {
Expand Down
3 changes: 0 additions & 3 deletions maxkey-core/src/main/java/org/maxkey/util/PathUtils.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.maxkey.util.PathUtils

0 comments on commit 5f74965

Please sign in to comment.