@Test public void testForAddSource() throws IOException { MavenProject project = new MavenProject(); BuildContext context = new DefaultBuildContext(); File sourceDir = new File(BASE_DIR + File.separator + "yang"); sourceDir.mkdirs(); addToCompilationRoot(sourceDir.toString(), project, context); FileUtils.deleteDirectory(sourceDir); }
public static void addToCompilationRoot(String source, MavenProject project, BuildContext context) { project.addCompileSourceRoot(source); context.refresh(project.getBasedir()); log.info("Source directory added to compilation root: " + source); }
YangPluginUtils { public static void addToCompilationRoot(String source, MavenProject project, BuildContext context) { project.addCompileSourceRoot(source); context.refresh(project.getBasedir()); log.info("Source directory added to compilation root: " + source); } }
YangPluginUtils { public static void addToCompilationRoot(String source, MavenProject project, BuildContext context) { project.addCompileSourceRoot(source); context.refresh(project.getBasedir()); log.info("Source directory added to compilation root: " + source); } private  YangPluginUtils(); }
YangPluginUtils { public static void addToCompilationRoot(String source, MavenProject project, BuildContext context) { project.addCompileSourceRoot(source); context.refresh(project.getBasedir()); log.info("Source directory added to compilation root: " + source); } private  YangPluginUtils(); static void addToCompilationRoot(String source, MavenProject project, BuildContext context); static void copyYangFilesToTarget(Set<YangFileInfo> yangFileInfo, String outputDir, MavenProject project); static void serializeDataModel(String directory, Set<YangFileInfo> fileInfoSet,
                                          MavenProject project, boolean operation); static List<YangNode> deSerializeDataModel(List<String> serailizedfileInfoSet); static List<YangNode> resolveInterJarDependencies(MavenProject project, ArtifactRepository localRepository,
                                                             List<ArtifactRepository> remoteRepos, String directory); static List<String> parseJarFile(String jarFile, String directory); }
YangPluginUtils { public static void addToCompilationRoot(String source, MavenProject project, BuildContext context) { project.addCompileSourceRoot(source); context.refresh(project.getBasedir()); log.info("Source directory added to compilation root: " + source); } private  YangPluginUtils(); static void addToCompilationRoot(String source, MavenProject project, BuildContext context); static void copyYangFilesToTarget(Set<YangFileInfo> yangFileInfo, String outputDir, MavenProject project); static void serializeDataModel(String directory, Set<YangFileInfo> fileInfoSet,
                                          MavenProject project, boolean operation); static List<YangNode> deSerializeDataModel(List<String> serailizedfileInfoSet); static List<YangNode> resolveInterJarDependencies(MavenProject project, ArtifactRepository localRepository,
                                                             List<ArtifactRepository> remoteRepos, String directory); static List<String> parseJarFile(String jarFile, String directory);  }