1

Phing executing multiple commands

Posted March 26th, 2011 in Zanimivosti and tagged , , , by Metod

A little tip. If you deploy your PHP projects with Phing, you are familiar with the file build.xml. If you want to execute multiple commands, that depend on each other to be executed, you have to use && in between the commands. For example, clearing the cache:

ssh user@example.com 'cd cache && rm *'

The line in phing build.xml would look like this:


						
							
						
						
					

One Response so far.

  1. anonymous says:

    Ty dude 🙂