How To Set Up Custom Tasks
UppercuT is designed so you never need to edit the files in the build folder. At a few points during the build operation, uppercut will call out for custom tasks.
To add custom tasks, all you need to do is create them in a folder next to build called build.custom.
These are the points were custom tasks are called (in order)
- default.build calls build.custom\default.pre.build just before it starts if the custom file exists (remember all of these are going back one directory, build and build.custom should sit next to each other).
- compile.step calls build.custom\compile.pre.stepbuild just before it starts if the custom file exists.
- compile.step calls build.custom\compile.post.stepbuild just before it completes if the custom file exists.
- ndepend.step calls build.custom\analyzers\ndepend.pre.build just before it starts if the custom file exists.
- ndepend.step calls build.custom\analyzers\ndepend.post.build just before it completes if the custom file exists.
- analyze.step calls build.custom\analyze.pre.step just before it starts if the custom file exists.
- analyze.step calls build.custom\analyze.post.step just before it completes if the custom file exists.
- package.build calls build.custom\package.pre.step just before it starts if the custom file exists.
- package.build calls build.custom\package.post.step just before it completes if the custom file exists.
- default.build calls build.custom\default.post.build just before it completes if the custom file exists.
If you add one of these files, you can call off to any custom tasks or other NAnt files you want.
Comments (0)
You don't have permission to comment on this page.