FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Running a script

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Graham Britten
Posted via mailing list.





PostPosted: Wed Jun 24, 2009 9:34 pm    Post subject: Running a script Reply with quote

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

PostPosted: Thu Jun 25, 2009 6:43 am    Post subject: Re: Running a script Reply with quote

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
View user's profile Send private message
ebaumann



Joined: 16 Apr 2009
Posts: 8

PostPosted: Thu Jun 25, 2009 6:43 am    Post subject: Re: Running a script Reply with quote

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
View user's profile Send private message
Graham Britten
Posted via mailing list.





PostPosted: Fri Jun 26, 2009 10:50 am    Post subject: Running a script Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB