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

mill.main.Subfolder.scala Maven / Gradle / Ivy

The newest version!
package mill.main;
import mill._
import mill.define.{Caller, Ctx, Segments}

object SubfolderModule {
  class Info(val millSourcePath0: os.Path, val segments: Seq[String]) {
    implicit val subFolderInfo: Info = this
  }
}

abstract class SubfolderModule()(implicit
    millModuleLine0: sourcecode.Line,
    millFile0: sourcecode.File,
    subFolderInfo: SubfolderModule.Info
) extends mill.define.Module.BaseClass()(
      Ctx.make(
        millModuleEnclosing0 = subFolderInfo.segments.mkString("."),
        millModuleLine0 = millModuleLine0,
        millModuleBasePath0 = Ctx.BasePath(subFolderInfo.millSourcePath0 / os.up),
        segments0 = Segments.labels(subFolderInfo.segments.init: _*),
        external0 = Ctx.External(false),
        foreign0 = Ctx.Foreign(None),
        fileName = millFile0,
        enclosing = Caller(null)
      )
    ) with Module {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy