├── .gitignore ├── .project ├── CODE_OF_CONDUCT.adoc ├── README.md ├── docs ├── .project ├── convert.sh ├── css │ ├── highlight.css │ └── stylesheet.css ├── faq.html ├── gradle-sts-tutorial.html ├── img │ ├── choose-gradle-wizard.png │ ├── console-view.png │ ├── edit-configuration.png │ ├── expanded-classpath-container.png │ ├── gradle-context-menu.png │ ├── gradle-tasks-view.png │ ├── import-again.png │ ├── import-finish.png │ ├── import-jaas-sample.png │ ├── import-root.png │ ├── import-wizard-1.png │ ├── import-wizard-building-model.png │ ├── open-gradle-tasks-view.png │ ├── order-tasks.png │ ├── persisted-container.png │ ├── refresh-tab.png │ ├── run-as-menu.png │ ├── run-before.png │ ├── show-view-other.png │ ├── spring09_logo.png │ ├── sts60x60.png │ ├── task-filter-text.png │ ├── tasks-view-with-filter.png │ ├── toolbar.png │ └── ws-right-after-import.png ├── index.html ├── installation.html └── installation.md ├── license.txt ├── local-build.sh ├── open_source_licenses.txt ├── org.springsource.ide.eclipse.gradle.core.test ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── META-INF │ └── MANIFEST.MF ├── about.html ├── build.properties ├── plugin.xml ├── pom.xml ├── resources │ ├── data │ │ └── antLoadfileResources │ │ │ ├── bar.txt │ │ │ └── foo.txt │ └── projects │ │ ├── multiproject-m6 │ │ ├── boink │ │ │ └── Main.java │ │ ├── boink2 │ │ │ └── Spain.java │ │ ├── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ └── subproject │ │ │ └── build.gradle │ │ ├── multiproject │ │ ├── boink │ │ │ └── Main.java │ │ ├── boink2 │ │ │ └── Spain.java │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── subproject │ │ │ └── build.gradle │ │ ├── non-exported-deps │ │ ├── build.gradle │ │ ├── lib │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── test │ │ │ │ └── lib │ │ │ │ └── Hello.java │ │ ├── main │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── test │ │ │ │ └── main │ │ │ │ └── Main.java │ │ └── settings.gradle │ │ ├── oldWrapperFormat │ │ ├── build.gradle │ │ └── gradle │ │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ │ ├── oldWrapperVersion │ │ ├── build.gradle │ │ └── gradle │ │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ │ ├── quickstart-noeclipse │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── Person.java │ │ │ └── resources │ │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── resource.xml │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── PersonTest.java │ │ │ └── resources │ │ │ └── org │ │ │ └── gradle │ │ │ └── test-resource.xml │ │ ├── remapping-multiproject │ │ ├── build.gradle │ │ ├── lib │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── test │ │ │ │ └── lib │ │ │ │ └── Hello.java │ │ ├── main │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── test │ │ │ │ └── main │ │ │ │ └── Main.java │ │ ├── settings.gradle │ │ └── sublib │ │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── test │ │ │ └── sublib │ │ │ └── SubHello.java │ │ ├── slowstart │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── Person.java │ │ │ └── resources │ │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── resource.xml │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── PersonTest.java │ │ │ └── resources │ │ │ └── org │ │ │ └── gradle │ │ │ └── test-resource.xml │ │ ├── sts-2407 │ │ ├── build.gradle │ │ ├── buildutilities │ │ │ ├── .acignore │ │ │ ├── build.gradle │ │ │ └── gradle │ │ │ │ ├── build.launch │ │ │ │ ├── clean.launch │ │ │ │ ├── jettyRun.launch │ │ │ │ ├── plugins │ │ │ │ ├── accurev.gradle │ │ │ │ ├── aspectJ.gradle │ │ │ │ └── axisWsdl2Java.gradle │ │ │ │ ├── tasks.launch │ │ │ │ └── wrapper │ │ │ │ └── wrapper.properties │ │ ├── projectA │ │ │ ├── build.gradle │ │ │ └── projectB │ │ │ │ ├── projectC │ │ │ │ ├── build.gradle │ │ │ │ └── src │ │ │ │ │ └── main │ │ │ │ │ └── java │ │ │ │ │ └── test │ │ │ │ │ └── Test1.java │ │ │ │ └── projectD │ │ │ │ ├── build.gradle │ │ │ │ └── src │ │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── test │ │ │ │ └── Test1Test.java │ │ └── settings.gradle │ │ ├── sts1842 │ │ ├── build.gradle │ │ ├── greeteds │ │ │ └── world │ │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── World.java │ │ ├── hello │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── Hello.java │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── Greetings.java │ │ ├── sts1950 │ │ ├── A │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── testa │ │ │ │ └── TestA.java │ │ ├── B │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── testb │ │ │ │ └── TestB.java │ │ ├── C │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── testc │ │ │ │ └── TestC.java │ │ ├── build.gradle │ │ └── settings.gradle │ │ ├── sts2175 │ │ ├── build.gradle │ │ ├── settings.gradle │ │ ├── suba │ │ │ ├── README.txt │ │ │ └── src │ │ │ │ ├── main │ │ │ │ └── java │ │ │ │ │ └── README.txt │ │ │ │ └── test │ │ │ │ └── java │ │ │ │ └── README.txt │ │ ├── subb │ │ │ └── README.txt │ │ └── subc │ │ │ └── README.txt │ │ ├── sts2185 │ │ ├── A │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── webapp │ │ │ │ ├── WEB-INF │ │ │ │ └── lib │ │ │ │ │ └── junk.jar │ │ │ │ └── index.jsp │ │ ├── B │ │ │ └── build.gradle │ │ ├── Junk │ │ │ ├── .classpath │ │ │ ├── .project │ │ │ ├── .settings │ │ │ │ └── org.eclipse.jdt.core.prefs │ │ │ ├── README.txt │ │ │ └── src │ │ │ │ └── junk │ │ │ │ └── Junk.java │ │ └── settings.gradle │ │ ├── sts2405 │ │ ├── main │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── gradle │ │ │ │ │ │ └── Person.java │ │ │ │ └── resources │ │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── resource.xml │ │ │ │ └── test │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── PersonTest.java │ │ │ │ └── resources │ │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── test-resource.xml │ │ └── myLib │ │ │ ├── .classpath │ │ │ ├── .project │ │ │ ├── .settings │ │ │ ├── org.eclipse.jdt.core.prefs │ │ │ └── org.eclipse.m2e.core.prefs │ │ │ ├── pom.xml │ │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── gradle │ │ │ └── CoolClass.java │ │ ├── sts2834 │ │ ├── my-app │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── myapp │ │ │ │ └── Main.java │ │ └── my-lib │ │ │ ├── build.gradle │ │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── mylib │ │ │ └── Utils.java │ │ ├── sts3742 │ │ ├── build.gradle │ │ ├── lib │ │ │ ├── my-jar-sources.jar │ │ │ └── my-jar.jar │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── main │ │ │ └── Web.java │ │ ├── sts3953 │ │ ├── FlatMulti │ │ │ ├── .classpath │ │ │ ├── .project │ │ │ ├── .settings │ │ │ │ └── gradle │ │ │ │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ │ │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs │ │ │ ├── build.gradle │ │ │ └── settings.gradle │ │ ├── my-lib │ │ │ ├── .classpath │ │ │ ├── .project │ │ │ ├── .settings │ │ │ │ ├── gradle │ │ │ │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ │ │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs │ │ │ │ └── org.eclipse.jdt.core.prefs │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ ├── my │ │ │ │ │ │ └── cool │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ └── CoolLib.java │ │ │ │ │ └── org │ │ │ │ │ │ └── gradle │ │ │ │ │ │ └── Person.java │ │ │ │ └── resources │ │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── resource.xml │ │ │ │ └── test │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── PersonTest.java │ │ │ │ └── resources │ │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── test-resource.xml │ │ └── product │ │ │ ├── .classpath │ │ │ ├── .project │ │ │ ├── .settings │ │ │ ├── gradle │ │ │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs │ │ │ └── org.eclipse.jdt.core.prefs │ │ │ ├── build.gradle │ │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── my │ │ │ │ │ └── cool │ │ │ │ │ └── app │ │ │ │ │ └── Runner.java │ │ │ └── resources │ │ │ │ └── README.txt │ │ │ └── test │ │ │ ├── java │ │ │ └── README.txt │ │ │ └── resources │ │ │ └── README.txt │ │ └── sts_2205 │ │ ├── build.gradle │ │ └── src │ │ └── main │ │ └── java │ │ ├── testb │ │ └── TestB.java │ │ └── testb2 │ │ └── TestB2.java └── src │ └── org │ └── springsource │ └── ide │ └── eclipse │ └── gradle │ └── core │ ├── modelmanager │ └── test │ │ ├── DefaultModelBuilderTest.java │ │ ├── GradleModelManagerTest.java │ │ └── ModelPromise.java │ └── test │ ├── AllGradleCoreTests.java │ ├── ArgumentsParserTests.java │ ├── ArrayEncoderTest.java │ ├── ClasspathContainerTests.java │ ├── DistributionValidatorTest.java │ ├── GradleImportTests.java │ ├── GradleMenuEnablementTest.java │ ├── GradleProjectTest.java │ ├── GradleRefreshPreferencesTest.java │ ├── GradleSampleProjectTest.java │ ├── GradleTaskRunTest.java │ ├── GradleTest.java │ ├── JarRemappingTests.java │ ├── MockNewProjectWizardUI.java │ ├── NewProjectWizardValidatorTest.java │ ├── Predicate.java │ ├── TopoSortTest.java │ └── util │ ├── ACondition.java │ ├── AddedResourceListener.java │ ├── ExternalCommand.java │ ├── ExternalProcess.java │ ├── GitProject.java │ ├── InterruptEater.java │ ├── JUnitLaunchConfigUtil.java │ ├── JavaUtils.java │ ├── JavaXXRuntime.java │ ├── KillGradleDaemons.java │ ├── LoggingProgressMonitor.java │ ├── ManagedTestSuite.java │ ├── MavenCommand.java │ ├── RefreshAllActionCoreTests.java │ ├── TestProjectConfigurators.java │ └── TestUtils.java ├── org.springsource.ide.eclipse.gradle.core ├── .classpath ├── .project ├── .settings │ ├── gradle │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.jdt.groovy.core.prefs ├── META-INF │ ├── MANIFEST.MF │ └── p2.inf ├── about.html ├── build.properties ├── plugin.xml ├── pom.xml ├── samples │ └── flat-java-multiproject │ │ ├── build.gradle │ │ ├── my-lib │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ ├── my │ │ │ │ │ └── cool │ │ │ │ │ │ └── lib │ │ │ │ │ │ └── CoolLib.java │ │ │ │ └── org │ │ │ │ │ └── gradle │ │ │ │ │ └── Person.java │ │ │ └── resources │ │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── resource.xml │ │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── gradle │ │ │ │ └── PersonTest.java │ │ │ └── resources │ │ │ └── org │ │ │ └── gradle │ │ │ └── test-resource.xml │ │ ├── product │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── my │ │ │ │ │ └── cool │ │ │ │ │ └── app │ │ │ │ │ └── Runner.java │ │ │ └── resources │ │ │ │ └── README.txt │ │ │ └── test │ │ │ ├── java │ │ │ └── README.txt │ │ │ └── resources │ │ │ └── README.txt │ │ └── settings.gradle ├── schema │ └── projectConfigurators.exsd └── src │ └── org │ └── springsource │ └── ide │ └── eclipse │ └── gradle │ └── core │ ├── ClassPath.java │ ├── Debug.java │ ├── DefaultProjectMapper.java │ ├── ExistingWorkspaceProjectMapper.java │ ├── GradleCore.java │ ├── GradleNature.java │ ├── GradleProject.java │ ├── GradleProjectManager.java │ ├── GradleSaveParticipant.java │ ├── IProjectMapper.java │ ├── InconsistenProjectHierarchyException.java │ ├── ProjectConfigurationManager.java │ ├── ProjectConfigurationRequest.java │ ├── ProjectHierarchyVisitor.java │ ├── ProjectMapperFactory.java │ ├── ProjectOpenCloseListener.java │ ├── ProjectOpenCloseListenerManager.java │ ├── SystemPropertyCleaner.java │ ├── TaskUtil.java │ ├── actions │ ├── Continuable.java │ ├── GradleRefreshPreferences.java │ ├── IProjectProvider.java │ ├── RefreshAllActionCore.java │ ├── RefreshDependenciesActionCore.java │ └── ReimportOperation.java │ ├── api │ ├── IProjectConfigurationRequest.java │ └── IProjectConfigurator.java │ ├── autorefresh │ ├── DependencyRefresher.java │ ├── GradleWorkspaceListener.java │ └── IDirtyProjectListener.java │ ├── classpathcontainer │ ├── ClassPathModel.java │ ├── FastOperationFailedException.java │ ├── GradleClassPathContainer.java │ ├── GradleClasspathContainerInitializer.java │ ├── GradleDependencyComputer.java │ ├── JarRemapRefresher.java │ └── MarkerMaker.java │ ├── launch │ ├── GradleLaunchConfigurationDelegate.java │ ├── GradleOutputStreamMonitor.java │ ├── GradlePipedInputStream.java │ ├── GradleProcess.java │ ├── GradleStreamsProxy.java │ ├── LaunchTerminationListener.java │ └── LaunchUtil.java │ ├── m2e │ └── M2EUtils.java │ ├── modelmanager │ ├── AbstractModelBuilder.java │ ├── BuildResult.java │ ├── BuildScheduler.java │ ├── BuildStrategy.java │ ├── DefaultModelBuilder.java │ ├── GradleModelManager.java │ ├── GradleProjectModelManager.java │ ├── HierarchicalProjectBuildStrategy.java │ ├── IGradleModelListener.java │ ├── Lock.java │ ├── LockManager.java │ ├── ModelBuilder.java │ ├── ProjectBuildResult.java │ ├── SingleProjectBuildStrategy.java │ └── ToolinApiUtils.java │ ├── preferences │ ├── AbstractGradlePreferences.java │ ├── AbstractGradleProjectPreferences.java │ ├── GlobalSettings.java │ ├── GradleAPIProperties.java │ ├── GradleImportPreferences.java │ ├── GradlePreferences.java │ ├── GradleProjectPreferences.java │ └── IJavaHomePreferences.java │ ├── samples │ ├── GradleDistributionSample.java │ ├── LocalSample.java │ ├── SampleProject.java │ └── SampleProjectRegistry.java │ ├── util │ ├── ArgumentsCustomizerHelper.java │ ├── ArgumentsParser.java │ ├── ArrayEncoder.java │ ├── Box.java │ ├── BusyStatus.java │ ├── ConsoleUtil.java │ ├── Continuation.java │ ├── Distributions.java │ ├── DownloadManager.java │ ├── ErrorHandler.java │ ├── ExceptionUtil.java │ ├── Gradle1792BugException.java │ ├── GradleOpearionProgressMonitor.java │ ├── GradleProjectIndex.java │ ├── GradleProjectSorter.java │ ├── GradleProjectUtil.java │ ├── GradleRunnable.java │ ├── HttpUtil.java │ ├── IllegalClassPathEntryException.java │ ├── JavaRuntimeUtils.java │ ├── JobUtil.java │ ├── Joinable.java │ ├── JoinableContinuation.java │ ├── NatureUtils.java │ ├── NullJoinable.java │ ├── ObjectUtil.java │ ├── OsUtils.java │ ├── ProjectTasksVisibility.java │ ├── ResourceFilterFactory.java │ ├── ResourceListEncoder.java │ ├── RestrictedCapacityStack.java │ ├── SystemOutAsProgress.java │ ├── TimeUtils.java │ ├── TopoSort.java │ ├── WorkspaceUtil.java │ ├── ZipFileUtil.java │ └── expression │ │ ├── LiveExpression.java │ │ ├── LiveVariable.java │ │ └── ValueListener.java │ ├── validators │ ├── CompositeValidator.java │ ├── DistributionValidator.java │ ├── DistributionValidatorContext.java │ ├── JavaHomeValidator.java │ ├── JavaHomeValidatorContext.java │ ├── NewProjectLocationValidator.java │ ├── ProjectNameValidator.java │ ├── SampleProjectValidator.java │ ├── ValidationResult.java │ └── Validator.java │ ├── wizards │ ├── FlatPrecomputedProjectMapper.java │ ├── GradleImportOperation.java │ ├── HierarchicalProjectMapper.java │ ├── NewGradleProjectOperation.java │ └── PrecomputedProjectMapper.java │ └── wtp │ ├── DeploymentExclusions.java │ ├── RegexpListDeploymentExclusions.java │ └── WTPUtil.java ├── org.springsource.ide.eclipse.gradle.feature ├── .project ├── build.properties ├── feature.properties ├── feature.xml ├── license.txt ├── open_source_licenses.txt └── pom.xml ├── org.springsource.ide.eclipse.gradle.site ├── .project ├── category.xml └── pom.xml ├── org.springsource.ide.eclipse.gradle.toolingapi ├── .classpath ├── .project ├── .settings │ ├── gradle │ │ └── org.springsource.ide.eclipse.gradle.core.prefs │ └── org.eclipse.jdt.core.prefs ├── META-INF │ └── MANIFEST.MF ├── about.html ├── build.properties ├── embedded-libs.properties ├── lib │ ├── .gitignore │ └── README.txt ├── pom.xml ├── src │ └── org │ │ └── springsource │ │ └── ide │ │ └── eclipse │ │ └── gradle │ │ └── toolingapi │ │ └── GradleToolingApi.java └── toolingCustomModel │ └── init.gradle ├── org.springsource.ide.eclipse.gradle.ui.taskview ├── .classpath ├── .project ├── .settings │ ├── gradle │ │ └── com.springsource.sts.gradle.core.prefs │ └── org.eclipse.jdt.core.prefs ├── META-INF │ └── MANIFEST.MF ├── about.html ├── build.properties ├── icons │ ├── gradle-icon-16.png │ └── sample.gif ├── plugin.xml ├── pom.xml └── src │ └── org │ └── springsource │ └── ide │ └── eclipse │ └── gradle │ └── ui │ └── taskview │ ├── GradleTasksView.java │ ├── GradleTasksViewPlugin.java │ ├── ProjectSelector.java │ ├── RefreshAction.java │ ├── TaskLabelProvider.java │ ├── TaskTreeContentProvider.java │ ├── TasksConsoleAction.java │ ├── ToggleHideInternalTasks.java │ ├── ToggleLinkingAction.java │ └── ToggleProjectTasks.java ├── org.springsource.ide.eclipse.gradle.ui ├── .classpath ├── .project ├── .settings │ ├── gradle │ │ └── com.springsource.sts.gradle.core.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.maven.ide.eclipse.prefs ├── META-INF │ ├── MANIFEST.MF │ └── p2.inf ├── about.html ├── build.properties ├── icons-sources │ ├── fldr_obj.png │ ├── folder.png │ ├── gradle-import-wizban.svg │ ├── gradle-import.svg │ ├── gradle-launch.svg │ ├── gradle-multiproj-folder-disabled.svg │ ├── gradle-multiproj-folder.svg │ ├── gradle-nature.svg │ ├── gradle-proj-folder.svg │ ├── gradle-project.svg │ ├── new-gradle-project.svg │ └── prj_obj.png ├── icons │ ├── filter_internal_targets.png │ ├── gradle-big-icon.png │ ├── gradle-import-wizban.png │ ├── gradle-import.png │ ├── gradle-launch.png │ ├── gradle-multiproj-folder-disabled.png │ ├── gradle-multiproj-folder.png │ ├── gradle-nature.png │ ├── gradle-proj-folder.png │ ├── run_tool.png │ ├── targetinternal_obj.png │ ├── targetloading.png │ └── targetpublic_obj.png ├── plugin.xml ├── pom.xml └── src │ └── org │ └── springsource │ └── ide │ └── eclipse │ └── gradle │ └── ui │ ├── ArgumentsSection.java │ ├── ArgumentsValidator.java │ ├── ArgumentsValidatorContext.java │ ├── DependencyManagementSection.java │ ├── DistributionSection.java │ ├── GradleArgumentsPreferencesPage.java │ ├── GradlePreferencesPage.java │ ├── GradleProjectPropertyPage.java │ ├── GradleUI.java │ ├── GradleUserHomeSection.java │ ├── IPageWithSections.java │ ├── JVMArgumentsSection.java │ ├── JavaHomeSection.java │ ├── JavaHomeSectionImpl.java │ ├── PreferencePageWithSections.java │ ├── PrefsPageSection.java │ ├── ProgramArgumentsSection.java │ ├── WTPPreferencesPage.java │ ├── actions │ ├── ConsoleInplaceDialogActionDelegate.java │ ├── ConvertToGradleProjectActionDelegate.java │ ├── DisableGradleNatureAction.java │ ├── EnableDisableDependencyManagementActionDelegate.java │ ├── GradleProjectActionDelegate.java │ ├── RefreshAction.java │ ├── RefreshAllAction.java │ ├── RefreshAllHandler.java │ ├── RefreshDependenciesAction.java │ └── RefreshSourceFoldersAction.java │ ├── cli │ ├── editor │ │ ├── TaskCompletionProposal.java │ │ ├── TaskContentAssistantProcessor.java │ │ ├── TaskInformationProvider.java │ │ ├── TasksAnnotationModel.java │ │ ├── TasksViewer.java │ │ └── TasksViewerConfiguration.java │ └── inplace │ │ ├── ConsoleInplaceDialog.java │ │ └── PopupTable.java │ ├── launch │ ├── ArgumentsLaunchTabSection.java │ ├── GradleLaunchArgumentsTab.java │ ├── GradleLaunchShortcut.java │ ├── GradleLaunchTabGroup.java │ ├── GradleLaunchTasksTab.java │ ├── JVMArgumentsLaunchTabSection.java │ ├── JavaHomeLaunchTabSection.java │ ├── LaunchTabSection.java │ ├── LaunchTabWithSections.java │ └── ProgramArgumentsLaunchTabSection.java │ ├── util │ ├── DialogSettingsUtil.java │ ├── GradleLabelProvider.java │ ├── PageSection.java │ ├── SelectionUtils.java │ └── UIJobUtil.java │ └── wizards │ ├── ExistingGradleProjectFilter.java │ ├── GradleImportWizard.java │ ├── GradleImportWizardPageOne.java │ ├── GradleProjectTreeContentProvider.java │ ├── GradleProjectTreeLabelProvider.java │ ├── GradleProjectTreeLabelProviderWithDescription.java │ ├── NewGradleProjectWizard.java │ ├── NewGradleProjectWizardPage.java │ ├── NewProjectNameSection.java │ ├── ProjectLocationSection.java │ ├── SampleProjectSection.java │ ├── TaskRunLine.java │ ├── WizardPageSection.java │ ├── WizardPageWithSections.java │ └── WorkingSetGroup.java ├── pom.xml └── toolingapi ├── .gitignore ├── .settings └── gradle │ ├── org.springsource.ide.eclipse.gradle.core.import.prefs │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ └── org.springsource.ide.eclipse.gradle.refresh.prefs ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── integrationTests ├── .settings │ └── gradle │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs ├── build.gradle ├── projects │ ├── init.gradle │ ├── multiproject-cycle │ │ ├── a │ │ │ └── build.gradle │ │ ├── b │ │ │ └── build.gradle │ │ └── settings.gradle │ ├── multiproject │ │ ├── a │ │ │ └── build.gradle │ │ ├── b │ │ │ └── build.gradle │ │ ├── build.gradle │ │ ├── minus │ │ │ └── build.gradle │ │ ├── plus │ │ │ └── build.gradle │ │ └── settings.gradle │ └── pluginproject │ │ └── build.gradle └── src │ └── test │ └── java │ └── StsEclipseProjectTest.java ├── model ├── .settings │ └── gradle │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs ├── build.gradle └── src │ └── main │ └── java │ └── io │ └── pivotal │ └── tooling │ └── model │ └── eclipse │ ├── StsEclipseProject.java │ └── StsEclipseProjectDependency.java ├── plugin ├── .settings │ └── gradle │ │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ │ └── org.springsource.ide.eclipse.gradle.refresh.prefs ├── build.gradle └── src │ └── main │ └── java │ └── io │ └── pivotal │ └── tooling │ └── plugin │ └── eclipse │ ├── DefaultStsEclipseExternalDependency.java │ ├── DefaultStsEclipseProject.java │ ├── DefaultStsEclipseProjectDependency.java │ ├── EclipseToolingModelPlugin.java │ ├── EclipseToolingModelPluginExtension.java │ └── StsEclipseProjectModelBuilder.java ├── settings.gradle └── updateLibs ├── .settings └── gradle │ ├── org.springsource.ide.eclipse.gradle.core.prefs │ └── org.springsource.ide.eclipse.gradle.refresh.prefs └── build.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | .gradle 3 | *.class 4 | *.zip 5 | /org.springsource.ide.eclipse.gradle.updatesite/*.jar 6 | /org.springsource.ide.eclipse.gradle.updatesite/features/*.jar 7 | /org.springsource.ide.eclipse.gradle.updatesite/plugins/*.jar 8 | /*/target 9 | /target 10 | /org.springsource.ide.eclipse.gradle.core.test/resources/gitprojects 11 | **/hs_err_pid*.log 12 | 13 | /org.springsource.ide.eclipse.gradle.core/src/gradle-api.properties 14 | /org.springsource.ide.eclipse.gradle.core/gradle.out 15 | /README.html 16 | /org.springsource.ide.eclipse.gradle.toolingapi/gradle.out 17 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.ROOT 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 1340825059590 14 | 15 | 10 16 | 17 | org.eclipse.ui.ide.multiFilter 18 | 1.0-projectRelativePath-matches-false-false-org.springsource.ide.eclipse.gradle.* 19 | 20 | 21 | 22 | 1340825059592 23 | 24 | 10 25 | 26 | org.eclipse.ui.ide.multiFilter 27 | 1.0-name-matches-false-false-org.gradle.* 28 | 29 | 30 | 31 | 1340825059596 32 | 33 | 10 34 | 35 | org.eclipse.ui.ide.multiFilter 36 | 1.0-projectRelativePath-matches-false-false-commons 37 | 38 | 39 | 40 | 1340825059599 41 | 42 | 9 43 | 44 | org.eclipse.ui.ide.multiFilter 45 | 1.0-projectRelativePath-matches-false-false-docs 46 | 47 | 48 | 49 | 1340825059602 50 | 51 | 10 52 | 53 | org.eclipse.ui.ide.multiFilter 54 | 1.0-projectRelativePath-matches-false-false-docs 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /docs/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | docs 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/convert.sh: -------------------------------------------------------------------------------- 1 | echo "" 2 | echo "" 3 | echo "" 4 | echo "Gradle STS Tooling Docs" 5 | echo "" 6 | #echo "\"logo\"" 7 | #echo "\"logo\"" 8 | markdown $1 9 | echo "" 10 | 11 | -------------------------------------------------------------------------------- /docs/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* 2 | code highlight CSS resemblign the Eclipse IDE default color schema 3 | @author Costin Leau 4 | */ 5 | 6 | .hl-keyword { 7 | color: #7F0055; 8 | font-weight: bold; 9 | } 10 | 11 | .hl-comment { 12 | color: #3F5F5F; 13 | font-style: italic; 14 | } 15 | 16 | .hl-multiline-comment { 17 | color: #3F5FBF; 18 | font-style: italic; 19 | } 20 | 21 | .hl-tag { 22 | color: #3F7F7F; 23 | } 24 | 25 | .hl-attribute { 26 | color: #7F007F; 27 | } 28 | 29 | .hl-value { 30 | color: #2A00FF; 31 | } 32 | 33 | .hl-string { 34 | color: #2A00FF; 35 | } -------------------------------------------------------------------------------- /docs/img/choose-gradle-wizard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/choose-gradle-wizard.png -------------------------------------------------------------------------------- /docs/img/console-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/console-view.png -------------------------------------------------------------------------------- /docs/img/edit-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/edit-configuration.png -------------------------------------------------------------------------------- /docs/img/expanded-classpath-container.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/expanded-classpath-container.png -------------------------------------------------------------------------------- /docs/img/gradle-context-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/gradle-context-menu.png -------------------------------------------------------------------------------- /docs/img/gradle-tasks-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/gradle-tasks-view.png -------------------------------------------------------------------------------- /docs/img/import-again.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-again.png -------------------------------------------------------------------------------- /docs/img/import-finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-finish.png -------------------------------------------------------------------------------- /docs/img/import-jaas-sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-jaas-sample.png -------------------------------------------------------------------------------- /docs/img/import-root.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-root.png -------------------------------------------------------------------------------- /docs/img/import-wizard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-wizard-1.png -------------------------------------------------------------------------------- /docs/img/import-wizard-building-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/import-wizard-building-model.png -------------------------------------------------------------------------------- /docs/img/open-gradle-tasks-view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/open-gradle-tasks-view.png -------------------------------------------------------------------------------- /docs/img/order-tasks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/order-tasks.png -------------------------------------------------------------------------------- /docs/img/persisted-container.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/persisted-container.png -------------------------------------------------------------------------------- /docs/img/refresh-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/refresh-tab.png -------------------------------------------------------------------------------- /docs/img/run-as-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/run-as-menu.png -------------------------------------------------------------------------------- /docs/img/run-before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/run-before.png -------------------------------------------------------------------------------- /docs/img/show-view-other.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/show-view-other.png -------------------------------------------------------------------------------- /docs/img/spring09_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/spring09_logo.png -------------------------------------------------------------------------------- /docs/img/sts60x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/sts60x60.png -------------------------------------------------------------------------------- /docs/img/task-filter-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/task-filter-text.png -------------------------------------------------------------------------------- /docs/img/tasks-view-with-filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/tasks-view-with-filter.png -------------------------------------------------------------------------------- /docs/img/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/toolbar.png -------------------------------------------------------------------------------- /docs/img/ws-right-after-import.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/docs/img/ws-right-after-import.png -------------------------------------------------------------------------------- /local-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #This is the command that I run when testing the build locally 4 | #mvn -Dmaven.test.skip=true -Dp2.qualifier=M2 -Pe37 clean install 5 | #mvn -Dp2.qualifier=M2 -Pe37 clean install 6 | mvn -Dp2.qualifier=M3 -Pe42 clean install 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.core.test 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | 30 | 1365114673930 31 | 32 | 10 33 | 34 | org.eclipse.ui.ide.multiFilter 35 | 1.0-projectRelativePath-matches-false-false-target 36 | 37 | 38 | 39 | 1552078486477 40 | src/org/springsource/ide/eclipse/gradle/core/test 41 | 10 42 | 43 | org.eclipse.ui.ide.multiFilter 44 | 1.0-name-matches-false-false-target 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.7 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Test 4 | Bundle-SymbolicName: org.springsource.ide.eclipse.gradle.core.test;singleton:=true 5 | Bundle-Version: 3.9.4.qualifier 6 | Bundle-Vendor: Pivotal Software, Inc. 7 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7 8 | Require-Bundle: org.junit, 9 | org.eclipse.ui.ide.application, 10 | org.eclipse.ui, 11 | org.eclipse.core.runtime, 12 | org.apache.commons.io, 13 | org.eclipse.jdt.core, 14 | org.eclipse.debug.ui, 15 | org.springsource.ide.eclipse.gradle.core, 16 | org.springsource.ide.eclipse.gradle.ui, 17 | org.eclipse.jdt.launching, 18 | org.eclipse.jdt.junit, 19 | org.eclipse.m2e.archetype.common, 20 | org.eclipse.m2e.maven.indexer, 21 | org.eclipse.m2e.model.edit, 22 | org.eclipse.m2e.core, 23 | org.eclipse.m2e.launching, 24 | org.eclipse.m2e.jdt, 25 | org.eclipse.m2e.editor, 26 | org.eclipse.m2e.editor.xml, 27 | org.eclipse.m2e.maven.runtime, 28 | org.eclipse.m2e.refactoring, 29 | org.eclipse.m2e.lifecyclemapping.defaults, 30 | org.eclipse.m2e.discovery, 31 | org.eclipse.m2e.core.ui, 32 | org.eclipse.m2e.scm, 33 | org.springsource.ide.eclipse.gradle.toolingapi, 34 | org.eclipse.equinox.ds, 35 | org.eclipse.equinox.event, 36 | org.eclipse.ui.workbench, 37 | org.eclipse.jdt.ui 38 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Gradle Integration for Eclipse 6 | 7 | 8 | 9 |

About Gradle Integration for Eclipse

10 |

June 30, 2015

11 |

Abstract

12 |

The Gradle Integration for Eclipse project provides Eclipse integration 13 | support for Gradle.

14 |

License

15 |

Pivotal Software, Inc. (“Pivotal”) makes available all content 16 | in this download ("Content"). Unless otherwise indicated below, the 17 | Content is provided to you under the terms and conditions of the Eclipse 18 | Public License Version 1.0 ("EPL"). A copy of the EPL is available in 19 | the file called license.txt. For purposes of the EPL, "Program" will 20 | mean the Content.

21 |

Third Party Content

22 |

The Content includes items that have been sourced from third parties, as 23 | set out in the file called open_source_licenses.txt, located in the 24 | feature components of this project.

25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | resources/,\ 6 | plugin.xml 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/data/antLoadfileResources/bar.txt: -------------------------------------------------------------------------------- 1 | This is my bar! 2 | which is not quite foo! 3 | instead it is bar... 4 | but it also has text. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/data/antLoadfileResources/foo.txt: -------------------------------------------------------------------------------- 1 | This my foo 2 | and it has some very foo-like 3 | text. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/boink/Main.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Main { 12 | public static void main(String[] args) { 13 | System.out.println("Hello world!"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/boink2/Spain.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Spain { 12 | public static void main(String[] args) { 13 | System.out.println("Hello Spain!"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/build.gradle: -------------------------------------------------------------------------------- 1 | task wrapper(type: Wrapper) { 2 | gradleVersion = '1.0-milestone-6' 3 | } 4 | 5 | subprojects { 6 | apply plugin: 'java' 7 | apply plugin: 'eclipse' 8 | 9 | repositories { 10 | maven { url 'https://repo.maven.apache.org/maven2/' } 11 | } 12 | 13 | dependencies { 14 | testCompile 'junit:junit:4.8.2' 15 | } 16 | 17 | version = '1.0' 18 | 19 | jar { 20 | manifest.attributes provider: 'gradle' 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Jan 16 13:16:20 PST 2012 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-bin.zip 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | include "subproject" 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject-m6/subproject/build.gradle: -------------------------------------------------------------------------------- 1 | sourceSets { 2 | main { 3 | java { 4 | srcDir '../boink' 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject/boink/Main.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Main { 12 | public static void main(String[] args) { 13 | System.out.println("Hello world!"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject/boink2/Spain.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Spain { 12 | public static void main(String[] args) { 13 | System.out.println("Hello Spain!"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'eclipse' 4 | 5 | repositories { 6 | mavenCentral() 7 | } 8 | 9 | dependencies { 10 | testCompile 'junit:junit:4.8.2' 11 | } 12 | 13 | version = '1.0' 14 | 15 | jar { 16 | manifest.attributes provider: 'gradle' 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject/settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | include "subproject" 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/multiproject/subproject/build.gradle: -------------------------------------------------------------------------------- 1 | sourceSets { 2 | main { 3 | java { 4 | srcDir '../boink' 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/non-exported-deps/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | 4 | repositories { 5 | mavenCentral() 6 | } 7 | 8 | } 9 | 10 | 11 | project(":main") { 12 | dependencies { 13 | compile project(":lib") 14 | } 15 | } 16 | 17 | project(":lib") { 18 | dependencies { 19 | compile "commons-collections:commons-collections:3.2.1" 20 | } 21 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/non-exported-deps/lib/src/main/java/org/test/lib/Hello.java: -------------------------------------------------------------------------------- 1 | package org.test.lib; 2 | 3 | public class Hello { 4 | 5 | public static void sayHello(String name) { 6 | System.out.println("Hello "+name); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/non-exported-deps/main/src/main/java/org/test/main/Main.java: -------------------------------------------------------------------------------- 1 | package org.test.main; 2 | 3 | import org.apache.commons.collections.buffer.CircularFifoBuffer; 4 | import org.test.lib.Hello; 5 | 6 | public class Main { 7 | 8 | public static void main(String[] args) { 9 | new CircularFifoBuffer(); 10 | Hello.sayHello("Kris"); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/non-exported-deps/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'main' 2 | include 'lib' -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/oldWrapperFormat/build.gradle: -------------------------------------------------------------------------------- 1 | task wrapper(type: Wrapper) { 2 | gradleVersion = '1.0-milestone-2' 3 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/oldWrapperFormat/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 27 06:30:22 EDT 2010 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | distributionVersion=1.0-milestone-2 6 | zipStorePath=wrapper/dists 7 | urlRoot=https\://gradle.artifactoryonline.com/gradle/distributions 8 | distributionName=gradle 9 | distributionClassifier=bin 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/oldWrapperVersion/build.gradle: -------------------------------------------------------------------------------- 1 | task wrapper(type: Wrapper) { 2 | gradleVersion = '1.0-milestone-2' 3 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/oldWrapperVersion/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Jun 06 14:51:52 PDT 2011 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-2-bin.zip 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/quickstart-noeclipse/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | sourceCompatibility = 1.5 4 | version = '1.0' 5 | jar { 6 | manifest { 7 | attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version 8 | } 9 | } 10 | 11 | repositories { 12 | mavenCentral() 13 | } 14 | 15 | dependencies { 16 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 17 | testCompile group: 'junit', name: 'junit', version: '4.+' 18 | } 19 | 20 | test { 21 | systemProperties 'property': 'value' 22 | } 23 | 24 | uploadArchives { 25 | repositories { 26 | flatDir { 27 | dirs 'repos' 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/quickstart-noeclipse/src/main/java/org/gradle/Person.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.apache.commons.collections.list.GrowthList; 4 | 5 | public class Person { 6 | private final String name; 7 | 8 | public Person(String name) { 9 | this.name = name; 10 | new GrowthList(); 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/quickstart-noeclipse/src/main/resources/org/gradle/resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/quickstart-noeclipse/src/test/java/org/gradle/PersonTest.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.junit.Test; 4 | import static org.junit.Assert.*; 5 | 6 | public class PersonTest { 7 | @Test 8 | public void canConstructAPersonWithAName() { 9 | Person person = new Person("Larry"); 10 | assertEquals("Larry", person.getName()); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/quickstart-noeclipse/src/test/resources/org/gradle/test-resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/remapping-multiproject/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'maven-publish' 4 | 5 | repositories { 6 | maven { 7 | url file("${rootDir}/../repos/maven").toURI() 8 | } 9 | mavenCentral() 10 | } 11 | 12 | task sourceJar(type: Jar) { 13 | from sourceSets.main.allJava 14 | } 15 | 16 | publishing { 17 | repositories { 18 | maven { 19 | url file("${rootDir}/../repos/maven").toURI() 20 | } 21 | } 22 | 23 | publications { 24 | maven(MavenPublication) { 25 | from components.java 26 | 27 | artifact sourceJar { 28 | classifier 'sources' 29 | } 30 | } 31 | } 32 | } 33 | } 34 | 35 | 36 | project(":main") { 37 | dependencies { 38 | compile project(":lib") 39 | } 40 | } 41 | 42 | project(":lib") { 43 | dependencies { 44 | compile project(":sublib") 45 | compile "commons-collections:commons-collections:3.2.1" 46 | } 47 | } 48 | 49 | project(":sublib") { 50 | dependencies { 51 | compile "commons-collections:commons-collections:3.2" 52 | } 53 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/remapping-multiproject/lib/src/main/java/org/test/lib/Hello.java: -------------------------------------------------------------------------------- 1 | package org.test.lib; 2 | 3 | import org.test.sublib.SubHello; 4 | 5 | public class Hello { 6 | 7 | public static void sayHello(String name) { 8 | SubHello.hello(name); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/remapping-multiproject/main/src/main/java/org/test/main/Main.java: -------------------------------------------------------------------------------- 1 | package org.test.main; 2 | 3 | import org.apache.commons.collections.buffer.CircularFifoBuffer; 4 | import org.test.lib.Hello; 5 | import org.test.sublib.SubHello; 6 | 7 | public class Main { 8 | 9 | public static void main(String[] args) { 10 | new CircularFifoBuffer(); 11 | Hello.sayHello("Kris"); 12 | SubHello.hello("Subby"); 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/remapping-multiproject/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'main' 2 | include 'lib' 3 | include 'sublib' -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/remapping-multiproject/sublib/src/main/java/org/test/sublib/SubHello.java: -------------------------------------------------------------------------------- 1 | package org.test.sublib; 2 | 3 | public class SubHello { 4 | 5 | public static void hello(String name) { 6 | System.out.println("Hello "+name); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/slowstart/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse' 3 | 4 | sourceCompatibility = 1.5 5 | version = '1.0' 6 | jar { 7 | manifest { 8 | attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version 9 | } 10 | } 11 | 12 | def beVerySlow() { 13 | for (int i = 0; i < 20; i++) { 14 | Thread.sleep(5000); 15 | println "Working "+(i+1) 16 | } 17 | } 18 | 19 | repositories { 20 | beVerySlow() 21 | mavenCentral() 22 | } 23 | 24 | dependencies { 25 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 26 | testCompile group: 'junit', name: 'junit', version: '4.+' 27 | } 28 | 29 | test { 30 | systemProperties 'property': 'value' 31 | } 32 | 33 | uploadArchives { 34 | repositories { 35 | flatDir { 36 | dirs 'repos' 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/slowstart/src/main/java/org/gradle/Person.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.apache.commons.collections.list.GrowthList; 4 | 5 | public class Person { 6 | private final String name; 7 | 8 | public Person(String name) { 9 | this.name = name; 10 | new GrowthList(); 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/slowstart/src/main/resources/org/gradle/resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/slowstart/src/test/java/org/gradle/PersonTest.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.junit.Test; 4 | import static org.junit.Assert.*; 5 | 6 | public class PersonTest { 7 | @Test 8 | public void canConstructAPersonWithAName() { 9 | Person person = new Person("Larry"); 10 | assertEquals("Larry", person.getName()); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/slowstart/src/test/resources/org/gradle/test-resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/build.gradle: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | mavenCentral() 4 | } 5 | } 6 | 7 | task createGradleWrapper(type: Wrapper) { 8 | jarFile = 'buildutilities/gradle/wrapper/wrapper.jar' 9 | } 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/.acignore: -------------------------------------------------------------------------------- 1 | build 2 | bin 3 | bin/* 4 | .gradle 5 | .settings 6 | .settings/* 7 | .project 8 | .classpath 9 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/build.gradle: -------------------------------------------------------------------------------- 1 | //apply from: rootProject.file("buildutilities/gradle/plugins/accurev.gradle") 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/build.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/clean.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/jettyRun.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/plugins/accurev.gradle: -------------------------------------------------------------------------------- 1 | //def accurev = new File("C:/Program Files/Accurev/bin/accurev") 2 | 3 | if (['accurev1', '-version'].execute().err.text) { 4 | logger.warn "Cannot find Accurev binaries. Accurev tasks will not be loaded" 5 | } else { 6 | task includeModule << { 7 | System.in.withReader {console-> 8 | println "What module do you want to include? Please use a slash format (e.g. cswrapper/cssearch)" 9 | def module = console.readLine() 10 | println "What Accurev stream do you want to add this to?" 11 | def stream = console.readLine() 12 | def out = new StringBuilder() 13 | def err = new StringBuilder() 14 | def proc = ['accurev', 'incl', '-s', stream, module].execute() 15 | proc.waitForProcessOutput(out, err) 16 | if (out) println out 17 | if (err) println err 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/tasks.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/buildutilities/gradle/wrapper/wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 10 14:06:35 CST 2012 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-6-bin.zip 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/projectA/build.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.filters.* 2 | 3 | defaultTasks = ['build'] 4 | 5 | subprojects { 6 | apply plugin: 'java' 7 | 8 | ext { 9 | springVersions = [framework: '3.0.5.RELEASE', security: '3.0.2.RELEASE', 10 | webflow: '2.3.0.RELEASE', frameworkMoble: '1.0.0.M3', integration: '2.0.5.RELEASE'] 11 | versions = [spring: springVersions, jetty: '8.0.0.RC0', aspectj: '1.6.4', slf4j: '1.6.2', logback: '0.9.30', 12 | tomcat: "7.0.5", jmock: "2.5.1"] 13 | } 14 | 15 | sourceCompatibility = JavaVersion.VERSION_1_6 16 | targetCompatibility = JavaVersion.VERSION_1_6 17 | 18 | repositories { 19 | mavenCentral() 20 | } 21 | 22 | configurations { 23 | compile.exclude group: 'commons-logging' 24 | } 25 | 26 | dependencies { 27 | logger.info "versions: $versions" 28 | versions.with { 29 | compile group: "org.slf4j", name: "slf4j-api", version: slf4j 30 | compile group: "org.slf4j", name: "jcl-over-slf4j", version: slf4j 31 | compile group: "ch.qos.logback", name: "logback-classic", version: logback 32 | 33 | testCompile group: "junit", name: "junit", version: "4.9" 34 | } 35 | 36 | } 37 | } 38 | 39 | // Prevents creation of empty jar in this (parent) project 40 | task build(overwrite: true) {} 41 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/projectA/projectB/projectC/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | versions.with { 3 | compile group: "org.aspectj", name: "aspectjrt", version: aspectj 4 | compile group: "org.springframework.integration", name: "spring-integration-ws", version: spring.integration 5 | 6 | 7 | testCompile group: "org.eclipse.jetty", name:"jetty-server", version: jetty 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/projectA/projectB/projectC/src/main/java/test/Test1.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package test; 12 | 13 | public class Test1 { 14 | 15 | static void myTest() { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/projectA/projectB/projectD/src/test/java/test/Test1Test.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package test; 12 | 13 | import static org.junit.Assert.*; 14 | 15 | import org.jmock.api.Action; 16 | import org.jmock.internal.ExpectationBuilder; 17 | import org.jmock.internal.ExpectationCollector; 18 | import org.junit.Test; 19 | 20 | public class Test1Test { 21 | 22 | @Test 23 | public void test() { 24 | ExpectationBuilder builder = new ExpectationBuilder() { 25 | 26 | @Override 27 | public void buildExpectations(Action defaultAction, 28 | ExpectationCollector collector) { 29 | // TODO Auto-generated method stub 30 | 31 | } 32 | }; 33 | Test1 test = new Test1(); 34 | fail("Not yet implemented"); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts-2407/settings.gradle: -------------------------------------------------------------------------------- 1 | def path = [] as LinkedList 2 | 3 | rootDir.traverse( 4 | type: groovy.io.FileType.FILES, 5 | nameFilter: ~/build\.gradle/, 6 | maxDepth: 3, 7 | preDir: { path << it.name }, 8 | postDir: { path.removeLast() }) { if (path) include path.join(":") } 9 | 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/build.gradle -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/greeteds/world/src/main/java/World.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class World { 12 | public String greeted() { 13 | return "world"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/hello/src/main/java/Hello.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Hello { 12 | public String greet() { 13 | return "hello, "; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'hello' 2 | include 'greeteds/world' 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1842/src/main/java/Greetings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | public class Greetings { 12 | public static void main(String[] args) { 13 | Hello hello = new Hello(); 14 | World world = new World(); 15 | 16 | System.out.println(hello.greet() + world.greeted()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/A/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies{ 4 | compile (project(':B')) { 5 | transitive = false 6 | } 7 | 8 | compile ':commons-logging:1.1.1@jar' 9 | } 10 | 11 | repositories { 12 | flatDir dirs: "${rootProject.projectDir}/repo" 13 | } 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/A/src/main/java/testa/TestA.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package testa; 12 | 13 | import testb.TestB; 14 | import testc.TestC; 15 | import ca.odell.glazedlists.EventList; 16 | import org.apache.commons.logging.Log; 17 | 18 | public class TestA { 19 | 20 | public void test() 21 | { 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/B/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | flatDir dirs: "${rootProject.projectDir}/repo" 5 | } 6 | 7 | dependencies { 8 | compile project(':C') 9 | compile ':glazedlists:1.8.0:java15@jar' 10 | testCompile ':junit:4.4@jar' 11 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/B/src/test/java/testb/TestB.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package testb; 12 | 13 | import org.junit.Test; 14 | 15 | import ca.odell.glazedlists.BasicEventList; 16 | import ca.odell.glazedlists.EventList; 17 | 18 | public class TestB { 19 | 20 | @Test 21 | public void test() 22 | { 23 | final EventList list = new BasicEventList(1); 24 | list.add("test ok!"); 25 | System.out.println(list.get(0)); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/C/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | repositories { 4 | flatDir dirs: "${rootProject.projectDir}/repo" 5 | } 6 | 7 | dependencies { 8 | compile ':glazedlists:1.8.0:java15@jar' 9 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/C/src/main/java/testc/TestC.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package testc; 12 | 13 | public class TestC { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/build.gradle: -------------------------------------------------------------------------------- 1 | task sayHello << { 2 | println 'Hello world!' 3 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts1950/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'A' 2 | include 'B' 3 | include 'C' -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'eclipse' 4 | 5 | repositories { 6 | mavenCentral() 7 | } 8 | 9 | dependencies { 10 | compile 'junit:junit:4.8.2' 11 | } 12 | 13 | version = '1.0' 14 | 15 | jar { 16 | manifest.attributes provider: 'gradle' 17 | } 18 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/settings.gradle: -------------------------------------------------------------------------------- 1 | include "suba" 2 | include "subb" 3 | include "subc" 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/suba/README.txt: -------------------------------------------------------------------------------- 1 | This directory, but needed as an empty subproject for the test. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/suba/src/main/java/README.txt: -------------------------------------------------------------------------------- 1 | This directory, but needed as an empty subproject for the test. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/suba/src/test/java/README.txt: -------------------------------------------------------------------------------- 1 | This directory, but needed as an empty subproject for the test. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/subb/README.txt: -------------------------------------------------------------------------------- 1 | This directory, but needed as an empty subproject for the test. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2175/subc/README.txt: -------------------------------------------------------------------------------- 1 | This directory, but needed as an empty subproject for the test. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/A/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | apply plugin: 'eclipse-wtp' 3 | 4 | repositories { 5 | mavenCentral () 6 | } 7 | 8 | dependencies { 9 | compile project(':B') 10 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/A/src/main/webapp/WEB-INF/lib/junk.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/A/src/main/webapp/WEB-INF/lib/junk.jar -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/A/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="java.util.Date"%> 2 | <%@ page language="java" contentType="text/html; charset=UTF-8" 3 | pageEncoding="UTF-8"%> 4 | 5 | 6 | 7 | 8 | Insert title here 9 | 10 | 11 | Hi guys. 12 | <% out.println(new Date()); %> 13 | <% out.println(junk.Junk.junk()); %> 14 | 15 | 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/B/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse-wtp' 3 | 4 | repositories { 5 | mavenCentral () 6 | } 7 | 8 | dependencies { 9 | compile 'postgresql:postgresql:9.0-801.jdbc4' 10 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/Junk/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/Junk/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Junk 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/Junk/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Wed Nov 30 13:06:39 PST 2011 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.6 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.6 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/Junk/README.txt: -------------------------------------------------------------------------------- 1 | //This is the source code for the Junk.jar file used in sts2185 for testing. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/Junk/src/junk/Junk.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 GoPivotal, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * GoPivotal, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package junk; 12 | 13 | public class Junk { 14 | 15 | public static String junk() { 16 | return "This is garbage"; 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2185/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'A' 2 | include 'B' -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/main/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse' 3 | 4 | sourceCompatibility = 1.5 5 | version = '1.0' 6 | jar { 7 | manifest { 8 | attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version 9 | } 10 | } 11 | 12 | repositories { 13 | maven { 14 | url = new File(System.getProperty('maven.repo.local')).toURI() 15 | } 16 | 17 | //def repo = mavenRepo urls: "file:${maven.repo.local}" 18 | // println "maven.repo.local = ${System.getProperty('maven.repo.local')}" 19 | // def repo = mavenLocal() 20 | // println "Gradle is using mavenlocal.url = "+(repo.url) 21 | mavenCentral() 22 | } 23 | 24 | dependencies { 25 | // compile group: 'com.kdvolder', name: 'myCrap', version: '0.1.1' 26 | compile group: 'com.kdvolder', name: 'myLib', version: '0.0.1-SNAPSHOT' 27 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2.1' 28 | testCompile group: 'junit', name: 'junit', version: '4.+' 29 | } 30 | 31 | test { 32 | systemProperties 'property': 'value' 33 | } 34 | 35 | uploadArchives { 36 | repositories { 37 | flatDir { 38 | dirs 'repos' 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/main/src/main/java/org/gradle/Person.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.apache.commons.collections.list.GrowthList; 4 | 5 | public class Person { 6 | private final String name; 7 | 8 | public Person(String name) { 9 | this.name = name; 10 | new GrowthList(); 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/main/src/main/resources/org/gradle/resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/main/src/test/java/org/gradle/PersonTest.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.junit.Test; 4 | import static org.junit.Assert.*; 5 | 6 | public class PersonTest { 7 | @Test 8 | public void canConstructAPersonWithAName() { 9 | CoolClass c = new CoolClass(); 10 | Person person = new Person("Larry"); 11 | assertEquals("Larry", person.getName()); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/main/src/test/resources/org/gradle/test-resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | myLib 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.5 6 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.kdvolder 4 | myLib 5 | 0.0.1-SNAPSHOT 6 | myLib 7 | myLib 8 | 9 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2405/myLib/src/main/java/org/gradle/CoolClass.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | public class CoolClass { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2834/my-app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse' 3 | 4 | sourceCompatibility = 1.5 5 | version = '1.0' 6 | jar { 7 | manifest { 8 | attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version 9 | } 10 | } 11 | 12 | repositories { 13 | mavenCentral() 14 | maven { 15 | url file("../repos/maven").toURI() 16 | } 17 | } 18 | 19 | dependencies { 20 | compile group: 'demo', name: 'my-lib', version: '1.0' 21 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 22 | testCompile group: 'junit', name: 'junit', version: '4.+' 23 | } 24 | 25 | test { 26 | systemProperties 'property': 'value' 27 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2834/my-app/src/main/java/org/myapp/Main.java: -------------------------------------------------------------------------------- 1 | package org.myapp; 2 | 3 | import org.mylib.Utils; 4 | 5 | public class Main { 6 | 7 | public static void main(String[] args) { 8 | Utils.hello(); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2834/my-lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse' 3 | apply plugin: 'maven' 4 | 5 | sourceCompatibility = 1.5 6 | version = '1.0' 7 | group = 'demo' 8 | jar { 9 | manifest { 10 | attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version 11 | } 12 | } 13 | 14 | repositories { 15 | mavenCentral() 16 | } 17 | 18 | dependencies { 19 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 20 | testCompile group: 'junit', name: 'junit', version: '4.+' 21 | } 22 | 23 | test { 24 | systemProperties 'property': 'value' 25 | } 26 | 27 | uploadArchives { 28 | repositories { 29 | mavenDeployer { 30 | repository(url: file("../repos/maven").toURI()) 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts2834/my-lib/src/main/java/org/mylib/Utils.java: -------------------------------------------------------------------------------- 1 | package org.mylib; 2 | 3 | public class Utils { 4 | 5 | public static void hello() { 6 | System.out.println("Hello"); 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'war' 3 | apply plugin: 'eclipse-wtp' 4 | 5 | repositories { 6 | 7 | flatDir dirs: 'lib' 8 | } 9 | 10 | dependencies { 11 | 12 | compile name: 'my-jar' 13 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/lib/my-jar-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/lib/my-jar-sources.jar -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/lib/my-jar.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/lib/my-jar.jar -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3742/src/main/java/com/example/main/Web.java: -------------------------------------------------------------------------------- 1 | package com.example.main; 2 | 3 | public class Web { 4 | 5 | public static void main(String[] args){ 6 | 7 | 8 | //Try to view the source of this jar within eclipse (ctrl+click on 'Jar') 9 | Jar myJar = new Jar(); 10 | 11 | myJar.printInfo(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | FlatMulti 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.springsource.ide.eclipse.gradle.core.nature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Thu Aug 14 09:22:11 MDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc= 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Thu Aug 14 09:22:11 MDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=true 7 | enableBeforeTasks=true 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'eclipse' 4 | 5 | repositories { 6 | mavenCentral() 7 | } 8 | 9 | dependencies { 10 | testCompile 'junit:junit:4.8.2' 11 | } 12 | 13 | version = '1.0' 14 | 15 | jar { 16 | manifest.attributes provider: 'my cool company' 17 | } 18 | 19 | task hello << {println 'Hello from ' + project.name} 20 | } 21 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/FlatMulti/settings.gradle: -------------------------------------------------------------------------------- 1 | includeFlat "my-lib" 2 | includeFlat "product" 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | my-lib 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.springsource.ide.eclipse.gradle.core.nature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Thu Aug 14 09:27:25 MDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=../FlatMulti 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Thu Aug 14 09:22:06 MDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=true 7 | enableBeforeTasks=true 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | # 2 | #Wed Nov 12 18:40:12 EST 2014 3 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 7 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 8 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 9 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 10 | eclipse.preferences.version=1 11 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 3 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/src/main/java/my/cool/lib/CoolLib.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package my.cool.lib; 12 | 13 | public class CoolLib { 14 | 15 | public static void niceMethod(String name) { 16 | System.out.println(name + " is really nice"); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/src/main/java/org/gradle/Person.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.apache.commons.collections.list.GrowthList; 4 | 5 | public class Person { 6 | private final String name; 7 | 8 | public Person(String name) { 9 | this.name = name; 10 | new GrowthList(); 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/src/main/resources/org/gradle/resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/src/test/java/org/gradle/PersonTest.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.junit.Test; 4 | import static org.junit.Assert.*; 5 | 6 | public class PersonTest { 7 | @Test 8 | public void canConstructAPersonWithAName() { 9 | Person person = new Person("Larry"); 10 | assertEquals("Larry", person.getName()); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/my-lib/src/test/resources/org/gradle/test-resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | product 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.springsource.ide.eclipse.gradle.core.nature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Thu Aug 14 09:27:25 MDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=../FlatMulti 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Thu Aug 14 09:22:11 MDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=true 7 | enableBeforeTasks=true 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | # 2 | #Wed Nov 12 18:40:12 EST 2014 3 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 4 | org.eclipse.jdt.core.compiler.compliance=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 7 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 8 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 9 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 10 | eclipse.preferences.version=1 11 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile project(':my-lib') 3 | } 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/src/main/java/my/cool/app/Runner.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package my.cool.app; 12 | 13 | import my.cool.lib.CoolLib; 14 | 15 | public class Runner { 16 | 17 | public static void main(String[] args) { 18 | CoolLib.niceMethod("Gradle"); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/src/main/resources/README.txt: -------------------------------------------------------------------------------- 1 | Place test related Java code in this folder. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/src/test/java/README.txt: -------------------------------------------------------------------------------- 1 | Place test related Java code in this folder. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts3953/product/src/test/resources/README.txt: -------------------------------------------------------------------------------- 1 | Place 'resources' that need to be added to your project's classpath in this folder. 2 | If you don't have any such resources. You can delete this folder and then do 'refresh 3 | source folders' from the Gradle menu to remove it from the Gradle model and Eclipse 4 | classpath. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts_2205/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'eclipse' 3 | 4 | sourceSets { 5 | main { 6 | java { 7 | exclude 'testb2/**/*' 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts_2205/src/main/java/testb/TestB.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package testb; 12 | 13 | public class TestB { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/resources/projects/sts_2205/src/main/java/testb2/TestB2.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package testb2; 12 | 13 | public class TestB2 { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core.test/src/org/springsource/ide/eclipse/gradle/core/test/Predicate.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.test; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | 15 | public interface Predicate { 16 | 17 | boolean apply(IProject project); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.core 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jdt.core.javanature 26 | org.eclipse.jdt.groovy.core.groovyNature 27 | org.eclipse.pde.PluginNature 28 | 29 | 30 | 31 | 1365114646088 32 | 33 | 10 34 | 35 | org.eclipse.ui.ide.multiFilter 36 | 1.0-projectRelativePath-matches-false-false-target 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Wed Jun 27 13:13:19 PDT 2012 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc= 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Jun 27 13:13:19 PDT 2012 3 | enableDSLD=true 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.7 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/.settings/org.eclipse.jdt.groovy.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | groovy.compiler.level=-1 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/META-INF/p2.inf: -------------------------------------------------------------------------------- 1 | # Specify all groovy/greclipse bundles as optional as well as non-greedy 2 | requires.0.namespace=osgi.bundle 3 | requires.0.name=org.eclipse.jdt.groovy.core 4 | requires.0.greedy=false 5 | requires.0.optional=true 6 | 7 | requires.1.namespace=osgi.bundle 8 | requires.1.name=org.codehaus.groovy 9 | requires.1.greedy=false 10 | requires.1.optional=true 11 | 12 | # same for m2e dependencies 13 | requires.2.namespace=osgi.bundle 14 | requires.2.name=org.eclipse.m2e.core 15 | requires.2.greedy=false 16 | requires.2.optional=true 17 | 18 | requires.3.namespace=osgi.bundle 19 | requires.3.name=org.eclipse.m2e.maven.runtime 20 | requires.3.greedy=false 21 | requires.3.optional=true 22 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Gradle Integration for Eclipse 6 | 7 | 8 | 9 |

About Gradle Integration for Eclipse

10 |

June 30, 2015

11 |

Abstract

12 |

The Gradle Integration for Eclipse project provides Eclipse integration 13 | support for Gradle.

14 |

License

15 |

Pivotal Software, Inc. (“Pivotal”) makes available all content 16 | in this download ("Content"). Unless otherwise indicated below, the 17 | Content is provided to you under the terms and conditions of the Eclipse 18 | Public License Version 1.0 ("EPL"). A copy of the EPL is available in 19 | the file called license.txt. For purposes of the EPL, "Program" will 20 | mean the Content.

21 |

Third Party Content

22 |

The Content includes items that have been sourced from third parties, as 23 | set out in the file called open_source_licenses.txt, located in the 24 | feature components of this project.

25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml,\ 6 | about.html,\ 7 | samples/ 8 | jars.extra.classpath = platform:/plugin/org.codehaus.groovy,\ 9 | platform:/plugin/org.eclipse.jdt.groovy.core 10 | 11 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springsource.ide.eclipse.gradle 7 | org.springsource.ide.eclipse.gradle.parent 8 | 3.9.4-SNAPSHOT 9 | 10 | org.springsource.ide.eclipse.gradle.core 11 | eclipse-plugin 12 | 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'eclipse' 4 | 5 | repositories { 6 | mavenCentral() 7 | } 8 | 9 | dependencies { 10 | testCompile 'junit:junit:4.8.2' 11 | } 12 | 13 | version = '1.0' 14 | 15 | jar { 16 | manifest.attributes provider: 'my cool company' 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile group: 'commons-collections', name: 'commons-collections', version: '3.2' 3 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/src/main/java/my/cool/lib/CoolLib.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package my.cool.lib; 12 | 13 | public class CoolLib { 14 | 15 | public static void niceMethod(String name) { 16 | System.out.println(name + " is really nice"); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/src/main/java/org/gradle/Person.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.apache.commons.collections.list.GrowthList; 4 | 5 | public class Person { 6 | private final String name; 7 | 8 | public Person(String name) { 9 | this.name = name; 10 | new GrowthList(); 11 | } 12 | 13 | public String getName() { 14 | return name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/src/main/resources/org/gradle/resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/src/test/java/org/gradle/PersonTest.java: -------------------------------------------------------------------------------- 1 | package org.gradle; 2 | 3 | import org.junit.Test; 4 | import static org.junit.Assert.*; 5 | 6 | public class PersonTest { 7 | @Test 8 | public void canConstructAPersonWithAName() { 9 | Person person = new Person("Larry"); 10 | assertEquals("Larry", person.getName()); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/my-lib/src/test/resources/org/gradle/test-resource.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/product/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile project(':my-lib') 3 | } 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/product/src/main/java/my/cool/app/Runner.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package my.cool.app; 12 | 13 | import my.cool.lib.CoolLib; 14 | 15 | public class Runner { 16 | 17 | public static void main(String[] args) { 18 | CoolLib.niceMethod("Gradle"); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/product/src/main/resources/README.txt: -------------------------------------------------------------------------------- 1 | Place test related Java code in this folder. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/product/src/test/java/README.txt: -------------------------------------------------------------------------------- 1 | Place test related Java code in this folder. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/product/src/test/resources/README.txt: -------------------------------------------------------------------------------- 1 | Place 'resources' that need to be added to your project's classpath in this folder. 2 | If you don't have any such resources. You can delete this folder and then do 'refresh 3 | source folders' from the Gradle menu to remove it from the Gradle model and Eclipse 4 | classpath. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/samples/flat-java-multiproject/settings.gradle: -------------------------------------------------------------------------------- 1 | 2 | include "my-lib", "product" 3 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/Debug.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.runtime.Platform; 14 | 15 | /** 16 | * Booleans 'true' and 'false' used to enable debugging text. The 'true' boolean is actually only true under very specific 17 | * condition, so that the debugging text is automatically turned of when running anywhere else than on Kris's own machine. 18 | *

19 | * This is because Kris often forgets to disable debugging code when committing code into the git repo. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class Debug { 24 | 25 | public static final boolean TRUE = Platform.getLocation()!=null && Platform.getLocation().toString().contains("/kdvolder/"); 26 | public static final boolean FALSE = false; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/DefaultProjectMapper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | import org.eclipse.core.resources.ResourcesPlugin; 15 | import org.gradle.tooling.model.eclipse.HierarchicalEclipseProject; 16 | import org.springsource.ide.eclipse.gradle.core.wizards.GradleImportOperation; 17 | 18 | 19 | /** 20 | * Suitable base implementation for IProjectMapper, it returns a project instance based on the default 21 | * project naming scheme of {@link GradleImportOperation} 22 | * 23 | * @author Kris De Volder 24 | */ 25 | public class DefaultProjectMapper implements IProjectMapper { 26 | 27 | public IProject get(HierarchicalEclipseProject target) { 28 | String name = GradleImportOperation.getDefaultEclipseName(target); 29 | return ResourcesPlugin.getWorkspace().getRoot().getProject(name); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/IProjectMapper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | import org.gradle.tooling.model.eclipse.HierarchicalEclipseProject; 15 | 16 | /** 17 | * Maps external project instances to internal ones. This is necessary when creating project dependencies. 18 | * 19 | * @author Kris De Volder 20 | */ 21 | public interface IProjectMapper { 22 | 23 | /** 24 | * Returns an IProject instance associated with a given Gradle project model, according to some lookup mechanism or 25 | * naming scheme. Some concrete implementations of this may return null if there is no suitable mapping. Others may 26 | * return projects that do not actually exist in the workspace. 27 | */ 28 | IProject get(HierarchicalEclipseProject target); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/InconsistenProjectHierarchyException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.runtime.CoreException; 14 | import org.eclipse.core.runtime.IStatus; 15 | 16 | /** 17 | * This exception is thrown when Gradle tooling detects that projects in the workspace 18 | * no longer are associated with a root project. This may happen if a Gradle project 19 | * hierarchy is changed after the projects where imported. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class InconsistenProjectHierarchyException extends CoreException { 24 | 25 | public InconsistenProjectHierarchyException(IStatus status) { 26 | super(status); 27 | } 28 | 29 | private static final long serialVersionUID = 1L; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/ProjectConfigurationRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | import org.gradle.tooling.model.eclipse.EclipseProject; 15 | import org.springsource.ide.eclipse.gradle.core.api.IProjectConfigurationRequest; 16 | 17 | /** 18 | * Implementation of a common project configuration request. 19 | * 20 | * @author Alex Boyko 21 | * 22 | */ 23 | public class ProjectConfigurationRequest implements 24 | IProjectConfigurationRequest { 25 | 26 | private EclipseProject gradleProject; 27 | private IProject project; 28 | 29 | public ProjectConfigurationRequest(EclipseProject gradleProject, IProject project) { 30 | super(); 31 | this.gradleProject = gradleProject; 32 | this.project = project; 33 | } 34 | 35 | public EclipseProject getGradleModel() { 36 | return gradleProject; 37 | } 38 | 39 | public IProject getProject() { 40 | return project; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/ProjectOpenCloseListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | 15 | /** 16 | * @author Kris De Volder 17 | */ 18 | public interface ProjectOpenCloseListener { 19 | void projectOpened(IProject project); 20 | void projectClosed(IProject project); 21 | } 22 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/SystemPropertyCleaner.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core; 12 | 13 | import java.util.Iterator; 14 | import java.util.Map.Entry; 15 | import java.util.Properties; 16 | 17 | /** 18 | * Workaround for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=445122 19 | */ 20 | public class SystemPropertyCleaner { 21 | 22 | public static void clean() { 23 | Properties props = System.getProperties(); 24 | Iterator> iter = props.entrySet().iterator(); 25 | while (iter.hasNext()) { 26 | Entry e = iter.next(); 27 | Object k = e.getKey(); 28 | Object v = e.getValue(); 29 | if (k instanceof String && v instanceof String) { 30 | //ok 31 | } else { 32 | //System.out.println("deleting "+k+" = ("+className(v)+") "+v); 33 | iter.remove(); 34 | } 35 | } 36 | } 37 | 38 | // private static String className(Object v) { 39 | // if (v!=null) { 40 | // return v.getClass().getName(); 41 | // } 42 | // return null; 43 | // } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/actions/IProjectProvider.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.actions; 12 | 13 | import java.util.List; 14 | 15 | import org.eclipse.core.resources.IProject; 16 | 17 | /** 18 | * Abstraction of something that can provide a list of IProject instances. 19 | * This is used to decopule the consumer of the list from the provider. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public abstract class IProjectProvider { 24 | 25 | /** 26 | * Retrieve the current list of projects. Note that some implementations of this interface 27 | * may immediately clear the source of the project list. It is assumed clients will only 28 | * ask for the list once. 29 | */ 30 | public abstract List get(); 31 | 32 | /** 33 | * Convenience method to convert a List into a provider that simply provides the contents of the list. 34 | */ 35 | public static IProjectProvider from(final List list) { 36 | return new IProjectProvider() { 37 | @Override 38 | public List get() { 39 | return list; 40 | } 41 | }; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/api/IProjectConfigurationRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.api; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | import org.gradle.tooling.model.eclipse.EclipseProject; 15 | 16 | /** 17 | * Request for configuring a project. Allows client s to access Gradle and Eclipse model of the project 18 | * 19 | * @author Alex Boyko 20 | * 21 | */ 22 | public interface IProjectConfigurationRequest { 23 | 24 | EclipseProject getGradleModel(); 25 | 26 | IProject getProject(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/api/IProjectConfigurator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.api; 12 | 13 | import org.eclipse.core.runtime.IProgressMonitor; 14 | 15 | /** 16 | * Configures a project. Hook subclasses to 17 | * org.springsource.ide.eclipse.gradle.core.projectConfigurators extension point 18 | * 19 | * @author Alex Boyko 20 | * 21 | */ 22 | public interface IProjectConfigurator { 23 | 24 | /** 25 | * Configures a project 26 | * 27 | * @param request request for configuring a project 28 | * @param monitor progress monitor 29 | * @throws Exception 30 | */ 31 | void configure(IProjectConfigurationRequest request, IProgressMonitor monitor) throws Exception; 32 | 33 | } 34 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/autorefresh/IDirtyProjectListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2013 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | */ 11 | package org.springsource.ide.eclipse.gradle.core.autorefresh; 12 | 13 | import org.springsource.ide.eclipse.gradle.core.GradleProject; 14 | 15 | /** 16 | * @author Kris De Volder 17 | */ 18 | public interface IDirtyProjectListener { 19 | 20 | /** 21 | * Called when a workspace change dirties a project. 22 | */ 23 | void addDirty(GradleProject gp); 24 | 25 | /** 26 | * May be called when a manual refresh 'cleans' a project. This can potentially 27 | * avoid unnecessary automatic refreshes later. 28 | */ 29 | void removeDirty(GradleProject gp); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/launch/GradlePipedInputStream.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.launch; 12 | 13 | import java.io.IOException; 14 | import java.io.PipedInputStream; 15 | import java.io.PipedOutputStream; 16 | 17 | /** 18 | * A subclass, who's only purpose is to provide a better toString for debugging, so we can see 19 | * what is buffered inside a pipe 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class GradlePipedInputStream extends PipedInputStream { 24 | 25 | public GradlePipedInputStream(PipedOutputStream out) throws IOException { 26 | super(out); 27 | } 28 | 29 | /* (non-Javadoc) 30 | * @see java.lang.Object#toString() 31 | */ 32 | @Override 33 | public String toString() { 34 | if (in<0) { 35 | //empty 36 | return "*empty*"; 37 | } 38 | StringBuffer string = new StringBuffer(); 39 | for (int i = out; i != in; i = (i + 1)%buffer.length) { 40 | System.out.println("i: "+buffer[i]+" = '"+(char)buffer[i]+"'"); 41 | string.append((char)buffer[i]); 42 | } 43 | return "|"+string.toString()+"|"; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/modelmanager/IGradleModelListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.modelmanager; 12 | 13 | import org.springsource.ide.eclipse.gradle.core.GradleProject; 14 | 15 | /** 16 | * A listener that can be added to a project to get notified whenever the Gradle project's 17 | * model is set. 18 | * 19 | * @author Kris De Volder 20 | */ 21 | public interface IGradleModelListener { 22 | 23 | /** 24 | * Gets called when the model information in the modelmanager is updated for a given project. 25 | */ 26 | public void modelChanged(GradleProject project, Class type, T model); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/modelmanager/Lock.java: -------------------------------------------------------------------------------- 1 | package org.springsource.ide.eclipse.gradle.core.modelmanager; 2 | 3 | public interface Lock { 4 | 5 | void release(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/modelmanager/ModelBuilder.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.modelmanager; 12 | 13 | import org.eclipse.core.runtime.IProgressMonitor; 14 | import org.springsource.ide.eclipse.gradle.core.GradleProject; 15 | 16 | /** 17 | * Interface that hides the mechanics of how models are being built via Gradle's tooling API (or whatever way 18 | * models are being built). To implement a ModelBuilder create a subclass of AbstractModelBuilder 19 | */ 20 | public interface ModelBuilder { 21 | 22 | public BuildResult buildModel(GradleProject project, Class type, final IProgressMonitor mon); 23 | 24 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/preferences/GlobalSettings.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.preferences; 12 | 13 | /** 14 | * @author Kris De Volder 15 | */ 16 | public class GlobalSettings { 17 | 18 | /** 19 | * Enables/disables some debugging output 20 | */ 21 | public static final boolean DEBUG = false; 22 | 23 | //Removed: 24 | //public static final boolean exportClasspathContainer = true; 25 | //public static final boolean exportClasspathContainerEntries = true; 26 | } 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/Box.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * Simple mutable 'box' containing a single value. 15 | *

16 | * Common use for this box is to provide a 'mutable' variable 17 | * that needs to be declared final because it is used from within 18 | * a nested inner class. 19 | * 20 | * @author Kris De Volder 21 | */ 22 | public class Box { 23 | private T v; 24 | public Box(T ini) { 25 | this.v = ini; 26 | } 27 | public T get() { 28 | return v; 29 | } 30 | public void set(T v) { 31 | this.v = v; 32 | } 33 | @Override 34 | public String toString() { 35 | return ""+v; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/Continuation.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | import org.springsource.ide.eclipse.gradle.core.GradleCore; 14 | 15 | 16 | /** 17 | * A continuation is a callback function that is called at the completion of some 18 | * asynchronous computation. When called it may receive some object providing the result of 19 | * the computation. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public abstract class Continuation { 24 | public abstract void apply(T value); 25 | public void error(Throwable e) { 26 | GradleCore.log(e); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/Gradle1792BugException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * Exception that is thrown when we suspect that we have hit the bug 15 | * https://issues.gradle.org/browse/GRADLE-1792 16 | * 17 | * @author Kris De Volder 18 | */ 19 | public class Gradle1792BugException extends Exception { 20 | 21 | private static final long serialVersionUID = 1L; 22 | 23 | private static final String EXPLANATION = 24 | "Most likely you are hitting bug\n" + 25 | "https://issues.gradle.org/browse/GRADLE-1792\n\n" + 26 | "To avoid the bug, please make sure that the Gradle Eclipse Plugin " + 27 | "is applied to all your projects, or that your are using a version " + 28 | "of Gradle M4 or later."; 29 | 30 | public Gradle1792BugException(Throwable e) { 31 | super(EXPLANATION, e); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/IllegalClassPathEntryException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | import org.gradle.tooling.model.eclipse.EclipseSourceDirectory; 14 | import org.springsource.ide.eclipse.gradle.core.GradleProject; 15 | 16 | 17 | /** 18 | * An exception thrown when creating a IClassPathEntry is somehow illegal or results in 19 | * an error. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class IllegalClassPathEntryException extends Exception { 24 | 25 | private static final long serialVersionUID = 1L; 26 | 27 | public IllegalClassPathEntryException(String msg, GradleProject gradleProject, 28 | EclipseSourceDirectory gradleSourceDir) { 29 | this(msg, gradleProject, gradleSourceDir, null); 30 | } 31 | 32 | public IllegalClassPathEntryException(String msg, 33 | GradleProject gradleProject, 34 | EclipseSourceDirectory gradleSourceDir, Throwable e) { 35 | super("Ignored Classpath Entry "+gradleSourceDir+" for project "+gradleProject.getDisplayName()+"\nreason: "+msg, e); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/Joinable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * A 'joinable' is some representative of an asynch computation that can be waited for by 15 | * calling the 'join' method. 16 | * 17 | * @author Kris De Volder 18 | */ 19 | public interface Joinable { 20 | 21 | /** 22 | * Block current thread until some asynchronous computation is finished. 23 | * If the asynch computation ended by returning a value then this value is returned by 24 | * join. If the computation ended by throwing an exception than this exception is 25 | * rethrown in the current thread by join. 26 | */ 27 | T join() throws Exception; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/NullJoinable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * A NullJoinable represents something that waits for an 'empty' amount of work. 15 | * As such join simply returns immediately as there is never anything to wait for. 16 | *

17 | * Return an instance of this class wherever a Joinable is expected but there is 18 | * no work to do. 19 | * 20 | * @author Kris De Volder 21 | */ 22 | public class NullJoinable implements Joinable { 23 | 24 | private T value = null; 25 | 26 | public NullJoinable() { 27 | } 28 | 29 | public NullJoinable(T value) { 30 | this.value = value; 31 | } 32 | 33 | public T join() throws Exception { 34 | return value; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/ObjectUtil.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012, 2014 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | public class ObjectUtil { 14 | 15 | /** 16 | * Same as 'Object.equals' but tolerates null. 17 | */ 18 | public static boolean equal(Object o1, Object o2) { 19 | if (o1==null || o2==null) { 20 | return o1==o2; 21 | } 22 | //neither object is is null. 23 | return o1.equals(o2); 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/OsUtils.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * @author Kris De Volder 15 | */ 16 | public class OsUtils { 17 | 18 | public static boolean isWindows() { 19 | return System.getProperty("os.name").contains("Windows"); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/TimeUtils.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util; 12 | 13 | /** 14 | * @author Kris De Volder 15 | */ 16 | public class TimeUtils { 17 | 18 | public static String minutusAndSecondsFromMillis(long millis) { 19 | return String.format("%d min, %d sec", 20 | millis2minutes(millis), 21 | millis2seconds(millis) - 22 | minutes2seconds(millis2minutes(millis)) 23 | ); 24 | } 25 | 26 | private static long millis2seconds(long millis) { 27 | return millis / 1000; 28 | } 29 | 30 | private static long minutes2seconds(long minutes) { 31 | return minutes * 60; 32 | } 33 | 34 | public static long millis2minutes(long millis) { 35 | return millis / (1000*60); 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/expression/LiveVariable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util.expression; 12 | 13 | /** 14 | * A concrete implementation of LiveExpression that represents a single storage cell in 15 | * which a value of a given type can be stored. 16 | *

17 | * Can be used in Mockup UIs for testing. Here a LiveVariable can take the place of 18 | * an input field in the GUI. Core functionality can then be tested against the 19 | * headless Mock in which it is easy to set values. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class LiveVariable extends LiveExpression { 24 | 25 | public LiveVariable(T initialValue) { 26 | super(initialValue); 27 | } 28 | 29 | public LiveVariable() { 30 | this(null); 31 | } 32 | 33 | private T storedValue; 34 | 35 | @Override 36 | protected T compute() { 37 | return storedValue; 38 | } 39 | 40 | public void setValue(T v) { 41 | storedValue = v; 42 | refresh(); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/util/expression/ValueListener.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.util.expression; 12 | 13 | /** 14 | * The interface that all those interested in receiving updates of the value of a Live expression 15 | * should implement. 16 | * 17 | * @author Kris De Volder 18 | */ 19 | public interface ValueListener { 20 | void gotValue(LiveExpression exp, T value); 21 | } 22 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/validators/DistributionValidatorContext.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.validators; 12 | 13 | import java.net.URI; 14 | import java.net.URISyntaxException; 15 | 16 | /** 17 | * An abstraction of the context the {@link DistributionValidator} needs in order to work. 18 | * Typically this will be a {@link DistributionSection} on the Gradle preferences page, 19 | * but during testing it will be a mock context. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public interface DistributionValidatorContext { 24 | URI getDistroInPage() throws URISyntaxException; 25 | } 26 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/validators/JavaHomeValidatorContext.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.validators; 12 | 13 | import org.springsource.ide.eclipse.gradle.core.util.JavaRuntimeUtils; 14 | 15 | /** 16 | * Represents the 'context' of the JavaHomeValidator. Typically this is a preferences 17 | * page, and the validator is meant to validate the contents of some widgets on the page. 18 | * 19 | * @author Kris De Volder 20 | */ 21 | public interface JavaHomeValidatorContext { 22 | 23 | /** 24 | * Should return the name of the JRE install selected by the user, or null if the 25 | * user has not selected a JRE. (Note: if a execution environment is selected, this 26 | * returns null, it only returns a non-null value if a JRE is selected directly. 27 | */ 28 | String getJavaHomeJRENameInPage(); 29 | 30 | /** 31 | * Should return the name of the Execution environment selected by the suer of null if 32 | * has not selected a EE. 33 | */ 34 | String getExecutionEnvNameInPage(); 35 | 36 | 37 | JavaRuntimeUtils getJREUtils(); 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/validators/Validator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.validators; 12 | 13 | import org.springsource.ide.eclipse.gradle.core.util.expression.LiveExpression; 14 | 15 | /** 16 | * @author Kris De Volder 17 | */ 18 | public abstract class Validator extends LiveExpression { 19 | 20 | public Validator() { 21 | super(ValidationResult.OK); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.core/src/org/springsource/ide/eclipse/gradle/core/wizards/FlatPrecomputedProjectMapper.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.core.wizards; 12 | 13 | import java.util.Collection; 14 | 15 | import org.eclipse.core.resources.IProject; 16 | import org.eclipse.core.resources.ResourcesPlugin; 17 | import org.eclipse.core.runtime.CoreException; 18 | import org.gradle.tooling.model.eclipse.HierarchicalEclipseProject; 19 | import org.springsource.ide.eclipse.gradle.core.GradleProject; 20 | 21 | 22 | /** 23 | * @author Kris De Volder 24 | */ 25 | public class FlatPrecomputedProjectMapper extends PrecomputedProjectMapper { 26 | 27 | public FlatPrecomputedProjectMapper(Collection collection) 28 | throws CoreException, NameClashException { 29 | super(collection); 30 | } 31 | 32 | @Override 33 | protected IProject computeMapping(HierarchicalEclipseProject p) throws CoreException { 34 | return ResourcesPlugin.getWorkspace().getRoot().getProject(GradleProject.getName(p)); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.feature/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.feature 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.FeatureBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.FeatureNature 16 | 17 | 18 | 19 | 1552078533564 20 | 21 | 10 22 | 23 | org.eclipse.ui.ide.multiFilter 24 | 1.0-name-matches-false-false-target 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.feature/build.properties: -------------------------------------------------------------------------------- 1 | bin.includes = feature.xml,\ 2 | feature.properties,\ 3 | license.txt,\ 4 | open_source_licenses.txt 5 | src.includes = feature.xml,\ 6 | feature.properties,\ 7 | build.properties,\ 8 | license.txt,\ 9 | open_source_licenses.txt 10 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.feature/feature.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | %description 10 | 11 | 12 | 13 | %copyright 14 | 15 | 16 | 17 | %license 18 | 19 | 20 | 25 | 26 | 32 | 33 | 39 | 40 | 46 | 47 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.feature/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.springsource.ide.eclipse.gradle 8 | org.springsource.ide.eclipse.gradle.parent 9 | 3.9.4-SNAPSHOT 10 | 11 | org.springsource.ide.eclipse.gradle.feature 12 | eclipse-feature 13 | org.springsource.ide.eclipse.gradle.feature 14 | 15 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.site/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.site 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.pde.UpdateSiteBuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.pde.UpdateSiteNature 16 | 17 | 18 | 19 | 1552079322064 20 | 21 | 10 22 | 23 | org.eclipse.ui.ide.multiFilter 24 | 1.0-name-matches-false-false-target 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.toolingapi 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jdt.core.javanature 26 | org.eclipse.pde.PluginNature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Tue Jan 14 13:40:06 PST 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc= 5 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.7 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Gradle Integration for Eclipse 6 | 7 | 8 | 9 |

About Gradle Integration for Eclipse

10 |

June 30, 2015

11 |

Abstract

12 |

The Gradle Integration for Eclipse project provides Eclipse integration 13 | support for Gradle.

14 |

License

15 |

Pivotal Software, Inc. (“Pivotal”) makes available all content 16 | in this download ("Content"). Unless otherwise indicated below, the 17 | Content is provided to you under the terms and conditions of the Eclipse 18 | Public License Version 1.0 ("EPL"). A copy of the EPL is available in 19 | the file called license.txt. For purposes of the EPL, "Program" will 20 | mean the Content.

21 |

Third Party Content

22 |

The Content includes items that have been sourced from third parties, as 23 | set out in the file called open_source_licenses.txt, located in the 24 | feature components of this project.

25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | about.html,\ 6 | embedded-libs.properties,\ 7 | lib/,\ 8 | toolingCustomModel/ 9 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/embedded-libs.properties: -------------------------------------------------------------------------------- 1 | #Generated by build.gradle task updateEmbeddedLibsProperties 2 | #Mon Feb 16 09:22:38 PST 2015 3 | objenesis-1.2.jar-version=1.2 4 | gradle-base-services-2.2.1.jar-name=gradle-base-services 5 | reflectasm-1.07-shaded.jar-name=reflectasm 6 | commons-collections-3.2.1.jar-name=commons-collections 7 | gradle-wrapper-2.2.1.jar-name=gradle-wrapper 8 | slf4j-api-1.7.7.jar-name=slf4j-api 9 | gradle-resources-2.2.1.jar-version=2.2.1 10 | kryo-2.20.jar-name=kryo 11 | model-1.0.jar-version=1.0 12 | gradle-wrapper-2.2.1.jar-version=2.2.1 13 | objenesis-1.2.jar-name=objenesis 14 | gradle-core-2.2.1.jar-version=2.2.1 15 | gradle-base-services-groovy-2.2.1.jar-version=2.2.1 16 | plugin-1.0.jar-version=1.0 17 | guava-jdk5-17.0.jar-name=guava-jdk5 18 | slf4j-api-1.7.7.jar-version=1.7.7 19 | gradle-base-services-2.2.1.jar-version=2.2.1 20 | gradle-resources-2.2.1.jar-name=gradle-resources 21 | plugin-1.0.jar-name=plugin 22 | reflectasm-1.07-shaded.jar-version=1.07 23 | gradle-messaging-2.2.1.jar-name=gradle-messaging 24 | commons-collections-3.2.1.jar-version=3.2.1 25 | gradle-tooling-api-2.2.1.jar-name=gradle-tooling-api 26 | asm-4.0.jar-name=asm 27 | kryo-2.20.jar-version=2.20 28 | gradle-core-2.2.1.jar-name=gradle-core 29 | gradle-base-services-groovy-2.2.1.jar-name=gradle-base-services-groovy 30 | gradle-messaging-2.2.1.jar-version=2.2.1 31 | asm-4.0.jar-version=4.0 32 | guava-jdk5-17.0.jar-version=17.0 33 | minlog-1.2.jar-version=1.2 34 | minlog-1.2.jar-name=minlog 35 | model-1.0.jar-name=model 36 | slf4j-simple-1.7.7.jar-name=slf4j-simple 37 | slf4j-simple-1.7.7.jar-version=1.7.7 38 | gradle-tooling-api-2.2.1.jar-version=2.2.1 39 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/lib/.gitignore: -------------------------------------------------------------------------------- 1 | *.jar -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/lib/README.txt: -------------------------------------------------------------------------------- 1 | All the jar files in this directory will be added automatically into the Gradle DSLD Classpath container. 2 | This directory therefore should only contain 'active' Gradle API jars and their dependencies. 3 | 4 | Make sure to delete older versions of the jars when upgrading to a newer version. 5 | 6 | See ../build.gradle and the 'updateLibs' task to download the required libraries. -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springsource.ide.eclipse.gradle 7 | org.springsource.ide.eclipse.gradle.parent 8 | 3.9.4-SNAPSHOT 9 | 10 | org.springsource.ide.eclipse.gradle.toolingapi 11 | eclipse-plugin 12 | 13 | 14 | 15 | 16 | exec-maven-plugin 17 | 1.1.1 18 | org.codehaus.mojo 19 | 20 | 21 | Run Gradle 22 | initialize 23 | 24 | exec 25 | 26 | 27 | ${basedir}/../toolingapi 28 | ${basedir}/../toolingapi/gradlew 29 | 31 | 32 | updateLibs:updateLibs 33 | 34 | ${basedir}/gradle.out 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/src/org/springsource/ide/eclipse/gradle/toolingapi/GradleToolingApi.java: -------------------------------------------------------------------------------- 1 | package org.springsource.ide.eclipse.gradle.toolingapi; 2 | 3 | import org.eclipse.ui.plugin.AbstractUIPlugin; 4 | import org.osgi.framework.BundleContext; 5 | 6 | /** 7 | * The activator class controls the plug-in life cycle 8 | */ 9 | public class GradleToolingApi extends AbstractUIPlugin { 10 | 11 | // The plug-in ID 12 | public static final String PLUGIN_ID = "org.springsource.ide.eclipse.gradle.toolingapi"; //$NON-NLS-1$ 13 | 14 | // The shared instance 15 | private static GradleToolingApi plugin; 16 | 17 | /** 18 | * The constructor 19 | */ 20 | public GradleToolingApi() { 21 | } 22 | 23 | /* 24 | * (non-Javadoc) 25 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) 26 | */ 27 | public void start(BundleContext context) throws Exception { 28 | super.start(context); 29 | plugin = this; 30 | } 31 | 32 | /* 33 | * (non-Javadoc) 34 | * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) 35 | */ 36 | public void stop(BundleContext context) throws Exception { 37 | plugin = null; 38 | super.stop(context); 39 | } 40 | 41 | /** 42 | * Returns the shared instance 43 | * 44 | * @return the shared instance 45 | */ 46 | public static GradleToolingApi getDefault() { 47 | return plugin; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.toolingapi/toolingCustomModel/init.gradle: -------------------------------------------------------------------------------- 1 | initscript { 2 | def getProp = { name -> 3 | def val = System.getProperty(name); 4 | if (val==null) { 5 | throw new Error("System property must be set: '${name}'") 6 | } 7 | return val; 8 | } 9 | 10 | repositories { 11 | flatDir { 12 | dir getProp('org.springsource.ide.eclipse.gradle.toolingApiRepo') 13 | } 14 | } 15 | 16 | dependencies { 17 | classpath ':plugin:1.0' 18 | classpath ':model:1.0' 19 | } 20 | } 21 | 22 | allprojects { 23 | 24 | def getProp = { name -> 25 | def val = System.getProperty(name); 26 | if (val==null) { 27 | throw new Error("System property must be set: '${name}'") 28 | } 29 | return val; 30 | } 31 | 32 | apply plugin: io.pivotal.tooling.plugin.eclipse.EclipseToolingModelPlugin 33 | 34 | eclipseToolingModel { 35 | equivalentBinaryVersion = getProp('org.springsource.ide.eclipse.gradle.toolingApiEquivalentBinaryVersion') 36 | } 37 | } -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.ui.taskview 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/.settings/gradle/com.springsource.sts.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #com.springsource.sts.gradle.core.preferences.GradleProjectPreferences 2 | #Fri Nov 18 10:20:27 PST 2011 3 | com.springsource.sts.gradle.rootprojectloc= 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.compliance=1.7 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.7 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: Taskview 4 | Bundle-SymbolicName: org.springsource.ide.eclipse.gradle.ui.taskview;singleton:=true 5 | Bundle-Version: 3.9.4.qualifier 6 | Bundle-Activator: org.springsource.ide.eclipse.gradle.ui.taskview.GradleTasksViewPlugin 7 | Bundle-Vendor: Pivotal Software, Inc. 8 | Require-Bundle: org.eclipse.ui, 9 | org.eclipse.core.runtime, 10 | org.springsource.ide.eclipse.gradle.core, 11 | org.springsource.ide.eclipse.gradle.ui, 12 | org.eclipse.core.resources, 13 | org.eclipse.jdt.core, 14 | org.eclipse.jdt.ui, 15 | org.eclipse.debug.core, 16 | org.springsource.ide.eclipse.gradle.toolingapi 17 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7 18 | Bundle-ActivationPolicy: lazy 19 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Gradle Integration for Eclipse 6 | 7 | 8 | 9 |

About Gradle Integration for Eclipse

10 |

June 30, 2015

11 |

Abstract

12 |

The Gradle Integration for Eclipse project provides Eclipse integration 13 | support for Gradle.

14 |

License

15 |

Pivotal Software, Inc. (“Pivotal”) makes available all content 16 | in this download ("Content"). Unless otherwise indicated below, the 17 | Content is provided to you under the terms and conditions of the Eclipse 18 | Public License Version 1.0 ("EPL"). A copy of the EPL is available in 19 | the file called license.txt. For purposes of the EPL, "Program" will 20 | mean the Content.

21 |

Third Party Content

22 |

The Content includes items that have been sourced from third parties, as 23 | set out in the file called open_source_licenses.txt, located in the 24 | feature components of this project.

25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = plugin.xml,\ 4 | META-INF/,\ 5 | .,\ 6 | icons/ 7 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/icons/gradle-icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui.taskview/icons/gradle-icon-16.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/icons/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui.taskview/icons/sample.gif -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 10 | 11 | 17 | 18 | 19 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.springsource.ide.eclipse.gradle 8 | org.springsource.ide.eclipse.gradle.parent 9 | 3.9.4-SNAPSHOT 10 | 11 | org.springsource.ide.eclipse.gradle.ui.taskview 12 | eclipse-plugin 13 | 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/src/org/springsource/ide/eclipse/gradle/ui/taskview/ToggleHideInternalTasks.java: -------------------------------------------------------------------------------- 1 | package org.springsource.ide.eclipse.gradle.ui.taskview; 2 | 3 | import org.eclipse.jface.action.Action; 4 | import org.springsource.ide.eclipse.gradle.ui.GradleUI; 5 | 6 | public class ToggleHideInternalTasks extends Action { 7 | 8 | private GradleTasksView owner; 9 | 10 | /** 11 | * Constructs a new action. 12 | */ 13 | public ToggleHideInternalTasks(GradleTasksView owner, boolean on) { 14 | super(null, AS_CHECK_BOX); 15 | this.owner = owner; 16 | setChecked(on); 17 | setDescription("Hide Internal Tasks"); 18 | setToolTipText("Hides internal tasks (tasks with null 'group' property"); 19 | setImageDescriptor(GradleUI.getDefault().getImageRegistry().getDescriptor(GradleUI.IMAGE_FILTER_INTERNAL_TASKS)); 20 | } 21 | 22 | /* (non-Javadoc) 23 | * @see org.eclipse.jface.action.Action#run() 24 | */ 25 | @Override 26 | public void run() { 27 | owner.setHideInternalTasks(isChecked()); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui.taskview/src/org/springsource/ide/eclipse/gradle/ui/taskview/ToggleLinkingAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.taskview; 12 | 13 | import org.eclipse.jdt.internal.ui.actions.AbstractToggleLinkingAction; 14 | 15 | /** 16 | * @author Kris De Volder 17 | */ 18 | @SuppressWarnings("restriction") 19 | public class ToggleLinkingAction extends AbstractToggleLinkingAction { 20 | 21 | private GradleTasksView owner; 22 | 23 | /** 24 | * Constructs a new action. 25 | * @param explorer the package explorer 26 | */ 27 | public ToggleLinkingAction(GradleTasksView owner) { 28 | setChecked(owner.isLinkingEnabled()); 29 | this.owner= owner; 30 | setToolTipText("Link with selection"); 31 | } 32 | 33 | /** 34 | * Runs the action. 35 | */ 36 | @Override 37 | public void run() { 38 | owner.setLinkingEnabled(isChecked()); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | org.springsource.ide.eclipse.gradle.ui 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.pde.ManifestBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.pde.SchemaBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.pde.PluginNature 26 | org.eclipse.jdt.core.javanature 27 | 28 | 29 | 30 | 1376416703537 31 | 32 | 10 33 | 34 | org.eclipse.ui.ide.multiFilter 35 | 1.0-projectRelativePath-matches-false-false-target 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/.settings/gradle/com.springsource.sts.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #com.springsource.sts.gradle.core.preferences.GradleProjectPreferences 2 | #Fri Nov 25 15:40:55 PST 2011 3 | com.springsource.sts.gradle.rootprojectloc= 4 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.7 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.7 12 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/.settings/org.maven.ide.eclipse.prefs: -------------------------------------------------------------------------------- 1 | #Thu Jan 27 16:22:14 PST 2011 2 | activeProfiles= 3 | eclipse.preferences.version=1 4 | fullBuildGoals=process-test-resources 5 | resolveWorkspaceProjects=true 6 | resourceFilterGoals=process-resources resources\:testResources 7 | skipCompilerPlugin=true 8 | version=1 9 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Bundle-ManifestVersion: 2 3 | Bundle-Name: SpringSource Tool Suite Gradle Integration (UI) 4 | Bundle-SymbolicName: org.springsource.ide.eclipse.gradle.ui;singleton:=true 5 | Bundle-Version: 3.9.4.qualifier 6 | Bundle-Activator: org.springsource.ide.eclipse.gradle.ui.GradleUI 7 | Bundle-Vendor: Pivotal Software, Inc. 8 | Require-Bundle: org.eclipse.ui, 9 | org.eclipse.core.runtime, 10 | org.eclipse.jdt.core, 11 | org.eclipse.jdt.ui, 12 | org.eclipse.core.resources, 13 | org.springsource.ide.eclipse.gradle.core, 14 | org.eclipse.ui.ide, 15 | org.eclipse.debug.ui, 16 | org.eclipse.ui.externaltools, 17 | org.eclipse.ant.ui, 18 | org.codehaus.groovy.eclipse.core;resolution:=optional, 19 | org.eclipse.jdt.launching, 20 | org.eclipse.jdt.debug.ui, 21 | org.springsource.ide.eclipse.gradle.toolingapi, 22 | org.eclipse.ui.editors, 23 | org.eclipse.jface.text, 24 | org.eclipse.buildship.stsmigration;resolution:=optional 25 | Bundle-RequiredExecutionEnvironment: JavaSE-1.7 26 | Bundle-ActivationPolicy: lazy 27 | Bundle-ClassPath: . 28 | Export-Package: org.springsource.ide.eclipse.gradle.ui, 29 | org.springsource.ide.eclipse.gradle.ui.actions, 30 | org.springsource.ide.eclipse.gradle.ui.util, 31 | org.springsource.ide.eclipse.gradle.ui.wizards 32 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/META-INF/p2.inf: -------------------------------------------------------------------------------- 1 | # Specify all groovy/greclipse bundles as optional as well as non-greedy 2 | requires.0.namespace=osgi.bundle 3 | requires.0.name=org.codehaus.groovy.eclipse.core 4 | requires.0.greedy=false 5 | requires.0.optional=true 6 | requires.1.namespace=osgi.bundle 7 | requires.1.name=org.eclipse.buildship.stsmigration 8 | requires.1.greedy=true 9 | requires.1.optional=true -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/about.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | About Gradle Integration for Eclipse 6 | 7 | 8 | 9 |

About Gradle Integration for Eclipse

10 |

June 30, 2015

11 |

Abstract

12 |

The Gradle Integration for Eclipse project provides Eclipse integration 13 | support for Gradle.

14 |

License

15 |

Pivotal Software, Inc. (“Pivotal”) makes available all content 16 | in this download ("Content"). Unless otherwise indicated below, the 17 | Content is provided to you under the terms and conditions of the Eclipse 18 | Public License Version 1.0 ("EPL"). A copy of the EPL is available in 19 | the file called license.txt. For purposes of the EPL, "Program" will 20 | mean the Content.

21 |

Third Party Content

22 |

The Content includes items that have been sourced from third parties, as 23 | set out in the file called open_source_licenses.txt, located in the 24 | feature components of this project.

25 | 26 | 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/build.properties: -------------------------------------------------------------------------------- 1 | source.. = src/ 2 | output.. = bin/ 3 | bin.includes = META-INF/,\ 4 | .,\ 5 | plugin.xml,\ 6 | icons/,\ 7 | about.html 8 | jars.extra.classpath = platform:/plugin/org.codehaus.groovy.eclipse.core 9 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons-sources/fldr_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons-sources/fldr_obj.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons-sources/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons-sources/folder.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons-sources/prj_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons-sources/prj_obj.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/filter_internal_targets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/filter_internal_targets.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-big-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-big-icon.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-import-wizban.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-import-wizban.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-import.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-import.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-launch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-launch.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-multiproj-folder-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-multiproj-folder-disabled.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-multiproj-folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-multiproj-folder.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-nature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-nature.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/gradle-proj-folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/gradle-proj-folder.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/run_tool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/run_tool.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/targetinternal_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/targetinternal_obj.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/targetloading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/targetloading.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/icons/targetpublic_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/org.springsource.ide.eclipse.gradle.ui/icons/targetpublic_obj.png -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.springsource.ide.eclipse.gradle 8 | org.springsource.ide.eclipse.gradle.parent 9 | 3.9.4-SNAPSHOT 10 | 11 | org.springsource.ide.eclipse.gradle.ui 12 | eclipse-plugin 13 | 14 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/ArgumentsValidatorContext.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui; 12 | 13 | /** 14 | * @author Kris De Volder 15 | */ 16 | public interface ArgumentsValidatorContext { 17 | 18 | String getCustomArgumentsInPage(); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/GradleArgumentsPreferencesPage.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | public class GradleArgumentsPreferencesPage extends PreferencePageWithSections { 17 | 18 | public GradleArgumentsPreferencesPage() { 19 | } 20 | 21 | @Override 22 | protected List createSections() { 23 | List sections = new ArrayList(); 24 | sections.add(new JavaHomeSection(this)); 25 | sections.add(new JVMArgumentsSection(this)); 26 | sections.add(new ProgramArgumentsSection(this)); 27 | return sections; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/IPageWithSections.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui; 12 | 13 | import org.eclipse.swt.widgets.Shell; 14 | 15 | /** 16 | * Abstraction for the 'owner' of a UI 'Section' on a some page. This is so that we can 17 | * reuse UI widgetry more easily across different kinds of UI contexts (e.g. both on 18 | * a preferences page and a launch config editor. 19 | * 20 | * @author Kris De Volder 21 | */ 22 | public interface IPageWithSections { 23 | 24 | Shell getShell(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/PrefsPageSection.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui; 12 | 13 | import org.springsource.ide.eclipse.gradle.ui.util.PageSection; 14 | 15 | 16 | /** 17 | * Abstract base class for implementing 'sections' containing a group of widgets that can be added to the Gradle preferences page. 18 | * 19 | * @author Kris De Volder 20 | */ 21 | public abstract class PrefsPageSection extends PageSection { 22 | 23 | public PrefsPageSection(IPageWithSections owner) { 24 | super(owner); 25 | } 26 | 27 | public abstract boolean performOK(); 28 | public abstract void performDefaults(); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/actions/RefreshAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.actions; 12 | 13 | import org.eclipse.core.resources.IProject; 14 | import org.eclipse.core.runtime.CoreException; 15 | import org.eclipse.jdt.core.JavaCore; 16 | import org.springsource.ide.eclipse.gradle.core.GradleNature; 17 | import org.springsource.ide.eclipse.gradle.core.classpathcontainer.GradleClassPathContainer; 18 | import org.springsource.ide.eclipse.gradle.ui.GradleUI; 19 | 20 | 21 | /** 22 | * @author Kris De Volder 23 | */ 24 | public abstract class RefreshAction extends GradleProjectActionDelegate { 25 | 26 | @Override 27 | protected boolean isEnabled(IProject project) { 28 | try { 29 | if (project != null 30 | && project.isAccessible() 31 | && project.hasNature(JavaCore.NATURE_ID) 32 | && project.hasNature(GradleNature.NATURE_ID)) { 33 | return GradleClassPathContainer.isOnClassPath(getJavaProject()); 34 | } 35 | } catch (CoreException e) { 36 | GradleUI.log(e); 37 | } 38 | return false; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/actions/RefreshAllHandler.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Liferay, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Gregory Amerson - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.actions; 12 | 13 | import org.eclipse.core.commands.AbstractHandler; 14 | import org.eclipse.core.commands.ExecutionEvent; 15 | import org.eclipse.core.commands.ExecutionException; 16 | import org.eclipse.jface.action.Action; 17 | import org.eclipse.jface.action.IAction; 18 | import org.eclipse.jface.viewers.ISelection; 19 | import org.eclipse.ui.handlers.HandlerUtil; 20 | 21 | 22 | /** 23 | * @author Gregory Amerson 24 | */ 25 | public class RefreshAllHandler extends AbstractHandler { 26 | 27 | @Override 28 | public Object execute(ExecutionEvent event) throws ExecutionException { 29 | final ISelection selection = HandlerUtil.getCurrentSelection(event); 30 | final RefreshAllAction refreshAllAction = new RefreshAllAction(); 31 | final IAction action = new Action(){}; 32 | 33 | refreshAllAction.selectionChanged(action, selection); 34 | 35 | if (action.isEnabled()) { 36 | refreshAllAction.run(action); 37 | } 38 | 39 | return null; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/actions/RefreshDependenciesAction.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.actions; 12 | 13 | 14 | import org.eclipse.jface.action.IAction; 15 | import org.springsource.ide.eclipse.gradle.core.actions.RefreshDependenciesActionCore; 16 | 17 | 18 | /** 19 | * Action that causes the contents of the projects class path container to be recomputed. 20 | * 21 | * @author Kris De Volder 22 | */ 23 | public class RefreshDependenciesAction extends RefreshAction { 24 | 25 | public RefreshDependenciesAction() { 26 | } 27 | 28 | public void run(IAction action) { 29 | RefreshDependenciesActionCore.callOn(getProjects()); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/launch/GradleLaunchTabGroup.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.launch; 12 | 13 | import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; 14 | import org.eclipse.debug.ui.CommonTab; 15 | import org.eclipse.debug.ui.ILaunchConfigurationDialog; 16 | import org.eclipse.debug.ui.ILaunchConfigurationTab; 17 | import org.eclipse.debug.ui.RefreshTab; 18 | 19 | /** 20 | * @author Kris De Volder 21 | */ 22 | public class GradleLaunchTabGroup extends AbstractLaunchConfigurationTabGroup { 23 | 24 | public void createTabs(ILaunchConfigurationDialog dialog, String mode) { 25 | ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { 26 | new GradleLaunchTasksTab(), 27 | new GradleLaunchArgumentsTab(), 28 | new RefreshTab(), 29 | new CommonTab() 30 | }; 31 | setTabs(tabs); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/util/GradleLabelProvider.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.util; 12 | 13 | import java.io.IOException; 14 | import java.io.InputStream; 15 | 16 | import org.eclipse.jface.viewers.BaseLabelProvider; 17 | import org.eclipse.swt.graphics.Image; 18 | 19 | /** 20 | * Base class containing common functionality useful to implement label providers. 21 | * 22 | * @author Kris De Volder 23 | */ 24 | public abstract class GradleLabelProvider extends BaseLabelProvider { 25 | 26 | protected Image getImage(String location) { 27 | InputStream imageStream = getClass().getClassLoader().getResourceAsStream(location); 28 | try { 29 | return new Image(null, imageStream); 30 | } finally { 31 | try { 32 | imageStream.close(); 33 | } catch (IOException e) { 34 | } 35 | } 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/util/PageSection.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.util; 12 | 13 | import org.eclipse.swt.widgets.Composite; 14 | import org.springsource.ide.eclipse.gradle.core.util.expression.LiveExpression; 15 | import org.springsource.ide.eclipse.gradle.core.validators.ValidationResult; 16 | import org.springsource.ide.eclipse.gradle.ui.IPageWithSections; 17 | 18 | 19 | /** 20 | * @author Kris De Volder 21 | */ 22 | public abstract class PageSection { 23 | 24 | protected final IPageWithSections owner; 25 | 26 | protected PageSection(IPageWithSections owner) { 27 | this.owner = owner; 28 | } 29 | 30 | public static final LiveExpression OK_VALIDATOR = LiveExpression.constant(ValidationResult.OK); 31 | public abstract LiveExpression getValidator(); 32 | public abstract void createContents(Composite page); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /org.springsource.ide.eclipse.gradle.ui/src/org/springsource/ide/eclipse/gradle/ui/wizards/WizardPageSection.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2012 Pivotal Software, Inc. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * https://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * Pivotal Software, Inc. - initial API and implementation 10 | *******************************************************************************/ 11 | package org.springsource.ide.eclipse.gradle.ui.wizards; 12 | 13 | import org.springsource.ide.eclipse.gradle.ui.util.PageSection; 14 | 15 | /** 16 | * @author Kris De Volder 17 | */ 18 | public abstract class WizardPageSection extends PageSection { 19 | 20 | public WizardPageSection(NewGradleProjectWizardPage owner) { 21 | super(owner); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /toolingapi/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.gradle 3 | /repo 4 | *.iml 5 | build 6 | *.classpath 7 | *.project -------------------------------------------------------------------------------- /toolingapi/.settings/gradle/org.springsource.ide.eclipse.gradle.core.import.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleImportPreferences 2 | #Fri Oct 31 16:03:43 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | enableDependendencyManagement=true 10 | projects=;integrationTests;model;plugin;updateLibs; 11 | -------------------------------------------------------------------------------- /toolingapi/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Tue Nov 25 16:26:03 PST 2014 3 | build.family.org.gradle.tooling.model.eclipse.HierarchicalEclipseProject=;integrationTests;model;plugin;updateLibs; 4 | org.springsource.ide.eclipse.gradle.linkedresources= 5 | org.springsource.ide.eclipse.gradle.rootprojectloc= 6 | -------------------------------------------------------------------------------- /toolingapi/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /toolingapi/build.gradle: -------------------------------------------------------------------------------- 1 | defaultTasks 'updateLibs:updateLibs' 2 | 3 | subprojects { 4 | apply plugin: 'java' 5 | 6 | sourceCompatibility = '1.6' 7 | targetCompatibility = '1.6' 8 | 9 | group = 'io.pivotal.gradle.eclipse.toolingapi' 10 | version = '1.0' 11 | 12 | repositories { 13 | maven { 14 | // for integration test runs and intermediate publishing 15 | url "$projectDir/repo" 16 | } 17 | mavenCentral() 18 | maven { url 'https://repo.gradle.org/gradle/libs-releases-local' } 19 | } 20 | 21 | task sourceJar(type: Jar) { 22 | from sourceSets.main.allJava 23 | } 24 | } 25 | 26 | task wrapper(type: Wrapper) { 27 | gradleVersion = project.gradleApiVersion 28 | } -------------------------------------------------------------------------------- /toolingapi/gradle.properties: -------------------------------------------------------------------------------- 1 | gradleApiVersion = 2.2.1 2 | -------------------------------------------------------------------------------- /toolingapi/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spring-attic/eclipse-integration-gradle/842b6f09715967be143fe56a6f29e35d2b9489d5/toolingapi/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /toolingapi/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 29 18:10:11 PDT 2014 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.2.1-all.zip 7 | -------------------------------------------------------------------------------- /toolingapi/integrationTests/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=.. 5 | -------------------------------------------------------------------------------- /toolingapi/integrationTests/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /toolingapi/integrationTests/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies { 4 | compile gradleApi() 5 | compile project(':model') 6 | testCompile 'junit:junit:4.11' 7 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/init.gradle: -------------------------------------------------------------------------------- 1 | initscript { 2 | repositories { 3 | flatDir { 4 | dir System.getProperty('org.springsource.ide.eclipse.gradle.toolingApiRepo') 5 | } 6 | } 7 | 8 | dependencies { 9 | classpath 'io.pivotal.gradle.eclipse.toolingapi:plugin:1.0' 10 | classpath ':model:1.0' 11 | classpath 'org.gradle:gradle-tooling-api:2.2.1' 12 | classpath 'org.slf4j:slf4j-api:1.7.7' 13 | } 14 | } 15 | 16 | allprojects { 17 | apply plugin: io.pivotal.tooling.plugin.eclipse.EclipseToolingModelPlugin 18 | 19 | eclipseToolingModel { 20 | equivalentBinaryVersion = System.getProperty('org.springsource.ide.eclipse.gradle.toolingApiEquivalentBinaryVersion') 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject-cycle/a/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies { 4 | compile project(':b') 5 | compile project(':a') 6 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject-cycle/b/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies { 4 | compile project(':a') 5 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject-cycle/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'a', 'b' -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/a/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile 'com.google.guava:guava:18.0' 3 | compile project(':b') 4 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/b/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.4.1' 3 | testCompile 'junit:junit:4.+' 4 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | apply plugin: 'java' 3 | apply plugin: 'maven-publish' 4 | 5 | group = 'io.pivotal.gradle.eclipse.toolingapi.integrationTests' 6 | version = '1.0' 7 | 8 | repositories { 9 | mavenLocal() // helps with offline integration testing (assuming you've got a populated maven central repo) 10 | mavenCentral() 11 | } 12 | 13 | task sourceJar(type: Jar) { 14 | from sourceSets.main.allJava 15 | } 16 | 17 | publishing { 18 | repositories { mavenLocal() } 19 | 20 | publications { 21 | maven(MavenPublication) { 22 | from components.java 23 | 24 | artifact sourceJar { 25 | classifier 'sources' 26 | } 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/minus/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'eclipse' 2 | 3 | eclipse { 4 | classpath { 5 | minusConfigurations = [configurations.compile] 6 | } 7 | } 8 | 9 | dependencies { 10 | compile 'com.google.guava:guava:18.0' 11 | testCompile 'junit:junit:4.+' 12 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/plus/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'eclipse' 2 | 3 | configurations { myconf } 4 | 5 | eclipse { 6 | classpath { 7 | plusConfigurations = [configurations.myconf, configurations.testRuntime] 8 | } 9 | } 10 | 11 | dependencies { 12 | compile 'com.google.guava:guava:18.0' 13 | myconf 'commons-logging:commons-logging:1.1.3' 14 | } -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/multiproject/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'a', 'b', 'minus', 'plus' -------------------------------------------------------------------------------- /toolingapi/integrationTests/projects/pluginproject/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | 3 | dependencies { 4 | compile gradleApi() 5 | } 6 | -------------------------------------------------------------------------------- /toolingapi/model/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=.. 5 | -------------------------------------------------------------------------------- /toolingapi/model/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /toolingapi/model/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'maven-publish' 2 | 3 | publishing { 4 | repositories { 5 | maven { url "$rootProject.projectDir/repo" } 6 | } 7 | 8 | publications { 9 | maven(MavenPublication) { 10 | from components.java 11 | 12 | artifact sourceJar { 13 | classifier 'sources' 14 | } 15 | } 16 | } 17 | } 18 | 19 | dependencies { 20 | compile "org.gradle:gradle-tooling-api:$project.gradleApiVersion" 21 | } -------------------------------------------------------------------------------- /toolingapi/model/src/main/java/io/pivotal/tooling/model/eclipse/StsEclipseProjectDependency.java: -------------------------------------------------------------------------------- 1 | package io.pivotal.tooling.model.eclipse; 2 | 3 | import org.gradle.tooling.model.ExternalDependency; 4 | import org.gradle.tooling.model.GradleModuleVersion; 5 | import org.gradle.tooling.model.eclipse.EclipseProjectDependency; 6 | 7 | public interface StsEclipseProjectDependency extends EclipseProjectDependency { 8 | GradleModuleVersion getGradleModuleVersion(); 9 | ExternalDependency getExternalEquivalent(); 10 | } 11 | -------------------------------------------------------------------------------- /toolingapi/plugin/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=.. 5 | -------------------------------------------------------------------------------- /toolingapi/plugin/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Oct 29 12:20:46 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | -------------------------------------------------------------------------------- /toolingapi/plugin/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'maven-publish' 2 | 3 | publishing { 4 | repositories { 5 | maven { url "$rootProject.projectDir/repo" } 6 | } 7 | 8 | publications { 9 | maven(MavenPublication) { 10 | from components.java 11 | 12 | artifact sourceJar { 13 | classifier 'sources' 14 | } 15 | } 16 | } 17 | } 18 | 19 | dependencies { 20 | compile gradleApi() 21 | compile project(':model') 22 | } -------------------------------------------------------------------------------- /toolingapi/plugin/src/main/java/io/pivotal/tooling/plugin/eclipse/DefaultStsEclipseExternalDependency.java: -------------------------------------------------------------------------------- 1 | package io.pivotal.tooling.plugin.eclipse; 2 | 3 | import org.gradle.api.artifacts.ModuleVersionIdentifier; 4 | import org.gradle.tooling.internal.gradle.DefaultGradleModuleVersion; 5 | import org.gradle.tooling.model.GradleModuleVersion; 6 | 7 | import java.io.File; 8 | import java.io.Serializable; 9 | 10 | public class DefaultStsEclipseExternalDependency implements Serializable { 11 | private static final long serialVersionUID = 1L; 12 | 13 | private File file; 14 | private File javadoc; 15 | private File source; 16 | private GradleModuleVersion moduleVersion; 17 | 18 | public File getFile() { 19 | return file; 20 | } 21 | 22 | public File getJavadoc() { 23 | return javadoc; 24 | } 25 | 26 | public File getSource() { 27 | return source; 28 | } 29 | 30 | public GradleModuleVersion getGradleModuleVersion() { 31 | return moduleVersion; 32 | } 33 | 34 | public DefaultStsEclipseExternalDependency setModuleVersion(ModuleVersionIdentifier id) { 35 | moduleVersion = (id == null)? null : new DefaultGradleModuleVersion(id); 36 | return this; 37 | } 38 | 39 | public DefaultStsEclipseExternalDependency setFile(File file) { 40 | this.file = file; 41 | return this; 42 | } 43 | 44 | public DefaultStsEclipseExternalDependency setJavadoc(File javadoc) { 45 | this.javadoc = javadoc; 46 | return this; 47 | } 48 | 49 | public DefaultStsEclipseExternalDependency setSource(File source) { 50 | this.source = source; 51 | return this; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /toolingapi/plugin/src/main/java/io/pivotal/tooling/plugin/eclipse/EclipseToolingModelPlugin.java: -------------------------------------------------------------------------------- 1 | package io.pivotal.tooling.plugin.eclipse; 2 | 3 | import org.gradle.api.Plugin; 4 | import org.gradle.api.Project; 5 | import org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry; 6 | import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry; 7 | 8 | import javax.inject.Inject; 9 | 10 | class EclipseToolingModelPlugin implements Plugin { 11 | private final ToolingModelBuilderRegistry registry; 12 | private final ProjectPublicationRegistry publicationRegistry; 13 | 14 | @Inject 15 | public EclipseToolingModelPlugin(ToolingModelBuilderRegistry registry, ProjectPublicationRegistry publicationRegistry) { 16 | this.registry = registry; 17 | this.publicationRegistry = publicationRegistry; 18 | } 19 | 20 | @Override 21 | public void apply(Project project) { 22 | project.getExtensions().create("eclipseToolingModel", EclipseToolingModelPluginExtension.class); 23 | registry.register(new StsEclipseProjectModelBuilder(publicationRegistry)); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /toolingapi/plugin/src/main/java/io/pivotal/tooling/plugin/eclipse/EclipseToolingModelPluginExtension.java: -------------------------------------------------------------------------------- 1 | package io.pivotal.tooling.plugin.eclipse; 2 | 3 | public class EclipseToolingModelPluginExtension { 4 | private String equivalentBinaryVersion = "latest.integration"; 5 | 6 | public String getEquivalentBinaryVersion() { 7 | return equivalentBinaryVersion; 8 | } 9 | 10 | public void setEquivalentBinaryVersion(String equivalentBinaryVersion) { 11 | this.equivalentBinaryVersion = equivalentBinaryVersion; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /toolingapi/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'model', 'plugin', 'integrationTests', 'updateLibs' 2 | 3 | -------------------------------------------------------------------------------- /toolingapi/updateLibs/.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences 2 | #Wed Oct 29 13:28:33 PDT 2014 3 | org.springsource.ide.eclipse.gradle.linkedresources= 4 | org.springsource.ide.eclipse.gradle.rootprojectloc=.. 5 | -------------------------------------------------------------------------------- /toolingapi/updateLibs/.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs: -------------------------------------------------------------------------------- 1 | #org.springsource.ide.eclipse.gradle.core.actions.GradleRefreshPreferences 2 | #Wed Oct 29 13:28:33 PDT 2014 3 | addResourceFilters=true 4 | afterTasks=afterEclipseImport; 5 | beforeTasks=cleanEclipse;eclipse; 6 | enableAfterTasks=false 7 | enableBeforeTasks=false 8 | enableDSLD=false 9 | useHierarchicalNames=false 10 | --------------------------------------------------------------------------------