Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0f7908b | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.yangutils.utils.io.impl; |
| 18 | |
| 19 | import java.io.BufferedWriter; |
| 20 | import java.io.File; |
| 21 | import java.io.FileWriter; |
| 22 | import java.io.IOException; |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 23 | import java.nio.file.Files; |
| 24 | import java.nio.file.StandardCopyOption; |
| 25 | import java.util.ArrayList; |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 26 | import java.util.LinkedList; |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 27 | import java.util.List; |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 28 | import java.util.Stack; |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 29 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 30 | import org.apache.commons.io.FileUtils; |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 31 | import org.apache.maven.model.Resource; |
| 32 | import org.apache.maven.project.MavenProject; |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 33 | import org.slf4j.Logger; |
| 34 | import org.sonatype.plexus.build.incremental.BuildContext; |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 35 | |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 36 | import static org.onosproject.yangutils.utils.UtilConstants.COMMA; |
| 37 | import static org.onosproject.yangutils.utils.UtilConstants.EMPTY_STRING; |
| 38 | import static org.onosproject.yangutils.utils.UtilConstants.NEW_LINE; |
| 39 | import static org.onosproject.yangutils.utils.UtilConstants.ORG; |
| 40 | import static org.onosproject.yangutils.utils.UtilConstants.PACKAGE; |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 41 | import static org.onosproject.yangutils.utils.UtilConstants.SEMI_COLAN; |
| 42 | import static org.onosproject.yangutils.utils.UtilConstants.SLASH; |
| 43 | import static org.onosproject.yangutils.utils.UtilConstants.SPACE; |
| 44 | import static org.onosproject.yangutils.utils.UtilConstants.TEMP; |
| 45 | import static org.onosproject.yangutils.utils.UtilConstants.TWELVE_SPACE_INDENTATION; |
| 46 | import static org.onosproject.yangutils.utils.UtilConstants.YANG_RESOURCES; |
| 47 | import static org.onosproject.yangutils.utils.io.impl.FileSystemUtil.appendFileContents; |
| 48 | import static org.onosproject.yangutils.utils.io.impl.FileSystemUtil.updateFileHandle; |
Bharat saraswal | 68fa0d1 | 2016-04-19 01:00:16 +0530 | [diff] [blame] | 49 | import static org.onosproject.yangutils.utils.io.impl.JavaDocGen.getJavaDoc; |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 50 | import static org.onosproject.yangutils.utils.io.impl.JavaDocGen.JavaDocType.PACKAGE_INFO; |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 51 | import static org.slf4j.LoggerFactory.getLogger; |
| 52 | |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 53 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 54 | * Represents common utility functionalities for code generation. |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 55 | */ |
| 56 | public final class YangIoUtils { |
| 57 | |
| 58 | private static final Logger log = getLogger(YangIoUtils.class); |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 59 | private static final String TARGET_RESOURCE_PATH = SLASH + TEMP + SLASH + YANG_RESOURCES + SLASH; |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 60 | |
| 61 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 62 | * Creates an instance of YANG io utils. |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 63 | */ |
| 64 | private YangIoUtils() { |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Creates the directory structure. |
| 69 | * |
| 70 | * @param path directory path |
| 71 | * @return directory structure |
| 72 | */ |
| 73 | public static File createDirectories(String path) { |
b.janani | 66b749c | 2016-02-24 12:23:03 +0530 | [diff] [blame] | 74 | File generatedDir = new File(path); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 75 | generatedDir.mkdirs(); |
| 76 | return generatedDir; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Adds package info file for the created directory. |
| 81 | * |
| 82 | * @param path directory path |
| 83 | * @param classInfo class info for the package |
| 84 | * @param pack package of the directory |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 85 | * @param isChildNode is it a child node |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 86 | * @throws IOException when fails to create package info file |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 87 | */ |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 88 | public static void addPackageInfo(File path, String classInfo, String pack, boolean isChildNode) |
| 89 | throws IOException { |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 90 | |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 91 | if (pack.contains(ORG)) { |
| 92 | String[] strArray = pack.split(ORG); |
| 93 | pack = ORG + strArray[1]; |
Bharat saraswal | c46ee2a | 2016-02-25 02:26:43 +0530 | [diff] [blame] | 94 | } |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 95 | try { |
| 96 | |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 97 | File packageInfo = new File(path + SLASH + "package-info.java"); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 98 | packageInfo.createNewFile(); |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 99 | |
| 100 | FileWriter fileWriter = new FileWriter(packageInfo); |
| 101 | BufferedWriter bufferedWriter = new BufferedWriter(fileWriter); |
| 102 | |
b.janani | 66b749c | 2016-02-24 12:23:03 +0530 | [diff] [blame] | 103 | bufferedWriter.write(CopyrightHeader.getCopyrightHeader()); |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 104 | bufferedWriter.write(getJavaDoc(PACKAGE_INFO, classInfo, isChildNode)); |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 105 | bufferedWriter.write(PACKAGE + SPACE + pack + SEMI_COLAN); |
| 106 | |
b.janani | 66b749c | 2016-02-24 12:23:03 +0530 | [diff] [blame] | 107 | bufferedWriter.close(); |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 108 | fileWriter.close(); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 109 | } catch (IOException e) { |
| 110 | throw new IOException("Exception occured while creating package info file."); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Cleans the generated directory if already exist in source folder. |
| 116 | * |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 117 | * @param dir generated directory in previous build |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 118 | * @throws IOException when failed to delete directory |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 119 | */ |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 120 | public static void deleteDirectory(String dir) throws IOException { |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 121 | File generatedDirectory = new File(dir); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 122 | if (generatedDirectory.exists()) { |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 123 | try { |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 124 | FileUtils.deleteDirectory(generatedDirectory); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 125 | } catch (IOException e) { |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 126 | throw new IOException( |
| 127 | "Failed to delete the generated files in " + generatedDirectory + " directory"); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 128 | } |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 129 | } |
| 130 | } |
| 131 | |
| 132 | /** |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 133 | * Searches and deletes generated temporary directories. |
| 134 | * |
| 135 | * @param root root directory |
| 136 | * @throws IOException when fails to do IO operations. |
| 137 | */ |
| 138 | public static void searchAndDeleteTempDir(String root) throws IOException { |
| 139 | List<File> store = new LinkedList<>(); |
| 140 | Stack<String> stack = new Stack<>(); |
| 141 | stack.push(root); |
| 142 | |
| 143 | while (!stack.empty()) { |
| 144 | root = stack.pop(); |
| 145 | File file = new File(root); |
| 146 | File[] filelist = file.listFiles(); |
| 147 | if (filelist == null || filelist.length == 0) { |
| 148 | continue; |
| 149 | } |
| 150 | for (File current : filelist) { |
| 151 | if (current.isDirectory()) { |
| 152 | stack.push(current.toString()); |
| 153 | if (current.getName().endsWith("-Temp")) { |
| 154 | store.add(current); |
| 155 | } |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | for (File dir : store) { |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 161 | FileUtils.deleteDirectory(dir); |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 162 | } |
| 163 | } |
| 164 | |
| 165 | /** |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 166 | * Adds generated source directory to the compilation root. |
| 167 | * |
| 168 | * @param source directory |
| 169 | * @param project current maven project |
| 170 | * @param context current build context |
| 171 | */ |
| 172 | public static void addToSource(String source, MavenProject project, BuildContext context) { |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 173 | project.addCompileSourceRoot(source); |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 174 | context.refresh(project.getBasedir()); |
| 175 | log.info("Source directory added to compilation root: " + source); |
| 176 | } |
| 177 | |
Bharat saraswal | 022dae9 | 2016-03-04 20:08:09 +0530 | [diff] [blame] | 178 | /** |
| 179 | * Removes extra char from the string. |
| 180 | * |
| 181 | * @param valueString string to be trimmed |
| 182 | * @param removealStirng extra chars |
| 183 | * @return new string |
| 184 | */ |
| 185 | public static String trimAtLast(String valueString, String removealStirng) { |
| 186 | StringBuilder stringBuilder = new StringBuilder(valueString); |
| 187 | int index = valueString.lastIndexOf(removealStirng); |
| 188 | stringBuilder.deleteCharAt(index); |
| 189 | return stringBuilder.toString(); |
| 190 | } |
| 191 | |
| 192 | /** |
| 193 | * Returns new parted string. |
| 194 | * |
| 195 | * @param partString string to be parted |
| 196 | * @return parted string |
| 197 | */ |
| 198 | public static String partString(String partString) { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 199 | String[] strArray = partString.split(COMMA); |
| 200 | String newString = EMPTY_STRING; |
Bharat saraswal | 022dae9 | 2016-03-04 20:08:09 +0530 | [diff] [blame] | 201 | for (int i = 0; i < strArray.length; i++) { |
Bharat saraswal | 5600f0f | 2016-03-09 18:34:56 +0530 | [diff] [blame] | 202 | if (i % 4 != 0 || i == 0) { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 203 | newString = newString + strArray[i] + COMMA; |
Bharat saraswal | 022dae9 | 2016-03-04 20:08:09 +0530 | [diff] [blame] | 204 | } else { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 205 | newString = newString + NEW_LINE + TWELVE_SPACE_INDENTATION |
| 206 | + strArray[i] + COMMA; |
Bharat saraswal | 022dae9 | 2016-03-04 20:08:09 +0530 | [diff] [blame] | 207 | } |
| 208 | } |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 209 | return trimAtLast(newString, COMMA); |
Bharat saraswal | 022dae9 | 2016-03-04 20:08:09 +0530 | [diff] [blame] | 210 | } |
| 211 | |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 212 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 213 | * Returns the directory path of the package in canonical form. |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 214 | * |
| 215 | * @param baseCodeGenPath base path where the generated files needs to be |
Bharat saraswal | c34b944 | 2016-03-28 15:50:13 +0530 | [diff] [blame] | 216 | * put |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 217 | * @param pathOfJavaPkg java package of the file being generated |
| 218 | * @return absolute path of the package in canonical form |
| 219 | */ |
| 220 | public static String getDirectory(String baseCodeGenPath, String pathOfJavaPkg) { |
| 221 | |
| 222 | if (pathOfJavaPkg.charAt(pathOfJavaPkg.length() - 1) == File.separatorChar) { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 223 | pathOfJavaPkg = trimAtLast(pathOfJavaPkg, SLASH); |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 224 | } |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 225 | String[] strArray = pathOfJavaPkg.split(SLASH); |
| 226 | if (strArray[0].equals(EMPTY_STRING)) { |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 227 | return pathOfJavaPkg; |
| 228 | } else { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 229 | return baseCodeGenPath + SLASH + pathOfJavaPkg; |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 230 | } |
| 231 | } |
| 232 | |
| 233 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 234 | * Returns the absolute path of the package in canonical form. |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 235 | * |
| 236 | * @param baseCodeGenPath base path where the generated files needs to be |
Bharat saraswal | c34b944 | 2016-03-28 15:50:13 +0530 | [diff] [blame] | 237 | * put |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 238 | * @param pathOfJavaPkg java package of the file being generated |
| 239 | * @return absolute path of the package in canonical form |
| 240 | */ |
| 241 | public static String getAbsolutePackagePath(String baseCodeGenPath, String pathOfJavaPkg) { |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 242 | return baseCodeGenPath + pathOfJavaPkg; |
| 243 | } |
| 244 | |
| 245 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 246 | * Copies YANG files to the current project's output directory. |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 247 | * |
| 248 | * @param yangFiles list of YANG files |
| 249 | * @param outputDir project's output directory |
| 250 | * @param project maven project |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 251 | * @throws IOException when fails to copy files to destination resource directory |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 252 | */ |
| 253 | public static void copyYangFilesToTarget(List<String> yangFiles, String outputDir, MavenProject project) |
| 254 | throws IOException { |
| 255 | |
| 256 | List<File> files = getListOfFile(yangFiles); |
| 257 | |
| 258 | String path = outputDir + TARGET_RESOURCE_PATH; |
| 259 | File targetDir = new File(path); |
| 260 | targetDir.mkdirs(); |
| 261 | |
| 262 | for (File file : files) { |
| 263 | Files.copy(file.toPath(), |
Vidyashree Rama | 1396065 | 2016-04-26 15:06:06 +0530 | [diff] [blame] | 264 | new File(path + file.getName()).toPath(), |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 265 | StandardCopyOption.REPLACE_EXISTING); |
| 266 | } |
| 267 | Resource rsc = new Resource(); |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 268 | rsc.setDirectory(outputDir + SLASH + TEMP + SLASH); |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 269 | project.addResource(rsc); |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * Provides a list of files from list of strings. |
| 274 | * |
| 275 | * @param strings list of strings |
| 276 | * @return list of files |
| 277 | */ |
| 278 | private static List<File> getListOfFile(List<String> strings) { |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 279 | List<File> files = new ArrayList<>(); |
| 280 | for (String file : strings) { |
| 281 | files.add(new File(file)); |
| 282 | } |
| 283 | return files; |
| 284 | } |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 285 | |
| 286 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 287 | * Merges the temp java files to main java files. |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 288 | * |
| 289 | * @param appendFile temp file |
| 290 | * @param srcFile main file |
| 291 | * @throws IOException when fails to append contents |
| 292 | */ |
| 293 | public static void mergeJavaFiles(File appendFile, File srcFile) throws IOException { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 294 | try { |
| 295 | appendFileContents(appendFile, srcFile); |
| 296 | } catch (IOException e) { |
| 297 | throw new IOException("Failed to append " + appendFile + " in " + srcFile); |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 302 | * Inserts data in the generated file. |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 303 | * |
| 304 | * @param file file in which need to be inserted |
| 305 | * @param data data which need to be inserted |
| 306 | * @throws IOException when fails to insert into file |
| 307 | */ |
| 308 | public static void insertDataIntoJavaFile(File file, String data) throws IOException { |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 309 | try { |
| 310 | updateFileHandle(file, data, false); |
| 311 | } catch (IOException e) { |
| 312 | throw new IOException("Failed to insert in " + file + "file"); |
| 313 | } |
| 314 | } |
Bharat saraswal | 9745996 | 2016-02-20 21:57:16 +0530 | [diff] [blame] | 315 | } |