You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LstBuildConfigFileParser.java 1.6KB

21 年之前
21 年之前
21 年之前
21 年之前
12 年之前
21 年之前
12 年之前
21 年之前
12 年之前
21 年之前
12 年之前
21 年之前
12 年之前
21 年之前
12 年之前
21 年之前
12 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v1.0
  7. * which accompanies this distribution and is available at
  8. * http://www.eclipse.org/legal/epl-v10.html
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.ajde.internal;
  14. import java.io.File;
  15. import java.util.ArrayList;
  16. import java.util.List;
  17. import org.aspectj.ajdt.ajc.ConfigParser;
  18. /**
  19. * @author Mik Kersten
  20. */
  21. public class LstBuildConfigFileParser extends ConfigParser {
  22. private List<File> importedFiles = new ArrayList<File>();
  23. private List<String> problemEntries = new ArrayList<String>();
  24. // private String currFilePath;
  25. public LstBuildConfigFileParser(String currFilePath) {
  26. // this.currFilePath = currFilePath;
  27. }
  28. protected void showWarning(String message) {
  29. problemEntries.add(message);
  30. }
  31. protected void parseImportedConfigFile(String relativeFilePath) {
  32. importedFiles.add(makeFile(relativeFilePath));
  33. super.files.add(new File(relativeFilePath));
  34. super.parseImportedConfigFile(relativeFilePath);
  35. }
  36. protected void showError(String message) {
  37. problemEntries.add(message);
  38. }
  39. public List<File> getImportedFiles() {
  40. return importedFiles;
  41. }
  42. public List<String> getProblemEntries() {
  43. return problemEntries;
  44. }
  45. }