Compare commits
2 Commits
fix/greeti
...
4ed8cdc792
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ed8cdc792 | ||
|
|
23f5ff77ec |
55
pom.xml
55
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.cametendo</groupId>
|
<groupId>org.cametendo</groupId>
|
||||||
<artifactId>cflash</artifactId>
|
<artifactId>cflash</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0.1</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
@@ -23,30 +23,33 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<version>3.6.0</version>
|
<version>3.6.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>org.cametendo.Main</mainClass>
|
<mainClass>org.cametendo.Main</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
<manifestEntries>
|
||||||
<descriptorRefs>
|
<Enable-Native-Access>ALL-UNNAMED</Enable-Native-Access>
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
</manifestEntries>
|
||||||
</descriptorRefs>
|
</archive>
|
||||||
</configuration>
|
<descriptorRefs>
|
||||||
<executions>
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
<execution>
|
</descriptorRefs>
|
||||||
<id>make-assembly</id>
|
</configuration>
|
||||||
<phase>package</phase>
|
<executions>
|
||||||
<goals>
|
<execution>
|
||||||
<goal>single</goal>
|
<id>make-assembly</id>
|
||||||
</goals>
|
<phase>package</phase>
|
||||||
</execution>
|
<goals>
|
||||||
</executions>
|
<goal>single</goal>
|
||||||
</plugin>
|
</goals>
|
||||||
</plugins>
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
@@ -7,12 +7,12 @@ public class BlockSize {
|
|||||||
|
|
||||||
public static String mapBlockSize(String input) {
|
public static String mapBlockSize(String input) {
|
||||||
return switch (input) {
|
return switch (input) {
|
||||||
case "1" -> "512K";
|
case "1", "512K" -> "512K";
|
||||||
case "2" -> "1M";
|
case "2", "1M" -> "1M";
|
||||||
case "3" -> "2M";
|
case "3", "2M" -> "2M";
|
||||||
case "4" -> "4M";
|
case "4", "4M" -> "4M";
|
||||||
case "5" -> "8M";
|
case "5", "8M" -> "8M";
|
||||||
case "6" -> "16M";
|
case "6", "16M" -> "16M";
|
||||||
default -> blockSizeString;
|
default -> blockSizeString;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,10 @@ public class OflagHandler {
|
|||||||
|
|
||||||
public static String mapOflagHandle(String input) {
|
public static String mapOflagHandle(String input) {
|
||||||
return switch (input) {
|
return switch (input) {
|
||||||
case "1" -> "direct";
|
case "1", "direct" -> "direct";
|
||||||
case "2" -> "dsync";
|
case "2", "dsync" -> "dsync";
|
||||||
case "3" -> "sync";
|
case "3", "sync" -> "sync";
|
||||||
case "4" -> "nocache";
|
case "4", "nocache" -> "nocache";
|
||||||
case "5" -> "direct";
|
|
||||||
default -> oflagHandleString;
|
default -> oflagHandleString;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user