[Cfunit-public] RE: CFUnit-Ant
Brought to you by:
skorpiun
|
From: Bill R. <bi...@ra...> - 2005-11-21 17:46:28
|
I was just messing with the CFUNIT-ANT jar file and the instructions on the website to get automatic test builds to execute whenever a resource is modified. I don't know if the following is unique to my setup, and I don't know why it would be, but I had to add a step to your instructions in order to get the build to happen automatically. Your first 5 steps are perfect... 1 Right click the project and click "properties" (or select "Project" > "Properties" in the tool bar) 2 Select "Builders" along the left of the properties window, and then click the "New" button 3 Select "Ant Build", and click "OK" 4 Give the builder a name in the "Name:" field. 5 In the "Buildfile" field, enter the location of your build XML file using the "Browse Workspace..." button However, I needed a step 5.5: 5.5 Go to the Targets Tab, select "Set Targets" by the Auto Build section, then hit OK on the dialog that pops up. This sets the default target (main) for the build.xml file in my coldfusion project. Without this defined the autobuild will fail. And, if you try to manually run the build.xml file it fails with an error "taskdef class net.sourceforge.cfunit.ant.CFUnit cannot be found" Basically, what I'm saying is if your Eclipse install doesn't have a default build target defined then you need to make sure one is or else CFUNIT-ANT won't work for you. Bill -- bil...@gm... http://blog.rawlinson.us If you want Gmail - just ask. |