Java Question xml for existing jar

MaFu

Well-Known Member
Licensed User
Longtime User
How can i create the xml doc file for an existing library?
The reason for my question: i don't use Eclipse for Java programming, i'm using Oxygene. It's a Pascal compiler which compiles to native java and it is embedded in VisualStudio. Therefore i cannot use BADoclet.class or SimpleLibraryCompiler.
 

MaFu

Well-Known Member
Licensed User
Longtime User
Now i have a solution that works (for me).

I use javadoc.exe, because i only need the xml file and have the final jar already.
But javadoc needs the java source files. And the Oxygene compiler creates only the jar file, my source files are pascal syntax.

The solution:
A java decompiler (cfr_0_76.jar) creates me the java source files from jar.
Then i created a python script which transfers me the comments and correct parameter names from pascal source to java source.
Finally javadoc creates me the xml.
All three steps runs from a batch file, the lib and source file names will be automatically identified.
 

billyn_hk

Member
Licensed User
Longtime User
cool ! MaFu

can you share or guide me on doing this ?
currently I got a portsip jar file, but there is no xml, and I want to use it as Lib for B4A.

regards
billy
 

MaFu

Well-Known Member
Licensed User
Longtime User
My solution doesn't work for you. It depends on the case pascal sources with comments exist for the functions in the jar lib.
Anyway you cannot use a normal jar lib in B4A only by adding an xml file. You must create a wrapper lib.
 

billyn_hk

Member
Licensed User
Longtime User
My solution doesn't work for you. It depends on the case pascal sources with comments exist for the functions in the jar lib.
Anyway you cannot use a normal jar lib in B4A only by adding an xml file. You must create a wrapper lib.

thx MaFu, will try to walk thro the wrapper.....
 
Top