diff --git a/.idea/libraries/winp.xml b/.idea/libraries/winp.xml index 620afb405b53..8566148396e4 100644 --- a/.idea/libraries/winp.xml +++ b/.idea/libraries/winp.xml @@ -1,15 +1,12 @@ - + - - - - - + + - \ No newline at end of file + diff --git a/build/scripts/libLicenses.gant b/build/scripts/libLicenses.gant index 5986ef469c2b..333c8135687b 100644 --- a/build/scripts/libLicenses.gant +++ b/build/scripts/libLicenses.gant @@ -247,7 +247,7 @@ libraryLicense(name: "TestNG", version: "5.7 snapshot", license: "Apache 2.0", u libraryLicense(name: "Trilead SSH", libraryName: "trilead-ssh2", version: "build 213 and 217", license: "BSD style (see LICENSE.txt in trilead.jar)", url: "http://www.trilead.com/SSH_Library/") libraryLicense(name: "Trove4j", version: "1.1 (with patches by JetBrains)", license: "LGPL", url: "http://trove4j.sourceforge.net/", licenseUrl: "http://trove4j.sourceforge.net/html/license.html") libraryLicense(name: "Velocity", version: "1.7", license: "Apache 2.0", url: "http://velocity.apache.org/", licenseUrl: "http://velocity.apache.org/index.html") -libraryLicense(name: "winp", version: "1.23", license: "MIT", url: "http://java.net/projects/winp", licenseUrl: "http://opensource.org/licenses/mit-license.php") +libraryLicense(name: "winp", version: "1.21 (patched)", license: "MIT", url: "http://java.net/projects/winp", licenseUrl: "http://opensource.org/licenses/mit-license.php") libraryLicense(name: "Xalan", libraryName:"Xalan-2.7.1", version: "2.7.1", license: "Apache 2.0", url: "http://xml.apache.org/xalan-j/", licenseUrl: "http://xml.apache.org/xalan-j/") libraryLicense(name: "Xerces", version: "2.9.1", license: "Apache 2.0", url: "http://xerces.apache.org/xerces2-j/", licenseUrl: "http://xerces.apache.org/xerces2-j/") libraryLicense(name: "XML Commons (xml-apis.jar, resolver.jar)", version: "", license: "Apache 2.0, W3C Software License , public domain", url: "http://xml.apache.org/commons/", licenseUrl: "http://xml.apache.org/commons/licenses.html") diff --git a/lib/src/winp-1.21-patched.zip b/lib/src/winp-1.21-patched.zip new file mode 100644 index 000000000000..24a308323632 Binary files /dev/null and b/lib/src/winp-1.21-patched.zip differ diff --git a/lib/src/winp.patch b/lib/src/winp.patch new file mode 100644 index 000000000000..c3828306e8ee --- /dev/null +++ b/lib/src/winp.patch @@ -0,0 +1,26 @@ +diff -ur winp-winp-1.17/src/main/java/org/jvnet/winp/Native.java winp-1.17-patched/src/main/java/org/jvnet/winp/Native.java +--- winp-winp-1.17/src/main/java/org/jvnet/winp/Native.java 2013-01-03 09:26:13.000000000 +0400 ++++ winp-1.17-patched/src/main/java/org/jvnet/winp/Native.java 2013-02-25 16:23:24.000000000 +0400 +@@ -47,6 +47,7 @@ + private static final Logger LOGGER = Logger.getLogger(Native.class.getName()); + // system property holding the preferred folder for copying the dll file to. + private static final String DLL_TARGET = "winp.folder.preferred"; ++ private static final String UNPACK_DLL_TO_PARENT_DIR = "winp.unpack.dll.to.parent.dir"; + + static { + load(); +@@ -61,7 +62,12 @@ + final URL res = Native.class.getClassLoader().getResource(dllName+".dll"); + if(res!=null) { + String url = res.toExternalForm(); +- if(url.startsWith("jar:") || url.startsWith("wsjar:")) { ++ ++ //patched by JetBrains: do not try to unpack the dll file to the directory containing the jar file by default. ++ // It can fail because the process has no rights to write to that directory and also pollutes the project directories if the jar is used in development mode. ++ boolean unpackToParentDir = Boolean.parseBoolean(System.getProperty(UNPACK_DLL_TO_PARENT_DIR)); ++ ++ if(unpackToParentDir && (url.startsWith("jar:") || url.startsWith("wsjar:"))) { + int idx = url.lastIndexOf('!'); + String filePortion = url.substring(url.indexOf(':')+1,idx); + while(filePortion.startsWith("/")) + diff --git a/lib/winp-1.21-patched.jar b/lib/winp-1.21-patched.jar new file mode 100644 index 000000000000..76141dcd8911 Binary files /dev/null and b/lib/winp-1.21-patched.jar differ