| View previous topic :: View next topic |
| Author |
Message |
Graham Britten Posted via mailing list.
|
Posted: Wed Jun 24, 2009 9:34 pm Post subject: Running a script |
|
|
From a nubie
One feature I'd find very helpful is being able to execute a script (in my case a batch file) once the source files have been copied to a different directory. This would really help with deploying a large (and complex) project. In my case when previously using the Zend Studio I was able to run a preprocessor that modified the files prior to execution.
Cheers |
|
| Back to top |
|
 |
ebaumann
Joined: 16 Apr 2009 Posts: 8
|
Posted: Thu Jun 25, 2009 6:43 am Post subject: Re: Running a script |
|
|
Postet twice, in the first (this) I forgot to use the Code tags.
Last edited by ebaumann on Thu Jun 25, 2009 6:45 am; edited 1 time in total |
|
| Back to top |
|
 |
ebaumann
Joined: 16 Apr 2009 Posts: 8
|
Posted: Thu Jun 25, 2009 6:43 am Post subject: Re: Running a script |
|
|
| Graham Britten wrote: | | In my case when previously using the Zend Studio I was able to run a preprocessor that modified the files prior to execution. |
Open the ant script build.xml in the project's root folder. There are predefined targets documented. E.g. if You want execute a windows batch file before compiling You can add to build.xml:
| Code: | <target name="-pre-compile">
<exec command="cmd /C myscript.bat" />
</target>
|
Regards,
Elmar |
|
| Back to top |
|
 |
Graham Britten Posted via mailing list.
|
Posted: Fri Jun 26, 2009 10:50 am Post subject: Running a script |
|
|
Thanks for the response. Unfortunately I'm running a PHP project that does not have a compile phase. But have a work-around that does what I want in a bit of a round-about way.
Thanks again
Graham
From: ebaumann <address-removed>
To: address-removed
Sent: Thursday, 25 June, 2009 7:43:38
Subject: Running a script
Graham Britten wrote:
| Quote: | In my case when previously using the Zend Studio I was able to run a preprocessor that modified the files prior to execution.
|
Open the ant script build.xml in the project's root folder. There are predefined targets documented. E.g. if You want execute a windows batch file before compiling You can add to build.xml:
Code:
<target name="-pre-compile">
<exec command="cmd /C myscript.bat" />
</target>
Regards,
Elmar
([email]address-removed[/email])
([email]address-removed[/email]) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|