Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Web Service Development Guide

20.7 Overwrite Protection

Many generated files are overwrite protected, meaning that if you regenerate code in the same directory as existing code, the generator will not overwrite them. It does this by appending a ".sample" to any new generated files of the same name.

For example, if HydraExpress sees a file named MyServiceImp.cpp, it will not overwrite the file but will instead generate a file called MyServiceImp.cpp.sample.

The files that are overwrite protected are those that are the most likely to be edited, and include the following:

Table 13: Overwrite Protected Files

File Overwrite protected name
MySchema_main.cpp MySchema_main.cpp.sample
MyServiceClient.cpp MyServiceClient.cpp.sample
MyServiceImp.h
MyServiceImp.cpp
MyServiceImp.h.sample
MyServiceImp.cpp.sample
transports.xml transports.xml.sample
client-transports.xml client-transports.sample
<servicecontextname>_handlers.xml <servicecontextname>_handlers.xml.sample
client-handlers.xml client-handlers.xml.sample
<servicecontextname>_objects.xml objects.xml.sample
client-objects.xml client-objects.xml.sample
makefile
makefile_debug
makefile.sample
makefile_debug.sample
makefile.include makefile.include.sample
MSVC projects and solutions:  
MySchema.dsp
MySchema_main.dsp
MySchema.dsw
MySchema.vcproj
MySchema_main.vcproj
MySchema.sln
MySchema.dsp.sample
MySchema_main.dsp.sample
MySchema.dsw.sample
MySchema.vcproj.sample
MySchema_main.vcproj.sample
MySchema.sln.sample


Be aware that, each time the generator runs, it overwrites all files with the .sample extension. If you make changes to these files, be sure you rename them before rerunning the generator in order to preserve your changes.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.