Closed RobQuistNL closed 10 years ago
OK, more votes for that solution, i'll do that.
I've been searching but can't really find anything for this.
I've tried; replacetokens - Don't exist in phing replace - Doesn't exist either
<target name="cron-replace-params">
<replaceregexp match="\${(.*?)}" replace="${\1}">
<fileset dir="${cron.files}">
<include name="${project.app}-${project.environment}-*" />
</fileset>
</replaceregexp>
</target>
Seems to not parse the token in the replace path - thus not actually doing anything.
Is there any other way to replace all tokens in files that you know of? Otherwise this actually has to be the solution.
Or, copy to tmp dir with filterchain, copy back to repo, then execute other phing tasks.. @NickBelhomme @jvandijk
I would go for this solution: https://github.com/CrazyAwesomeCompany/autophing/pull/7 This PR can be closed.
We noticed that cronfiles copied using the sudo method were not replace (which is rather logical).
This way they are first copied to a temporary directory in order to replace the variables in the files, then copied from there to the cron directory under sudo user.
@ngroot :)