Subversion Repositories SmartDukaan

Rev

Rev 25380 | Rev 25396 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25380 Rev 25392
Line 203... Line 203...
203
				}
203
				}
204
				begin++;
204
				begin++;
205
			}
205
			}
206
			SpecificationGroup specificationGroup = new SpecificationGroup(record.get(start), specifications);
206
			SpecificationGroup specificationGroup = new SpecificationGroup(record.get(start), specifications);
207
			specificationGroups.add(specificationGroup);
207
			specificationGroups.add(specificationGroup);
208
			currentIndex += 8;
208
			currentIndex += 11;
209
		}
209
		}
210
 
210
 
211
		return specificationGroups;
211
		return specificationGroups;
212
	}
212
	}
213
 
213
 
214
	private ChannelSftp setupJsch() throws JSchException {
214
	private ChannelSftp setupJsch() throws JSchException {
215
		JSch jsch = new JSch();
215
		JSch jsch = new JSch();
216
		jsch.setKnownHosts("/root/.ssh/known_hosts");
216
		jsch.setKnownHosts("/root/.ssh/known_hosts");
217
		Session jschSession = jsch.getSession("root", "192.168.191.71");
217
		Session jschSession = jsch.getSession("root", "192.168.191.71");
218
		jschSession.setPassword("scic@2015cs");
218
		jschSession.setPassword("spic@2015cs");
219
		jschSession.connect();
219
		jschSession.connect();
220
		return (ChannelSftp) jschSession.openChannel("sftp");
220
		return (ChannelSftp) jschSession.openChannel("sftp");
221
	}
221
	}
222
 
222
 
223
	private void uploadFiles(Map<String, InputStream> fileStreamsMap, int entityId) throws Exception {
223
	private void uploadFiles(Map<String, InputStream> fileStreamsMap, int entityId) throws Exception {