Hi !!!
The code/project below is nothing more than the code from Erel's CodeBundle but reversed. Essentially, I couldn't resist...
What it does: reads the JSON and creates the project files in a folder. Layouts / Modules / B4J Project.
Of course, it still has its issues. That's why I'm sharing it here so we can find solutions.
The problem it has is in the headers of the files (*.bas, *.b4j) - otherwise it works...
Erel's post:
www.b4x.com
The problem:
Example Header created by BundleReverser until @EndOfDesignText@:
at b4j project:
Original Header need to created:
at modules/classes creating:
original:
But... just replacing only the headers... all working - the layout working too
Just have fun!
ps: It is working until today - Exported json from version 0.3 (Erel's CodeBundle)
ps2: Fix for Layouts
The code/project below is nothing more than the code from Erel's CodeBundle but reversed. Essentially, I couldn't resist...
What it does: reads the JSON and creates the project files in a folder. Layouts / Modules / B4J Project.
Of course, it still has its issues. That's why I'm sharing it here so we can find solutions.
The problem it has is in the headers of the files (*.bas, *.b4j) - otherwise it works...
Erel's post:
[B4X] CodeBundle – Export Projects as a Single JSON for AI Analysis
The purpose of this tool is to easily export the complete project as a single json file which can be then fed to ChatGPT or any other capable AI bot for further analysis. It exports the modules code, layouts and some additional meta information. This is an experimental tool. Please provide...
The problem:
Example Header created by BundleReverser until @EndOfDesignText@:
at b4j project:
B4X:
AppType=Starter
Title=xxxx
AppType=JavaFX
Library=jcore
Library=jfx
Library=B4XPages
Module=B4XMainPage
@EndOfDesignText@
Original Header need to created:
B4X:
AppType=JavaFX
Build1=Default,b4j.example
File1=MainPage.bjl
FileGroup1=New Group
Group=Default Group
Library1=jcore
Library2=jfx
Library3=b4xpages
Module1=|relative|..\B4XMainPage
NumberOfFiles=1
NumberOfLibraries=3
NumberOfModules=1
Version=10.3
@EndOfDesignText@
at modules/classes creating:
B4X:
Type=Class
@EndOfDesignText@
original:
B4X:
B4A=true
Group=Default Group
ModulesStructureVersion=1
Type=Class
Version=9.85
@EndOfDesignText@
But... just replacing only the headers... all working - the layout working too
Just have fun!
ps: It is working until today - Exported json from version 0.3 (Erel's CodeBundle)
ps2: Fix for Layouts
Attachments
Last edited: