Import from internal git
This commit is contained in:
37
Generator/Daos/JavaDao.cs
Normal file
37
Generator/Daos/JavaDao.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Core;
|
||||
using Core.Actions;
|
||||
using Core.Settings;
|
||||
using Core.SpecConfig;
|
||||
using Generator.DataSource.Settings;
|
||||
using Generator.Mappers;
|
||||
|
||||
namespace Generator.Daos;
|
||||
|
||||
public class JavaDao : AbstractDao
|
||||
{
|
||||
|
||||
public JavaDao(ConfigManager confManager) : base(confManager)
|
||||
{ }
|
||||
|
||||
public JavaConfig GetJavaGenerate(ISpecFile file) => ConfManager.Java.Map(ConfManager, file);
|
||||
|
||||
public JavaPublish GetJavaPublish(GenerationType type, ISpecFile file)
|
||||
{
|
||||
var config = GetJavaGenerate(file);
|
||||
return new JavaPublish
|
||||
{
|
||||
LocalRoot = config.LocalRoot,
|
||||
DockerRoot = config.DockerRoot,
|
||||
Image = config.BuildImage,
|
||||
Registry = config.Registry,
|
||||
TemplateFolder = config.TemplateFolder,
|
||||
OutputFolder = config.OutputFolder(),
|
||||
Group = file.MavenGroup,
|
||||
Artifact = config.Artifact,
|
||||
Version = config.Version,
|
||||
Username = config.Username,
|
||||
Password = config.Password,
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user