|
160 | 160 |
|
161 | 161 |
|
162 | 162 | if ( $db->setSource($source) ) { |
163 | | - print "Problem with setting source. V2P won't be created.\n"; |
164 | | - exit(1); |
| 163 | + print "Problem with setting source. V2P won't be started.\n"; |
| 164 | + $ret = $ret + 1; |
| 165 | + next; |
165 | 166 | } |
166 | 167 |
|
167 | 168 | if ( $db->setTimestamp($timestamp) ) { |
168 | 169 | print "Problem with setting timestamp $timestamp. V2P process won't be started.\n"; |
169 | | - exit(1); |
| 170 | + $ret = $ret + 1; |
| 171 | + next; |
170 | 172 | } |
171 | 173 |
|
172 | 174 | $db->setName($dbname, $dbname); |
173 | 175 |
|
174 | 176 | if ( $db->setEnvironment($environment, $envUser) ) { |
175 | | - print "Environment $environment or user $envUser not found. VDB won't be created\n"; |
| 177 | + print "Environment $environment or user $envUser not found. V2P process won't be started\n"; |
176 | 178 | $ret = $ret + 1; |
177 | 179 | next; |
178 | 180 | } |
|
182 | 184 |
|
183 | 185 | if ( $db->setFileSystemLayout($targetDirectory,$archiveDirectory,$dataDirectory,$externalDirectory,$scriptDirectory,$tempDirectory, $useabsolute) ) { |
184 | 186 | print "Problem with export file system layout. Is targetDiretory and dataDirectory set ?\n"; |
185 | | - exit(1); |
| 187 | + $ret = $ret + 1; |
| 188 | + next; |
186 | 189 | } |
187 | 190 |
|
188 | 191 | if ( defined($template) ) { |
189 | 192 | if ( $db->setTemplateV2P($template) ) { |
190 | | - print "Template $template not found. V2P process won't be created\n"; |
191 | | - exit(1); |
| 193 | + print "Template $template not found. V2P process won't be started\n"; |
| 194 | + $ret = $ret + 1; |
| 195 | + next; |
192 | 196 | } |
193 | 197 | } |
194 | 198 |
|
|
197 | 201 | $filemap_obj->loadMapFile($map_file); |
198 | 202 | $filemap_obj->setSource($source); |
199 | 203 | if ($filemap_obj->validate()) { |
200 | | - die ("Problem with mapping file. V2P process won't be created.") |
| 204 | + print ("Problem with mapping file. V2P process won't be started.\n"); |
| 205 | + $ret = $ret + 1; |
| 206 | + next; |
201 | 207 | } |
202 | 208 |
|
203 | 209 | $db->setMapFileV2P($filemap_obj->GetMapping_rule()); |
|
211 | 217 | if (defined($concurrentfiles)) { |
212 | 218 | if ($db->setFileParallelism($concurrentfiles)) { |
213 | 219 | print "Problem with setting number of concurrent files\n"; |
214 | | - exit(1); |
| 220 | + $ret = $ret + 1; |
| 221 | + next; |
215 | 222 | } |
216 | 223 | }; |
217 | 224 |
|
|
221 | 228 | } |
222 | 229 | elsif ($type eq 'mssql') { |
223 | 230 |
|
224 | | - if ( $db->setFileSystemLayout($targetDirectory,$archiveDirectory,$dataDirectory,$externalDirectory,$scriptDirectory,$tempDirectory) ) { |
225 | | - print Dumper "ale tu"; |
| 231 | + if ( $db->setFileSystemLayout($targetDirectory,$archiveDirectory,$dataDirectory,$externalDirectory,$scriptDirectory,$tempDirectory) ) {; |
226 | 232 | print "Problem with export file system layout. Is targetDiretory and dataDirectory set ?\n"; |
227 | | - exit(1); |
| 233 | + $ret = $ret + 1; |
| 234 | + next; |
228 | 235 | } |
229 | 236 |
|
230 | 237 | if ( defined($map_file) ) { |
231 | 238 | my $filemap_obj = new FileMap($engine_obj,$type,$debug); |
232 | 239 | $filemap_obj->loadMapFile($map_file); |
233 | 240 | $filemap_obj->setSource($source); |
234 | 241 | if ($filemap_obj->validate($db->{"NEWDB"}->{"filesystemLayout"})) { |
235 | | - die ("Problem with mapping file. V2P process won't be created.") |
| 242 | + print("Problem with mapping file. V2P process won't be started.\n"); |
| 243 | + $ret = $ret + 1; |
| 244 | + next; |
236 | 245 | } |
237 | 246 |
|
238 | 247 | $db->setMapFileV2P($filemap_obj->GetMapping_rule()); |
|
0 commit comments