All Downloads are FREE. Search and download functionalities are using the official Maven repository.

site.sorghum.anno.om.javacmd.ExportJarCmd Maven / Gradle / Ivy

The newest version!
package site.sorghum.anno.om.javacmd;

import cn.hutool.core.io.FileUtil;
import net.bytebuddy.description.type.TypeDescription;
import site.sorghum.anno._common.entity.CommonParam;
import site.sorghum.anno._common.util.MetaClassUtil;
import site.sorghum.anno.anno.javacmd.JavaCmdSupplier;
import site.sorghum.anno.om.ao.OnlineMeta;

import java.util.Map;

public class ExportJarCmd implements JavaCmdSupplier {

    @Override
    public String run(CommonParam param) {
        OnlineMeta onlineMeta = param.toT(OnlineMeta.class);
        String ymlContent = onlineMeta.getYmlContent();
        Map> typeDescriptionClassMap = MetaClassUtil.loadClass(ymlContent);
        String absolutePath = FileUtil.file("dynamic.jar").
            getAbsolutePath();
        return "已导出至:%s".formatted(absolutePath);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy