diff --git a/.gitignore b/.gitignore index 5595b8d..5632efa 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* -/target/ \ No newline at end of file +/target/ +release.properties diff --git a/TO-DO b/TO-DO new file mode 100644 index 0000000..0c632b8 --- /dev/null +++ b/TO-DO @@ -0,0 +1,4 @@ +1. Encryption Not Working in JAXB +2. Need to Modularize the Code +3. Reset Button on Filter +4. Try to integrate JAXB and JEazyProps Annotations \ No newline at end of file diff --git a/pom.xml b/pom.xml index 785a960..02f6396 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.prabhu JEazyProps - 1.0 + 1.0.0-SNAPSHOT jar https://github.com/prabhuprabhakaran/JEazyProps 2015 @@ -31,20 +31,32 @@ - https://github.com/prabhuprabhakaran/JEazyProps.git - https://github.com/prabhuprabhakaran/JEazyProps.git + scm:git:git://github.com/prabhuprabhakaran/JEazyProps.git + scm:git:git@github.com:prabhuprabhakaran/JEazyProps.git https://github.com/prabhuprabhakaran/JEazyProps HEAD + + + ossrh - + https://oss.sonatype.org/content/repositories/snapshots ossrh - + https://oss.sonatype.org/service/local/staging/deploy/maven2 @@ -139,6 +151,11 @@ -Dgpg.passphrase=${gpg.passphrase} + + org.apache.maven.scm + maven-scm-api + 1.11.2 + org.apache.maven.scm maven-scm-provider-gitexe @@ -148,4 +165,34 @@ + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/github/prabhuprabhakaran/jeazyprops/props/PropertyDisplayer.java b/src/main/java/com/github/prabhuprabhakaran/jeazyprops/props/PropertyDisplayer.java index 7c24af3..0cbcdd5 100644 --- a/src/main/java/com/github/prabhuprabhakaran/jeazyprops/props/PropertyDisplayer.java +++ b/src/main/java/com/github/prabhuprabhakaran/jeazyprops/props/PropertyDisplayer.java @@ -17,7 +17,6 @@ import com.prabhu.jeazyprops.utils.encryption.AES; import com.prabhu.jeazyprops.utils.encryption.Base64; import com.prabhu.jeazyprops.utils.encryption.Tripledes; -import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -31,7 +30,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; -import javax.swing.UnsupportedLookAndFeelException; /** * This Class used to create GUI for the Property Bean Object. The Property Bean @@ -82,9 +80,14 @@ public final class PropertyDisplayer { */ static { try { - javax.swing.UIManager.setLookAndFeel(new WindowsLookAndFeel()); - } catch (UnsupportedLookAndFeelException ex) { - Logger.getLogger(PropertyDisplayer.class.getName()).log(Level.SEVERE, null, ex); + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Windows".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (Exception ex) { + } }