1. /*
  2. * Copyright 2001-2002,2004 The Apache Software Foundation
  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 org.apache.tools.ant.taskdefs.optional.ide;
  18. import java.io.File;
  19. import java.util.Vector;
  20. /**
  21. * Helper interface for VAJ tasks. Encapsulates
  22. * the interface to the VAJ tool API.
  23. *
  24. */
  25. interface VAJUtil {
  26. // log levels
  27. static final int MSG_DEBUG = 4;
  28. static final int MSG_ERR = 0;
  29. static final int MSG_INFO = 2;
  30. static final int MSG_VERBOSE = 3;
  31. static final int MSG_WARN = 1;
  32. /**
  33. * export the array of Packages
  34. */
  35. void exportPackages(
  36. File dest,
  37. String[] includePatterns, String[] excludePatterns,
  38. boolean exportClasses, boolean exportDebugInfo,
  39. boolean exportResources, boolean exportSources,
  40. boolean useDefaultExcludes, boolean overwrite);
  41. /**
  42. * Do the import.
  43. */
  44. void importFiles(
  45. String importProject, File srcDir,
  46. String[] includePatterns, String[] excludePatterns,
  47. boolean importClasses, boolean importResources,
  48. boolean importSources, boolean useDefaultExcludes);
  49. /**
  50. * Load specified projects.
  51. */
  52. void loadProjects(Vector projectDescriptions);
  53. /**
  54. * Logs a message with the specified log level.
  55. */
  56. void log(String msg, int level);
  57. }