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
Post a Comment