Enables you to convert LZX Files from OpenLaszlo 4.0.x/3.x.x using a JUnit Task to LZX-Files of LPS-4.1.x
HOWTO
Checkout as a Java-Project into Eclipse:
http://laszlo4converter.googlecode.com/svn/trunk/laszlo4Converter/
In the Project there is a folder called input
Copy you hole LZX-Source-Files/LZX-Project (including Folders Resources et cetera) into input.
Run the JUnit-Test:
TestGenerating.java
or the main-method in ParseLzx.java
What does it do
It parses your hole project for ClassNames and writes them to a File. This File is not yet used, just for controling, the application holds the list of your Project-Classes in the Instance and replaces all
new $YOURCLASSNAME
with
new lz.$YOURCLASSNAME
and
instanceof $YOURCLASSNAME
with
instanceof lz.$YOURCLASSNAME
and
new global
with
new lz
and it replaces
<method event="xyz"> blaFoo </method>
with:
<handler name="xyz"> blaFoo </handler>
Note
It does not scan for the Base-Classes, only drawview is handled, you can handle more classes or extend the system to first parse through the Laszlo Components (or just copy lps-dir to the input directory)