Skip to content

Commit

Permalink
Update JD-Core 1.0.7
Browse files Browse the repository at this point in the history
First code commit since 2015
  • Loading branch information
emmanue1 committed Jul 15, 2019
1 parent f602fa3 commit dfdde77
Show file tree
Hide file tree
Showing 33 changed files with 1,264 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -2,6 +2,9 @@
*.class
*.jar

# JD
debug*

# Eclipse
.settings/
bin/
Expand Down
9 changes: 9 additions & 0 deletions .project
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jd-eclipse</name>
<comment/>
<projects/>
<natures/>
<buildSpec/>
<linkedResources/>
</projectDescription>
6 changes: 3 additions & 3 deletions LICENSE
Expand Up @@ -2,7 +2,7 @@

Version 3, 29 June 2007

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

Expand Down Expand Up @@ -635,7 +635,7 @@ the "copyright" line and a pointer to where the full notice is found.
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.
Copyright (C) 2008-2015 Emmanuel Dupuy
Copyright (c) 2008, 2019 Emmanuel Dupuy

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

JD-Eclipse Copyright (C) 2008-2015 Emmanuel Dupuy
JD-Eclipse Copyright (c) 2008, 2019 Emmanuel Dupuy
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
26 changes: 19 additions & 7 deletions build.gradle
Expand Up @@ -2,25 +2,37 @@ apply plugin: 'distribution'

// Common configuration //
allprojects {
version='1.0.0'
version='2.0.0'
}

subprojects.each { subproject ->
evaluationDependsOn(subproject.path)
}

distributions {
site {
distZip {
// Create JAR files before final ZIP file
dependsOn subprojects.tasks['jar']
// For each file, remove root directory
eachFile { file ->
String path = file.relativePath
file.setPath(path.substring(path.indexOf('/')+1, path.length()))
}
}

main {
contents {
into('features') {
from { fileTree('jd.ide.eclipse.feature/build/libs') { include '*.jar' } }
from {
fileTree 'org.jd.ide.eclipse.feature/build/libs'
}
}
into('plugins') {
from { fileTree('jd.ide.eclipse.plugin/build/libs') { include '*.jar' } }
from {
fileTree 'org.jd.ide.eclipse.plugin/build/libs'
}
}
from 'jd.ide.eclipse.site/site.xml', 'LICENSE', 'NOTICE', 'README.md'
from 'org.jd.ide.eclipse.site/site.xml', 'LICENSE', 'NOTICE', 'README.md'
}
}
}

installSiteDist.dependsOn subprojects.tasks['jar']
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
12 changes: 6 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Mon Jul 06 16:38:55 CEST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
#Sat Mar 02 11:11:32 CET 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
5 changes: 5 additions & 0 deletions org.jd.ide.eclipse.feature/.classpath
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
</classpath>
21 changes: 21 additions & 0 deletions org.jd.ide.eclipse.feature/.project
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jd.ide.eclipse.feature</name>
<comment/>
<projects/>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
</buildSpec>
<linkedResources/>
</projectDescription>
6 changes: 6 additions & 0 deletions org.jd.ide.eclipse.feature/build.gradle
@@ -0,0 +1,6 @@
apply plugin: 'java'

jar {
from 'feature.xml'
archiveName baseName + '_' + version + '.' + extension
}
1 change: 1 addition & 0 deletions org.jd.ide.eclipse.feature/build.properties
@@ -0,0 +1 @@
bin.includes = feature.xml
90 changes: 90 additions & 0 deletions org.jd.ide.eclipse.feature/feature.xml
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.jd.ide.eclipse.feature"
label="JD-Eclipse Plug-in"
version="2.0.0"
provider-name="Java Decompiler"
plugin="org.jd.ide.eclipse.plugin">

<description url="http://www.example.com/feature">
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.
</description>

<copyright>
Copyright (c) 2008, 2019 Emmanuel Dupuy
</copyright>

<license url="http://www.gnu.org/licenses/gpl-3.0.html">
.
GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

&lt;http://www.gnu.org/licenses/gpl-3.0.html&gt;

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the &quot;copyright&quot; line and a pointer to where the full notice is found.

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.
Copyright (c) 2008, 2019 Emmanuel Dupuy

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

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

The hypothetical commands `show w&apos; and `show c&apos; should show the appropriate
parts of the General Public License. Of course, your program&apos;s commands
might be different; for a GUI interface, you would use an &quot;about box&quot;.

You should also get your employer (if you work as a programmer) or school,
if any, to sign a &quot;copyright disclaimer&quot; for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
&lt;http://www.gnu.org/licenses/&gt;.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
&lt;http://www.gnu.org/philosophy/why-not-lgpl.html&gt;.
</license>

<plugin
id="org.jd.ide.eclipse.plugin"
download-size="0"
install-size="0"
version="2.0.0"
unpack="false"/>

</feature>
8 changes: 8 additions & 0 deletions org.jd.ide.eclipse.plugin/.classpath
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="lib/jd-core-1.0.7.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
25 changes: 25 additions & 0 deletions org.jd.ide.eclipse.plugin/.project
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.jd.ide.eclipse.plugin</name>
<comment/>
<projects/>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments/>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments/>
</buildCommand>
</buildSpec>
<linkedResources/>
</projectDescription>
25 changes: 25 additions & 0 deletions org.jd.ide.eclipse.plugin/META-INF/MANIFEST.MF
@@ -0,0 +1,25 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: JD-Eclipse Plug-in
Bundle-SymbolicName: org.jd.ide.eclipse.plugin;singleton:=true
Bundle-Version: 2.0.0
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.editors,
org.eclipse.jdt.ui,
org.eclipse.jdt.core,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.eclipse.jface.text
Bundle-Vendor: Java Decompiler
Bundle-Activator: org.jd.ide.eclipse.JavaDecompilerPlugin
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: /lib/jd-core-1.0.7.jar,.
Export-Package: org.jd.core.v1,
org.jd.ide.eclipse,
org.jd.ide.eclipse.editors,
org.jd.ide.eclipse.preferences,
org.jd.ide.eclipse.startup,
org.jd.ide.eclipse.util.loader,
org.jd.ide.eclipse.util.printer
7 changes: 7 additions & 0 deletions org.jd.ide.eclipse.plugin/about.ini
@@ -0,0 +1,7 @@
featureImage=icons/jd_32.png
aboutText=Java Decompiler\n\
\n\
Web site: http://java-decompiler.github.io\n\
Issues: https://github.com/java-decompiler/jd-eclipse/issues\n\
\n\
Copyright (c) 2008, 2019 Emmanuel Dupuy
81 changes: 81 additions & 0 deletions org.jd.ide.eclipse.plugin/build.gradle
@@ -0,0 +1,81 @@
apply plugin: 'java'

repositories {
jcenter()
}

configurations {
provided
compile.extendsFrom provided
}

dependencies {
compile 'org.jd:jd-core:1.0.7'

provided 'org.eclipse.core:org.eclipse.core.commands:3.6.0'
provided 'org.eclipse.core:org.eclipse.core.resources:3.7.100'

provided('org.eclipse.jdt:org.eclipse.jdt.core:3.18.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.jdt:org.eclipse.jdt.ui:3.18.0') {
exclude group:'org.eclipse.birt.runtime'
exclude group:'org.eclipse.emf'
exclude group:'org.eclipse.jdt'
exclude group:'org.eclipse.platform'
exclude group:'com.ibm.icu'
}
provided('org.eclipse.platform:org.eclipse.jface:3.15.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.jface.text:3.15.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.swt.win32.win32.x86_64:3.111.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.ui.workbench:3.111.0') {
exclude group:'org.eclipse.emf'
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.ui.workbench.texteditor:3.11.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.ui.ide:3.15.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.ui.editors:3.11.0') {
exclude group:'org.eclipse.platform'
}
provided('org.eclipse.platform:org.eclipse.ui.editors:3.11.0') {
exclude group:'org.eclipse.platform'
}
}

compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
source 'src'
}

jar {
archiveName baseName + '_' + version + '.' + extension
manifest {
from 'META-INF/MANIFEST.MF'
}
from fileTree('.') {
include 'icons/**'
include 'about.ini'
include 'plugin.xml'
}
into('lib') {
from project.configurations.runtime - project.configurations.provided
}
}

task copyDependencies(type: Copy) {
from project.configurations.runtime - project.configurations.provided
into 'lib'
}

build.finalizedBy copyDependencies
9 changes: 9 additions & 0 deletions org.jd.ide.eclipse.plugin/build.properties
@@ -0,0 +1,9 @@
bin.includes = META-INF/,\
plugin.xml,\
icons/,\
about.ini,\
lib/jd-core-1.0.7.jar,\
.
source.. = src/
jars.compile.order = .

Binary file added org.jd.ide.eclipse.plugin/icons/jd_16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added org.jd.ide.eclipse.plugin/icons/jd_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dfdde77

Please sign in to comment.