CPscan

A Java library for finding files from classpath

Лицензия

Лицензия

Группа

Группа

eu.miltema
Идентификатор

Идентификатор

cp-scan
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

CPscan
A Java library for finding files from classpath
Ссылка на сайт

Ссылка на сайт

https://github.com/tehnomaan/cpscan
Система контроля версий

Система контроля версий

https://github.com/tehnomaan/cpscan

Скачать cp-scan

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/eu.miltema/cp-scan/ -->
<dependency>
    <groupId>eu.miltema</groupId>
    <artifactId>cp-scan</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/eu.miltema/cp-scan/
implementation 'eu.miltema:cp-scan:1.0.1'
// https://jarcasting.com/artifacts/eu.miltema/cp-scan/
implementation ("eu.miltema:cp-scan:1.0.1")
'eu.miltema:cp-scan:jar:1.0.1'
<dependency org="eu.miltema" name="cp-scan" rev="1.0.1">
  <artifact name="cp-scan" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.miltema', module='cp-scan', version='1.0.1')
)
libraryDependencies += "eu.miltema" % "cp-scan" % "1.0.1"
[eu.miltema/cp-scan "1.0.1"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

CP-scan

CP-scan is a Java library for finding and loading files from classpath. CP-scan has no dependencies other than Java 11+. It only seems to work inside war and does not work when run as standalone java program.

Basic Usage

		Collection<Class<?>> classes = new ClassScanner().
			scan("eu.miltema.cpscan.subpkg").
			collect(toList());
		List<FileTuple> list = new FileScanner(name -> name.endsWith(".txt")).
			scan("testfolder").
			collect(toList());
		System.out.println("File path is " + list.get(0).path);
		System.out.println("File contents:\n" + list.get(0).content);

Usage in Build Script

Add this dependency to build.gradle:

dependencies { implementation 'eu.miltema:cp-scan:1.0.1' }

Версии библиотеки

Версия
1.0.1
1.0.0
0.0.1