diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/BuildScriptClasspathModelImpl.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/BuildScriptClasspathModelImpl.java deleted file mode 100644 index b59241181110..000000000000 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/BuildScriptClasspathModelImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jetbrains.plugins.gradle.model.internal; - -import org.gradle.tooling.model.DomainObjectSet; -import org.gradle.tooling.model.internal.ImmutableDomainObjectSet; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.plugins.gradle.model.BuildScriptClasspathModel; -import org.jetbrains.plugins.gradle.model.ClasspathEntryModel; - -import java.util.ArrayList; -import java.util.List; - -/** - * @author Vladislav.Soroka - * @since 12/20/13 - */ -public class BuildScriptClasspathModelImpl implements BuildScriptClasspathModel { - - private final List myClasspathEntries; - - public BuildScriptClasspathModelImpl() { - myClasspathEntries = new ArrayList(); - } - - @Override - public DomainObjectSet getClasspath() { - return ImmutableDomainObjectSet.of(myClasspathEntries); - } - - public void add(@NotNull ClasspathEntryModel classpathEntryModel) { - myClasspathEntries.add(classpathEntryModel); - } -} diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ClasspathEntryModelImpl.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ClasspathEntryModelImpl.java deleted file mode 100644 index 06188100d4ab..000000000000 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ClasspathEntryModelImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2000-2014 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jetbrains.plugins.gradle.model.internal; - -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; -import org.jetbrains.plugins.gradle.model.ClasspathEntryModel; - -import java.io.File; -import java.io.Serializable; - -/** - * @author Vladislav.Soroka - * @since 12/20/13 - */ -public class ClasspathEntryModelImpl implements ClasspathEntryModel, Serializable { - @NotNull - private final File classesFile; - @Nullable - private final File sourcesFile; - @Nullable - private final File javadocFile; - - public ClasspathEntryModelImpl(@NotNull File classesFile, @Nullable File sourcesFile, @Nullable File javadocFile) { - this.classesFile = classesFile; - this.sourcesFile = sourcesFile; - this.javadocFile = javadocFile; - } - - @NotNull - @Override - public File getClassesFile() { - return classesFile; - } - - @Nullable - @Override - public File getSourcesFile() { - return sourcesFile; - } - - @Nullable - @Override - public File getJavadocFile() { - return javadocFile; - } -} diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ModuleExtendedModelImpl.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ModuleExtendedModelImpl.java deleted file mode 100644 index b8bce40264cc..000000000000 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ModuleExtendedModelImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2000-2013 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jetbrains.plugins.gradle.model.internal; - -import org.gradle.tooling.model.DomainObjectSet; -import org.gradle.tooling.model.internal.ImmutableDomainObjectSet; -import org.jetbrains.plugins.gradle.model.ExtIdeaContentRoot; -import org.jetbrains.plugins.gradle.model.ModuleExtendedModel; - -import java.io.File; -import java.util.Collections; -import java.util.List; -import java.util.Set; - -/** - * @author Vladislav.Soroka - * @since 11/8/13 - */ -public class ModuleExtendedModelImpl implements ModuleExtendedModel { - private final String myName; - private final String myGroup; - private final String myVersion; - private List myArtifacts; - private Set myContentRoots; - - public ModuleExtendedModelImpl(String name, String group, String version) { - myName = name; - myGroup = group; - myVersion = version; - myArtifacts = Collections.emptyList(); - myContentRoots = Collections.emptySet(); - } - - @Override - public String getName() { - return myName; - } - - @Override - public String getGroup() { - return myGroup; - } - - @Override - public String getVersion() { - return myVersion; - } - - @Override - public List getArtifacts() { - return myArtifacts; - } - - public void setArtifacts(List artifacts) { - this.myArtifacts = artifacts == null ? Collections.emptyList() : artifacts; - } - - @Override - public DomainObjectSet getContentRoots() { - return ImmutableDomainObjectSet.of(myContentRoots); - } - - public void setContentRoots(Set contentRoots) { - myContentRoots = contentRoots == null ? Collections.emptySet() : contentRoots; - } -} diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ProjectDependenciesModelImpl.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ProjectDependenciesModelImpl.java deleted file mode 100644 index 533c35084fa2..000000000000 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/ProjectDependenciesModelImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2000-2013 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jetbrains.plugins.gradle.model.internal; - -import org.gradle.tooling.model.idea.IdeaDependency; -import org.jetbrains.plugins.gradle.model.ProjectDependenciesModel; - -import java.util.List; - -/** - * @author Vladislav.Soroka - * @since 11/8/13 - */ -public class ProjectDependenciesModelImpl implements ProjectDependenciesModel { - private final String projectName; - private final List myDependencies; - - public ProjectDependenciesModelImpl(String projectName, List dependencies) { - this.projectName = projectName; - myDependencies = dependencies; - } - - @Override - public String getProjectName() { - return projectName; - } - - @Override - public List getDependencies() { - return myDependencies; - } - - @Override - public String toString() { - return "ProjectDependenciesModelImpl{" + - "projectName='" + projectName + '\'' + - '}'; - } -} diff --git a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/WarModelImpl.java b/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/WarModelImpl.java deleted file mode 100644 index 6ebe710322be..000000000000 --- a/plugins/gradle/src/org/jetbrains/plugins/gradle/model/internal/WarModelImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2000-2013 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.jetbrains.plugins.gradle.model.internal; - -import org.jetbrains.plugins.gradle.model.WarModel; - -import java.io.File; -import java.util.Map; -import java.util.Set; - -/** - * @author Vladislav.Soroka - * @since 11/5/13 - */ -public class WarModelImpl implements WarModel { - private final String myWebAppDirName; - private final File myWebAppDir; - private File myWebXml; - private Map> myWebRoots; - private Set myClasspath; - private String myManifestContent; - - public WarModelImpl(String webAppDirName, File webAppDir) { - myWebAppDirName = webAppDirName; - myWebAppDir = webAppDir; - } - - @Override - public String getWebAppDirName() { - return myWebAppDirName; - } - - @Override - public File getWebAppDir() { - return myWebAppDir; - } - - public void setWebXml(File webXml) { - myWebXml = webXml; - } - - @Override - public File getWebXml() { - return myWebXml; - } - - @Override - public Map> getWebRoots() { - return myWebRoots; - } - - public void setWebRoots(Map> webRoots) { - myWebRoots = webRoots; - } - - public void setClasspath(Set classpath) { - myClasspath = classpath; - } - - @Override - public Set getClasspath() { - return myClasspath; - } - - public void setManifestContent(String manifestContent) { - myManifestContent = manifestContent; - } - - @Override - public String getManifestContent() { - return myManifestContent; - } -}