-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in use-jooq-version-from-compile-classpath (pull request #15)
FCSAR-2847 Use jooq version from compile classpath for generation * FCSAR-2847 Use jooq version from compile classpath for generation Approved-by: Kamil Gregorczyk
- Loading branch information
1 parent
4d6e005
commit edb64b4
Showing
6 changed files
with
193 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import java.net.URL | ||
import java.net.URLClassLoader | ||
|
||
class ChildFirstClassLoader(classpath: Array<URL>?, parent: ClassLoader?) : URLClassLoader(classpath, parent) { | ||
private val system: ClassLoader = getSystemClassLoader() | ||
|
||
@Synchronized | ||
override fun loadClass(name: String, resolve: Boolean): Class<*>? { | ||
var c = findLoadedClass(name) | ||
if (c == null) { | ||
c = try { | ||
findClass(name) | ||
} catch (e: ClassNotFoundException) { | ||
try { | ||
super.loadClass(name, resolve) | ||
} catch (e2: ClassNotFoundException) { | ||
system.loadClass(name) | ||
} | ||
} | ||
} | ||
if (resolve) resolveClass(c) | ||
return c | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.