@Test public void testSimpleProjectForReusableRecipe() throws Exception { File dir = this.folder.newFolder(); CreationBean bean = new CreationBean() .projectDescription( "some desc" ).projectName( "my-project" ) .groupId( "net.roboconf" ).projectVersion( "1.0-SNAPSHOT" ) .mavenProject( false ).reusableRecipe( true ); Assert.assertEquals( 0, dir.listFiles().length ); ProjectUtils.createProjectSkeleton( dir, bean ); Assert.assertEquals( 2, dir.listFiles().length ); ApplicationLoadResult alr = RuntimeModelIo.loadApplication( dir ); List<RoboconfError> errors = new ArrayList<>( alr.getLoadErrors()); Assert.assertEquals( 2, errors.size()); Assert.assertEquals( ErrorCode.PROJ_NO_DESC_DIR, errors.get( 0 ).getErrorCode()); Assert.assertEquals( ErrorCode.PROJ_UNREACHABLE_FILE, errors.get( 1 ).getErrorCode()); }
public static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ) throws IOException { if( creationBean.isMavenProject()) createMavenProject( targetDirectory, creationBean ); else createSimpleProject( targetDirectory, creationBean ); }
ProjectUtils { public static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ) throws IOException { if( creationBean.isMavenProject()) createMavenProject( targetDirectory, creationBean ); else createSimpleProject( targetDirectory, creationBean ); } }
ProjectUtils { public static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ) throws IOException { if( creationBean.isMavenProject()) createMavenProject( targetDirectory, creationBean ); else createSimpleProject( targetDirectory, creationBean ); } private  ProjectUtils(); }
ProjectUtils { public static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ) throws IOException { if( creationBean.isMavenProject()) createMavenProject( targetDirectory, creationBean ); else createSimpleProject( targetDirectory, creationBean ); } private  ProjectUtils(); static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ); static List<String> listMavenPluginVersions(); static List<File> createRecipeDirectories( File applicationDirectory ); }
ProjectUtils { public static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ) throws IOException { if( creationBean.isMavenProject()) createMavenProject( targetDirectory, creationBean ); else createSimpleProject( targetDirectory, creationBean ); } private  ProjectUtils(); static void createProjectSkeleton( File targetDirectory, CreationBean creationBean ); static List<String> listMavenPluginVersions(); static List<File> createRecipeDirectories( File applicationDirectory ); static final String GRAPH_EP; static final String INSTANCES_EP; }