1 /* 2 * Copyright (C) 2009 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.ant; 18 19 import org.apache.tools.ant.BuildException; 20 import org.apache.tools.ant.Task; 21 import org.apache.tools.ant.taskdefs.ImportTask; 22 23 /** 24 * Legacy setupTask class used by older build system. 25 * 26 * If this is used it actually only display an error about the need to update the build file. 27 */ 28 public final class SetupTask extends Task { 29 30 /** 31 * @param b unused. 32 * 33 * @deprecated only present because the original {@link SetupTask} extends {@link ImportTask}. 34 */ 35 @Deprecated 36 public void setImport(boolean b) { 37 // do nothing 38 } 39 40 @Override 41 public void execute() throws BuildException { 42 throw new BuildException("\n\nError. You are using an obsolete build.xml\n" + 43 "You need to delete it and regenerate it using\n" + 44 "\tandroid update project\n"); 45 } 46 } 47