Skip to content

Commit dfdde77

Browse files
author
emmanue1
committed
Update JD-Core 1.0.7
First code commit since 2015
1 parent f602fa3 commit dfdde77

33 files changed

+1264
-17
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
*.class
33
*.jar
44

5+
# JD
6+
debug*
7+
58
# Eclipse
69
.settings/
710
bin/

.project

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>jd-eclipse</name>
4+
<comment/>
5+
<projects/>
6+
<natures/>
7+
<buildSpec/>
8+
<linkedResources/>
9+
</projectDescription>

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Version 3, 29 June 2007
44

5-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
Copyright (c) 2007 Free Software Foundation, Inc. <http://fsf.org/>
66
Everyone is permitted to copy and distribute verbatim copies
77
of this license document, but changing it is not allowed.
88

@@ -635,7 +635,7 @@ the "copyright" line and a pointer to where the full notice is found.
635635
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to
636636
display all the Java sources during your debugging process, even if
637637
you do not have them all.
638-
Copyright (C) 2008-2015 Emmanuel Dupuy
638+
Copyright (c) 2008, 2019 Emmanuel Dupuy
639639

640640
This program is free software: you can redistribute it and/or modify
641641
it under the terms of the GNU General Public License as published by
@@ -655,7 +655,7 @@ Also add information on how to contact you by electronic and paper mail.
655655
If the program does terminal interaction, make it output a short
656656
notice like this when it starts in an interactive mode:
657657

658-
JD-Eclipse Copyright (C) 2008-2015 Emmanuel Dupuy
658+
JD-Eclipse Copyright (c) 2008, 2019 Emmanuel Dupuy
659659
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
660660
This is free software, and you are welcome to redistribute it
661661
under certain conditions; type `show c' for details.

build.gradle

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,37 @@ apply plugin: 'distribution'
22

33
// Common configuration //
44
allprojects {
5-
version='1.0.0'
5+
version='2.0.0'
66
}
77

88
subprojects.each { subproject ->
99
evaluationDependsOn(subproject.path)
1010
}
1111

1212
distributions {
13-
site {
13+
distZip {
14+
// Create JAR files before final ZIP file
15+
dependsOn subprojects.tasks['jar']
16+
// For each file, remove root directory
17+
eachFile { file ->
18+
String path = file.relativePath
19+
file.setPath(path.substring(path.indexOf('/')+1, path.length()))
20+
}
21+
}
22+
23+
main {
1424
contents {
1525
into('features') {
16-
from { fileTree('jd.ide.eclipse.feature/build/libs') { include '*.jar' } }
26+
from {
27+
fileTree 'org.jd.ide.eclipse.feature/build/libs'
28+
}
1729
}
1830
into('plugins') {
19-
from { fileTree('jd.ide.eclipse.plugin/build/libs') { include '*.jar' } }
31+
from {
32+
fileTree 'org.jd.ide.eclipse.plugin/build/libs'
33+
}
2034
}
21-
from 'jd.ide.eclipse.site/site.xml', 'LICENSE', 'NOTICE', 'README.md'
35+
from 'org.jd.ide.eclipse.site/site.xml', 'LICENSE', 'NOTICE', 'README.md'
2236
}
2337
}
2438
}
25-
26-
installSiteDist.dependsOn subprojects.tasks['jar']

gradle/wrapper/gradle-wrapper.jar

1.23 KB
Binary file not shown.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jul 06 16:38:55 CEST 2015
2-
distributionBase=GRADLE_USER_HOME
3-
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
5-
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
1+
#Sat Mar 02 11:11:32 CET 2019
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip

org.jd.ide.eclipse.feature/.classpath

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="output" path="bin"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
5+
</classpath>

org.jd.ide.eclipse.feature/.project

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.jd.ide.eclipse.feature</name>
4+
<comment/>
5+
<projects/>
6+
<natures>
7+
<nature>org.eclipse.pde.FeatureNature</nature>
8+
<nature>org.eclipse.jdt.core.javanature</nature>
9+
</natures>
10+
<buildSpec>
11+
<buildCommand>
12+
<name>org.eclipse.pde.FeatureBuilder</name>
13+
<arguments/>
14+
</buildCommand>
15+
<buildCommand>
16+
<name>org.eclipse.jdt.core.javabuilder</name>
17+
<arguments/>
18+
</buildCommand>
19+
</buildSpec>
20+
<linkedResources/>
21+
</projectDescription>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apply plugin: 'java'
2+
3+
jar {
4+
from 'feature.xml'
5+
archiveName baseName + '_' + version + '.' + extension
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bin.includes = feature.xml
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<feature
3+
id="org.jd.ide.eclipse.feature"
4+
label="JD-Eclipse Plug-in"
5+
version="2.0.0"
6+
provider-name="Java Decompiler"
7+
plugin="org.jd.ide.eclipse.plugin">
8+
9+
<description url="http://www.example.com/feature">
10+
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all.
11+
</description>
12+
13+
<copyright>
14+
Copyright (c) 2008, 2019 Emmanuel Dupuy
15+
</copyright>
16+
17+
<license url="http://www.gnu.org/licenses/gpl-3.0.html">
18+
.
19+
GNU GENERAL PUBLIC LICENSE
20+
21+
Version 3, 29 June 2007
22+
23+
&lt;http://www.gnu.org/licenses/gpl-3.0.html&gt;
24+
25+
END OF TERMS AND CONDITIONS
26+
27+
How to Apply These Terms to Your New Programs
28+
29+
If you develop a new program, and you want it to be of the greatest
30+
possible use to the public, the best way to achieve this is to make it
31+
free software which everyone can redistribute and change under these terms.
32+
33+
To do so, attach the following notices to the program. It is safest
34+
to attach them to the start of each source file to most effectively
35+
state the exclusion of warranty; and each file should have at least
36+
the &quot;copyright&quot; line and a pointer to where the full notice is found.
37+
38+
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to
39+
display all the Java sources during your debugging process, even if you
40+
do not have them all.
41+
Copyright (c) 2008, 2019 Emmanuel Dupuy
42+
43+
This program is free software: you can redistribute it and/or modify
44+
it under the terms of the GNU General Public License as published by
45+
the Free Software Foundation, either version 3 of the License, or
46+
(at your option) any later version.
47+
48+
This program is distributed in the hope that it will be useful,
49+
but WITHOUT ANY WARRANTY; without even the implied warranty of
50+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51+
GNU General Public License for more details.
52+
53+
You should have received a copy of the GNU General Public License
54+
along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
55+
56+
Also add information on how to contact you by electronic and paper mail.
57+
58+
If the program does terminal interaction, make it output a short
59+
notice like this when it starts in an interactive mode:
60+
61+
JD-Eclipse Copyright (c) 2008, 2019 Emmanuel Dupuy
62+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w&apos;.
63+
This is free software, and you are welcome to redistribute it
64+
under certain conditions; type `show c&apos; for details.
65+
66+
The hypothetical commands `show w&apos; and `show c&apos; should show the appropriate
67+
parts of the General Public License. Of course, your program&apos;s commands
68+
might be different; for a GUI interface, you would use an &quot;about box&quot;.
69+
70+
You should also get your employer (if you work as a programmer) or school,
71+
if any, to sign a &quot;copyright disclaimer&quot; for the program, if necessary.
72+
For more information on this, and how to apply and follow the GNU GPL, see
73+
&lt;http://www.gnu.org/licenses/&gt;.
74+
75+
The GNU General Public License does not permit incorporating your program
76+
into proprietary programs. If your program is a subroutine library, you
77+
may consider it more useful to permit linking proprietary applications with
78+
the library. If this is what you want to do, use the GNU Lesser General
79+
Public License instead of this License. But first, please read
80+
&lt;http://www.gnu.org/philosophy/why-not-lgpl.html&gt;.
81+
</license>
82+
83+
<plugin
84+
id="org.jd.ide.eclipse.plugin"
85+
download-size="0"
86+
install-size="0"
87+
version="2.0.0"
88+
unpack="false"/>
89+
90+
</feature>

org.jd.ide.eclipse.plugin/.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
6+
<classpathentry exported="true" kind="lib" path="lib/jd-core-1.0.7.jar"/>
7+
<classpathentry kind="output" path="bin"/>
8+
</classpath>

org.jd.ide.eclipse.plugin/.project

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.jd.ide.eclipse.plugin</name>
4+
<comment/>
5+
<projects/>
6+
<natures>
7+
<nature>org.eclipse.pde.PluginNature</nature>
8+
<nature>org.eclipse.jdt.core.javanature</nature>
9+
</natures>
10+
<buildSpec>
11+
<buildCommand>
12+
<name>org.eclipse.jdt.core.javabuilder</name>
13+
<arguments/>
14+
</buildCommand>
15+
<buildCommand>
16+
<name>org.eclipse.pde.ManifestBuilder</name>
17+
<arguments/>
18+
</buildCommand>
19+
<buildCommand>
20+
<name>org.eclipse.pde.SchemaBuilder</name>
21+
<arguments/>
22+
</buildCommand>
23+
</buildSpec>
24+
<linkedResources/>
25+
</projectDescription>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: JD-Eclipse Plug-in
4+
Bundle-SymbolicName: org.jd.ide.eclipse.plugin;singleton:=true
5+
Bundle-Version: 2.0.0
6+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
7+
Require-Bundle: org.eclipse.ui,
8+
org.eclipse.ui.editors,
9+
org.eclipse.jdt.ui,
10+
org.eclipse.jdt.core,
11+
org.eclipse.core.runtime,
12+
org.eclipse.core.resources,
13+
org.eclipse.ui.ide,
14+
org.eclipse.jface.text
15+
Bundle-Vendor: Java Decompiler
16+
Bundle-Activator: org.jd.ide.eclipse.JavaDecompilerPlugin
17+
Bundle-ActivationPolicy: lazy
18+
Bundle-ClassPath: /lib/jd-core-1.0.7.jar,.
19+
Export-Package: org.jd.core.v1,
20+
org.jd.ide.eclipse,
21+
org.jd.ide.eclipse.editors,
22+
org.jd.ide.eclipse.preferences,
23+
org.jd.ide.eclipse.startup,
24+
org.jd.ide.eclipse.util.loader,
25+
org.jd.ide.eclipse.util.printer

org.jd.ide.eclipse.plugin/about.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
featureImage=icons/jd_32.png
2+
aboutText=Java Decompiler\n\
3+
\n\
4+
Web site: http://java-decompiler.github.io\n\
5+
Issues: https://github.com/java-decompiler/jd-eclipse/issues\n\
6+
\n\
7+
Copyright (c) 2008, 2019 Emmanuel Dupuy
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
apply plugin: 'java'
2+
3+
repositories {
4+
jcenter()
5+
}
6+
7+
configurations {
8+
provided
9+
compile.extendsFrom provided
10+
}
11+
12+
dependencies {
13+
compile 'org.jd:jd-core:1.0.7'
14+
15+
provided 'org.eclipse.core:org.eclipse.core.commands:3.6.0'
16+
provided 'org.eclipse.core:org.eclipse.core.resources:3.7.100'
17+
18+
provided('org.eclipse.jdt:org.eclipse.jdt.core:3.18.0') {
19+
exclude group:'org.eclipse.platform'
20+
}
21+
provided('org.eclipse.jdt:org.eclipse.jdt.ui:3.18.0') {
22+
exclude group:'org.eclipse.birt.runtime'
23+
exclude group:'org.eclipse.emf'
24+
exclude group:'org.eclipse.jdt'
25+
exclude group:'org.eclipse.platform'
26+
exclude group:'com.ibm.icu'
27+
}
28+
provided('org.eclipse.platform:org.eclipse.jface:3.15.0') {
29+
exclude group:'org.eclipse.platform'
30+
}
31+
provided('org.eclipse.platform:org.eclipse.jface.text:3.15.0') {
32+
exclude group:'org.eclipse.platform'
33+
}
34+
provided('org.eclipse.platform:org.eclipse.swt.win32.win32.x86_64:3.111.0') {
35+
exclude group:'org.eclipse.platform'
36+
}
37+
provided('org.eclipse.platform:org.eclipse.ui.workbench:3.111.0') {
38+
exclude group:'org.eclipse.emf'
39+
exclude group:'org.eclipse.platform'
40+
}
41+
provided('org.eclipse.platform:org.eclipse.ui.workbench.texteditor:3.11.0') {
42+
exclude group:'org.eclipse.platform'
43+
}
44+
provided('org.eclipse.platform:org.eclipse.ui.ide:3.15.0') {
45+
exclude group:'org.eclipse.platform'
46+
}
47+
provided('org.eclipse.platform:org.eclipse.ui.editors:3.11.0') {
48+
exclude group:'org.eclipse.platform'
49+
}
50+
provided('org.eclipse.platform:org.eclipse.ui.editors:3.11.0') {
51+
exclude group:'org.eclipse.platform'
52+
}
53+
}
54+
55+
compileJava {
56+
sourceCompatibility = '1.8'
57+
targetCompatibility = '1.8'
58+
source 'src'
59+
}
60+
61+
jar {
62+
archiveName baseName + '_' + version + '.' + extension
63+
manifest {
64+
from 'META-INF/MANIFEST.MF'
65+
}
66+
from fileTree('.') {
67+
include 'icons/**'
68+
include 'about.ini'
69+
include 'plugin.xml'
70+
}
71+
into('lib') {
72+
from project.configurations.runtime - project.configurations.provided
73+
}
74+
}
75+
76+
task copyDependencies(type: Copy) {
77+
from project.configurations.runtime - project.configurations.provided
78+
into 'lib'
79+
}
80+
81+
build.finalizedBy copyDependencies
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
bin.includes = META-INF/,\
2+
plugin.xml,\
3+
icons/,\
4+
about.ini,\
5+
lib/jd-core-1.0.7.jar,\
6+
.
7+
source.. = src/
8+
jars.compile.order = .
9+
734 Bytes
Loading
1.65 KB
Loading

0 commit comments

Comments
 (0)