{
return workingDirectory;
}
};
ChrootJailWorkingDirectoryService directoryService = new ChrootJailWorkingDirectoryService();
directoryService.setConfigurationService( configurationService );
directoryService.setChrootJailDirectory( chrootJailFile );
executor.setChrootJailDirectory( chrootJailFile );
executor.setShellCommandHelper( helper );
executor.setWorkingDirectoryService( directoryService );
//executor.enableLogging( new ConsoleLogger( Logger.LEVEL_DEBUG, "" ) );
final Project project = new Project();
project.setId( 7 );
project.setGroupId( "xx" );
ProjectGroup projectGroup = new ProjectGroup();
projectGroup.setGroupId( project.getGroupId() );
project.setProjectGroup( projectGroup );
assertEquals( toSystemPath(
chrootJailFile.getPath() + "/" + project.getGroupId() + workingDirectory.getPath() + "/" +
project.getId() ), directoryService.getWorkingDirectory( project ).getPath() );
String executable = "mvn";
final String arguments = "-o clean install";
final File output = new File( "target/tmp" );
final Map<String, String> environments = new HashMap<String, String>();