Jaxx-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- 3898 discussions
03 Mar '14
Author: tchemit
Date: 2014-03-03 12:21:11 +0100 (Mon, 03 Mar 2014)
New Revision: 2809
Url: http://nuiton.org/projects/jaxx/repository/revisions/2809
Log:
fixes #3109: No handler binding anylonger generated
Modified:
trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/DefaultObjectHandler.java
Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/DefaultObjectHandler.java
===================================================================
--- trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/DefaultObjectHandler.java 2014-03-03 10:16:14 UTC (rev 2808)
+++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/DefaultObjectHandler.java 2014-03-03 11:21:11 UTC (rev 2809)
@@ -636,11 +636,17 @@
name.equals(CONSTRUCTOR_PARAMS_ATTRIBUTE) ||
name.equals(STYLE_CLASS_ATTRIBUTE) ||
name.startsWith(XMLNS_ATTRIBUTE) ||
- name.startsWith(HANDLER_ATTRIBUTE) ||
JAXXCompiler.JAXX_INTERNAL_NAMESPACE.equals(attribute.getNamespaceURI())) {
// ignore, already handled
continue;
}
+
+ if (compiler.isUseHandler()) {
+ if (name.startsWith(HANDLER_ATTRIBUTE)) {
+ // ignore, already handled
+ continue;
+ }
+ }
if (name.equals(JAVA_BEAN_ATTRIBUTE)) {
object.setJavaBean(true);
if (!value.isEmpty()) {
1
0
r2808 - trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/session
by tchemit@users.nuiton.org 03 Mar '14
by tchemit@users.nuiton.org 03 Mar '14
03 Mar '14
Author: tchemit
Date: 2014-03-03 11:16:14 +0100 (Mon, 03 Mar 2014)
New Revision: 2808
Url: http://nuiton.org/projects/jaxx/repository/revisions/2808
Log:
fixes #3108: NPE in JTableState
Modified:
trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JTableState.java
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JTableState.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JTableState.java 2014-03-01 17:58:08 UTC (rev 2807)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/session/JTableState.java 2014-03-03 10:16:14 UTC (rev 2808)
@@ -90,6 +90,8 @@
public State getState(Object o) {
JTable table = checkComponent(o);
+ JTableState result = new JTableState();
+
int[] columnWidths = new int[table.getColumnCount()];
boolean resizableColumnExists = false;
@@ -101,21 +103,22 @@
}
}
- List<? extends RowSorter.SortKey> sortKeys = table.getRowSorter().getSortKeys();
- Map<Integer, String> sortKeysMap = null;
- if (sortKeys != null) {
- sortKeysMap = new HashMap<Integer, String>();
- for (RowSorter.SortKey sortKey : sortKeys) {
- sortKeysMap.put(sortKey.getColumn(), String.valueOf(sortKey.getSortOrder()));
- }
- }
-
- JTableState result = new JTableState();
if (resizableColumnExists) {
result.setColumnWidths(columnWidths);
}
- result.setSortKeys(sortKeysMap);
+ if (table.getRowSorter() != null) {
+ List<? extends RowSorter.SortKey> sortKeys = table.getRowSorter().getSortKeys();
+ Map<Integer, String> sortKeysMap = null;
+ if (sortKeys != null) {
+ sortKeysMap = new HashMap<Integer, String>();
+ for (RowSorter.SortKey sortKey : sortKeys) {
+ sortKeysMap.put(sortKey.getColumn(), String.valueOf(sortKey.getSortOrder()));
+ }
+ }
+ result.setSortKeys(sortKeysMap);
+ }
+
return result;
}
@@ -140,16 +143,15 @@
}
}
}
- List<RowSorter.SortKey> sortKeys = null;
Map<Integer, String> sortKeysMap = jTableState.getSortKeys();
if (sortKeysMap != null) {
- sortKeys = new ArrayList<RowSorter.SortKey>();
+ List<RowSorter.SortKey> sortKeys = new ArrayList<RowSorter.SortKey>();
for (Integer index : sortKeysMap.keySet()) {
SortOrder sortOrder = SortOrder.valueOf(sortKeysMap.get(index));
RowSorter.SortKey sortKey = new RowSorter.SortKey(index, sortOrder);
sortKeys.add(sortKey);
}
+ table.getRowSorter().setSortKeys(sortKeys);
}
- table.getRowSorter().setSortKeys(sortKeys);
}
}
1
0
r2807 - in trunk: jaxx-compiler/src/main/java/jaxx/compiler/java jaxx-compiler/src/test/java/jaxx/compiler/java jaxx-compiler/src/test/java/jaxx/compiler/reflect jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin jaxx-runtime/src/main/java/jaxx/runtime jaxx-widgets/src/main/java/jaxx/runtime/swing/editor src/site/rst src/site/rst/tutos
by tchemit@users.nuiton.org 01 Mar '14
by tchemit@users.nuiton.org 01 Mar '14
01 Mar '14
Author: tchemit
Date: 2014-03-01 18:58:08 +0100 (Sat, 01 Mar 2014)
New Revision: 2807
Url: http://nuiton.org/projects/jaxx/repository/revisions/2807
Log:
changes forge urls
Modified:
trunk/jaxx-compiler/src/main/java/jaxx/compiler/java/JavaElement.java
trunk/jaxx-compiler/src/test/java/jaxx/compiler/java/JavaFieldTest.java
trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/ClassDescriptorTest.java
trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass.java
trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass2.java
trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1124Test.java
trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1404Test.java
trunk/jaxx-runtime/src/main/java/jaxx/runtime/JAXXUtil.java
trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/editor/FileEditorHandler.java
trunk/src/site/rst/index.rst
trunk/src/site/rst/tutos/config.rst
trunk/src/site/rst/tutos/css.rst
trunk/src/site/rst/tutos/data-binding.rst
trunk/src/site/rst/tutos/helloworld.rst
trunk/src/site/rst/tutos/helloworld2.rst
Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/java/JavaElement.java
===================================================================
--- trunk/jaxx-compiler/src/main/java/jaxx/compiler/java/JavaElement.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/java/JavaElement.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -108,7 +108,7 @@
String n1 = o1.getName();
String n2 = o2.getName();
- //FIXME-tchemit-2012-07-02 (see http://nuiton.org/issues/2154)
+ //FIXME-tchemit-2012-07-02 (see https://forge.nuiton.org/issues/2154)
// Matcher matcher1 = NAME_PATTERN.matcher(n1);
// Matcher matcher2 = NAME_PATTERN.matcher(n2);
// if (matcher1.matches() && matcher2.matches()) {
Modified: trunk/jaxx-compiler/src/test/java/jaxx/compiler/java/JavaFieldTest.java
===================================================================
--- trunk/jaxx-compiler/src/test/java/jaxx/compiler/java/JavaFieldTest.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-compiler/src/test/java/jaxx/compiler/java/JavaFieldTest.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -94,7 +94,7 @@
}
/**
- * To test http://nuiton.org/issues/2154.
+ * To test https://forge.nuiton.org/issues/2154.
*
* @since 2.5.1
*/
Modified: trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/ClassDescriptorTest.java
===================================================================
--- trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/ClassDescriptorTest.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/ClassDescriptorTest.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -103,7 +103,7 @@
assertNotNull(descriptor);
ClassDescriptorHelper.ResolverType resolverType = descriptor.getResolverType();
- //FIXME-tchemit find out why ? (http://nuiton.org/issues/2203)
+ //FIXME-tchemit find out why ? (https://forge.nuiton.org/issues/2203)
// using jdk 7 VM Server it found a FILE instead of a CLASS ? Wonder why?
// Need to find out why
// assertEquals(ClassDescriptorHelper.ResolverType.JAVA_CLASS, resolverType);
Modified: trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass.java
===================================================================
--- trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -25,7 +25,7 @@
package jaxx.compiler.reflect;
/**
- * A child class to test the bug http://nuiton.org/issues/show/1470
+ * A child class to test the bug https://forge.nuiton.org/issues/show/1470
* <p/>
* To test if a child class obtains properties from his super class.
*
Modified: trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass2.java
===================================================================
--- trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass2.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-compiler/src/test/java/jaxx/compiler/reflect/MyChildClass2.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -25,7 +25,7 @@
package jaxx.compiler.reflect;
/**
- * To test the bug : http://nuiton.org/issues/show/1442
+ * To test the bug : https://forge.nuiton.org/issues/show/1442
*
* @author tchemit <chemit(a)codelutin.com>
* @since 2.4.2
Modified: trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1124Test.java
===================================================================
--- trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1124Test.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1124Test.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -39,7 +39,7 @@
import javax.swing.table.TableColumnModel;
/**
- * Fix the bug http://nuiton.org/issues/show/1124
+ * Fix the bug https://forge.nuiton.org/issues/show/1124
*
* @author tchemit <chemit(a)codelutin.com>
* @since 2.2.4
Modified: trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1404Test.java
===================================================================
--- trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1404Test.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-maven-plugin/src/test/java/org/nuiton/jaxx/plugin/Bug1404Test.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -27,7 +27,7 @@
import org.junit.Test;
/**
- * Test the bug describe here http://nuiton.org/issues/show/1404
+ * Test the bug describe here https://forge.nuiton.org/issues/show/1404
*
* @author tchemit <chemit(a)codelutin.com>
* @since 2.4.1
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/JAXXUtil.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/JAXXUtil.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/JAXXUtil.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -224,7 +224,7 @@
// tchemit 2010-12-01 : we must the exact method found, some none javaBeans
// api does use different signature for some of them listener
// an exemple is the TableColumnModelListener : http://download.oracle.com/javase/6/docs/api/javax/swing/event/TableColumnM…
- // This fix the bug http://nuiton.org/issues/show/1124
+ // This fix the bug https://forge.nuiton.org/issues/show/1124
Class<?>[] parameterTypes;
if (listenerMethodName != null) {
Modified: trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/editor/FileEditorHandler.java
===================================================================
--- trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/editor/FileEditorHandler.java 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/editor/FileEditorHandler.java 2014-03-01 17:58:08 UTC (rev 2807)
@@ -41,7 +41,7 @@
protected FileEditor view;
/**
- * To set the dialog (see http://nuiton.org/issues/2578)
+ * To set the dialog (see https://forge.nuiton.org/issues/2578)
*
* @since 2.5.12
*/
@@ -125,7 +125,7 @@
}
// show dialog
- // see http://nuiton.org/issues/2578
+ // see https://forge.nuiton.org/issues/2578
boolean hackDialog = dialogOwner != null && dialogOwner.isAlwaysOnTop();
if (hackDialog) {
dialogOwner.setAlwaysOnTop(false);
Modified: trunk/src/site/rst/index.rst
===================================================================
--- trunk/src/site/rst/index.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/index.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -67,15 +67,15 @@
En résumé, pendant la méthode *beforeInit* il ne faut pas toucher aux UIs,
elles ne sont pas encore construites.
-Voir http://nuiton.org/issues/2946.
+Voir https://forge.nuiton.org/issues/2946.
Ajout de nouveaux éditeurs
__________________________
De nouveaux éditeurs sont intégrés dans JAXX, à savoir :
-- éditeur de temps (http://nuiton.org/issues/2924)
-- éditeurs de coordonnées spatiales (http://nuiton.org/issues/2929)
+- éditeur de temps (https://forge.nuiton.org/issues/2924)
+- éditeurs de coordonnées spatiales (https://forge.nuiton.org/issues/2929)
Ils sont intégrés dans la démo de JAXX.
@@ -234,7 +234,7 @@
static java.io.File.separatorChar
</import>
-Voir http://nuiton.org/issues/show/685
+Voir https://forge.nuiton.org/issues/show/685
Meilleure gestion de l'héritage
_______________________________
@@ -264,8 +264,8 @@
Voir
- * http://nuiton.org/issues/show/625
- * http://nuiton.org/issues/show/626
+ * https://forge.nuiton.org/issues/show/625
+ * https://forge.nuiton.org/issues/show/626
Nouvelle api d'arbre
____________________
@@ -275,7 +275,7 @@
Cette api remplace celle du package **jaxx.runtime.swing.navigation**.
-Voir http://nuiton.org/issues/show/666
+Voir https://forge.nuiton.org/issues/show/666
Nouvelle api d'assistant
________________________
@@ -285,7 +285,7 @@
Cette api remplace celle du **jaxx.runtime.swing.wizard.WizardOperationXXX**.
-Voir http://nuiton.org/issues/show/665
+Voir https://forge.nuiton.org/issues/show/665
Ajout de tutoriaux
__________________
@@ -294,9 +294,9 @@
Voir
- * http://nuiton.org/issues/show/640
- * http://nuiton.org/issues/show/641
- * http://nuiton.org/issues/show/642
+ * https://forge.nuiton.org/issues/show/640
+ * https://forge.nuiton.org/issues/show/641
+ * https://forge.nuiton.org/issues/show/642
Présentation
------------
@@ -355,6 +355,10 @@
* ObServe_ - Logiciel de saisie de données concernant la pèche thonière - GPL
+ * Tutti_ - Logiciel de saisie de données concernant la pèche - GPL
+
+ * Sammoa_ - Logiciel de saisie de données d'observation de mannifères marins en vol - GPL
+
* Lima_ - Logiciel de comptabilité française adaptée aux PME - GPL
* Vradi_ - Logiciel de traitement de flux XML - GPL
@@ -367,10 +371,14 @@
.. _simExplorer-si: http://www.simexplorer.org
-.. _ObServe: http://maven-site.forge.codelutin.com/observe/
+.. _ObServe: http://doc.codelutin.com/observe/
-.. _Lima: http://maven-site.chorem.org/lima/
+.. _Tutti: http://doc.codelutin.com/tutti/
+.. _Sammoa: http://doc.codelutin.com/sammoa/
+
+.. _Lima: http://doc.chorem.org/lima/
+
.. _Vradi: http://maven-site.forge.codelutin.com/vradi
.. _Migration: ./migration.html
@@ -387,9 +395,9 @@
.. _NavigationModel: ./NavigationModel.html
-.. _nuiton-validator: http://maven-site.nuiton.org/nuiton-utils/nuiton-validator
+.. _nuiton-validator: http://doc.nuiton.org/nuiton-validator
-.. _eugene: http://maven-site.nuiton.org/eugene
+.. _eugene: http://doc.nuiton.org/eugene
.. _page des goals: ./jaxx-maven-plugin/plugin-info.html
Modified: trunk/src/site/rst/tutos/config.rst
===================================================================
--- trunk/src/site/rst/tutos/config.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/tutos/config.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -35,7 +35,7 @@
Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
-.. _telechargement ici: http://nuiton.org/projects/list_files/jaxx
+.. _telechargement ici: https://forge.nuiton.org/projects/list_files/jaxx
Lancer ce tutoriel
------------------
Modified: trunk/src/site/rst/tutos/css.rst
===================================================================
--- trunk/src/site/rst/tutos/css.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/tutos/css.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -122,7 +122,7 @@
Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
-.. _telechargement ici: http://nuiton.org/projects/list_files/jaxx
+.. _telechargement ici: https://forge.nuiton.org/projects/list_files/jaxx
Lancer ce tutoriel
------------------
Modified: trunk/src/site/rst/tutos/data-binding.rst
===================================================================
--- trunk/src/site/rst/tutos/data-binding.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/tutos/data-binding.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -113,7 +113,7 @@
Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
-.. _telechargement ici: http://nuiton.org/projects/list_files/jaxx
+.. _telechargement ici: https://forge.nuiton.org/projects/list_files/jaxx
Lancer ce tutoriel
------------------
Modified: trunk/src/site/rst/tutos/helloworld.rst
===================================================================
--- trunk/src/site/rst/tutos/helloworld.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/tutos/helloworld.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -168,7 +168,7 @@
Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
-.. _telechargement ici: http://nuiton.org/projects/list_files/jaxx
+.. _telechargement ici: https://forge.nuiton.org/projects/list_files/jaxx
Lancer ce tutoriel
------------------
Modified: trunk/src/site/rst/tutos/helloworld2.rst
===================================================================
--- trunk/src/site/rst/tutos/helloworld2.rst 2014-02-25 15:04:31 UTC (rev 2806)
+++ trunk/src/site/rst/tutos/helloworld2.rst 2014-03-01 17:58:08 UTC (rev 2807)
@@ -122,7 +122,7 @@
Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
-.. _telechargement ici: http://nuiton.org/projects/list_files/jaxx
+.. _telechargement ici: https://forge.nuiton.org/projects/list_files/jaxx
Lancer ce tutoriel
------------------
1
0
See <http://ci.nuiton.org/jenkins/job/jaxx-nightly/2/changes>
Changes:
[Tony CHEMIT] fixes #3093: Release profile invoked twice when release:perform
[Tony CHEMIT] update license files
[Tony CHEMIT] refs #1463 remove SwingSession from widget-extra
[Tony CHEMIT] fixes #1463: Merge nuiton-widgets into Jaxx project (make the module available by default in plugin classp-ath + add doc)
[Tony CHEMIT] fixes #1463: Merge nuiton-widgets into Jaxx project
------------------------------------------
[...truncated 1294 lines...]
[INFO] classpath : <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>
[INFO] includes : [**/compilerTest/cSSTests/*.jaxx]
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Child2.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Pseudoclasses.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/GrandChild.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/GrandChildButton.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/CSSTests.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/SimpleCSS.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Child.jaxx
[INFO] Detects 7 modified jaxx file(s).
[INFO] Generated 7 file(s) in 303.557ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 86.439ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 19.216ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.414ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 13.298ms
[INFO] Nothing to generate - all files are up to date.
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.087ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.042ms
[INFO] Detects 2 modified jaxx file(s).
[INFO] Generated 2 file(s) in 17.28ms
[INFO] Detects 6 modified jaxx file(s).
[INFO] Generated 6 file(s) in 93.29ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 37.69ms
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 47.169ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 44.277ms
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[warn] JAXX detects 1 warning :
<http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>:27
curly braces are unnecessary for script '{System.out.println("Remember kids, only use curly braces where appropriate!")}'
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.386 sec - in org.nuiton.jaxx.plugin.CompilerTest
Running org.nuiton.jaxx.plugin.Bug1751Test
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 29.074ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec - in org.nuiton.jaxx.plugin.Bug1751Test
Running org.nuiton.jaxx.plugin.DataBindingTest
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 88.783ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.097 sec - in org.nuiton.jaxx.plugin.DataBindingTest
Results :
Tests run: 31, Failures: 0, Errors: 0, Skipped: 1
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jaxx-maven-plugin ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>
[INFO]
[INFO] --- maven-plugin-plugin:3.2:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ jaxx-maven-plugin ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:check-auto-container (check-central-safe) @ jaxx-maven-plugin ---
[INFO] Will use repository http://repo1.maven.org/maven2/
[INFO] Will use repository http://maven.nuiton.org/central-releases
[INFO] Skipping goal (runOnce flag is on and goal was already executed).
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-redmine-login) @ jaxx-maven-plugin ---
[INFO] Skipping goal (runOnce flag is on and goal was already executed).
[INFO]
[INFO] --- maven-plugin-plugin:3.2:helpmojo (default) @ jaxx-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java-annotations
[INFO] Mojo extractor for language: java-annotations found 6 mojo descriptors.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ jaxx-maven-plugin ---
[INFO]
2 warnings
[WARNING] Javadoc Warnings
[WARNING] <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>:30: warning - @author tag has no arguments.
[WARNING] <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>:30: warning - @version tag has no arguments.
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/jaxx-maven-plugin/ta…>
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-pgp-passphrase) @ jaxx-maven-plugin ---
[INFO] Exporting server [gpg-signer] username in ${gpg.keyname}
[INFO] Exporting server [gpg-signer] password in ${gpg.passphrase}
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-artifacts) @ jaxx-maven-plugin ---
[INFO] Loaded <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/target/collect-artif…>
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT.jar to <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/target/collect/org.n…>
[INFO] Copying THIRD-PARTY.properties to <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/target/collect/org.n…>
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT-sources.jar to <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/target/collect/org.n…>
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT-javadoc.jar to <http://ci.nuiton.org/jenkins/job/jaxx-nightly/ws/trunk/target/collect/org.n…>
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-attachements) @ jaxx-maven-plugin ---
[WARNING] Skipping goal (No file to collect).
[INFO]
[INFO] --- maven-gpg-plugin:1.4:sign (sign-artifacts) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (analyze) @ jaxx-maven-plugin ---
[INFO] Used declared dependencies found:
[INFO] org.nuiton.jaxx:jaxx-runtime:jar:2.8.2-SNAPSHOT:compile
[INFO] org.nuiton.jaxx:jaxx-validator:jar:2.8.2-SNAPSHOT:compile
[INFO] org.nuiton.jaxx:jaxx-compiler:jar:2.8.2-SNAPSHOT:compile
[INFO] org.apache.maven:maven-plugin-api:jar:2.2.1:provided
[INFO] org.apache.maven:maven-project:jar:2.2.1:provided
[INFO] org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:provided
[INFO] org.nuiton:helper-maven-plugin-api:jar:2.1:compile
[INFO] org.nuiton:nuiton-utils:jar:3.0-rc-2:compile
[INFO] org.nuiton.i18n:nuiton-i18n:jar:3.0:compile
[INFO] commons-logging:commons-logging:jar:1.1.3:compile
[INFO] commons-io:commons-io:jar:2.4:compile
[INFO] com.google.guava:guava:jar:16.0.1:compile
[INFO] javax.help:javahelp:jar:2.0.05:compile
[INFO] org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] junit:junit:jar:4.11:test
[INFO] org.nuiton:helper-maven-plugin-api:jar:tests:2.1:test
[INFO] org.codehaus.plexus:plexus-utils:jar:3.0.17:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.nuiton.jaxx:jaxx-widgets-extra:jar:2.8.2-SNAPSHOT:compile
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JAXX .............................................. SUCCESS [ 16.000 s]
[INFO] JAXX :: Runtime ................................... SUCCESS [ 22.868 s]
[INFO] JAXX :: Validator ................................. SUCCESS [ 13.915 s]
[INFO] JAXX :: Extra Widgets ............................. SUCCESS [ 10.907 s]
[INFO] JAXX :: Compiler .................................. SUCCESS [ 15.170 s]
[INFO] JAXX :: Maven plugin .............................. FAILURE [ 16.442 s]
[INFO] JAXX :: Widgets ................................... SKIPPED
[INFO] JAXX :: Config .................................... SKIPPED
[INFO] JAXX :: Application API ........................... SKIPPED
[INFO] JAXX :: Application Swing ......................... SKIPPED
[INFO] JAXX :: Demo ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:38 min
[INFO] Finished at: 2014-02-25T01:35:43+01:00
[INFO] Final Memory: 94M/1236M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze-only (analyze) on project jaxx-maven-plugin: Dependency problems found -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze-only (analyze) on project jaxx-maven-plugin: Dependency problems found
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.maven.plugin.MojoExecutionException: Dependency problems found
at org.apache.maven.plugin.dependency.analyze.AbstractAnalyzeMojo.execute(AbstractAnalyzeMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 30 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jaxx-maven-plugin
Sending e-mails to: jaxx-commits(a)list.nuiton.org chemit+nuiton-ci(a)codelutin.com
channel stopped
Skipping sonar analysis due to bad build status FAILURE
1
1
Build failed in Jenkins: jaxx-nightly » JAXX :: Maven plugin #2
by admin+ci-nuiton.org@codelutin.com 26 Feb '14
by admin+ci-nuiton.org@codelutin.com 26 Feb '14
26 Feb '14
See <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
Changes:
[Tony CHEMIT] update license files
[Tony CHEMIT] fixes #1463: Merge nuiton-widgets into Jaxx project (make the module available by default in plugin classp-ath + add doc)
------------------------------------------
[...truncated 88 lines...]
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jaxx-maven-plugin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 152 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jaxx-maven-plugin ---
[INFO] Compiling 19 source files to <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[WARNING] bootstrap class path not set in conjunction with -source 1.6
[INFO]
[INFO] --- maven-surefire-plugin:2.16:test (default-test) @ jaxx-maven-plugin ---
[INFO] Surefire report directory: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.nuiton.jaxx.plugin.Bug1750Test
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 665.808ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.186 sec - in org.nuiton.jaxx.plugin.Bug1750Test
Running org.nuiton.jaxx.plugin.I18nTest
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 28.837ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 22.246ms
[INFO] Detects 4 modified jaxx file(s).
[INFO] Generated 4 file(s) in 67.658ms
[INFO] Detects 4 modified jaxx file(s).
[INFO] Generated 4 file(s) in 49.487ms
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 67.828ms
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 36.463ms
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 sec - in org.nuiton.jaxx.plugin.I18nTest
Running org.nuiton.jaxx.plugin.Bug1124Test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in org.nuiton.jaxx.plugin.Bug1124Test
Running org.nuiton.jaxx.plugin.Bug1404Test
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 53.317ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.077 sec - in org.nuiton.jaxx.plugin.Bug1404Test
Running org.nuiton.jaxx.plugin.Bug184Test
[INFO] Will check encoding : UTF-8
[INFO] adding source roots : <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO] classpath : <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO] includes : [**/bug184Test/*.jaxx]
[INFO] will parse org/nuiton/jaxx/plugin/bug184Test/MyPanel.jaxx
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 41.944ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec - in org.nuiton.jaxx.plugin.Bug184Test
Running org.nuiton.jaxx.plugin.Bug1722Test
[INFO] Detects 2 modified jaxx file(s).
[INFO] Generated 2 file(s) in 37.443ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec - in org.nuiton.jaxx.plugin.Bug1722Test
Running org.nuiton.jaxx.plugin.CompilerValidatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in org.nuiton.jaxx.plugin.CompilerValidatorTest
Running org.nuiton.jaxx.plugin.NodeItemTest
findChild
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.nuiton.jaxx.plugin.NodeItemTest
Running org.nuiton.jaxx.plugin.Evolution74Test
[INFO] Detects 6 modified jaxx file(s).
[INFO] Generated 6 file(s) in 84.613ms
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.136 sec - in org.nuiton.jaxx.plugin.Evolution74Test
Running org.nuiton.jaxx.plugin.DecoratorTest
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 15.345ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec - in org.nuiton.jaxx.plugin.DecoratorTest
Running org.nuiton.jaxx.plugin.CompilerTest
[info] Detects 1 modified jaxx file(s).
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 20.999ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 39.477ms
[INFO] Detects 2 modified jaxx file(s).
[INFO] Generated 2 file(s) in 25.215ms
[INFO] Detects 7 modified jaxx file(s).
[INFO] Generated 7 file(s) in 110.082ms
[INFO] Will check encoding : UTF-8
[INFO] adding source roots : <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO] classpath : <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO] includes : [**/compilerTest/cSSTests/*.jaxx]
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Child2.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Pseudoclasses.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/GrandChild.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/GrandChildButton.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/CSSTests.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/SimpleCSS.jaxx
[INFO] will parse org/nuiton/jaxx/plugin/compilerTest/cSSTests/Child.jaxx
[INFO] Detects 7 modified jaxx file(s).
[INFO] Generated 7 file(s) in 303.557ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 86.439ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 19.216ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.414ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 13.298ms
[INFO] Nothing to generate - all files are up to date.
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.087ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 11.042ms
[INFO] Detects 2 modified jaxx file(s).
[INFO] Generated 2 file(s) in 17.28ms
[INFO] Detects 6 modified jaxx file(s).
[INFO] Generated 6 file(s) in 93.29ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 37.69ms
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 47.169ms
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 44.277ms
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[warn] JAXX detects 1 warning :
<http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>:27
curly braces are unnecessary for script '{System.out.println("Remember kids, only use curly braces where appropriate!")}'
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
[info] Detects 1 modified jaxx file(s).
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.386 sec - in org.nuiton.jaxx.plugin.CompilerTest
Running org.nuiton.jaxx.plugin.Bug1751Test
[INFO] Detects 3 modified jaxx file(s).
[INFO] Generated 3 file(s) in 29.074ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec - in org.nuiton.jaxx.plugin.Bug1751Test
Running org.nuiton.jaxx.plugin.DataBindingTest
[INFO] Detects 1 modified jaxx file(s).
[INFO] Generated 1 file(s) in 88.783ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.097 sec - in org.nuiton.jaxx.plugin.DataBindingTest
Results :
Tests run: 31, Failures: 0, Errors: 0, Skipped: 1
[JENKINS] Recording test results
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jaxx-maven-plugin ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO]
[INFO] --- maven-plugin-plugin:3.2:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ jaxx-maven-plugin ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (ensure-no-container-api) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:check-auto-container (check-central-safe) @ jaxx-maven-plugin ---
[INFO] Will use repository http://repo1.maven.org/maven2/
[INFO] Will use repository http://maven.nuiton.org/central-releases
[INFO] Skipping goal (runOnce flag is on and goal was already executed).
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (check-project-files) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-redmine-login) @ jaxx-maven-plugin ---
[INFO] Skipping goal (runOnce flag is on and goal was already executed).
[INFO]
[INFO] --- maven-plugin-plugin:3.2:helpmojo (default) @ jaxx-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java-annotations
[INFO] Mojo extractor for language: java-annotations found 6 mojo descriptors.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 0 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ jaxx-maven-plugin ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ jaxx-maven-plugin ---
[INFO]
2 warnings
[WARNING] Javadoc Warnings
[WARNING] <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>:30: warning - @author tag has no arguments.
[WARNING] <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>:30: warning - @version tag has no arguments.
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/jaxx-nightly/org.nuiton.jaxx$jaxx-maven-pl…>
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- helper-maven-plugin:2.1:share-server-secret (get-pgp-passphrase) @ jaxx-maven-plugin ---
[INFO] Exporting server [gpg-signer] username in ${gpg.keyname}
[INFO] Exporting server [gpg-signer] password in ${gpg.passphrase}
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-artifacts) @ jaxx-maven-plugin ---
[INFO] Loaded /var/local/forge/data/nuiton.org/jenkins/workspace/jaxx-nightly/trunk/target/collect-artifacts.txt
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT.jar to /var/local/forge/data/nuiton.org/jenkins/workspace/jaxx-nightly/trunk/target/collect/org.nuiton.jaxx--jaxx-maven-plugin/jaxx-maven-plugin-2.8.2-SNAPSHOT.jar
[INFO] Copying THIRD-PARTY.properties to /var/local/forge/data/nuiton.org/jenkins/workspace/jaxx-nightly/trunk/target/collect/org.nuiton.jaxx--jaxx-maven-plugin/THIRD-PARTY.properties
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT-sources.jar to /var/local/forge/data/nuiton.org/jenkins/workspace/jaxx-nightly/trunk/target/collect/org.nuiton.jaxx--jaxx-maven-plugin/jaxx-maven-plugin-2.8.2-SNAPSHOT-sources.jar
[INFO] Copying jaxx-maven-plugin-2.8.2-SNAPSHOT-javadoc.jar to /var/local/forge/data/nuiton.org/jenkins/workspace/jaxx-nightly/trunk/target/collect/org.nuiton.jaxx--jaxx-maven-plugin/jaxx-maven-plugin-2.8.2-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- helper-maven-plugin:2.1:collect-files (collect-build-attachements) @ jaxx-maven-plugin ---
[WARNING] Skipping goal (No file to collect).
[INFO]
[INFO] --- maven-gpg-plugin:1.4:sign (sign-artifacts) @ jaxx-maven-plugin ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:analyze-only (analyze) @ jaxx-maven-plugin ---
[INFO] Used declared dependencies found:
[INFO] org.nuiton.jaxx:jaxx-runtime:jar:2.8.2-SNAPSHOT:compile
[INFO] org.nuiton.jaxx:jaxx-validator:jar:2.8.2-SNAPSHOT:compile
[INFO] org.nuiton.jaxx:jaxx-compiler:jar:2.8.2-SNAPSHOT:compile
[INFO] org.apache.maven:maven-plugin-api:jar:2.2.1:provided
[INFO] org.apache.maven:maven-project:jar:2.2.1:provided
[INFO] org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2:provided
[INFO] org.nuiton:helper-maven-plugin-api:jar:2.1:compile
[INFO] org.nuiton:nuiton-utils:jar:3.0-rc-2:compile
[INFO] org.nuiton.i18n:nuiton-i18n:jar:3.0:compile
[INFO] commons-logging:commons-logging:jar:1.1.3:compile
[INFO] commons-io:commons-io:jar:2.4:compile
[INFO] com.google.guava:guava:jar:16.0.1:compile
[INFO] javax.help:javahelp:jar:2.0.05:compile
[INFO] org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] junit:junit:jar:4.11:test
[INFO] org.nuiton:helper-maven-plugin-api:jar:tests:2.1:test
[INFO] org.codehaus.plexus:plexus-utils:jar:3.0.17:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.nuiton.jaxx:jaxx-widgets-extra:jar:2.8.2-SNAPSHOT:compile
[JENKINS] Archiving disabled
1
1
Author: tchemit
Date: 2014-02-25 16:04:31 +0100 (Tue, 25 Feb 2014)
New Revision: 2806
Url: http://nuiton.org/projects/jaxx/repository/revisions/2806
Log:
fixes #3095: updates mavenpom to 5.0
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-02-25 08:41:51 UTC (rev 2805)
+++ trunk/pom.xml 2014-02-25 15:04:31 UTC (rev 2806)
@@ -30,7 +30,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
- <version>4.7</version>
+ <version>5.0</version>
</parent>
<artifactId>jaxx</artifactId>
@@ -154,7 +154,7 @@
<distributionManagement>
<site>
- <id>${platform}</id>
+ <id>doc.${platform}</id>
<url>${our.site.repository}/${projectId}</url>
</site>
</distributionManagement>
1
0
Author: tchemit
Date: 2014-02-25 09:41:51 +0100 (Tue, 25 Feb 2014)
New Revision: 2805
Url: http://nuiton.org/projects/jaxx/repository/revisions/2805
Log:
optimize dependencies
Modified:
trunk/jaxx-maven-plugin/pom.xml
Modified: trunk/jaxx-maven-plugin/pom.xml
===================================================================
--- trunk/jaxx-maven-plugin/pom.xml 2014-02-24 15:32:39 UTC (rev 2804)
+++ trunk/jaxx-maven-plugin/pom.xml 2014-02-25 08:41:51 UTC (rev 2805)
@@ -58,6 +58,7 @@
<groupId>${project.groupId}</groupId>
<artifactId>jaxx-widgets-extra</artifactId>
<version>${project.version}</version>
+ <scope>runtime</scope>
</dependency>
<dependency>
1
0
Author: tchemit
Date: 2014-02-24 16:32:39 +0100 (Mon, 24 Feb 2014)
New Revision: 2804
Url: http://nuiton.org/projects/jaxx/repository/revisions/2804
Log:
fixes #3093: Release profile invoked twice when release:perform
Modified:
trunk/jaxx-application-swing/pom.xml
Modified: trunk/jaxx-application-swing/pom.xml
===================================================================
--- trunk/jaxx-application-swing/pom.xml 2014-02-24 15:02:09 UTC (rev 2803)
+++ trunk/jaxx-application-swing/pom.xml 2014-02-24 15:32:39 UTC (rev 2804)
@@ -49,9 +49,6 @@
<jaxx.autoRecurseInCss>false</jaxx.autoRecurseInCss>
<jaxx.addAutoHandlerUI>true</jaxx.addAutoHandlerUI>
- <!-- Post Release configuration -->
- <skipPostRelease>false</skipPostRelease>
-
</properties>
<dependencies>
1
0
r2803 - in trunk: . jaxx-application-api jaxx-application-swing jaxx-compiler jaxx-config jaxx-maven-plugin jaxx-maven-plugin/src/license jaxx-runtime jaxx-validator jaxx-widgets jaxx-widgets-extra
by tchemit@users.nuiton.org 24 Feb '14
by tchemit@users.nuiton.org 24 Feb '14
24 Feb '14
Author: tchemit
Date: 2014-02-24 16:02:09 +0100 (Mon, 24 Feb 2014)
New Revision: 2803
Url: http://nuiton.org/projects/jaxx/repository/revisions/2803
Log:
update license files
Modified:
trunk/LICENSE.txt
trunk/jaxx-application-api/LICENSE.txt
trunk/jaxx-application-swing/LICENSE.txt
trunk/jaxx-compiler/LICENSE.txt
trunk/jaxx-config/LICENSE.txt
trunk/jaxx-maven-plugin/LICENSE.txt
trunk/jaxx-maven-plugin/src/license/THIRD-PARTY.properties
trunk/jaxx-runtime/LICENSE.txt
trunk/jaxx-validator/LICENSE.txt
trunk/jaxx-widgets-extra/LICENSE.txt
trunk/jaxx-widgets/LICENSE.txt
Modified: trunk/LICENSE.txt
===================================================================
--- trunk/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-application-api/LICENSE.txt
===================================================================
--- trunk/jaxx-application-api/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-application-api/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-application-swing/LICENSE.txt
===================================================================
--- trunk/jaxx-application-swing/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-application-swing/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-compiler/LICENSE.txt
===================================================================
--- trunk/jaxx-compiler/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-compiler/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-config/LICENSE.txt
===================================================================
--- trunk/jaxx-config/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-config/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-maven-plugin/LICENSE.txt
===================================================================
--- trunk/jaxx-maven-plugin/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-maven-plugin/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-maven-plugin/src/license/THIRD-PARTY.properties
===================================================================
--- trunk/jaxx-maven-plugin/src/license/THIRD-PARTY.properties 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-maven-plugin/src/license/THIRD-PARTY.properties 2014-02-24 15:02:09 UTC (rev 2803)
@@ -6,6 +6,7 @@
# - BSD License
# - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
# - Common Public License Version 1.0
+# - GNU GENERAL PUBLIC LICENSE version 2 or higher
# - GNU General Public License - Version 2 with the class path exception
# - Indiana University Extreme! Lab Software License, vesion 1.1.1
# - Lesser General Public License (LGPL)
@@ -13,6 +14,7 @@
# - Lesser General Public License (LPGL)
# - Lesser General Public License (LPGL) v 2.1
# - MIT License
+# - Modified BSD License
# - New BSD License
# - Public Domain
# - The Apache Software License, Version 2.0
@@ -21,13 +23,14 @@
# Please fill the missing licenses for dependencies :
#
#
-#Fri Aug 23 15:15:13 CEST 2013
+#Mon Feb 24 15:57:57 CET 2014
classworlds--classworlds--1.1-alpha-2=http\://classworlds.codehaus.org/lice…
commons-primitives--commons-primitives--1.0=The Apache Software License, Version 2.0
javassist--javassist--3.11.0.GA=The Apache Software License, Version 2.0
nekohtml--xercesMinimal--1.9.6.2=The Apache Software License, Version 2.0
org.codehaus.plexus--plexus-container-default--1.0-alpha-9-stable-1=The Apache Software License, Version 2.0
org.codehaus.plexus--plexus-interactivity-api--1.0-alpha-4=The Apache Software License, Version 2.0
+org.nuiton.thirdparty--sdoc--0.5.0-beta-patchcl=Lesser General Public License (LGPL) v 3.0
org.slf4j--jcl-over-slf4j--1.5.6=MIT license
org.slf4j--slf4j-api--1.5.6=MIT license
org.slf4j--slf4j-jdk14--1.5.6=MIT license
Modified: trunk/jaxx-runtime/LICENSE.txt
===================================================================
--- trunk/jaxx-runtime/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-runtime/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-validator/LICENSE.txt
===================================================================
--- trunk/jaxx-validator/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-validator/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-widgets/LICENSE.txt
===================================================================
--- trunk/jaxx-widgets/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-widgets/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
Modified: trunk/jaxx-widgets-extra/LICENSE.txt
===================================================================
--- trunk/jaxx-widgets-extra/LICENSE.txt 2014-02-24 14:55:51 UTC (rev 2802)
+++ trunk/jaxx-widgets-extra/LICENSE.txt 2014-02-24 15:02:09 UTC (rev 2803)
@@ -10,7 +10,7 @@
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
- 0. Additional Definitions.
+ 0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
@@ -111,7 +111,7 @@
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
- Version.
+ Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
@@ -163,4 +163,3 @@
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
-
1
0
r2802 - trunk/jaxx-widgets-extra/src/main/java/org/nuiton/jaxx/widgets/extra
by tchemit@users.nuiton.org 24 Feb '14
by tchemit@users.nuiton.org 24 Feb '14
24 Feb '14
Author: tchemit
Date: 2014-02-24 15:55:51 +0100 (Mon, 24 Feb 2014)
New Revision: 2802
Url: http://nuiton.org/projects/jaxx/repository/revisions/2802
Log:
refs #1463 remove SwingSession from widget-extra
Removed:
trunk/jaxx-widgets-extra/src/main/java/org/nuiton/jaxx/widgets/extra/SwingSession.java
Deleted: trunk/jaxx-widgets-extra/src/main/java/org/nuiton/jaxx/widgets/extra/SwingSession.java
===================================================================
--- trunk/jaxx-widgets-extra/src/main/java/org/nuiton/jaxx/widgets/extra/SwingSession.java 2014-02-24 14:38:02 UTC (rev 2801)
+++ trunk/jaxx-widgets-extra/src/main/java/org/nuiton/jaxx/widgets/extra/SwingSession.java 2014-02-24 14:55:51 UTC (rev 2802)
@@ -1,804 +0,0 @@
-/*
- * #%L
- * JAXX :: Extra Widgets
- * %%
- * Copyright (C) 2004 - 2010 CodeLutin
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Lesser Public License for more details.
- *
- * You should have received a copy of the GNU General Lesser Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/lgpl-3.0.html>.
- * #L%
- */
-package org.nuiton.jaxx.widgets.extra;
-
-
-import java.awt.BorderLayout;
-import java.awt.Component;
-import java.awt.Container;
-import java.awt.Dialog;
-import java.awt.Frame;
-import java.awt.GraphicsConfiguration;
-import java.awt.GraphicsDevice;
-import java.awt.GraphicsEnvironment;
-import java.awt.Rectangle;
-import java.awt.Window;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.beans.DefaultPersistenceDelegate;
-import java.beans.Encoder;
-import java.beans.ExceptionListener;
-import java.beans.Expression;
-import java.beans.XMLDecoder;
-import java.beans.XMLEncoder;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.Map;
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JScrollPane;
-import javax.swing.JSplitPane;
-import javax.swing.JTabbedPane;
-import javax.swing.JTable;
-import javax.swing.JTextArea;
-import javax.swing.table.AbstractTableModel;
-import javax.swing.table.TableColumn;
-import javax.swing.table.TableModel;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * Use to store and restore position and size of application. Supported widgets
- * are:
- * <li> java.awt.Window (and subclasses)
- * <li> javax.swing.JTabbedPane (and subclasses)
- * <li> javax.swing.JSplitPane (and subclasses)
- * <li> javax.swing.JTable (and subclasses)
- *
- * usage:
- * <li> create SwingSession object
- * <li> add component that you want save
- * <li> explicite call to save
- *
- * You can use same SwingSession for multiple window but in this case you must
- * have setName for each window with different name, otherwize there are
- * collision between window component and result is undetermisitic
- *
- * This code is partialy inspired from http://kenai.com/projects/bsaf/pages/Home
- * project. This project is under LGPL v2.1 license. We can't reuse directly this
- * library because to many fields and methods are private and we can't implements
- * it and modify some behavior.
- *
- * @author poussin
- * @version $Revision$
- *
- * Last update: $Date$
- * by : $Author$
- */
-public class SwingSession {
-
- /** to use log facility, just put in your code: log.info(\"...\"); */
- static private Log log = LogFactory.getLog(SwingSession.class);
-
- protected File file;
- protected boolean autoSave;
- protected LinkedHashSet<Component> registeredComponent =
- new LinkedHashSet<Component>();
- /** State object registered to get and set State.
- * key: class of component managed by the state; value: the state*/
- protected Map<Class, State> stateManager = new HashMap<Class, State>();
- /** state of all component added with add method.
- * key: path of compoenent; value: State */
- protected Map<String, State> states;
-
- public SwingSession(File file, boolean autoSave) {
- this.file = file;
- this.autoSave = autoSave;
- stateManager.put(Window.class, new WindowState());
- stateManager.put(JTable.class, new JTableState());
- stateManager.put(JTabbedPane.class, new JTabbedPaneState());
- stateManager.put(JSplitPane.class, new JSplitPaneState());
-
- states = loadStates(file);
- if (states == null) {
- states = new HashMap<String, State>();
- }
- }
-
- @Override
- protected void finalize() throws Throwable {
- save();
- super.finalize();
- }
-
-
- /* If an exception occurs in the XMLEncoder/Decoder, we want
- * to throw an IOException. The exceptionThrow listener method
- * doesn't throw a checked exception so we just set a flag
- * here and check it when the encode/decode operation finishes
- */
- private static class AbortExceptionListener implements ExceptionListener {
-
- public Exception exception = null;
-
- @Override
- public void exceptionThrown(Exception e) {
- if (exception == null) {
- exception = e;
- }
- }
- }
-
- /* There are some (old) Java classes that aren't proper beans. Rectangle
- * is one of these. When running within the secure sandbox, writing a
- * Rectangle with XMLEncoder causes a security exception because
- * DefaultPersistenceDelegate calls Field.setAccessible(true) to gain
- * access to private fields. This is a workaround for that problem.
- * A bug has been filed, see JDK bug ID 4741757
- */
- private static class RectanglePD extends DefaultPersistenceDelegate {
-
- public RectanglePD() {
- super(new String[]{"x", "y", "width", "height"});
- }
-
- @Override
- protected Expression instantiate(Object oldInstance, Encoder out) {
- Rectangle oldR = (Rectangle) oldInstance;
- Object[] constructorArgs = new Object[]{
- oldR.x, oldR.y, oldR.width, oldR.height
- };
- return new Expression(oldInstance, oldInstance.getClass(), "new", constructorArgs);
- }
- }
-
- public void save() {
- updateState();
- AbortExceptionListener el = new AbortExceptionListener();
- ByteArrayOutputStream bst = new ByteArrayOutputStream();
- XMLEncoder e = null;
- /* Buffer the XMLEncoder's output so that decoding errors don't
- * cause us to trash the current version of the specified file.
- */
- try {
- e = new XMLEncoder(bst);
- e.setPersistenceDelegate(Rectangle.class, new RectanglePD());
- e.setExceptionListener(el);
- e.writeObject(states);
- } finally {
- if (e != null) {
- e.close();
- }
- }
- if (el.exception != null) {
- log.warn("save failed \"" + file + "\"", el.exception);
- } else {
- OutputStream ost = null;
- try {
- ost = new FileOutputStream(file);
- ost.write(bst.toByteArray());
- } catch (IOException eee) {
- log.warn("save failed \"" + file + "\"", eee);
- } finally {
- if (ost != null) {
- try {
- ost.close();
- } catch (IOException eee) {
- log.warn("can't close properly \"" + file + "\"", eee);
- }
- }
- }
- }
- }
-
- /**
- * Loads the states from the file
- */
- public Map<String, State> loadStates(File file) {
- Map<String, State> result = null;
- if (file.exists()) {
- XMLDecoder d = null;
- try {
- InputStream ist = new FileInputStream(file);
- d = new XMLDecoder(ist);
- AbortExceptionListener eee = new AbortExceptionListener();
- d.setExceptionListener(eee);
- Object bean = d.readObject();
- if (eee.exception != null) {
- log.warn("load failed \"" + file + "\"", eee.exception);
- } else {
- result = (Map<String, State>) bean;
- }
- } catch (IOException eee) {
- log.warn("load failed \"" + file + "\"", eee);
- } finally {
- if (d != null) {
- d.close();
- }
- }
- }
- return result;
- }
-
- public void updateState() {
- walkThrowComponent("", registeredComponent,
- new SaveStateAction());
- }
-
- public void add(Component c) {
- if (registeredComponent.contains(c)) {
- log.warn(String.format(
- "Component already added %s(%s)", c.getClass(), c.getName()));
- } else {
- registeredComponent.add(c);
- walkThrowComponent("", Collections.singleton(c),
- new RestoreStateAction());
- }
- }
-
- /**
- * Remove component from component to save
- * @param c
- */
- public void remove(Component c) {
- registeredComponent.remove(c);
- }
-
- protected String getComponentName(Component c) {
- String name = c.getName();
- if (name == null) {
- int n = c.getParent().getComponentZOrder(c);
- if (n >= 0) {
- Class clazz = c.getClass();
- name = clazz.getSimpleName();
- if (name.length() == 0) {
- name = "Anonymous" + clazz.getSuperclass().getSimpleName();
- }
- name = name + n;
- } else {
- // Implies that the component tree is changing
- // while we're computing the path. Punt.
- log.warn("Couldn't compute pathname for " + c);
- }
- }
- return name;
- }
-
- public State getStateManager(Class clazz) {
- State result = null;
- while (result == null && clazz != null) {
- result = stateManager.get(clazz);
- clazz = clazz.getSuperclass();
- }
- return result;
- }
-
- public State getStates(String path) {
- return states.get(path);
- }
-
- public void setStates(String path, State state) {
- this.states.put(path, state);
- }
-
- protected void walkThrowComponent(
- String path, Collection<Component> roots, Action action) {
- for (Component root : roots) {
- if (root != null) {
- String pathname = path + "/" + getComponentName(root);
- State state = getStateManager(root.getClass());
- if (state != null) {
- action.doAction(this, pathname, root);
- }
- if (root instanceof Container) {
- Component[] children = ((Container) root).getComponents();
- if ((children != null) && (children.length > 0)) {
- walkThrowComponent(pathname, Arrays.asList(children), action);
- }
- }
- if (root instanceof JFrame) {
- Component[] children = ((JFrame) root).getContentPane().getComponents();
- if ((children != null) && (children.length > 0)) {
- walkThrowComponent(pathname, Arrays.asList(children), action);
- }
- }
- }
- }
- }
-
- static public interface Action {
- public void doAction(SwingSession session, String path, Component c);
- }
-
- static public class SaveStateAction implements Action {
- @Override
- public void doAction(SwingSession session, String path, Component c) {
- State manager = session.getStateManager(c.getClass());
- State state = manager.getState(c);
- session.setStates(path, state);
- }
- }
-
- static public class RestoreStateAction implements Action {
- @Override
- public void doAction(SwingSession session, String path, Component c) {
- State manager = session.getStateManager(c.getClass());
- State state = session.getStates(path);
- if (state != null) {
- manager.setState(c, state);
- }
- }
- }
-
- /**
- * get(save) and set(restore) state of object passed in argument
- */
- static public interface State {
- public State getState(Object o);
- public void setState(Object o, State state);
- }
-
- /**
- * State for JTabbedPane
- */
- static public class JTabbedPaneState implements State {
-
- protected int selectedIndex = -1;
- protected int tabCount;
-
- public JTabbedPaneState() {
- }
-
- public int getSelectedIndex() {
- return selectedIndex;
- }
-
- public void setSelectedIndex(int selectedIndex) {
- this.selectedIndex = selectedIndex;
- }
-
- public int getTabCount() {
- return tabCount;
- }
-
- public void setTabCount(int tabCount) {
- this.tabCount = tabCount;
- }
-
-
- protected JTabbedPane checkComponent(Object o) {
- if (o == null) {
- throw new IllegalArgumentException("null component");
- }
- if (!(o instanceof JTabbedPane)) {
- throw new IllegalArgumentException("invalid component");
- }
- return (JTabbedPane) o;
- }
-
- @Override
- public State getState(Object o) {
- JTabbedPaneState result = new JTabbedPaneState();
-
- JTabbedPane p = checkComponent(o);
- result.setSelectedIndex(p.getSelectedIndex());
- result.setTabCount(p.getTabCount());
-
- return result;
- }
-
- @Override
- public void setState(Object o, State state) {
- if (state == null) {
- return;
- }
- if (state instanceof JTabbedPaneState) {
- JTabbedPane p = checkComponent(o);
- JTabbedPaneState tps = (JTabbedPaneState) state;
- if (tps.getSelectedIndex() != -1
- && p.getTabCount() == tps.getTabCount()) {
- p.setSelectedIndex(tps.getSelectedIndex());
- }
- } else {
- throw new IllegalArgumentException("invalid state");
- }
- }
- }
-
- /**
- * State for JSplit
- * FIXME add listener for divider move action
- */
- static public class JSplitPaneState implements State {
-
- protected int dividerLocation = -1;
- protected int orientation = JSplitPane.HORIZONTAL_SPLIT;
-
- public JSplitPaneState() {
- }
-
- public int getDividerLocation() {
- return dividerLocation;
- }
-
- public void setDividerLocation(int dividerLocation) {
- this.dividerLocation = dividerLocation;
- }
-
- public int getOrientation() {
- return orientation;
- }
-
- public void setOrientation(int orientation) {
- this.orientation = orientation;
- }
-
- protected JSplitPane checkComponent(Object o) {
- if (o == null) {
- throw new IllegalArgumentException("null component");
- }
- if (!(o instanceof JSplitPane)) {
- throw new IllegalArgumentException("invalid component");
- }
- return (JSplitPane) o;
- }
-
- @Override
- public State getState(Object o) {
- JSplitPane p = checkComponent(o);
-
- JSplitPaneState result = new JSplitPaneState();
- result.setDividerLocation(p.getUI().getDividerLocation(p));
- result.setOrientation(p.getOrientation());
-
- return result;
- }
-
- @Override
- public void setState(Object o, State state) {
- if (state == null) {
- return;
- }
- JSplitPane p = checkComponent(o);
- if (state instanceof JSplitPaneState) {
- JSplitPaneState sps = (JSplitPaneState) state;
- if (sps.getDividerLocation() != -1
- && p.getOrientation() == sps.getOrientation()) {
- p.setDividerLocation(sps.getDividerLocation());
- }
- } else {
- throw new IllegalArgumentException("invalid state");
- }
- }
- }
-
- /**
- * State for JTable.
- * TODO add support for column order change
- */
- static public class JTableState implements State {
-
- protected int[] columnWidths = new int[0];
-
- public JTableState() {
- }
-
- public JTableState(int[] columnWidths) {
- this.columnWidths = columnWidths;
- }
-
- public int[] getColumnWidths() {
- return columnWidths;
- }
-
- public void setColumnWidths(int[] columnWidths) {
- this.columnWidths = columnWidths;
- }
-
- protected JTable checkComponent(Object o) {
- if (o == null) {
- throw new IllegalArgumentException("null component");
- }
- if (!(o instanceof JTable)) {
- throw new IllegalArgumentException("invalid component");
- }
- return (JTable) o;
- }
-
- @Override
- public State getState(Object o) {
- JTable table = checkComponent(o);
- int[] columnWidths = new int[table.getColumnCount()];
- boolean resizableColumnExists = false;
- for (int i = 0; i < columnWidths.length; i++) {
- TableColumn tc = table.getColumnModel().getColumn(i);
- columnWidths[i] = (tc.getResizable()) ? tc.getWidth() : -1;
- if (tc.getResizable()) {
- resizableColumnExists = true;
- }
- }
- JTableState result = null;
- if (resizableColumnExists) {
- result = new JTableState();
- result.setColumnWidths(columnWidths);
- }
- return result;
- }
-
- @Override
- public void setState(Object o, State state) {
- if (!(state instanceof JTableState)) {
- throw new IllegalArgumentException("invalid state");
- }
- JTable table = checkComponent(o);
- int[] columnWidths = ((JTableState) state).getColumnWidths();
- if (columnWidths != null
- && table.getColumnCount() == columnWidths.length) {
- for (int i = 0; i < columnWidths.length; i++) {
- if (columnWidths[i] != -1) {
- TableColumn tc = table.getColumnModel().getColumn(i);
- if (tc.getResizable()) {
- tc.setPreferredWidth(columnWidths[i]);
- }
- }
- }
- }
- }
- }
-
- /**
- * State for Window
- */
- static public class WindowState implements State {
- private static final String WINDOW_STATE_NORMAL_BOUNDS =
- "WindowState.normalBounds";
-
- protected Rectangle bounds;
- protected Rectangle gcBounds;
- protected int frameState = Frame.NORMAL;
-
- public WindowState() {
- }
-
- public WindowState(Rectangle bounds, Rectangle gcBounds, int frameState) {
- this.bounds = new Rectangle(bounds);
- this.gcBounds = new Rectangle(gcBounds);
- this.frameState = frameState;
- }
-
- public Rectangle getBounds() {
- return bounds;
- }
-
- public void setBounds(Rectangle bounds) {
- this.bounds = bounds;
- }
-
- public Rectangle getGcBounds() {
- return gcBounds;
- }
-
- public void setGcBounds(Rectangle gcBounds) {
- this.gcBounds = gcBounds;
- }
-
- public int getFrameState() {
- return frameState;
- }
-
- public void setFrameState(int frameState) {
- this.frameState = frameState;
- }
-
- protected Window checkComponent(Object o) {
- if (o == null) {
- throw new IllegalArgumentException("null component");
- }
- if (!(o instanceof Window)) {
- throw new IllegalArgumentException("invalid component");
- }
- return (Window) o;
- }
-
- /**
- * Checks whether the window supports resizing
- * @param window the {@code Window} to be checked
- * @return true if the window supports resizing
- */
- protected static boolean isResizable(Window window) {
- boolean resizable = true;
- if (window instanceof Frame) {
- resizable = ((Frame) window).isResizable();
- } else if (window instanceof Dialog) {
- resizable = ((Dialog) window).isResizable();
- }
- return resizable;
- }
-
- /**
- * Gets {@code Window} bounds from the client property
- * @param window the source {@code Window}
- * @return bounds from the client property
- */
- protected static Rectangle getWindowNormalBounds(Window window) {
- Rectangle result = null;
- if (window instanceof JFrame) {
- Object res = ((JFrame) window).getRootPane().getClientProperty(
- WINDOW_STATE_NORMAL_BOUNDS);
- if (res instanceof Rectangle) {
- result = (Rectangle) res;
- }
- }
- return result;
- }
-
- /**
- * Calculates virtual graphic bounds.
- * On multiscreen systems all screens are united into one virtual screen.
- * @return the graphic bounds
- */
- public static Rectangle computeVirtualGraphicsBounds() {
- Rectangle virtualBounds = new Rectangle();
- GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
- GraphicsDevice[] gs = ge.getScreenDevices();
- for (GraphicsDevice gd : gs) {
- GraphicsConfiguration gc = gd.getDefaultConfiguration();
- virtualBounds = virtualBounds.union(gc.getBounds());
- }
- return virtualBounds;
- }
-
- /**
- * Puts {@code Window} bounds to client property.
- * @param window the target {@code Window}
- * @param bounds bounds
- */
- public static void putWindowNormalBounds(Window window, Rectangle bounds) {
- if (window instanceof JFrame) {
- ((JFrame) window).getRootPane().putClientProperty(
- WINDOW_STATE_NORMAL_BOUNDS, bounds);
- }
- }
-
- @Override
- public State getState(Object o) {
- Window c = checkComponent(o);
- int frameState = Frame.NORMAL;
- if (c instanceof Frame) {
- frameState = ((Frame) c).getExtendedState();
- }
- GraphicsConfiguration gc = c.getGraphicsConfiguration();
- Rectangle gcBounds = (gc == null) ? null : gc.getBounds();
- Rectangle frameBounds = c.getBounds();
-
- /* If this is a JFrame created by FrameView and it's been maximized,
- * retrieve the frame's normal (not maximized) bounds. More info:
- * see FrameStateListener#windowStateChanged in FrameView.
- */
- if ((c instanceof JFrame) && (0 != (frameState & Frame.MAXIMIZED_BOTH))) {
- frameBounds = getWindowNormalBounds(c);
- }
-
- WindowState result = null;
- if (frameBounds != null && !frameBounds.isEmpty()) {
- result = new WindowState();
- result.setBounds(frameBounds);
- result.setGcBounds(gcBounds);
- result.setFrameState(frameState);
- }
-
- return result;
- }
-
- @Override
- public void setState(Object o, State state) {
- Window w = checkComponent(o);
- if ((state != null) && !(state instanceof WindowState)) {
- throw new IllegalArgumentException("invalid state");
- }
- WindowState windowState = (WindowState) state;
- if (windowState.getBounds() != null) {
- putWindowNormalBounds(w, windowState.getBounds());
- if (!w.isLocationByPlatform() && (state != null)) {
-
- Rectangle gcBounds0 = windowState.getGcBounds();
- if (gcBounds0 != null && isResizable(w)) {
- if (computeVirtualGraphicsBounds().contains(gcBounds0.getLocation())) {
- w.setBounds(windowState.getBounds());
- } else {
- w.setSize(windowState.getBounds().getSize());
- }
- }
- }
- if (w instanceof Frame) {
- ((Frame) w).setExtendedState(windowState.getFrameState());
- }
- }
- }
-
- }
-
-
- /**
- * Just for test rapidly
- * @param args
- */
- static public void main(String[] args) {
- final SwingSession session =
- new SwingSession(new File("/tmp/SwingSession.config"), false);
-
- JFrame frame = new JFrame("truc");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setBounds(10, 20, 300, 500);
-
- TableModel dataModel = new AbstractTableModel() {
-
- @Override
- public String getColumnName(int column) {
- return "c" + column;
- }
-
- @Override
- public int getColumnCount() {
- return 5;
- }
-
- @Override
- public int getRowCount() {
- return 10;
- }
-
- @Override
- public Object getValueAt(int row, int col) {
- return new Integer(row * col);
- }
- };
- JTable table = new JTable(dataModel);
- table.setName("MaTable");
-
- JTabbedPane tab = new JTabbedPane();
- tab.setName("MaTab");
- tab.add("tab1", new JTextArea());
- tab.add("tab2", new JTextArea());
- tab.add("tab3", new JTextArea());
-
- JSplitPane split = new JSplitPane();
- split.setTopComponent(new JScrollPane(table));
- split.setBottomComponent(tab);
-
- JButton button = new JButton("Save");
- button.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- session.save();
- }
- });
-
- frame.getContentPane().setLayout(new BorderLayout());
- frame.getContentPane().add(button, BorderLayout.NORTH);
- frame.getContentPane().add(split, BorderLayout.CENTER);
-
- frame.setVisible(true);
- session.add(frame);
- session.save();
- }
-}
1
0