Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
! 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyxlandlee committed Dec 26, 2020
1 parent f4ba0a7 commit c13770e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 9 deletions.
13 changes: 13 additions & 0 deletions FileSpliterator.ipr
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ArtifactManager">
<artifact type="jar" name="FileSpliterator:jar">
<output-path>$PROJECT_DIR$/out/artifacts/FileSpliterator_jar</output-path>
<root id="archive" name="FileSpliterator.jar">
<element id="module-output" name="FileSpliterator" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-test.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8.jar" path-in-jar="/" />
</root>
</artifact>
</component>
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
Expand Down
40 changes: 34 additions & 6 deletions FileSpliterator.iws
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="2e837d0e-f64d-441f-982b-ceea8ceb799a" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/FileSpliterator.iws" beforeDir="false" afterPath="$PROJECT_DIR$/FileSpliterator.iws" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/Core.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/Core.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/main.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/main.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/util/ByteHelper.kt" beforeDir="false" afterPath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/util/ByteHelper.kt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/util/Emaps.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/util/Emaps.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
Expand Down Expand Up @@ -35,6 +31,10 @@
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="project.structure.last.edited" value="Artifacts" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.53956836" />
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
</component>
<component name="RunManager" selected="Application.Example Decoder">
<configuration default="true" type="JarApplication">
Expand All @@ -44,7 +44,7 @@
<configuration name="Example Decoder" type="JetRunConfigurationType">
<module name="FileSpliterator" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="decode $PROJECT_DIR$/run/filesplit-giao.ywlib" />
<option name="PROGRAM_PARAMETERS" value="decode $PROJECT_DIR$/run/filesplit-giao.ywlib_" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" />
<option name="PASS_PARENT_ENVS" value="true" />
Expand Down Expand Up @@ -149,7 +149,14 @@
<option name="project" value="LOCAL" />
<updated>1608963131810</updated>
</task>
<option name="localTasksCounter" value="2" />
<task id="LOCAL-00002" summary="? 0.1.0">
<created>1608972208834</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1608972208834</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
Expand All @@ -168,4 +175,25 @@
<MESSAGE value="? 0.1.0" />
<option name="LAST_COMMIT_MESSAGE" value="? 0.1.0" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint type="java-line">
<url>file://$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/Core.java</url>
<line>107</line>
<option name="timeStamp" value="4" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/io/github/teddyxlandlee/nios/filesplit/Core.java</url>
<line>111</line>
<option name="timeStamp" value="5" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
<watches-manager>
<configuration name="Application">
<watch expression="cache2" />
</configuration>
</watches-manager>
</component>
</project>
3 changes: 3 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: io.github.teddyxlandlee.nios.filesplit.MainKt

4 changes: 2 additions & 2 deletions src/io/github/teddyxlandlee/nios/filesplit/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ public static void decode(File file) {
String newFilePath = file.getParent() + '/' + newFileName;
File newFile = new File(newFilePath);
if (newFile.exists())
throw new InvalidFileException("INFO.fsplitinfo", 0x00000007);
throw new InvalidFileException(newFileName, 0x00000007);
if (!newFile.createNewFile())
throw new InvalidFileException("INFO.fsplitinfo", 0x00000007);
throw new InvalidFileException(newFileName, 0x00000007);

FileOutputStream outputStream = new FileOutputStream(newFile);

Expand Down
2 changes: 1 addition & 1 deletion src/io/github/teddyxlandlee/nios/filesplit/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fun main(args: Array<String>) {
}

fun help() {
println("Usage: java -jar file-spliterator-${version}.jar <encode|decode> <filename> [args]\n" +
println("Usage: java -jar FileSpliterator.jar <encode|decode> <filename> [args]\n" +
"encode: arg: filename\n" +
"decoee: arg: directory name\n" +
"more args:\n [max_one_file_size] default 99.4MB\n" +
Expand Down

0 comments on commit c13770e

Please sign in to comment.