php - Deploy code with phing -


i want sync files source folder public folder phing problem when use

<copy todir="${libdir}">         <fileset dir="${gitdir}">             <include name="**"></include>             <exclude name="public/**"/>         </fileset> </copy> 

or

<filesync sourcedir="${gitdir}" destinationdir="${libdir}" verbose="true" checksum="true" /> 

the script doesn't remove files ${libdir} doesn't exist in ${gitdir}. don`t want first remove hole directory , after copy files. should works take more time. know how can sync folders , remove nonexistent files?

i found decision. use linux command that:

<exec command="rsync -a --delete --exclude '.git' --exclude '.svn' ${gitdir} ${libdir}" checkreturn="true" /> 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -