Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Where should I put the static files directory during debugging?

I followed the instructions for kicking off _postbuildSln.bat after my builds so I don't have to keep uploading my ZIP file after every build while I am debugging, and that is working well.

However, I am unsure where to copy/install the \static directory for js and css files without using the upload directory and a zip file. I'm tweaking these pretty regularly while developing my plugin and wanted to add a post-build task to copy those over too. Any suggestions?
John Fuex Send private email
Monday, June 29, 2009
 
 
Good question!  I added a step to the quick start article (W38).  Basically you just need to copy your static content to a static folder in the target dir.  That would look something like this:

xcopy /Y /I "[Your static directory]" "$(TargetDir)static"


Make sure it comes BEFORE the _postBuildSln.bat step.  The build script will look for a /static/ directory and copy it automatically.
David Fullerton Send private email
Tuesday, June 30, 2009
 
 
Thanks. That worked great after I added an /E flag on the Xcopy.


For the benefit of other developers, here is my new post-build section in its entirety.


xcopy /Y /I /E "$(ProjectDir)static" "$(TargetDir)static"

"c:\program files\fogbugz7\Plugins\examples\_postbuildSln.bat" $(TargetName)
John Fuex Send private email
Tuesday, June 30, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz