As you all now, the best and easiest way to install Transfer is just by droping it in your web root and boom, you are ready to roll. However, sometimes you need the flexibility to change the path and things just work. Well, I just created this ANT task to do that. It will ask you for a new base path and a new relative path, then it will refactor the entire Transfer codebase to meet your directory layout. This similar Task is included with ColdBox in the install directory, so you can refactor the ColdBox codebase to your layout.
I have my frameworks under a directory called: ‘frameworks’ and I usually create a version to them, say: frameworks.coldbox2_00 or frameworks.transfer0_63
Everybody has their own naming conventions and ideas. Anyways, here is the ANT Task.
This ant task will rebuild colspring using a prefix of choice
You just need to place this as build.xml or refactor.xml in the root of your Transfer directory, where the TransferFactory.cfc is. Then just run it, it will ask you for the first path, type “frameworks.transfer0_63″ then the relative path, type “/frameworks/transfer0_63″ and then you are ready to roll.
Just make sure when you instantiate the factory it will now be: “frameworks.transfer0_63.TransferFactory”
There you go. Make sure you make a backup, just in case, or if you are a real geek, then keep it, so you can run it multiple times.