Class DependencyCopy

All Implemented Interfaces:
Callable<Integer>

public class DependencyCopy extends DependencyList
  • Field Details

    • outputDirectory

      protected String outputDirectory
    • BUILD_DIR

      protected static final String BUILD_DIR
      See Also:
    • SETTINGS_PROP_SOURCE_KEYS

      protected static final String[] SETTINGS_PROP_SOURCE_KEYS
    • filePaths

      protected Path[] filePaths
    • files

      protected List<String> files
    • profile

      protected String profile
    • repos

      protected String repos
    • dependencies

      protected String dependencies
    • runtime

      protected String runtime
    • gav

      protected String gav
    • mainClassname

      protected String mainClassname
    • javaVersion

      protected String javaVersion
    • camelVersion

      protected String camelVersion
    • kameletsVersion

      protected String kameletsVersion
    • localKameletDir

      protected String localKameletDir
    • springBootVersion

      protected String springBootVersion
    • camelSpringBootVersion

      protected String camelSpringBootVersion
    • quarkusGroupId

      protected String quarkusGroupId
    • quarkusArtifactId

      protected String quarkusArtifactId
    • quarkusVersion

      protected String quarkusVersion
    • mavenWrapper

      protected boolean mavenWrapper
    • gradleWrapper

      protected boolean gradleWrapper
    • buildTool

      protected String buildTool
    • openapi

      protected String openapi
    • exportDir

      protected String exportDir
    • loggingLevel

      protected String loggingLevel
    • packageName

      protected String packageName
    • fresh

      protected boolean fresh
    • download

      protected boolean download
    • additionalProperties

      protected String additionalProperties
    • ignoreLoadingError

      protected boolean ignoreLoadingError
  • Constructor Details

  • Method Details

    • outputGav

      protected void outputGav(org.apache.camel.tooling.maven.MavenGav gav, int index, int total)
      Overrides:
      outputGav in class DependencyList
    • getProfile

      public String getProfile()
    • mavenRepositoriesAsPomXml

      protected static String mavenRepositoriesAsPomXml(String repos)
    • getScheme

      protected static String getScheme(String name)
    • runSilently

      protected Integer runSilently(boolean ignoreLoadingError) throws Exception
      Throws:
      Exception
    • resolveDependencies

      protected Set<String> resolveDependencies(File settings, File profile) throws Exception
      Throws:
      Exception
    • copySourceFiles

      protected void copySourceFiles(File settings, File profile, File srcJavaDirRoot, File srcJavaDir, File srcResourcesDir, File srcCamelResourcesDir, File srcKameletsResourcesDir, String packageName) throws Exception
      Throws:
      Exception
    • adjustJavaSourceFileLine

      protected void adjustJavaSourceFileLine(String line, FileOutputStream fos) throws Exception
      Throws:
      Exception
    • exportPackageName

      protected String exportPackageName(String groupId, String artifactId, String packageName)
    • copySettingsAndProfile

      protected void copySettingsAndProfile(File settings, File profile, File targetDir, Function<Properties,Object> customize) throws Exception
      Throws:
      Exception
    • prepareApplicationProperties

      protected void prepareApplicationProperties(Properties properties)
    • copyMavenWrapper

      protected void copyMavenWrapper() throws Exception
      Throws:
      Exception
    • copyGradleWrapper

      protected void copyGradleWrapper() throws Exception
      Throws:
      Exception
    • applicationPropertyLine

      protected String applicationPropertyLine(String key, String value)
    • getMavenRepos

      protected String getMavenRepos(File settings, Properties prop, String camelVersion) throws Exception
      Gets the maven repositories
      Parameters:
      prop - settings
      camelVersion - the camel version
      Returns:
      repositories or null if none are in use
      Throws:
      Exception
    • hasModeline

      protected static boolean hasModeline(File settings)
    • httpServerPort

      protected static int httpServerPort(File settings)
    • jibMavenPluginVersion

      protected static String jibMavenPluginVersion(File settings)
    • safeCopy

      protected static void safeCopy(File source, File target, boolean override) throws Exception
      Throws:
      Exception
    • safeCopy

      protected void safeCopy(InputStream source, File target) throws Exception
      Throws:
      Exception
    • parseMavenGav

      protected static org.apache.camel.tooling.maven.MavenGav parseMavenGav(String dep)
    • copyLocalLibDependencies

      protected void copyLocalLibDependencies(Set<String> deps) throws Exception
      Throws:
      Exception
    • copyAgentDependencies

      protected void copyAgentDependencies(Set<String> deps) throws Exception
      Throws:
      Exception