Search in sources :

Example 1 with FileAsset

use of org.jboss.shrinkwrap.api.asset.FileAsset in project camel by apache.

the class ArquillianPackager method addDependencies.

private static JavaArchive addDependencies(JavaArchive ark, Collection<File> deps) {
    Set<File> dependencySet = new HashSet<>(deps);
    for (File d : dependencySet) {
        debug("Adding spring-boot dependency: " + d.getName());
        ark = ark.add(new FileAsset(d), LIB_FOLDER + "/" + d.getName());
    }
    return ark;
}
Also used : FileAsset(org.jboss.shrinkwrap.api.asset.FileAsset) File(java.io.File) HashSet(java.util.HashSet)

Aggregations

File (java.io.File)1 HashSet (java.util.HashSet)1 FileAsset (org.jboss.shrinkwrap.api.asset.FileAsset)1