Skip to content

Commit

Permalink
Merge pull request #1 from groovy/master
Browse files Browse the repository at this point in the history
Merge with groovy/groovy-eclipse:master
  • Loading branch information
eric-milles committed Oct 27, 2016
2 parents 77da6d9 + 09c97b6 commit 8ee17dd
Show file tree
Hide file tree
Showing 83 changed files with 76,893 additions and 78,055 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ A quick approach to getting started:
- Any project prefixed with groovy-eclipse- is part of the maven compiler plugin for groovy-eclipse. You only need to import these projects if you plan on working on the maven support.
- The org.codehaus.groovy.eclipse.pluginbuilder project contains the releng code to build Groovy-Eclipse and publish the update site.
5. If any of the imported projects has an error about Groovy Compiler version then open Eclipse Preferences, navigate to Groovy -> Compiler and set the required Groovy Compiler version, apply the changes and restart Eclipse.

If you wish to contribute to this project, see the [Getting Started with Groovy Eclipse Source Code Guide](docs/Getting-Started-with-Groovy-Eclipse-Source-Code.md) for more detailed information.
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,12 @@ protected String[] getDefaultClassPaths() {
String[] newcps = new String[cps.length+2];
System.arraycopy(cps,0,newcps,0,cps.length);
try {
URL groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-2.4.3.jar");
if (groovyJar==null) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-2.3.10.jar");
if (groovyJar==null) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-2.2.2.jar");
if (groovyJar==null) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-2.1.8.jar");
if (groovyJar==null) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-2.0.7.jar");
if (groovyJar==null) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-1.8.6.jar");
}
}
}
}
}
URL groovyJar = null;
String[] groovyVer = {"2.4.3", "2.3.10", "2.2.2", "2.1.9", "2.0.7", "1.8.6"};
for (int i = 0, n = groovyVer.length; i < n; i += 1) {
groovyJar = Platform.getBundle("org.codehaus.groovy").getEntry("lib/groovy-all-"+groovyVer[i]+".jar");
if (groovyJar != null) break;
}
newcps[newcps.length-1] = FileLocator.resolve(groovyJar).getFile();
// FIXASC think more about why this is here... the tests that need it specify the option but that is just for
// the groovy class loader to access it. The annotation within this jar needs to be resolvable by the compiler when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ protected void setUp() throws Exception {
}

public void testDefaultAndStaticMethodInInterface() {
assertTrue("Groovy compiler levele is less than 2.3",
GroovyUtils.GROOVY_LEVEL >= 23);
assertTrue("JRE Compliance level is less than 1.8",
isJRELevel(AbstractCompilerTest.F_1_8));
Map customOptions= getCompilerOptions();
customOptions.put(CompilerOptions.OPTION_Source, "1.8" /* CompilerOptions.VERSION_1_8 */);
abortOnFailure = false;
assumeTrue("Groovy compiler level is less than 2.3", GroovyUtils.GROOVY_LEVEL >= 23);
assumeTrue("JRE Compliance level is less than 1.8", isJRELevel(AbstractCompilerTest.F_1_8));
Map customOptions = getCompilerOptions();
customOptions.put(CompilerOptions.OPTION_Source, "1.8" /* CompilerOptions.VERSION_1_8 */);
this.runConformTest(
// test directory preparation
true, /* flush output directory */
Expand Down
15 changes: 8 additions & 7 deletions base/org.codehaus.groovy21/.classpath
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src" output="bin"/>
<classpathentry kind="src" path="src-trace" output="bin-trace"/>

<classpathentry kind="lib" path="lib/bsf-2.4.0.jar" sourcepath="lib/bsf-2.4.0-sources.jar" exported="true"/>
<classpathentry kind="lib" path="lib/ivy-2.2.0.jar" sourcepath="lib/ivy-2.2.0-sources.jar" exported="true"/>
<classpathentry kind="lib" path="lib/groovy-all-2.1.9.jar" sourcepath="lib/groovy-all-2.1.9-sources.jar" exported="true"/>

<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry exported="true" kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="bin-trace" path="src-trace"/>
<classpathentry exported="true" kind="lib" path="lib/ivy-2.2.0.jar" sourcepath="lib/ivy-2.2.0-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/bsf-2.4.0.jar"/>
<classpathentry exported="true" kind="lib" path="lib/groovy-all-2.1.8.jar" sourcepath="lib/groovy-2.1.8-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" standalone="no"?>

<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_CLEAN_TARGETS" value="clean," />
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true" />
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false" />
<stringAttribute key="org.eclipse.debug.core.ATTR_REFRESH_SCOPE" value="${working_set:&lt;resources&gt;&lt;item path=&quot;/org.codehaus.groovy21&quot; type=&quot;4&quot;/&gt;&lt;/resources&gt;}" />
<booleanAttribute key="org.eclipse.debug.core.capture_output" value="false" />
<booleanAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_OUTPUT_ON" value="false" />
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false" />
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider" />
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true" />
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="" />
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_BUILD_SCOPE" value="${working_set:&lt;resources&gt;&lt;item path=&quot;/org.codehaus.groovy21/src/org/codehaus/groovy/antlr/groovy.g&quot; type=&quot;1&quot;/&gt;&lt;/resources&gt;}" />
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${build_project:build.antlr2x}" />
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="incremental,auto,clean" />
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true" />
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${build_project:src/org/codehaus/groovy/antlr}" />
</launchConfiguration>
23 changes: 14 additions & 9 deletions base/org.codehaus.groovy21/.project
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.codehaus.groovy21</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,full,incremental,clean,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/Ant Builder.launch</value>
</dictionary>
<dictionary>
<key>incclean</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
line.separator=\n
102 changes: 90 additions & 12 deletions base/org.codehaus.groovy21/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,12 +1,90 @@
#Sat Oct 04 20:16:40 CDT 2008
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.doc.comment.support=disabled
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
org.eclipse.jdt.core.compiler.problem.deadCode=warning
org.eclipse.jdt.core.compiler.problem.deprecation=ignore
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=disabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=disabled
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedImport=ignore
org.eclipse.jdt.core.compiler.problem.unusedLabel=ignore
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.source=1.5
org.eclipse.jdt.core.formatter.tabulation.char=space
org.eclipse.jdt.core.formatter.tabulation.size=4
48 changes: 35 additions & 13 deletions base/org.codehaus.groovy21/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,38 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Groovy Runtime Plug-in
Bundle-SymbolicName: org.codehaus.groovy
Bundle-Version: 2.1.8.qualifier
Bundle-ClassPath: groovy-eclipse.jar,
lib/ivy-2.2.0.jar,
Bundle-Vendor: Codehaus.org
Bundle-Version: 2.1.9.qualifier
Bundle-ClassPath: eclipse-trace.jar,
groovy-eclipse.jar,
lib/bsf-2.4.0.jar,
lib/groovy-all-2.1.8.jar,
eclipse-trace.jar
Groovy-Runtime-Jars: groovy.jar
lib/ivy-2.2.0.jar,
lib/groovy-all-2.1.9.jar
Export-Package: groovy.beans,
groovy.grape,
groovy.inspect,
groovy.inspect.swingui,
groovy.io,
groovy.jmx.builder,
groovy.json,
groovy.lang,
groovy.mock.interceptor,
groovy.model,
groovy.security,
groovy.servlet,
groovy.sql,
groovy.swing,
groovy.swing.binding,
groovy.swing.factory,
groovy.swing.impl,
groovy.test,
groovy.text,
groovy.time,
groovy.transform,
groovy.ui,
groovy.ui.icons,
groovy.ui.text,
groovy.ui.view,
groovy.util,
groovy.util.logging,
groovy.util.slurpersupport,
Expand All @@ -44,8 +53,10 @@ Export-Package: groovy.beans,
groovyjarjarantlr.debug.misc,
groovyjarjarantlr.preprocessor,
groovyjarjarasm.asm,
groovyjarjarasm.asm.commons,
groovyjarjarasm.asm.signature,
groovyjarjarasm.asm.tree,
groovyjarjarasm.asm.util,
groovyjarjarcommonscli,
org.apache.bsf,
org.apache.bsf.engines.jacl,
Expand All @@ -62,6 +73,7 @@ Export-Package: groovy.beans,
org.codehaus.greclipse,
org.codehaus.groovy,
org.codehaus.groovy.activator,
org.codehaus.groovy.ant,
org.codehaus.groovy.antlr,
org.codehaus.groovy.antlr.java,
org.codehaus.groovy.antlr.parser,
Expand All @@ -76,25 +88,37 @@ Export-Package: groovy.beans,
org.codehaus.groovy.classgen,
org.codehaus.groovy.classgen.asm,
org.codehaus.groovy.classgen.asm.sc,
org.codehaus.groovy.cli,
org.codehaus.groovy.control,
org.codehaus.groovy.control.customizers,
org.codehaus.groovy.control.customizers.builder,
org.codehaus.groovy.control.io,
org.codehaus.groovy.control.messages,
org.codehaus.groovy.eclipse,
org.codehaus.groovy.groovydoc,
org.codehaus.groovy.jsr223,
org.codehaus.groovy.plugin,
org.codehaus.groovy.reflection,
org.codehaus.groovy.reflection.stdclasses,
org.codehaus.groovy.runtime,
org.codehaus.groovy.runtime.callsite,
org.codehaus.groovy.runtime.dgmimpl,
org.codehaus.groovy.runtime.dgmimpl.arrays,
org.codehaus.groovy.runtime.m12n,
org.codehaus.groovy.runtime.memoize,
org.codehaus.groovy.runtime.metaclass,
org.codehaus.groovy.runtime.powerassert,
org.codehaus.groovy.runtime.typehandling,
org.codehaus.groovy.runtime.wrappers,
org.codehaus.groovy.syntax,
org.codehaus.groovy.testng,
org.codehaus.groovy.tools,
org.codehaus.groovy.tools.ast,
org.codehaus.groovy.tools.groovydoc,
org.codehaus.groovy.tools.groovydoc.gstringTemplates,
org.codehaus.groovy.tools.groovydoc.gstringTemplates.classLevel,
org.codehaus.groovy.tools.groovydoc.gstringTemplates.packageLevel,
org.codehaus.groovy.tools.groovydoc.gstringTemplates.topLevel,
org.codehaus.groovy.tools.gse,
org.codehaus.groovy.tools.javac,
org.codehaus.groovy.tools.shell,
Expand All @@ -109,14 +133,12 @@ Export-Package: groovy.beans,
org.codehaus.groovy.vmplugin,
org.codehaus.groovy.vmplugin.v5,
org.codehaus.groovy.vmplugin.v6
Require-Bundle: org.apache.ant,
org.junit,
org.eclipse.core.runtime,
org.apache.commons.logging;resolution:=optional,
org.mozilla.javascript;resolution:=optional
Bundle-Vendor: Codehaus.org
Require-Bundle: org.eclipse.core.runtime,
org.apache.ant;resolution:=optional,
org.junit;resolution:=optional
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Activator: org.codehaus.groovy.activator.GroovyActivator
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Groovy-Runtime-Jars: groovy.jar
Eclipse-BuddyPolicy: registered
Eclipse-BundleShape: dir
Loading

0 comments on commit 8ee17dd

Please sign in to comment.