obsolete code removed

This commit is contained in:
nik
2009-10-29 10:22:16 +03:00
parent aa0af0014d
commit 32640c800e
17 changed files with 6 additions and 974 deletions
@@ -37,8 +37,6 @@ public abstract class BuildTargetsFactory {
public abstract Target createBuildExplodedTarget(ExplodedAndJarTargetParameters parameters, BuildRecipe buildRecipe, String description);
public abstract Target createBuildJarTarget(ExplodedAndJarTargetParameters parameters, BuildRecipe buildRecipe, String description);
public abstract Generator createComment(String comment);
//for test
@@ -15,31 +15,13 @@
*/
package com.intellij.openapi.compiler.make;
import com.intellij.openapi.compiler.CompileContext;
import com.intellij.openapi.module.Module;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Set;
import java.util.jar.JarOutputStream;
public interface BuildInstruction {
String getOutputRelativePath();
Module getModule();
@Deprecated
void addFilesToJar(@NotNull CompileContext context,
@NotNull File jarFile,
@NotNull JarOutputStream outputStream,
BuildRecipe dependencies,
@Nullable Set<String> writtenRelativePaths,
@Nullable FileFilter fileFilter) throws IOException;
boolean accept(BuildInstructionVisitor visitor) throws Exception;
boolean isExternalDependencyInstruction();
File findFileByRelativePath(String relativePath);
}
@@ -15,21 +15,8 @@
*/
package com.intellij.openapi.compiler.make;
import com.intellij.openapi.compiler.CompileContext;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
public interface JarAndCopyBuildInstruction extends FileCopyInstruction {
@Deprecated
void makeJar(@NotNull CompileContext context,
@NotNull File jarFile,
@Nullable FileFilter fileFilter) throws IOException;
File getJarFile();
@Deprecated
void deleteTemporaryJars();
}
@@ -104,10 +104,6 @@ public abstract class ContainerElement implements JDOMExternalizable, Cloneable,
return 0;
}
public abstract String getDescription();
public abstract String getDescriptionForPackagingMethod(PackagingMethod method);
public ContainerElement clone() {
throw new UnsupportedOperationException();
}
@@ -36,7 +36,6 @@ import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Set;
import java.util.jar.Manifest;
public abstract class DeploymentUtil {
public static DeploymentUtil getInstance() {
@@ -93,8 +92,6 @@ public abstract class DeploymentUtil {
public abstract void reportDeploymentDescriptorDoesNotExists(ConfigFile descriptor, CompileContext context, Module module);
@Nullable public abstract Manifest createManifest(@NotNull BuildRecipe buildRecipe);
public abstract void addJavaModuleOutputs(@NotNull Module module,
@NotNull ModuleLink[] containingModules,
@NotNull BuildRecipe instructions,
@@ -110,14 +107,6 @@ public abstract class DeploymentUtil {
@NotNull CompileContext context,
String explodedPath);
public static boolean checkFileExists(final File file, CompileContext context) {
if (!file.exists()) {
context.addMessage(CompilerMessageCategory.ERROR, CompilerBundle.message("compiler.message.text.file.does.not.exist", file),null,-1,-1);
return false;
}
return true;
}
public static String concatPaths(String... paths) {
final StringBuilder builder = new StringBuilder();
for (String path : paths) {
@@ -194,8 +183,6 @@ public abstract class DeploymentUtil {
}
}
public abstract @Nullable File findUserSuppliedManifestFile(@NotNull BuildRecipe buildRecipe);
public abstract void checkConfigFile(final ConfigFile descriptor, final CompileContext compileContext, final Module module);
}
@@ -1,36 +0,0 @@
/*
* Copyright 2000-2009 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 com.intellij.openapi.deployment;
import gnu.trove.TObjectHashingStrategy;
public class ElementIgnoringAttributesEquality implements TObjectHashingStrategy<ContainerElement> {
public boolean equals(ContainerElement object, ContainerElement object1) {
if (object1 == null || object == null) {
return object == object1;
}
return object.equalsIgnoreAttributes(object1);
}
public int computeHashCode(ContainerElement object) {
String presentableName = object.getPresentableName();
if (presentableName == null) {
return 0;
}
return presentableName.hashCode();
}
}
@@ -1,40 +0,0 @@
/*
* Copyright 2000-2009 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 com.intellij.openapi.deployment;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.roots.ui.configuration.ModulesProvider;
import com.intellij.openapi.roots.ui.configuration.FacetsProvider;
public interface PackagingConfiguration extends JDOMExternalizable {
ModuleLink[] getContainingModules();
LibraryLink[] getContainingLibraries();
ContainerElement[] getElements();
void setElements(ContainerElement[] elements);
Module[] getContainingIdeaModules();
ContainerElement[] getElements(ModulesProvider provider, FacetsProvider facetsProvider,
boolean includeResolved, boolean includeUnresolved, boolean includeNonPackaged);
void addOrReplaceElement(ContainerElement element);
boolean removeContainerElement(ContainerElement containerElement);
}