/** * Returns the list of packaged local jars. */ public static List<File> getPackagedLocalJarFileList(DependencyContainer dependencyContainer) { List<JarDependency> jarDependencyList = dependencyContainer.getLocalDependencies(); Set<File> files = Sets.newHashSetWithExpectedSize(jarDependencyList.size()); for (JarDependency jarDependency : jarDependencyList) { if (jarDependency.isPackaged()) { files.add(jarDependency.getJarFile()); } } return Lists.newArrayList(files); }
@Override public void execute(StyledTextOutput styledTextOutput) { getTextOutput().text("LOCAL: " + jar.getJarFile().getName()); } }, lastChild);
/** * Returns the compile classpath for this config. If the config tests a library, this * will include the classpath of the tested config * * @return a non null, but possibly empty set. */ @NonNull public Set<File> getCompileClasspath() { Set<File> classpath = Sets.newHashSetWithExpectedSize( mExternalJars.size() + mLocalJars.size() + mFlatLibraries.size()); for (LibraryDependency lib : mFlatLibraries) { classpath.add(lib.getJarFile()); for (File jarFile : lib.getLocalJars()) { classpath.add(jarFile); } } for (JarDependency jar : mExternalJars) { if (jar.isCompiled()) { classpath.add(jar.getJarFile()); } } for (JarDependency jar : mLocalJars) { if (jar.isCompiled()) { classpath.add(jar.getJarFile()); } } return classpath; }
File jarFile = jar.getJarFile(); if (jar.isPackaged() && jarFile.exists()) { jars.add(jarFile); File jarFile = jar.getJarFile(); if (jar.isPackaged() && jarFile.exists()) { jars.add(jarFile);
File jarFile = jar.getJarFile(); if (jar.isCompiled() && !jar.isPackaged() && jarFile.exists()) { jars.add(jarFile); File jarFile = jar.getJarFile(); if (jar.isCompiled() && !jar.isPackaged() && jarFile.exists()) { jars.add(jarFile);
jarDep.getResolvedCoordinates().getClassifier() != null; File jarFile = jarDep.getJarFile(); if (!customArtifact && jarDep.getProjectPath() != null) { projects.add(jarDep.getProjectPath()); javaLibraries.add( new JavaLibraryImpl( jarDep.getJarFile(), null, jarDep.getResolvedCoordinates()));