Skip to content

Commit 4fa57c7

Browse files
committed
Add pom.xml for the maven central repository.
1 parent 133a161 commit 4fa57c7

File tree

4 files changed

+131
-10
lines changed

4 files changed

+131
-10
lines changed

filemanager.jar

1.31 KB
Binary file not shown.

pom-central.xml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>com.github.javadev</groupId>
6+
<artifactId>filemanager</artifactId>
7+
<packaging>jar</packaging>
8+
<version>1.0</version>
9+
<name>filemanager</name>
10+
<description>The java/swing basic File Manager</description>
11+
<url>https://github.com/javadev/file-manager</url>
12+
13+
<developers>
14+
<developer>
15+
<name>Valentyn Kolesnikov</name>
16+
</developer>
17+
</developers>
18+
19+
<licenses>
20+
<license>
21+
<name>Apache License, Version 2.0</name>
22+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
27+
<scm>
28+
<connection>scm:git:git://github.com/javadev/file-manager.git</connection>
29+
<developerConnection>scm:git:git://github.com/javadev/file-manager.git</developerConnection>
30+
<url>https://github.com/javadev/file-manager</url>
31+
</scm>
32+
33+
<properties>
34+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35+
</properties>
36+
37+
<ciManagement>
38+
<system>Travis CI</system>
39+
<url>https://travis-ci.org/javadev/file-manager</url>
40+
</ciManagement>
41+
42+
<issueManagement>
43+
<system>GitHub Issues</system>
44+
<url>https://github.com/javadev/file-manager</url>
45+
</issueManagement>
46+
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-jar-plugin</artifactId>
52+
<version>2.4</version>
53+
<configuration>
54+
<archive>
55+
<manifest>
56+
<mainClass>com.github.filemanager.FileManager</mainClass>
57+
</manifest>
58+
</archive>
59+
</configuration>
60+
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-source-plugin</artifactId>
64+
<executions>
65+
<execution>
66+
<id>attach-sources</id>
67+
<goals>
68+
<goal>jar</goal>
69+
</goals>
70+
</execution>
71+
</executions>
72+
</plugin>
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-javadoc-plugin</artifactId>
76+
<version>2.10.1</version>
77+
<executions>
78+
<execution>
79+
<id>attach-sources</id>
80+
<goals>
81+
<goal>jar</goal>
82+
</goals>
83+
</execution>
84+
</executions>
85+
</plugin>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-gpg-plugin</artifactId>
89+
<version>1.4</version>
90+
<executions>
91+
<execution>
92+
<id>sign-artifacts</id>
93+
<phase>verify</phase>
94+
<goals>
95+
<goal>sign</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
</plugins>
101+
</build>
102+
</project>

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packaging>jar</packaging>
88
<version>1.0</version>
99
<name>filemanager</name>
10-
<description>A java/swing basic File Manager</description>
10+
<description>The java/swing basic File Manager</description>
1111

1212
<properties>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -33,7 +33,7 @@
3333
<configuration>
3434
<archive>
3535
<manifest>
36-
<mainClass>FileManager</mainClass>
36+
<mainClass>com.github.filemanager.FileManager</mainClass>
3737
</manifest>
3838
</archive>
3939
</configuration>

src/main/java/FileManager.java renamed to src/main/java/com/github/filemanager/FileManager.java

+27-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* $Id$
3+
*
4+
* Copyright 2015 Valentyn Kolesnikov
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
package com.github.filemanager;
19+
120
import java.awt.BorderLayout;
221
import java.awt.FlowLayout;
322
import java.awt.GridLayout;
@@ -29,19 +48,20 @@
2948
import java.net.URL;
3049

3150
/**
32-
A basic File Manager. Requires 1.6+ for the Desktop & SwingWorker
51+
A basic File Manager. Requires 1.6+ for the Desktop &amp; SwingWorker
3352
classes, amongst other minor things.
3453
35-
Includes support classes FileTableModel & FileTreeCellRenderer.
54+
Includes support classes FileTableModel &amp; FileTreeCellRenderer.
3655
37-
@TODO Bugs
56+
TODO Bugs
57+
<ul>
3858
<li>Still throws occasional AIOOBEs and NPEs, so some update on
3959
the EDT must have been missed.
4060
<li>Fix keyboard focus issues - especially when functions like
41-
rename/delete etc. are called that update nodes & file lists.
61+
rename/delete etc. are called that update nodes &amp; file lists.
4262
<li>Needs more testing in general.
4363
44-
@TODO Functionality
64+
TODO Functionality
4565
<li>Implement Read/Write/Execute checkboxes
4666
<li>Implement Copy
4767
<li>Extra prompt for directory delete (camickr suggestion)
@@ -53,13 +73,12 @@ <li>Add other file display modes (besides table) in CardLayout?
5373
<li>Implement history/back
5474
<li>Allow multiple selection
5575
<li>Add file search
76+
</ul>
5677
5778
@author Andrew Thompson
5879
@version 2011-06-01
59-
@see http://stackoverflow.com/questions/6182110
60-
@license LGPL
6180
*/
62-
class FileManager {
81+
public class FileManager {
6382

6483
/** Title of the application */
6584
public static final String APP_TITLE = "FileMan";

0 commit comments

Comments
 (0)