Buix-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
- 1440 discussions
r902 - in lutinjaxx/trunk: jaxx-core jaxx-core/src/site/fr/rst jaxx-core/src/site/fr/rst/examples maven-jaxx-plugin maven-jaxx-plugin/src/site maven-jaxx-plugin/src/site/resources src/site src/site/resources
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 15:38:04 +0000 (Sat, 11 Oct 2008)
New Revision: 902
Added:
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Calculator-screenshot.gif
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components-screenshot.gif
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components.jaxx.rst
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Counter-screenshot.gif
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyle-screenshot.gif
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyles.jaxx.rst
lutinjaxx/trunk/jaxx-core/src/site/fr/rst/exemples.rst
lutinjaxx/trunk/maven-jaxx-plugin/src/site/resources/
lutinjaxx/trunk/maven-jaxx-plugin/src/site/resources/jaxx.png
lutinjaxx/trunk/src/site/resources/
lutinjaxx/trunk/src/site/resources/jaxx.png
Modified:
lutinjaxx/trunk/jaxx-core/changelog
lutinjaxx/trunk/maven-jaxx-plugin/changelog
Log:
improve site (begin only...)
Modified: lutinjaxx/trunk/jaxx-core/changelog
===================================================================
--- lutinjaxx/trunk/jaxx-core/changelog 2008-10-11 14:12:42 UTC (rev 901)
+++ lutinjaxx/trunk/jaxx-core/changelog 2008-10-11 15:38:04 UTC (rev 902)
@@ -1,4 +1,5 @@
ver-0-5 chemit 20081002
+ * 20081011 [chemit] improve site
* 20081011 [chemit] fix bug on JavaFileParser : works again
* 20081002 [chemit] Using lutinproject 3.0, changing groupId to org.codelutin
* 20081002 [chemit] use a single module jaxx-core (no more core, runtime and jaxx-swing modules)
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Calculator-screenshot.gif
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Calculator-screenshot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components-screenshot.gif
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components-screenshot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components.jaxx.rst
===================================================================
--- lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components.jaxx.rst (rev 0)
+++ lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Components.jaxx.rst 2008-10-11 15:38:04 UTC (rev 902)
@@ -0,0 +1,39 @@
+===================
+Examples/Components
+===================
+
+The Components demo displays many different Swing components being used in a variety of ways; it is JAXX's equivalent
+of the SwingSet demo. Various pages use advanced features such as data binding, scripting, event handling, and
+CSS stylesheets.
+
+Screen shot
+-----------
+
+.. image:: Components-screenshot.gif
+
+Set it in action
+----------------
+
+To run this example in Java Web Start, click the following link: webstart.gif
+
+To compile and run it yourself, first follow the instructions for installing JAXX. Then download and save the source
+code using the link below. Once you have done that, compile and run it as follows:
+
+::
+
+ c:\jaxx\examples\Components> jaxxc Components.jaxx
+ c:\jaxx\examples\Components> java -classpath .;c:\jaxx\lib\jaxx-runtime.jar Components
+
+The first command above assumes that you are in the directory containing the Components.jaxx file. Compiling it as
+shown will produce a class file named Components.class in the current directory, and because you were in the same
+directory as the JAXX file the resulting class will not be placed in a package (its fully-qualified name is
+just Components).
+
+At this point Components is a perfectly ordinary Java class, and the only special requirement to run it is that
+jaxx-runtime.jar be in the classpath.
+
+Source code
+-----------
+
+Unlike the other examples, the source code for Components is too big to display here. You can view it yourself by
+downloading JAXX, and you can also view the source code for the individual demos by clicking the "Source" tabs.
\ No newline at end of file
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Counter-screenshot.gif
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/Counter-screenshot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyle-screenshot.gif
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyle-screenshot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyles.jaxx.rst
===================================================================
--- lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyles.jaxx.rst (rev 0)
+++ lutinjaxx/trunk/jaxx-core/src/site/fr/rst/examples/LabelStyles.jaxx.rst 2008-10-11 15:38:04 UTC (rev 902)
@@ -0,0 +1,37 @@
+====================
+Examples/LabelStyles
+====================
+
+This example program creates a number of components which are used to control the appearance of a JLabel.
+Everything is performed through data binding; there are no script tags or explicit event handlers anywhere.
+
+Screen shot
+-----------
+
+.. image:: LabelStyle-screenshot.gif
+
+Set it in action
+----------------
+
+To run this example in Java Web Start, click the following link: webstart.gif
+
+To compile and run it yourself, first follow the instructions for installing JAXX. Then download and save the
+source code using the link below. Once you have done that, compile and run it as follows:
+
+::
+
+ c:\jaxx\examples> jaxxc LabelStyle.jaxx
+ c:\jaxx\examples> java -classpath .;c:\jaxx\lib\jaxx-runtime.jar LabelStyle
+
+The first command above assumes that you are in the directory containing the LabelStyle.jaxx file. Compiling it as
+shown will produce a class file named LabelStyle.class in the current directory, and because you were in the same
+directory as the JAXX file the resulting class will not be placed in a package (its fully-qualified name is just LabelStyle).
+
+At this point LabelStyle is a perfectly ordinary Java class, and the only special requirement to run it is
+that jaxx-runtime.jar be in the classpath.
+
+
+Source code
+-----------
+
+
Added: lutinjaxx/trunk/jaxx-core/src/site/fr/rst/exemples.rst
===================================================================
--- lutinjaxx/trunk/jaxx-core/src/site/fr/rst/exemples.rst (rev 0)
+++ lutinjaxx/trunk/jaxx-core/src/site/fr/rst/exemples.rst 2008-10-11 15:38:04 UTC (rev 902)
@@ -0,0 +1,24 @@
+========
+Exemples
+========
+
+Here are some simple example programs to give you an idea of what JAXX is all about:
+
+ * JAXXEdit - A complete application written using JAXX for the GUI.
+
+ * Components_
+ Comprehensive demo which displays most of the Swing components. Demonstrates every major feature of JAXX, including data binding, scripting, and CSS stylesheets.
+
+ * LabelStyles_ - Uses data binding to edit the appearance of a JLabel. Shows off the power and usefulness of data binding well.
+
+ * Calculator_ - Four-function calculator. Based on the XUL Grand Coding Challenge.
+
+ * Counter_ - simple data binding and scripting example. Based on the XUL Grand Coding Challenge.
+
+.. _Components: examples/Components.jaxx.html
+
+.. _LabelStyles: examples/LabelStyles.jaxx.html
+
+.. _Calculator: examples/Calculator.jaxx.html
+
+.. _Counter: examples/Counter.jaxx.html
\ No newline at end of file
Modified: lutinjaxx/trunk/maven-jaxx-plugin/changelog
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/changelog 2008-10-11 14:12:42 UTC (rev 901)
+++ lutinjaxx/trunk/maven-jaxx-plugin/changelog 2008-10-11 15:38:04 UTC (rev 902)
@@ -1,4 +1,5 @@
ver-0-5 chemit 20081002
+ * 20081011 [chemit] improve site
* 20081011 [chemit] refactor tests of the plugin using maven-plugin-testing-harness plugin
* 20081002 [chemit] Using lutinpluginproject 3.0, changing groupId to org.codelutin
* 20081002 [chemit] Make nearly all tests works again...
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/site/resources/jaxx.png
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/maven-jaxx-plugin/src/site/resources/jaxx.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: lutinjaxx/trunk/src/site/resources/jaxx.png
===================================================================
(Binary files differ)
Property changes on: lutinjaxx/trunk/src/site/resources/jaxx.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
1
0
r901 - in lutinjaxx/trunk/maven-jaxx-plugin/src/test: java resources resources/testcases resources/testcases/i18n/title resources/testcases/i18n/tooltiptext
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:12:42 +0000 (Sat, 11 Oct 2008)
New Revision: 901
Added:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/force/
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/title/JTabbedPane2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/tooltiptext/JTabbedPane3.jaxx
Removed:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Copied: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases (from rev 884, lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases)
Copied: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/force (from rev 885, lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/force)
Copied: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/title/JTabbedPane2.jaxx (from rev 892, lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane2.jaxx)
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/title/JTabbedPane2.jaxx (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/title/JTabbedPane2.jaxx 2008-10-11 14:12:42 UTC (rev 901)
@@ -0,0 +1,5 @@
+<JTabbedPane>
+ <tab id="testId" title='test.title'>
+ <JLabel text='testLabel'/>
+ </tab>
+</JTabbedPane>
\ No newline at end of file
Copied: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/tooltiptext/JTabbedPane3.jaxx (from rev 892, lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane3.jaxx)
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/tooltiptext/JTabbedPane3.jaxx (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/testcases/i18n/tooltiptext/JTabbedPane3.jaxx 2008-10-11 14:12:42 UTC (rev 901)
@@ -0,0 +1,5 @@
+<JTabbedPane>
+ <tab id="testId" toolTipText='test.toolTipText'>
+ <JLabel text='yo'/>
+ </tab>
+</JTabbedPane>
\ No newline at end of file
1
0
r900 - in lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases: CSSTests Initializers InnerClasses OverridingDataBindings Script SpecialSubclassing errors errors/dependencies force i18n/text i18n/title i18n/tooltiptext
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:11:34 +0000 (Sat, 11 Oct 2008)
New Revision: 900
Removed:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/CSSTests.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChild.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChildButton.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Pseudoclasses.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/SimpleCSS.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Initializers/Initializers.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/InnerClasses/InnerClasses.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/CurrentTime.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverriddenCurrentTime.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverridingDataBindings.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Script/JScriptInitializer.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest1.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest1.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest1.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/SpecialSubclassing.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConflictingPackages.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConstraintsParseError.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DataBindingParseError.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DuplicateIDs.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/EventHandlerParseError.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidID.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidRootTag.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidXML.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemDuplicateValues.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemNoValue.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/MixedContent.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowOutsideOfTable.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowWrongChild.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptNotFound.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptParseError.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptSourceAndInline.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleNotFound.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleParseError.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleSourceAndInline.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabOutsideOfTabbedPane.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabbedPaneWrongChild.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TableWrongChild.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyCellChildren.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyScrollPaneChildren.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManySplitPaneChildren.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyTabChildren.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedAttribute.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedEvent.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedPseudoclass.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.css
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.script
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/force/JButton.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/text/JButton.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JDialog.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JButton.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane3.jaxx
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/CSSTests.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/CSSTests.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/CSSTests.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,24 +0,0 @@
-<Application title='CSSTests'>
- <style>
- Application { lookAndFeel: {lookAndFeel.getSelectedValue()}; }
- </style>
-
- <JMenuBar>
- <JMenu text='View'>
- <JMenu text='Look and Feel'>
- <JRadioButtonMenuItem text='Ocean' value='cross_platform' buttonGroup='lookAndFeel' selected='true'/>
- <JRadioButtonMenuItem text='System' value='system' buttonGroup='lookAndFeel'/>
- </JMenu>
- </JMenu>
- </JMenuBar>
-
- <JTabbedPane>
- <tab title='Simple Tests'>
- <SimpleCSS/>
- </tab>
-
- <tab title='Pseudoclasses'>
- <Pseudoclasses/>
- </tab>
- </JTabbedPane>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChild.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChild.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChild.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,28 +0,0 @@
-<JPanel layout='{new BorderLayout()}'>
- <script>
- public String getText() {
- return grandChild.getText();
- }
-
-
- public void setText(String Text) {
- grandChild.setText(Text);
- }
-
-
- public Color getForeground() {
- if (grandChild != null)
- return grandChild.getForeground();
- else
- return Color.BLACK;
- }
-
-
- public void setForeground(Color foreground) {
- if (grandChild != null)
- grandChild.setForeground(foreground);
- }
- </script>
-
- <GrandChildButton id='grandChild'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChildButton.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChildButton.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/GrandChildButton.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<JButton/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Pseudoclasses.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Pseudoclasses.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Pseudoclasses.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,99 +0,0 @@
-<JPanel layout='{new GridLayout(0, 2, 6, 6)}'>
- <!-- each checkbox has both its own test and all of the ones that came before in order
- to make sure that all of the pseudoclass overrides works properly - only the last
- pair should have any effect -->
- <style>
- #test1:enabled { text: "Enabled"; }
- #test1:disabled { text: "Disabled"; }
-
- #test2:enabled { text: "Enabled"; }
- #test2:disabled { text: "Disabled"; }
- #test2:focused { text: "Focused"; }
- #test2:unfocused { text: "Unfocused"; }
-
- #test3:enabled { text: "Enabled"; }
- #test3:disabled { text: "Disabled"; }
- #test3:focused { text: "Focused"; }
- #test3:unfocused { text: "Unfocused"; }
- #test3:selected { text: "Selected"; }
- #test3:deselected { text: "Deselected"; }
-
- #test4:enabled { text: "Enabled"; }
- #test4:disabled { text: "Disabled"; }
- #test4:focused { text: "Focused"; }
- #test4:unfocused { text: "Unfocused"; }
- #test4:selected { text: "Selected"; }
- #test4:deselected { text: "Deselected"; }
- #test4:mouseover { text: "Mouseover"; }
- #test4:mouseout { text: "Mouseout"; }
-
- #test5:enabled { text: "Enabled"; }
- #test5:disabled { text: "Disabled"; }
- #test5:focused { text: "Focused"; }
- #test5:unfocused { text: "Unfocused"; }
- #test5:selected { text: "Selected"; }
- #test5:deselected { text: "Deselected"; }
- #test5:mouseover { text: "Mouseover"; }
- #test5:mouseout { text: "Mouseout"; }
- #test5:mousedown { text: "Mousedown"; }
- #test5:mouseup { text: "Mouseup"; }
-
- #test6:{object.isSelected()} { text: "Selected"; }
-
- #test7:selected { text: { "you shouldn't see this".toUpperCase() } }
- #test7:selected { text: { currentTime }; }
-
- #test8:mouseover { text: { test8Field.getText() }; }
- </style>
-
- <script>
- import java.text.*;
- import javax.swing.Timer;
-
- DateFormat dateFormat = DateFormat.getTimeInstance();
- String currentTime = dateFormat.format(new Date());
-
- Timer timer = new Timer(1000, new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- currentTime = dateFormat.format(new Date());
- }
- });
-
- timer.start();
- </script>
-
- <JPanel border='{BorderFactory.createTitledBorder("Enabled/Disabled")}'>
- <JCheckBox text="You shouldn't see this" enabled='{enabledCB.isSelected()}' id='test1'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Focused/Unfocused")}'>
- <JCheckBox text="You shouldn't see this" enabled='{enabledCB.isSelected()}' id='test2'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Selected/Deselected")}'>
- <JCheckBox text="You shouldn't see this" enabled='{enabledCB.isSelected()}' id='test3'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Mouseover/Mouseout")}'>
- <JCheckBox text="You shouldn't see this" enabled='{enabledCB.isSelected()}' id='test4'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Mouseup/Mousedown")}'>
- <JCheckBox text="You shouldn't see this" enabled='{enabledCB.isSelected()}' id='test5'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Programmatic Selected")}'>
- <JCheckBox text='Unselected' enabled='{enabledCB.isSelected()}' id='test6'/>
- </JPanel>
-
- <JPanel border='{BorderFactory.createTitledBorder("Pseudoclass Data Binding")}'>
- <JCheckBox text='Select to see current time' enabled='{enabledCB.isSelected()}' id='test7'/>
- </JPanel>
-
- <VBox border='{BorderFactory.createTitledBorder("Pseudoclass Proxy Data Binding")}'>
- <JCheckBox text='Mouse over to see the below text' enabled='{enabledCB.isSelected()}' id='test8'/>
- <JTextField id='test8Field'/>
- </VBox>
-
- <JCheckBox text='Enable checkboxes' id='enabledCB' selected='true'/>
-</JPanel>
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/SimpleCSS.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/SimpleCSS.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/SimpleCSS.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,29 +0,0 @@
-<VBox>
- <JPanel layout='{new GridLayout(0, 1, 6, 6)}'>
- <style>
- JPanel { border: {null}; font-size: 18; }
-
- JButton { foreground: red }
- JButton.green { foreground: green; }
- AbstractButton.blue { foreground: blue }
- .blue { foreground: white; }
- #B4:enabled { foreground: { Color.orange } }
- .yellow { foreground: yellow; }
- #child.idTest { foreground: white }
- #B7:{true} { foreground: cyan; }
- #B8 { foreground: black }
- #B8.yellow { foreground: { new Color(0, 0, 0) } }
- </style>
-
- <JButton id='B1' text='Red'/>
- <JButton id='B2' text='Green' styleClass='green'/>
- <JButton id='B3' text='Blue' styleClass='blue'/>
- <GrandChild id='B4' text='Orange'/>
- <Child id='B5' text='Yellow'/>
- <Child id='B6' text='White' styleClass='idTest'/>
- <Child id='B7' text='Cyan'/>
- <Child2 id='B8' text='Pink' styleClass='yellow'/>
- <Child2 id='B9' text='Purple' foreground='#aa20ff'/>
- <GrandChild text='Red'/>
- </JPanel>
-</VBox>
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Initializers/Initializers.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Initializers/Initializers.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Initializers/Initializers.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,37 +0,0 @@
-<Application>
- <script>
- private static String staticInitializerText = "Static initializer FAILED";
-
- static {
- staticInitializerText = "Static initializer worked!";
- }
-
- { initializerTest.setText("Initializer worked!"); }
-
- public Initializers(String label) {
- this(1, "Custom constructor test 2 worked!");
- constructorTest1.setText(label);
- }
-
-
- public Initializers(int dummy, String label) {
- super("Test 3 worked! "+dummy);
- constructorTest2.setText(label);
- }
-
-
- public static void main(String[] arg) { // test custom main method
- Initializers test = new Initializers("Custom constructor test 1 worked!");
- test.mainTest.setText("Custom main method worked!");
- test.setVisible(true);
- }
- </script>
-
- <VBox>
- <JLabel id='mainTest' text='Custom main method FAILED'/>
- <JLabel id='constructorTest1' text='Custom constructor TEST 1 FAILED'/>
- <JLabel id='constructorTest2' text='Custom constructor TEST 2 FAILED'/>
- <JLabel id='initializerTest' text='Initializer FAILED'/>
- <JLabel id='staticInitializerTest' text='{Initializers.staticInitializerText}'/>
- </VBox>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/InnerClasses/InnerClasses.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/InnerClasses/InnerClasses.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/InnerClasses/InnerClasses.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,17 +0,0 @@
-<Application>
- <JMenuBar>
- <JMenu text='Test'>
- <JMenuItem text='1'/>
- <JPopupMenu.Separator/>
- <JMenuItem text='2'/>
- <javax.swing.JPopupMenu.Separator/>
- <JMenuItem text='3'/>
- <JPopupMenu.Separator xmlns="javax.swing.*"/>
- <JMenuItem text='4'/>
- <swing:JPopupMenu.Separator xmlns:swing="javax.swing.*"/>
- <JMenuItem text='5'/>
- <swing:javax.swing.JPopupMenu.Separator xmlns:swing="javax.swing.*"/>
- <JMenuItem text='6'/>
- </JMenu>
- </JMenuBar>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/CurrentTime.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/CurrentTime.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/CurrentTime.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,17 +0,0 @@
-<JLabel text='{currentTime}' foreground='blue'>
- <script>
- import java.text.*;
- import javax.swing.Timer;
-
- DateFormat dateFormat = DateFormat.getTimeInstance();
- String currentTime = dateFormat.format(new Date());
-
- Timer timer = new Timer(1000, new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- currentTime = dateFormat.format(new Date());
- }
- });
-
- timer.start();
- </script>
-</JLabel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverriddenCurrentTime.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverriddenCurrentTime.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverriddenCurrentTime.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<CurrentTime text='Parent Working'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverridingDataBindings.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverridingDataBindings.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/OverridingDataBindings/OverridingDataBindings.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,12 +0,0 @@
-<Application>
- <VBox>
- <JLabel text='The text below should display the time'/>
- <CurrentTime/>
-
- <JLabel text='The text below should read "Child Working"'/>
- <CurrentTime text='Child Working'/>
-
- <JLabel text='The text below should read "Parent Working"'/>
- <OverriddenCurrentTime/>
- </VBox>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Script/JScriptInitializer.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Script/JScriptInitializer.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/Script/JScriptInitializer.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,19 +0,0 @@
-<JDialog>
- <script>
- protected boolean value
- </script>
- <script>
- value=false
- </script>
-
- <script>
- value=getOk();
-
- public boolean getOk() {
- return true;
- }
- </script>
- <VBox>
- <JButton text='close' onActionPerformed="dispose()"/>
- </VBox>
-</JDialog>
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest1.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest1.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest1.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JComboBox>
- <item value='Working' selected='true'/>
-</JComboBox>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JComboBoxTest2.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JComboBox>
- <item value='Failed!'/>
-</JComboBox>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest1.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest1.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest1.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JList>
- <item value='Working' selected='true'/>
-</JList>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JListTest2.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JList>
- <item value='Failed!'/>
-</JList>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest1.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest1.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest1.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JTree>
- <item value='Working' selected='true'/>
-</JTree>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/JTreeTest2.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JTree>
- <item value='Failed!'/>
-</JTree>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/SpecialSubclassing.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/SpecialSubclassing.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/SpecialSubclassing/SpecialSubclassing.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,26 +0,0 @@
-<Application title='Special Subclassing'>
- <VBox>
- <JComboBoxTest1/>
- <JComboBoxTest2>
- <item value='Working' selected='true'/>
- </JComboBoxTest2>
-
- <JScrollPane>
- <JListTest1/>
- </JScrollPane>
- <JScrollPane>
- <JListTest2>
- <item value='Working' selected='true'/>
- </JListTest2>
- </JScrollPane>
-
- <JScrollPane width='80' height='80'>
- <JTreeTest1/>
- </JScrollPane>
- <JScrollPane width='80' height='80'>
- <JTreeTest2>
- <item value='Working' selected='true'/>
- </JTreeTest2>
- </JScrollPane>
- </VBox>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConflictingPackages.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConflictingPackages.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConflictingPackages.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<awt:javax.swing.JFrame xmlns:awt='java.awt.*'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConstraintsParseError.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConstraintsParseError.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ConstraintsParseError.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,5 +0,0 @@
-<Application>
- <JLabel constraints='BorderLayout*%NORTH'/>
- <JButton constraints='BorderLayout.SOUTH'/>
- <JTabbedPane constraints='BorderLayout(CENTER'/>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DataBindingParseError.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DataBindingParseError.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DataBindingParseError.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,6 +0,0 @@
-<JPanel>
- <JButton text='{"Missing right brace"'/>
- <JLabel text='{Math.PI + Math.E ~= Math.PIE}'/>
- <JToolBar visible='{I like pie}'/>
- <JButton text='{"This should compile"}}'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DuplicateIDs.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DuplicateIDs.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/DuplicateIDs.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,4 +0,0 @@
-<JPanel id='duplicate'>
- <JPanel id='duplicate'/>
- <JColorChooser id='duplicate'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/EventHandlerParseError.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/EventHandlerParseError.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/EventHandlerParseError.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,4 +0,0 @@
-<JPanel>
- <JButton onActionPerformed='!*'/>
- <JPanel onMouseEntered='{System.out.println("Remember kids, only use curly braces where appropriate!")}'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidID.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidID.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidID.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<Application id='1'>
- <JButton id='Hello-'/>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidRootTag.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidRootTag.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidRootTag.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<style source='test.css'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidXML.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidXML.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/InvalidXML.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,4 +0,0 @@
-<begin>
- <valid/>
- <so.is.this/>
-</end>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemDuplicateValues.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemDuplicateValues.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemDuplicateValues.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,8 +0,0 @@
-<JList>
- <item value='1'/>
- <item value='2'/>
- <item value='2'/>
- <item value='3'/>
- <item value='3'/>
- <item value='3'/>
-</JList>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemNoValue.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemNoValue.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ItemNoValue.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,4 +0,0 @@
-<JList>
- <item label='This item doesn&t have a value'/>
- <item label='Neither does this one'/>
-</JList>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/MixedContent.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/MixedContent.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/MixedContent.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,19 +0,0 @@
-<JPanel>
- mixed1
-
- <Table>
- <row>
- mixed2
-
- <cell>mixed3</cell>
- </row>
- </Table>
-
- <JList>
- <item>mixed4</item>
- </JList>
-
- <JTabbedPane>
- <tab>mixed5</tab>
- </JTabbedPane>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowOutsideOfTable.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowOutsideOfTable.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowOutsideOfTable.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,9 +0,0 @@
-<JPanel>
- <row>
- <cell><JButton/></cell>
- </row>
-
- <row>
- <cell><JLabel/></cell>
- </row>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowWrongChild.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowWrongChild.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/RowWrongChild.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,9 +0,0 @@
-<Table>
- <row>
- <JPanel/>
- </row>
-
- <row>
- <JScrollPane/>
- </row>
-</Table>
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptNotFound.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptNotFound.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptNotFound.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<script source='notfound.script'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptParseError.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptParseError.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptParseError.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,6 +0,0 @@
-<JFileChooser>
- <script>
- System.err.println("this is a valid line");
- System.err.println("this is an unclosed string literal);
- </script>
-</JFileChooser>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptSourceAndInline.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptSourceAndInline.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ScriptSourceAndInline.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<script source='dependencies/test.script'>
- System.err.println("This should not compile");
-</script>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleNotFound.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleNotFound.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleNotFound.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<style source='notfound.css'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleParseError.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleParseError.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleParseError.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,9 +0,0 @@
-<JFileChooser>
- <style>
- JButton {
- foreground: blue;
- label: "Parse error on next line";
- *: false;
- }
- </style>
-</JFileChooser>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleSourceAndInline.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleSourceAndInline.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/StyleSourceAndInline.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<style source='dependencies/test.css'>
- JLabel { text: "this should not compile" }
-</style>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabOutsideOfTabbedPane.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabOutsideOfTabbedPane.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabOutsideOfTabbedPane.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,9 +0,0 @@
-<JPanel>
- <tab>
- <JButton/>
- </tab>
-
- <tab>
- <JLabel/>
- </tab>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabbedPaneWrongChild.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabbedPaneWrongChild.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TabbedPaneWrongChild.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,6 +0,0 @@
-<Application>
- <JTabbedPane>
- <JPanel/>
- <JScrollPane/>
- </JTabbedPane>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TableWrongChild.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TableWrongChild.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TableWrongChild.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,6 +0,0 @@
-<Application>
- <Table>
- <JPanel/>
- <JScrollPane/>
- </Table>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyCellChildren.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyCellChildren.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyCellChildren.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,15 +0,0 @@
-<Application>
- <Table>
- <row>
- <cell>
- <JButton/>
- <JButton/>
- </cell>
-
- <cell>
- <JPanel/>
- <JToolBar/>
- </cell>
- </row>
- </Table>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyScrollPaneChildren.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyScrollPaneChildren.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyScrollPaneChildren.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,5 +0,0 @@
-<JScrollPane>
- <JButton/>
- <JToolBar/>
- <JPanel/>
-</JScrollPane>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManySplitPaneChildren.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManySplitPaneChildren.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManySplitPaneChildren.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,7 +0,0 @@
-<Application>
- <JSplitPane>
- <JButton text='one'/>
- <JButton text='two'/>
- <JButton text='three'/>
- </JSplitPane>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyTabChildren.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyTabChildren.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/TooManyTabChildren.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,13 +0,0 @@
-<Application>
- <JTabbedPane>
- <tab>
- <JButton/>
- <JButton/>
- </tab>
-
- <tab>
- <JPanel/>
- <JToolBar/>
- </tab>
- </JTabbedPane>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedAttribute.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedAttribute.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedAttribute.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JPanel widgetCount='7'>
- <JLabel mnemonic='A'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedEvent.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedEvent.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedEvent.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
-<JPanel onWink='7'>
- <JLabel onWonLottery='A'/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedPseudoclass.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedPseudoclass.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/UnsupportedPseudoclass.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,5 +0,0 @@
-<JButton>
- <style>
- :opaque { enabled: false; }
- </style>
-</JButton>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.css
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.css 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.css 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-JLabel { text: "This should not compile" }
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.script
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.script 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/dependencies/test.script 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-System.err.println("This should not compile.");
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/force/JButton.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/force/JButton.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/force/JButton.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<JButton id='testId' text='test.text'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/text/JButton.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/text/JButton.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/text/JButton.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<JButton id='testId' text='test.text'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JDialog.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JDialog.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JDialog.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<JDialog id='testId' title='test.title'/>
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
- <JTabbedPane>
- <tab id="testId" title='test.title'/>
-</JTabbedPane>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/title/JTabbedPane2.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,5 +0,0 @@
-<JTabbedPane>
- <tab id="testId" title='test.title'>
- <JLabel text='testLabel'/>
- </tab>
-</JTabbedPane>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JButton.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JButton.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JButton.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1 +0,0 @@
-<JButton id='testId' toolTipText='test.toolTipText'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
- <JTabbedPane id="testId" toolTipText='test.toolTipText'>
- <tab title="text"/>
-</JTabbedPane>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane2.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,3 +0,0 @@
- <JTabbedPane>
- <tab id="testId" toolTipText='test.toolTipText'/>
-</JTabbedPane>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane3.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane3.jaxx 2008-10-11 14:10:42 UTC (rev 899)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/i18n/tooltiptext/JTabbedPane3.jaxx 2008-10-11 14:11:34 UTC (rev 900)
@@ -1,5 +0,0 @@
-<JTabbedPane>
- <tab id="testId" toolTipText='test.toolTipText'>
- <JLabel text='yo'/>
- </tab>
-</JTabbedPane>
\ No newline at end of file
1
0
r899 - in lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases: CSSTests errors
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:10:42 +0000 (Sat, 11 Oct 2008)
New Revision: 899
Removed:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child2.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/AmbiguousName.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/BadTypeConversions.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/CellOutsideOfRow.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ChildrenInNonContainer.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ClassNotFound.jaxx
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1 +0,0 @@
-<JButton styleClass='yellow' id='child'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child2.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child2.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/CSSTests/Child2.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1 +0,0 @@
-<JButton foreground='#ffcccc'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/AmbiguousName.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/AmbiguousName.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/AmbiguousName.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1,10 +0,0 @@
-<JPanel>
- <script>
- import java.awt.*;
- import java.sql.*;
- import java.util.*;
- </script>
-
- <List/>
- <Date/>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/BadTypeConversions.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/BadTypeConversions.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/BadTypeConversions.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1,4 +0,0 @@
-<JButton opaque='yellow'
- margin='42, 1, 7'
- mnemonic='AX'
- border='true'/>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/CellOutsideOfRow.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/CellOutsideOfRow.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/CellOutsideOfRow.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1,5 +0,0 @@
-<JPanel>
- <cell><JButton/></cell>
-
- <cell><JLabel/></cell>
-</JPanel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ChildrenInNonContainer.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ChildrenInNonContainer.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ChildrenInNonContainer.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1,4 +0,0 @@
-<JButton>
- <JPanel/>
- <JMenuBar/>
-</JButton>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ClassNotFound.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ClassNotFound.jaxx 2008-10-11 14:10:07 UTC (rev 898)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/errors/ClassNotFound.jaxx 2008-10-11 14:10:42 UTC (rev 899)
@@ -1,3 +0,0 @@
-<Frame>
- <Glob/>
-</Frame>
\ No newline at end of file
1
0
r898 - lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:10:07 +0000 (Sat, 11 Oct 2008)
New Revision: 898
Removed:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ClassReferences.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ConstructorReferenceTest.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXReferenceTest.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXTest.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JavaTest.java
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/StaticMethodTest.jaxx
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/TypeReference.jaxx
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ClassReferences.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ClassReferences.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ClassReferences.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,18 +0,0 @@
-<Application>
- <script>
- Object ref1 = new ConstructorReferenceTest();
- box.add(new JLabel(ref1.toString()));
-
- TypeReference ref2; // this line only compiles if TypeReference.jaxx gets compiled due to this reference
- box.add(new JLabel("Type reference worked"));
-
- box.add(new JLabel(StaticMethodTest.getText()));
- </script>
-
- <VBox id='box'>
- <!-- TODO Ce cas ne fonctionne plus (il faut posséder cette classe compilée ? -->
- <!--ClassTest customProperty='Compiled class file worked'/-->
- <JAXXTest customProperty='Uncompiled JAXX file worked'/>
- <JavaTest customProperty='Uncompiled Java file worked'/>
- </VBox>
-</Application>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ConstructorReferenceTest.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ConstructorReferenceTest.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/ConstructorReferenceTest.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,7 +0,0 @@
-<Object>
- <script>
- public String toString() {
- return "Constructor reference worked";
- }
- </script>
-</Object>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXReferenceTest.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXReferenceTest.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXReferenceTest.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,7 +0,0 @@
-<JLabel>
- <script>
- public void setCustomProperty(String label) {
- setText(label);
- }
- </script>
-</JLabel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXTest.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXTest.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JAXXTest.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,7 +0,0 @@
-<JLabel>
- <script>
- public void setCustomProperty(String label) {
- setText(label);
- }
- </script>
-</JLabel>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JavaTest.java
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JavaTest.java 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/JavaTest.java 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,9 +0,0 @@
-package testcases.ClassReferences;
-
-import javax.swing.*;
-
-public class JavaTest extends JLabel {
- public void setCustomProperty(String label) {
- setText(label);
- }
-}
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/StaticMethodTest.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/StaticMethodTest.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/StaticMethodTest.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1,7 +0,0 @@
-<Object>
- <script>
- public static String getText() {
- return "Static method reference worked";
- }
- </script>
-</Object>
\ No newline at end of file
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/TypeReference.jaxx
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/TypeReference.jaxx 2008-10-11 14:09:48 UTC (rev 897)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/testcases/ClassReferences/TypeReference.jaxx 2008-10-11 14:10:07 UTC (rev 898)
@@ -1 +0,0 @@
-<Object/>
\ No newline at end of file
1
0
r897 - lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:09:48 +0000 (Sat, 11 Oct 2008)
New Revision: 897
Added:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/CSSTests.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/ClassReferences.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Initializers.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/InnerClasses.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/OverridingDataBindings.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Script.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/SpecialSubclassing.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/errors.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/force.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_text.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_title.xml
lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_tooltiptext.xml
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/CSSTests.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/CSSTests.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/CSSTests.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <i18nable>false</i18nable>
+ <includes>
+ <value>**/CSSTests/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/ClassReferences.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/ClassReferences.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/ClassReferences.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/ClassReferences/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Initializers.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Initializers.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Initializers.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/Initializers/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/InnerClasses.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/InnerClasses.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/InnerClasses.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/InnerClasses/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/OverridingDataBindings.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/OverridingDataBindings.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/OverridingDataBindings.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/OverridingDataBindings/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Script.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Script.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/Script.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/Script/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/SpecialSubclassing.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/SpecialSubclassing.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/SpecialSubclassing.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/SpecialSubclassing/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/errors.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/errors.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/errors.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/errors/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/force.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/force.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/force.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <includes>
+ <value>**/force/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_text.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_text.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_text.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <i18nable>true</i18nable>
+ <includes>
+ <value>**/i18n/text/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_title.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_title.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_title.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <i18nable>true</i18nable>
+ <includes>
+ <value>**/i18n/title/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_tooltiptext.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_tooltiptext.xml (rev 0)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/resources/i18n_tooltiptext.xml 2008-10-11 14:09:48 UTC (rev 897)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<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">
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codelutin</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <configuration>
+ <src>${basedir}/src/test/resources</src>
+ <outJava>${basedir}/target/it-generated-source/java</outJava>
+ <outResource>${basedir}/target/it-generated-source/resources</outResource>
+ <force>true</force>
+ <i18nable>true</i18nable>
+ <includes>
+ <value>**/i18n/tooltiptext/*.jaxx</value>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
1
0
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:09:38 +0000 (Sat, 11 Oct 2008)
New Revision: 896
Modified:
lutinjaxx/trunk/maven-jaxx-plugin/changelog
lutinjaxx/trunk/maven-jaxx-plugin/pom.xml
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Modified: lutinjaxx/trunk/maven-jaxx-plugin/changelog
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/changelog 2008-10-11 14:09:14 UTC (rev 895)
+++ lutinjaxx/trunk/maven-jaxx-plugin/changelog 2008-10-11 14:09:38 UTC (rev 896)
@@ -1,3 +1,4 @@
ver-0-5 chemit 20081002
- * 20081002 [chemit] Using lutinproject 3.0, changing groupId to org.codelutin
+ * 20081011 [chemit] refactor tests of the plugin using maven-plugin-testing-harness plugin
+ * 20081002 [chemit] Using lutinpluginproject 3.0, changing groupId to org.codelutin
* 20081002 [chemit] Make nearly all tests works again...
Modified: lutinjaxx/trunk/maven-jaxx-plugin/pom.xml
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/pom.xml 2008-10-11 14:09:14 UTC (rev 895)
+++ lutinjaxx/trunk/maven-jaxx-plugin/pom.xml 2008-10-11 14:09:38 UTC (rev 896)
@@ -50,6 +50,12 @@
<artifactId>maven-project</artifactId>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>1.1</version>
+ <scope>compile</scope>
+ </dependency>
<dependency>
<groupId>org.codelutin</groupId>
1
0
r895 - lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:09:14 +0000 (Sat, 11 Oct 2008)
New Revision: 895
Modified:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/I18nTest.java
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Modified: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java 2008-10-11 14:08:31 UTC (rev 894)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompilerTest.java 2008-10-11 14:09:14 UTC (rev 895)
@@ -1,111 +1,132 @@
package org.codelutin.jaxx;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import java.io.File;
-public class CompilerTest extends AbstractCompilerTest {
+public class CompilerTest extends AbstractMojoTestCase {
- @CompileConfig(packageName = "InnerClasses", runJavac = true)
- public void testInnerClasses() throws MojoExecutionException, MojoFailureException {
- goal.execute();
+ /** log */
+ protected static final Log log = LogFactory.getLog(CompilerTest.class);
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ log.info(getName());
}
-
- @CompileConfig(packageName = "SpecialSubclassing", runJavac = true)
- public void testSpecialSubclassing() throws MojoExecutionException, MojoFailureException {
- try {
- goal.execute();
- } catch (Exception e) {
- // there is some inter-dependances between generated java file
- // we runJavaC on each file, but we should compile a sourcePath instead...
- assertTrue(true);
- }
- goal.execute();
+ protected JaxxGeneratorMojo getMojo(String s) throws Exception {
+ File testPom = new File(getBasedir(), "src/test/resources/" + s + ".xml");
+ JaxxGeneratorMojo mojo = (JaxxGeneratorMojo) lookupMojo("generate", testPom);
+ assertNotNull(mojo);
+ return mojo;
}
- @CompileConfig(packageName = "CSSTests", verbose = false, i18nable = false)
- public void testCssTests() throws MojoExecutionException, MojoFailureException {
- goal.execute();
+ public void testInnerClasses() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("InnerClasses");
+ mojo.execute();
+ assertEquals(1, mojo.getFiles().length);
}
- @CompileConfig(packageName = "errors", verbose = false)
- public void testErrors() throws MojoExecutionException, MojoFailureException {
- //fixme : launch a goal for each files found : since we should failed for some files...
- //goal.execute();
+ public void testSpecialSubclassing() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("SpecialSubclassing");
+ mojo.execute();
+ assertEquals(7, mojo.getFiles().length);
}
- @CompileConfig(packageName = "Initializers", runJavac = false)
- public void testInitializers() throws MojoExecutionException, MojoFailureException {
- goal.execute();
+ public void testCssTests() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("CSSTests");
+ mojo.execute();
+ assertEquals(7, mojo.getFiles().length);
}
- @CompileConfig(packageName = "Script", runJavac = false)
- public void testScript() throws MojoExecutionException, MojoFailureException {
- try {
- goal.execute();
- } catch (Exception e) {
- // there is some inter-dependances between generated java file
- // we runJavaC on each file, but we should compile a sourcePath instead...
- assertTrue(true);
+ public void testErrors() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("errors");
+ // init mojo to get alls files to treate
+ mojo.init();
+ String[] files = mojo.getFiles();
+ // execute mjo on each jaxx file to produce the error
+ for (String file : files) {
+ mojo.setFiles(new String[]{file});
+ try {
+ mojo.execute();
+ // should never pass
+ fail();
+ } catch (MojoExecutionException e) {
+ // ok jaxx compiler failed
+ assertTrue(true);
+ } catch (MojoFailureException e) {
+ // this exception should not appear
+ fail();
+ }
}
}
- @CompileConfig(packageName = "OverridingDataBindings", runJavac = false)
- public void testOverridingDataBindings() throws MojoExecutionException, MojoFailureException {
- goal.execute();
+ public void testInitializers() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("Initializers");
+ mojo.execute();
+ assertEquals(1, mojo.getFiles().length);
}
- @CompileConfig(packageName = "ClassReferences", runJavac = true)
- public void testClassReferences() throws MojoExecutionException, MojoFailureException {
- try {
- goal.execute();
- } catch (Exception e) {
- // there is some inter-dependances between generated java file
- // we runJavaC on each file, but we should compile a sourcePath instead...
- assertTrue(true);
- }
- goal.execute();
+ public void testScript() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("Script");
+ mojo.execute();
+ assertEquals(1, mojo.getFiles().length);
}
- @CompileConfig(packageName = "force", verbose = false)
- public void testForce() throws MojoExecutionException, MojoFailureException, InterruptedException {
+ public void testOverridingDataBindings() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("OverridingDataBindings");
+ mojo.execute();
+ assertEquals(3, mojo.getFiles().length);
+ }
+
+ public void testClassReferences() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("ClassReferences");
+ mojo.execute();
+ assertEquals(6, mojo.getFiles().length);
+ }
+
+ public void testForce() throws Exception {
+
+ JaxxGeneratorMojo mojo = getMojo("force");
// first round, with force option so will generate theonly JButton.jaxx file
- goal.execute();
- String[] files = goal.getFiles();
+ mojo.execute();
+ String[] files = mojo.getFiles();
assertEquals(1, files.length);
- File srcFile = new File(goal.getSrc(), files[0]);
+ File srcFile = new File(mojo.getSrc(), files[0]);
- File dstFile = goal.getUpdater().getMirrorFile(srcFile);
+ File dstFile = mojo.getUpdater().getMirrorFile(srcFile);
long oldTime = dstFile.lastModified();
// second round, no force so will not the file
- goal.setForce(false);
- goal.execute();
- files = goal.getFiles();
+ mojo.setForce(false);
+ mojo.execute();
+ files = mojo.getFiles();
assertEquals(0, files.length);
Thread.sleep(1000);
- assertEquals(oldTime, goal.getUpdater().getMirrorFile(srcFile).lastModified());
+ assertEquals(oldTime, mojo.getUpdater().getMirrorFile(srcFile).lastModified());
// three round : modify a source with no force option
srcFile.setLastModified(System.currentTimeMillis());
- goal.execute();
- files = goal.getFiles();
+ mojo.execute();
+ files = mojo.getFiles();
assertEquals(1, files.length);
- assertTrue(goal.getUpdater().getMirrorFile(srcFile).lastModified() > oldTime);
+ assertTrue(mojo.getUpdater().getMirrorFile(srcFile).lastModified() > oldTime);
// last round, reforce file generation for an no modify source
- goal.setForce(true);
- goal.execute();
- files = goal.getFiles();
+ mojo.setForce(true);
+ mojo.execute();
+ files = mojo.getFiles();
assertEquals(1, files.length);
- assertTrue(goal.getUpdater().getMirrorFile(srcFile).lastModified() > oldTime);
+ assertTrue(mojo.getUpdater().getMirrorFile(srcFile).lastModified() > oldTime);
}
-
}
\ No newline at end of file
Modified: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/I18nTest.java
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/I18nTest.java 2008-10-11 14:08:31 UTC (rev 894)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/I18nTest.java 2008-10-11 14:09:14 UTC (rev 895)
@@ -1,59 +1,76 @@
package org.codelutin.jaxx;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
import org.codelutin.util.FileUtil;
import java.io.File;
import java.io.IOException;
-public class I18nTest extends AbstractCompilerTest {
+public class I18nTest extends AbstractMojoTestCase {
- @CompileConfig(packageName = "i18n.text", verbose = false, i18nable = false)
- public void testI18nTextNoI1_nabel() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setText(_(\"test.text\"));", false);
- }
+ /** log */
+ protected static final Log log = LogFactory.getLog(I18nTest.class);
- @CompileConfig(packageName = "i18n.title", verbose = false, i18nable = false)
- public void testI18nTitleNoI18nable() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setTitle(_(\"test.title\"));", false);
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ log.info(getName());
}
- @CompileConfig(packageName = "i18n.tooltiptext", verbose = false, i18nable = false)
- public void testI18nToolTipTextNoI18nable() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setToolTipText(_(\"test.toolTipText\"));", false);
+ protected JaxxGeneratorMojo getMojo(String s) throws Exception {
+ File testPom = new File(getBasedir(), "src/test/resources/" + s + ".xml");
+ JaxxGeneratorMojo mojo = (JaxxGeneratorMojo) lookupMojo("generate", testPom);
+ assertNotNull(mojo);
+ return mojo;
}
- @CompileConfig(packageName = "i18n.text", verbose = false, i18nable = true)
- public void testI18nText() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setText(_(\"test.text\"));", true);
- checkPattern("\"_(\\\"test.text\\\")\"", false);
+ public void testI18nText() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("i18n_text");
+ mojo.setI18nable(false);
+ mojo.execute();
+ checkPattern(mojo, "testId.setText(_(\"test.text\"));", false);
+
+ mojo.setI18nable(true);
+ mojo.execute();
+ checkPattern(mojo, "testId.setText(_(\"test.text\"));", true);
+ checkPattern(mojo, "\"_(\\\"test.text\\\")\"", false);
}
- @CompileConfig(packageName = "i18n.title", verbose = false, i18nable = true)
- public void testI18nTitle() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setTitle(_(\"test.title\"));", true);
- checkPattern("\"_(\\\"test.title\\\")\"", false);
+ public void testI18nTitle() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("i18n_title");
+ mojo.setI18nable(false);
+ mojo.execute();
+ checkPattern(mojo, "testId.setTitle(_(\"test.title\"));", false);
+
+ mojo.setI18nable(true);
+ mojo.execute();
+ checkPattern(mojo, "testId.setTitle(_(\"test.title\"));", true);
+ checkPattern(mojo, "\"_(\\\"test.title\\\")\"", false);
}
- @CompileConfig(packageName = "i18n.tooltiptext", verbose = false, i18nable = true)
- public void testI18nToolTipText() throws MojoExecutionException, MojoFailureException, IOException {
- goal.execute();
- checkPattern("testId.setToolTipText(_(\"test.toolTipText\"));", true);
- checkPattern("\"_(\\\"test.toolTipText\\\")\"", false);
+ public void testI18nToolTipText() throws Exception {
+ JaxxGeneratorMojo mojo = getMojo("i18n_tooltiptext");
+ mojo.setI18nable(false);
+ mojo.execute();
+ checkPattern(mojo, "testId.setToolTipText(_(\"test.toolTipText\"));", false);
+
+ mojo.setI18nable(true);
+ mojo.execute();
+ checkPattern(mojo, "testId.setToolTipText(_(\"test.toolTipText\"));", true);
+ checkPattern(mojo, "\"_(\\\"test.toolTipText\\\")\"", false);
}
- protected void checkPattern(String pattern, boolean required) throws IOException {
- String[] files = goal.getFiles();
+ protected void checkPattern(JaxxGeneratorMojo mojo, String pattern, boolean required) throws IOException {
+ String[] files = mojo.getFiles();
for (String file : files) {
// check we have a the required testId.setTitle(_("test.title"));
- File f = new File(getOutDir(), file.substring(0, file.length() - 4) + "java");
- log.info("check generated file " + f);
+ File f = new File(mojo.getOutJava(), file.substring(0, file.length() - 4) + "java");
+ if (mojo.isVerbose()) {
+ log.info("check generated file " + f);
+ }
assertTrue("generated file " + f + " was not found...", f.exists());
String content = FileUtil.readAsString(f);
1
0
r894 - lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:08:31 +0000 (Sat, 11 Oct 2008)
New Revision: 894
Removed:
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/AbstractCompilerTest.java
lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompileConfig.java
Log:
refactor tests of the plugin using maven-plugin-testing-harness plugin
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/AbstractCompilerTest.java
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/AbstractCompilerTest.java 2008-10-11 14:06:12 UTC (rev 893)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/AbstractCompilerTest.java 2008-10-11 14:08:31 UTC (rev 894)
@@ -1,97 +0,0 @@
-package org.codelutin.jaxx;
-
-import junit.framework.TestCase;
-
-import java.io.File;
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/** @author chemit */
-public abstract class AbstractCompilerTest extends TestCase {
- /** log */
- protected static final Log log = LogFactory.getLog(I18nTest.class);
- /** mojo goal */
- protected JaxxGeneratorMojo goal;
-
- protected static final String PREFIX_PACKAGE = "testcases";
- protected static File basedir;
- protected static File srcDir;
- protected static File outDir;
- protected static File ClassOutDir;
- protected static File ResourcesOutDir;
-
- public static File getBasedir() {
- if (basedir == null) {
- String basedirStr = System.getProperty("basedir");
- basedir = new File(basedirStr == null ? "." : basedirStr);
- log.info("use basedir : "+basedir);
- }
- return basedir;
- }
-
- protected static File getSrcDir() {
- if (srcDir == null) {
- srcDir = new File(getBasedir(), "src" + File.separator + "test" + File.separator + "java");
- }
- return srcDir;
- }
-
- protected static File getOutDir() {
- if (outDir == null) {
- outDir = new File(getBasedir(), "target" + File.separator + "test-generated-sources" + File.separator + "java");
- outDir.mkdirs();
- }
- return outDir;
- }
-
- protected static File getClassOutDir() {
- if (ClassOutDir == null) {
- ClassOutDir = new File(getBasedir(), "target" + File.separator + "test-classes");
- ClassOutDir.mkdirs();
- }
- return ClassOutDir;
- }
-
- protected static File getResourcesOutDir() {
- if (ResourcesOutDir == null) {
- ResourcesOutDir = new File(getBasedir(), "target" + File.separator + "test-classes");
- ResourcesOutDir.mkdirs();
- }
- return ResourcesOutDir;
- }
-
- @Override
- public void setUp() throws IOException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, MojoExecutionException, MojoFailureException {
- CompileConfig anno = getClass().getMethod(getName()).getAnnotation(CompileConfig.class);
- assertNotNull("could not found " + CompileConfig.class.getSimpleName() + " annotation on test " + getClass(), anno);
- final File srcDir = getSrcDir();
- assertTrue("could not found srcDir (or not existing) : " + srcDir + " on test " + getClass(), srcDir != null && srcDir.exists());
- final File outDir = getOutDir();
- assertTrue("could not found outDir (or not existing) : " + outDir + " on test " + getClass(), outDir != null && outDir.exists());
- final File classOutDir = getClassOutDir();
- assertTrue("could not found classOutDir (or not existing) : " + classOutDir + " on test " + getClass(), classOutDir != null && classOutDir.exists());
- final File resourcesOutDir = getResourcesOutDir();
- assertTrue("could not found classOutDir (or not existing) : " + resourcesOutDir + " on test " + getClass(), resourcesOutDir != null && resourcesOutDir.exists());
- String packageName = anno.packageName();
- goal = new JaxxGeneratorMojo();
- goal.setSrc(srcDir);
- goal.setOutJava(outDir);
- goal.setOutClass(classOutDir);
- goal.setOutResource(resourcesOutDir);
- //goal.setIncludes(new String[]{"**\\/" + PREFIX_PACKAGE + "\\/" + packageName + "\\/*.jaxx"});
- String expression = packageName.replaceAll("\\.", "\\\\/");
- goal.setIncludes(new String[]{"**\\/" + PREFIX_PACKAGE + "\\/" + expression + "\\/*.jaxx"});
- goal.setOptimize(anno.optimize());
- goal.setVerbose(anno.verbose());
- goal.setForce(anno.force());
- goal.setI18nable(anno.i18nable());
- //TODO Use the maven plexus TestCase inorder to include dependencies
- goal.setJavaOpts(anno.javaOpts());
- log.info("setUp test " + getName());
- }
-}
Deleted: lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompileConfig.java
===================================================================
--- lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompileConfig.java 2008-10-11 14:06:12 UTC (rev 893)
+++ lutinjaxx/trunk/maven-jaxx-plugin/src/test/java/org/codelutin/jaxx/CompileConfig.java 2008-10-11 14:08:31 UTC (rev 894)
@@ -1,46 +0,0 @@
-/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* 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 Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
-package org.codelutin.jaxx;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * Une annotation pour configurer les tests de compilation.
- *
- * @author chemit
- */
-(a)Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
-@Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD})
-public @interface CompileConfig {
-
- public String packageName();
-
- public boolean optimize() default true;
-
- public boolean runJavac() default false;
-
- public boolean verbose() default false;
-
- public boolean force() default true;
-
- public boolean i18nable() default false;
-
- public String javaOpts() default "";
-}
1
0
r893 - in lutinjaxx/trunk/jaxx-core: . src/main/java/jaxx/reflect src/test/java/jaxx/junit
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
by tchemit@users.labs.libre-entreprise.org 11 Oct '08
11 Oct '08
Author: tchemit
Date: 2008-10-11 14:06:12 +0000 (Sat, 11 Oct 2008)
New Revision: 893
Added:
lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/JavaFileParserTest.java
Modified:
lutinjaxx/trunk/jaxx-core/changelog
lutinjaxx/trunk/jaxx-core/src/main/java/jaxx/reflect/JavaFileParser.java
Log:
fix bug on JavaFileParser : works again
Modified: lutinjaxx/trunk/jaxx-core/changelog
===================================================================
--- lutinjaxx/trunk/jaxx-core/changelog 2008-10-09 11:08:39 UTC (rev 892)
+++ lutinjaxx/trunk/jaxx-core/changelog 2008-10-11 14:06:12 UTC (rev 893)
@@ -1,4 +1,5 @@
-ver-0-5 chemit 20081002
+ ver-0-5 chemit 20081002
+ * 20081011 [chemit] fix bug on JavaFileParser : works again
* 20081002 [chemit] Using lutinproject 3.0, changing groupId to org.codelutin
* 20081002 [chemit] use a single module jaxx-core (no more core, runtime and jaxx-swing modules)
* 20081002 [chemit] Introduce JAXXContext
Modified: lutinjaxx/trunk/jaxx-core/src/main/java/jaxx/reflect/JavaFileParser.java
===================================================================
--- lutinjaxx/trunk/jaxx-core/src/main/java/jaxx/reflect/JavaFileParser.java 2008-10-09 11:08:39 UTC (rev 892)
+++ lutinjaxx/trunk/jaxx-core/src/main/java/jaxx/reflect/JavaFileParser.java 2008-10-11 14:06:12 UTC (rev 893)
@@ -83,6 +83,7 @@
SimpleNode node = p.popNode();
if (node != null) {
scanCompilationUnit(node);
+ return;
}
throw new CompilerException("Internal error: null node parsing Java file from " + src);
}
Copied: lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/JavaFileParserTest.java (from rev 884, lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/ClassDescriptorTest.java)
===================================================================
--- lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/JavaFileParserTest.java (rev 0)
+++ lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/JavaFileParserTest.java 2008-10-11 14:06:12 UTC (rev 893)
@@ -0,0 +1,53 @@
+package jaxx.junit;
+
+import jaxx.CompilerException;
+import jaxx.reflect.ClassDescriptor;
+import jaxx.reflect.JavaFileParser;
+import junit.framework.TestCase;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.Reader;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+public class JavaFileParserTest extends TestCase {
+
+
+ /** log */
+ protected static final Log log = LogFactory.getLog(JavaFileParserTest.class);
+
+ protected File getBaseDir() {
+ // get maven env basedir
+ String basedir = System.getenv("basedir");
+ if (basedir == null) {
+ basedir = new File("").getAbsolutePath();
+ }
+ return new File(basedir);
+ }
+
+ public void testParseJavaSourceFile() throws Exception {
+
+
+ File testSourceRoot = new File(getBaseDir(), "src" + File.separator + "test" + File.separator + "java");
+ assertTrue(testSourceRoot.exists());
+
+ File src = new File(testSourceRoot, getClass().getName().replaceAll("\\.", File.separator) + ".java");
+ assertTrue(src.exists());
+ log.info("trying parsing file " + src);
+ Reader reader = new FileReader(src);
+ try {
+ ClassDescriptor result = JavaFileParser.parseJavaFile("TestParserJava", reader, getClass().getClassLoader());
+ assertNotNull(result);
+
+ } catch (CompilerException e) {
+ log.error("could not parse file "+src+" for reason "+e.getMessage(),e);
+ fail(e.getMessage());
+ }
+ finally {
+ reader.close();
+ }
+ }
+
+}
Property changes on: lutinjaxx/trunk/jaxx-core/src/test/java/jaxx/junit/JavaFileParserTest.java
___________________________________________________________________
Name: svn:mergeinfo
+
1
0