Modify

Ticket #175 (closed enhancement: worksforme)

Opened 4 years ago

Last modified 4 years ago

passing aarguments to phing

Reported by: anonymous Owned by: hans
Priority: major Milestone: 2.3.1
Component: phing-core Version: 2.3.0
Keywords: build argument parameters Cc:

Description

I would like to write a webpage that would allow users to input values for a phing build file, via the web GUI, similar to the one used by PHPDocumentor.

This would require phing to be able to process arguments via the command line. To support such behaviour, would it be possible for phing to process command line arguments from scripts? So any values passed via a POST request from the browser would be unpacked by a php server script. This would then call phing, passing those POST variables as command-line arguments, to set property values in the build file?

Attachments

Change History

comment:1 Changed 4 years ago by hans

Phing can read in properties specified on the commandline. Does this meet your need?

$ phing -Dpropname=value -Dprop2=value2 -Dprop3=val3
<echo>From commandline: ${propname} ${prop2} ${prop3}</echo>

comment:2 Changed 4 years ago by hans

  • Status changed from new to closed
  • Resolution set to worksforme

I don't believe this is an issue, so I'm closing it.

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.