public File getWorkingDirectory( Project project, boolean shouldSet ) { ProjectGroup projectGroup = project.getProjectGroup(); File f = new File( getChrootJailDirectory(), projectGroup.getGroupId() ); f = new File( f, getConfigurationService().getWorkingDirectory().getPath() ); return new File( f, Integer.toString( project.getId() ) ); }
public void execute( Map context ) throws Exception { ProjectGroup projectGroup = getUnvalidatedProjectGroup( context ); // TODO: assert that the name is unique assertStringNotEmpty( projectGroup.getName(), "name" ); assertStringNotEmpty( projectGroup.getGroupId(), "group id" ); } }
serializer.writeEndElement(); if ( projectGroup.getGroupId() != null ) serializer.writeCharacters( projectGroup.getGroupId() ); serializer.writeEndElement();
public void execute( Map context ) throws Exception { ProjectGroup projectGroup = getUnvalidatedProjectGroup( context ); // TODO: assert that the name is unique assertStringNotEmpty( projectGroup.getName(), "name" ); assertStringNotEmpty( projectGroup.getGroupId(), "group id" ); } }
serializer.writeEndElement(); if ( projectGroup.getGroupId() != null ) serializer.writeCharacters( projectGroup.getGroupId() ); serializer.writeEndElement();
projectGroup = store.getProjectGroupByGroupId( projectGroup.getGroupId() ); "Using existing project group with the group id: '" + projectGroup.getGroupId() + "'." ); "Creating project group with the group id: '" + projectGroup.getGroupId() + "'." );
pg = store.getProjectGroupByGroupId( projectGroup.getGroupId() );
public Project addProject( String name, ProjectGroup group ) throws Exception { Project project = makeStubProject( name ); project.setGroupId( group.getGroupId() ); group.addProject( project ); try { projectGroupDao.getProjectGroup( group.getId() ); projectGroupDao.updateProjectGroup( group ); } catch ( ContinuumObjectNotFoundException e ) { projectGroupDao.addProjectGroup( group ); } return projectDao.getProject( project.getId() ); } }
pg = projectGroupDao.getProjectGroupByGroupId( projectGroup.getGroupId() );
projectGroup = projectGroupDao.getProjectGroupByGroupId( projectGroup.getGroupId() ); log.info( "Using existing project group with the group id: '" + projectGroup.getGroupId() + "'." ); log.info( "Creating project group with the group id: '" + projectGroup.getGroupId() + "'." );