public AssemblyFiles getAssemblyFiles(String name, BuildImageConfiguration buildConfig, MojoParameters mojoParams, Logger log)
            throws InvalidAssemblerConfigurationException, ArchiveCreationException, AssemblyFormattingException, MojoExecutionException {

        BuildDirs buildDirs = createBuildDirs(name, mojoParams);

        AssemblyConfiguration assemblyConfig = buildConfig.getAssemblyConfiguration();
        String assemblyName = assemblyConfig.getName();
        DockerAssemblyConfigurationSource source =
                        new DockerAssemblyConfigurationSource(mojoParams, buildDirs, assemblyConfig);
        Assembly assembly = getAssemblyConfig(assemblyConfig, source);


        synchronized (trackArchiver) {
            MappingTrackArchiver ta = (MappingTrackArchiver) trackArchiver;
            ta.init(log, assemblyName);
            assembly.setId("tracker");
            assemblyArchiver.createArchive(assembly, assemblyName, "track", source, false, null);
            return ta.getAssemblyFiles(mojoParams.getSession());
        }
    }
public AssemblyFiles getAssemblyFiles ( String name , BuildImageConfiguration buildConfig , MojoParameters mojoParams , Logger log ) throws InvalidAssemblerConfigurationException , ArchiveCreationException , AssemblyFormattingException , MojoExecutionException { BuildDirs buildDirs = createBuildDirs ( name , mojoParams ) ; AssemblyConfiguration assemblyConfig = buildConfig . getAssemblyConfiguration ( ) ; String assemblyName = assemblyConfig . getName ( ) ; DockerAssemblyConfigurationSource source = new DockerAssemblyConfigurationSource ( mojoParams , buildDirs , assemblyConfig ) ; Assembly assembly = getAssemblyConfig ( assemblyConfig , source ) ; synchronized ( trackArchiver ) { MappingTrackArchiver ta = ( MappingTrackArchiver ) trackArchiver ; ta . init ( log , assemblyName ) ; assembly . setId ( "tracker" ) ; assemblyArchiver . createArchive ( assembly , assemblyName , "track" , source , false , null ) ; return ta . getAssemblyFiles ( mojoParams . getSession ( ) ) ; } }
Extract all files with a tracking archiver. These can be used to track changes in the filesystem and triggering
a rebuild of the image if needed ('docker:watch')