Skip to content

Commit 5aa1470

Browse files
committed
First version of the program
1 parent e5b55bd commit 5aa1470

4 files changed

Lines changed: 425 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
2424
replay_pid*
25+
26+
# Compile Files
27+
dependency-reduced-pom.xml

pom.xml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.devparada</groupId>
5+
<artifactId>StatusMCServerTool</artifactId>
6+
<version>1.0</version>
7+
<packaging>jar</packaging>
8+
9+
<!-- Dependencies -->
10+
<dependencies>
11+
<dependency>
12+
<groupId>com.google.code.gson</groupId>
13+
<artifactId>gson</artifactId>
14+
<version>2.11.0</version>
15+
</dependency>
16+
</dependencies>
17+
18+
<build>
19+
<plugins>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-shade-plugin</artifactId>
23+
<version>3.6.0</version>
24+
<executions>
25+
<execution>
26+
<phase>package</phase>
27+
<goals>
28+
<goal>shade</goal>
29+
</goals>
30+
<configuration>
31+
<shadedArtifactAttached>true</shadedArtifactAttached>
32+
<filters>
33+
<filter>
34+
<artifact>*.*</artifact>
35+
<excludes>
36+
<exclude>META-INF/MANIFEST.MF</exclude>
37+
<exclude>META-INF/versions/9/module-info.class</exclude>
38+
</excludes>
39+
</filter>
40+
</filters>
41+
<transformers>
42+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
43+
<mainClass>com.devparada.statusmcservertool.StatusMCServerTool</mainClass>
44+
</transformer>
45+
</transformers>
46+
</configuration>
47+
</execution>
48+
</executions>
49+
</plugin>
50+
51+
<!-- renames the good jar with the name of the original jar and deletes it in the process -->
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-antrun-plugin</artifactId>
55+
<version>3.1.0</version>
56+
<executions>
57+
<execution>
58+
<phase>package</phase>
59+
<goals>
60+
<goal>run</goal>
61+
</goals>
62+
<configuration>
63+
<target>
64+
<move file="${project.build.directory}/${project.build.finalName}-shaded.jar"
65+
tofile="${project.build.directory}/${project.build.finalName}.jar" />
66+
</target>
67+
</configuration>
68+
</execution>
69+
</executions>
70+
</plugin>
71+
</plugins>
72+
</build>
73+
74+
<!-- Properties project -->
75+
<properties>
76+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
77+
<maven.compiler.source>17</maven.compiler.source>
78+
<maven.compiler.target>17</maven.compiler.target>
79+
<exec.mainClass>com.devparada.statusmcservertool.StatusMCServerTool</exec.mainClass>
80+
<maven.install.skip>true</maven.install.skip>
81+
</properties>
82+
</project>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<Properties>
5+
<Property name="defaultCloseOperation" type="int" value="3"/>
6+
<Property name="title" type="java.lang.String" value="StatusMCServerTool"/>
7+
</Properties>
8+
<SyntheticProperties>
9+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
10+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
11+
</SyntheticProperties>
12+
<AuxValues>
13+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
14+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
15+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
16+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
17+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
18+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
19+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
20+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
21+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
22+
</AuxValues>
23+
24+
<Layout>
25+
<DimensionLayout dim="0">
26+
<Group type="103" groupAlignment="0" attributes="0">
27+
<Group type="102" alignment="1" attributes="0">
28+
<EmptySpace pref="26" max="32767" attributes="0"/>
29+
<Group type="103" groupAlignment="0" attributes="0">
30+
<Component id="JSclPnl" alignment="1" max="32767" attributes="0"/>
31+
<Group type="102" attributes="0">
32+
<Component id="jLblTxtArResult" min="-2" pref="587" max="-2" attributes="0"/>
33+
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
34+
</Group>
35+
<Group type="102" alignment="0" attributes="0">
36+
<Component id="jLblNameServer" min="-2" pref="221" max="-2" attributes="0"/>
37+
<EmptySpace max="-2" attributes="0"/>
38+
<Group type="103" groupAlignment="0" attributes="0">
39+
<Component id="jTxtNameServer" pref="453" max="32767" attributes="0"/>
40+
<Group type="102" alignment="0" attributes="0">
41+
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
42+
<Component id="jBtnComprobar" min="-2" pref="181" max="-2" attributes="0"/>
43+
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
44+
</Group>
45+
</Group>
46+
</Group>
47+
</Group>
48+
<EmptySpace pref="26" max="32767" attributes="0"/>
49+
</Group>
50+
</Group>
51+
</DimensionLayout>
52+
<DimensionLayout dim="1">
53+
<Group type="103" groupAlignment="0" attributes="0">
54+
<Group type="102" alignment="0" attributes="0">
55+
<EmptySpace pref="26" max="32767" attributes="0"/>
56+
<Group type="103" groupAlignment="3" attributes="0">
57+
<Component id="jLblNameServer" alignment="3" min="-2" pref="27" max="-2" attributes="0"/>
58+
<Component id="jTxtNameServer" alignment="3" min="-2" pref="27" max="-2" attributes="0"/>
59+
</Group>
60+
<EmptySpace type="separate" max="32767" attributes="0"/>
61+
<Component id="jBtnComprobar" min="-2" max="-2" attributes="0"/>
62+
<EmptySpace type="separate" max="32767" attributes="0"/>
63+
<Component id="jLblTxtArResult" min="-2" max="-2" attributes="0"/>
64+
<EmptySpace max="32767" attributes="0"/>
65+
<Component id="JSclPnl" min="-2" pref="169" max="-2" attributes="0"/>
66+
<EmptySpace pref="26" max="32767" attributes="0"/>
67+
</Group>
68+
</Group>
69+
</DimensionLayout>
70+
</Layout>
71+
<SubComponents>
72+
<Container class="javax.swing.JScrollPane" name="JSclPnl">
73+
<AuxValues>
74+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
75+
</AuxValues>
76+
77+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
78+
<SubComponents>
79+
<Component class="javax.swing.JTextArea" name="jTxtArResult">
80+
<Properties>
81+
<Property name="editable" type="boolean" value="false"/>
82+
<Property name="columns" type="int" value="20"/>
83+
<Property name="rows" type="int" value="5"/>
84+
</Properties>
85+
</Component>
86+
</SubComponents>
87+
</Container>
88+
<Component class="javax.swing.JLabel" name="jLblNameServer">
89+
<Properties>
90+
<Property name="text" type="java.lang.String" value="Server IP (with port if different port):"/>
91+
</Properties>
92+
</Component>
93+
<Component class="javax.swing.JButton" name="jBtnComprobar">
94+
<Properties>
95+
<Property name="text" type="java.lang.String" value="Check status"/>
96+
</Properties>
97+
<Events>
98+
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jBtnComprobarMouseClicked"/>
99+
</Events>
100+
</Component>
101+
<Component class="javax.swing.JTextField" name="jTxtNameServer">
102+
</Component>
103+
<Component class="javax.swing.JLabel" name="jLblTxtArResult">
104+
<Properties>
105+
<Property name="text" type="java.lang.String" value="Server status:"/>
106+
</Properties>
107+
</Component>
108+
</SubComponents>
109+
</Form>

0 commit comments

Comments
 (0)