@Override 
    public void writeDockerFile(File dockerComposeDir, String dockerFileName, String federateName) {
        if (mainDef == null) {
            return;
        }
        Path srcGenPath = fileConfig.getSrcGenPath();
        String dockerFile = srcGenPath + File.separator + dockerFileName;
        CodeBuilder contents = new CodeBuilder();
        contents.pr(PythonDockerGenerator.generateDockerFileContent(topLevelName, srcGenPath));
        try {
            // If a dockerfile exists, remove it.
            Files.deleteIfExists(srcGenPath.resolve(dockerFileName));
            contents.writeToFile(dockerFile);
        } catch (IOException e) {
            Exceptions.sneakyThrow(e);
        }
        System.out.println(getDockerBuildCommand(dockerFile, dockerComposeDir, federateName));
    }
@Override 
    public void writeDockerFile(File dockerComposeDir, String dockerFileName, String federateName) {
        if (mainDef == null) {
            return;
        }
        Path srcGenPath = fileConfig.getSrcGenPath();
        String dockerFile = srcGenPath + File.separator + dockerFileName;
        CodeBuilder contents = new CodeBuilder();
        contents.pr(PythonDockerGenerator.generateDockerFileContent(topLevelName, srcGenPath));
        try {
           
            Files.deleteIfExists(srcGenPath.resolve(dockerFileName));
            contents.writeToFile(dockerFile);
        } catch (IOException e) {
            Exceptions.sneakyThrow(e);
        }
        System.out.println(getDockerBuildCommand(dockerFile, dockerComposeDir, federateName));
    }
@override public void writedockerfile(file dockercomposedir, string dockerfilename, string federatename) { if (maindef == null) { return; } path srcgenpath = fileconfig.getsrcgenpath(); string dockerfile = srcgenpath + file.separator + dockerfilename; codebuilder contents = new codebuilder(); contents.pr(pythondockergenerator.generatedockerfilecontent(toplevelname, srcgenpath)); try { files.deleteifexists(srcgenpath.resolve(dockerfilename)); contents.writetofile(dockerfile); } catch (ioexception e) { exceptions.sneakythrow(e); } system.out.println(getdockerbuildcommand(dockerfile, dockercomposedir, federatename)); }