Java Code Examples for org.apache.tools.ant.Project#getBaseDir()
The following examples show how to use
org.apache.tools.ant.Project#getBaseDir() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AntBuilder.java From groovy with Apache License 2.0 | 6 votes |
/** * @return Factory method to create new Project instances */ protected static Project createProject() { final Project project = new Project(); final ProjectHelper helper = ProjectHelper.getProjectHelper(); project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper); helper.getImportStack().addElement("AntBuilder"); // import checks that stack is not empty final BuildLogger logger = new NoBannerLogger(); logger.setMessageOutputLevel(org.apache.tools.ant.Project.MSG_INFO); logger.setOutputPrintStream(System.out); logger.setErrorPrintStream(System.err); project.addBuildListener(logger); project.init(); project.getBaseDir(); return project; }
Example 2
Source File: AntUtil.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return Factory method to create new Project instances */ public static Project createProject() { final Project project = new Project(); final ProjectHelper helper = ProjectHelper.getProjectHelper(); project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper); helper.getImportStack().addElement("AntBuilder"); // import checks that stack is not empty project.addBuildListener(new AntLoggingAdapter()); project.init(); project.getBaseDir(); return project; }
Example 3
Source File: AntUtil.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return Factory method to create new Project instances */ public static Project createProject() { final Project project = new Project(); final ProjectHelper helper = ProjectHelper.getProjectHelper(); project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper); helper.getImportStack().addElement("AntBuilder"); // import checks that stack is not empty project.addBuildListener(new AntLoggingAdapter()); project.init(); project.getBaseDir(); return project; }
Example 4
Source File: AntUtil.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return Factory method to create new Project instances */ public static Project createProject() { final Project project = new Project(); final ProjectHelper helper = ProjectHelper.getProjectHelper(); project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper); helper.getImportStack().addElement("AntBuilder"); // import checks that stack is not empty project.addBuildListener(new AntLoggingAdapter()); project.init(); project.getBaseDir(); return project; }
Example 5
Source File: AntUtil.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * @return Factory method to create new Project instances */ public static Project createProject() { final Project project = new Project(); final ProjectHelper helper = ProjectHelper.getProjectHelper(); project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper); helper.getImportStack().addElement("AntBuilder"); // import checks that stack is not empty project.addBuildListener(new AntLoggingAdapter()); project.init(); project.getBaseDir(); return project; }
Example 6
Source File: ImportTranslations.java From unitime with Apache License 2.0 | 4 votes |
public void setProject(Project project) { iProject = project; iBaseDir = project.getBaseDir(); }
Example 7
Source File: ExportTranslations.java From unitime with Apache License 2.0 | 4 votes |
public void setProject(Project project) { iProject = project; iBaseDir = project.getBaseDir(); }