View Full Version : .NET JSBuilder - problem with readonly jsb files

Max Ishchenko
13 Aug 2008, 12:12 AM
I'm keeping my jsb file under vcs, and it is readonly (concrete vcs limitation).
Thus, when trying to run jsbuildconsole mybuildfile.jsb i get exceptions when the builder tries to write the file

[exec] Building: WebContent/js/dashboard/build.jsb
[exec] System.UnauthorizedAccessException: Access to the path 'E:\views\Ishenko_main_view\Analyst\Source\WebContent\js\dashboard\build.jsb' is denied.
[exec] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
[exec] at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options,
SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
[exec] at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
[exec] at System.Xml.XmlDocument.Save(String filename)
[exec] at JSBuild.Project.Load(String filePath, String fileName)
[exec] at JSBuild.Program.Build(String projectPath, String outputPath)
[exec] at JSBuild.Program.Main(String[] args)
[exec] Result: -99

Writing <AutoSave>false</AutoSave> in settings.xml didn't help either