tree: 48aa858f53597eee774862f3ae297844f30fc11a [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
commons-vfs2-examples/README.md

Test Provider(s) with the Shell

Build modules in the parent folder

mvn clean install

Test http3 and http3s providers

mvn -Pshell -Dhttp3

Test http4 and http4s providers

mvn -Pshell -Dhttp4

Test http3, http3s, http4 and http4s providers together

mvn -Pshell -Dhttp3 -Dhttp4

Example Test Scenario

mvn -Pshell -Dhttp3 -Dhttp4
...
cd http3://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
cd http3s://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
cd http4://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
cd http4s://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
cd http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
cd https://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
...
cat maven-metadata.xml
...
pwd
> Current folder is https://repo1.maven.org/maven2/org/apache/commons/commons-vfs2
pwfs
> FileSystem of current folder is org.apache.commons.vfs2.provider.http.HttpFileSystem@668be11a (root: https://repo1.maven.org/)
...
quit

Test with custom providers configuration

Set -Dproviders=<custom_providers.xml_resource_name>.

mvn -Pshell -Dhttp3 -Dhttp4 -Dproviders=providers-http4-default.xml
...
Custom providers configuration used: file:/tmp/commons-vfs/commons-vfs2-examples/target/classes/providers-http4-default.xml
VFS Shell null
cd http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2/
> Current folder is http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2
pwd
> Current folder is http://repo1.maven.org/maven2/org/apache/commons/commons-vfs2
pwfs
> FileSystem of current folder is org.apache.commons.vfs2.provider.http4.Http4FileSystem@6e012f9b (root: http://repo1.maven.org/)
...