Ticket #295 (closed enhancement: invalid)
include external and common xml files to a project
| Reported by: | ryan.seekely@… | Owned by: | hans |
|---|---|---|---|
| Priority: | minor | Milestone: | TBD |
| Component: | phing-core | Version: | 2.3.2 |
| Keywords: | Cc: |
Description
Common tasks are difficult to share amongst multiple project files. Writing a task or a set of property definitions to be used in multiple projects currently means copying and pasting the tasks and properties to every relevant project.
The request/enhancement is to define a way to allow the inclusion of external xml files to a project
<project ...>
<include file = "myCommonPropertiesAndTasks.xml" />
<target name = "aTarget">
<phingcall target="aTargetDefinedInIncludedXml">
<property name="arg1" value="${aPropertyDefinedInIncludedXml" />
</phingcall>
</target>
</project>
Attachments
Change History
comment:2 Changed 17 months ago by Dom Udall <dom.udall@…>
I think this is already possible by using <import>. We currently have a build.common.xml in the root of the project along with the build.xml, and use this:
<import file="${project.basedir}/build.common.xml"/>
comment:3 Changed 11 months ago by mrook
- Status changed from new to closed
- Resolution set to invalid
Overlooked this ticket, but the comment by Dom is correct. Please have a look at http://phing.info/docs/guide/current/chapters/appendixes/AppendixB-CoreTasks.html#ImportTask
