kcstrong Posted November 28, 2013 Share Posted November 28, 2013 Does anyone know if it is possible or impossible to run ANT via PHP as if it were run from the command line? I am running into what look like permissions issues, but it may just as likely or additionally be a limitation of PHP or my configuration of PHP. I am using PHP 5.3 on Windows Server 2008 and IIS 7. exec('"C:\Program Files\ANT\bin\ant" -f build.xml >logfile.txt 2>&1'); logfile.txt contains: Error occurred during initialization of VMCould not reserve enough space for object heapCould not create the Java virtual machine. Any assistance or insight you could offer would be lovely. Quote Link to comment https://forums.phpfreaks.com/topic/284365-is-it-possible-to-execute-ant-from-php/ Share on other sites More sharing options...
kcstrong Posted November 28, 2013 Author Share Posted November 28, 2013 FYI. I have tried Phing and it appears it is also having permission issues. I can run an application via exec task, but returns file not found for files outside of the wwwroot folder. Quote Link to comment https://forums.phpfreaks.com/topic/284365-is-it-possible-to-execute-ant-from-php/#findComment-1460539 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.