Modify

Ticket #295 (closed enhancement: invalid)

Opened 3 years ago

Last modified 11 months ago

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:1 Changed 3 years ago by mrook

  • Milestone set to 3.0

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

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.