InitializeComponent
Example.java в файл example:#!/usr/bin/java --source 11
// openjdk version "11.0.13" 2021-10-19
// OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.18.04)
// OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
/*
NOTE: should switch from shell to java comments beyond the first line
*/
import static java.lang.System.out;
import java.nio.file.Paths;
import java.nio.file.Files;
public class Example{
public static void main(String[] args) throws Exception {
if (args.length > 0){
Files.walk(Paths.get(args[0])).forEach(out::println);
}
}
}mkdir /tmp/demo
cd /tmp/demo
touch a.txt b.txt c.txt
sergueik@sergueik172:/tmp/demo$
chmod +x example
./example ..
./a.txt
./b.txt
./c.txt
./example
build:
context: .
dockerfile: Dockerfileversion: "3.9"
services:
webapp:
build: ./dirversion: "3.9"
services:
webapp:
build:
context: ./dir
dockerfile: Dockerfile-alternate
args:
buildno: 1docker-compose -f docker-compose.yaml up --build
VBoxManage.exe internalcommands createrawvmdk -filename %CD%\%FILENAME% -rawdisk \\.\PhysicalDrive%DRIVENUM%
# Disk DescriptorFile
version=1
CID=a2b2d093
parentCID=ffffffff
createType="fullDevice"
# Extent description
RW 123174912 FLAT "\\.\PhysicalDrive1" 0
# The disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="d627b71a-0422-41f3-99be-0404ffb37df7"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="71a4a607-29c4-4cd7-a365-d400b822464c"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
ddb.geometry.biosCylinders="1024"
ddb.geometry.biosHeads="255"
ddb.geometry.biosSectors="63"
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${project.groupId}.${mainClass}</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
docker run -v /tmp:/foo -v /var/log:/bar -it alpine:3.9 sh/ # ls /foo
config-err-8XVd3h
systemd-private-f146de129a404829a81f3d7ff32e410d-rtkit-daemon.service-ZNJw0t
systemd-private-f146de129a404829a81f3d7ff32e410d-systemd-timesyncd.service-F1C5Jt
/ # ls /bar
Xorg.0.log aptitude.1.gz faillog
Xorg.0.log.old auth.log fontconfig.log
Xorg.1.log auth.log.1 fsck
Xorg.1.log.old auth.log.2.gz gpu-manager.log
...
new Thread(this) - опс класс конкретный - юнит тест это не делает
тоже самое дальше повсюду
new URL(url).openConnection() опс
new InputStreamReader(inputStream, StandardCharsets.UTF_8); опс