This commit is contained in:
Amit Kumar Nandi 2023-08-21 00:26:10 +05:30
parent 98a619fed8
commit ac632b5d1a
4 changed files with 49 additions and 36 deletions

View file

@ -1,13 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ArtifactsWorkspaceSettings">
<artifacts-to-build>
<artifact name="Tagger:jar" />
</artifacts-to-build>
</component>
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="0b68a305-54e6-4883-bda9-826bb4c92443" name="Changes" comment="mycommit">
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/artifacts/Tagger_jar/Tagger.jar" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/tagger/TagReplacementToolConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/tagger/TagReplacementToolConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/tagger/TagReplacementToolModel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/tagger/TagReplacementToolModel.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -33,39 +38,40 @@
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;Downloaded.Files.Path.Enabled&quot;: &quot;false&quot;,
&quot;Repository.Attach.Annotations&quot;: &quot;false&quot;,
&quot;Repository.Attach.JavaDocs&quot;: &quot;false&quot;,
&quot;Repository.Attach.Sources&quot;: &quot;false&quot;,
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
&quot;git-widget-placeholder&quot;: &quot;master&quot;,
&quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
&quot;last_opened_file_path&quot;: &quot;C:/Users/bigwi/IdeaProjects/WorkbookInitializer&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;project.structure.last.edited&quot;: &quot;Project&quot;,
&quot;project.structure.proportion&quot;: &quot;0.15&quot;,
&quot;project.structure.side.proportion&quot;: &quot;0.43103448&quot;,
&quot;run.code.analysis.last.selected.profile&quot;: &quot;pProject Default&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"Downloaded.Files.Path.Enabled": "false",
"Repository.Attach.Annotations": "false",
"Repository.Attach.JavaDocs": "false",
"Repository.Attach.Sources": "false",
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "master",
"ignore.virus.scanning.warn.message": "true",
"last_opened_file_path": "C:/Users/bigwi/IdeaProjects/Tagger/out/artifacts/Tagger_jar",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"project.structure.last.edited": "Artifacts",
"project.structure.proportion": "0.15",
"project.structure.side.proportion": "0.43103448",
"run.code.analysis.last.selected.profile": "pProject Default",
"settings.editor.selected.configurable": "preferences.pluginManager",
"vue.rearranger.settings.migration": "true"
},
&quot;keyToStringList&quot;: {
&quot;DatabaseDriversLRU&quot;: [
&quot;mysql&quot;,
&quot;mariadb&quot;
"keyToStringList": {
"DatabaseDriversLRU": [
"mysql",
"mariadb"
]
}
}</component>
}]]></component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\bigwi\IdeaProjects\Tagger\out\artifacts\Tagger_jar" />
<recent name="C:\Users\bigwi\IdeaProjects\Tagger" />
<recent name="C:\Users\amit\IdeaProjects\Tagger\src\main\java\com\tagger\console" />
<recent name="C:\Users\amit\IdeaProjects\Tagger\src\main\java\com\tagger\old" />
@ -101,7 +107,8 @@
<workItem from="1692011115739" duration="1538000" />
<workItem from="1692124608523" duration="588000" />
<workItem from="1692125209008" duration="604000" />
<workItem from="1692125830448" duration="323000" />
<workItem from="1692125830448" duration="830000" />
<workItem from="1692547728783" duration="3669000" />
</task>
<task id="LOCAL-00001" summary="mycommit">
<option name="closed" value="true" />
@ -119,7 +126,15 @@
<option name="project" value="LOCAL" />
<updated>1691869194065</updated>
</task>
<option name="localTasksCounter" value="3" />
<task id="LOCAL-00003" summary="mycommit">
<option name="closed" value="true" />
<created>1692126213119</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1692126213119</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

Binary file not shown.

View file

@ -16,7 +16,7 @@ public class TagReplacementToolConfig {
loadConfig();
}
static final String CONFIG_FILE_PATH = "C:\\trtconfig.json";
static final String CONFIG_FILE_PATH = System.getProperty("user.dir") + "\\trtconfig.json";
// Configuration variables (from trtconfig.json) - Replace with your own values

View file

@ -1,7 +1,5 @@
package com.tagger;
import org.jetbrains.annotations.NotNull;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
@ -40,7 +38,7 @@ public class TagReplacementToolModel {
}
}
public static String @NotNull [] getMoNames() {
public static String[] getMoNames() {
List<String> moNameList = new ArrayList<>();
try (Connection conn = DriverManager.getConnection(DB_URL, USER, PASS);
Statement stmt = conn.createStatement();