jsmooth-cvs Mailing List for JSmooth (Page 18)
Status: Beta
Brought to you by:
reyes
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(64) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(44) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(23) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
(35) |
Mar
(75) |
Apr
(105) |
May
(89) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(12) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <re...@us...> - 2004-03-06 13:54:49
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21736/skeletons/simplewrap Modified Files: main.cpp Log Message: removed un-necessary window creation code, causing bug #858829 Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/main.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** main.cpp 4 Mar 2004 22:13:55 -0000 1.17 --- main.cpp 6 Mar 2004 13:31:52 -0000 1.18 *************** *** 23,28 **** #include "resource.h" - - #include "common.h" #include "ResourceManager.h" --- 23,26 ---- *************** *** 30,43 **** #include "JavaMachineManager.h" - void SaveJarResource(); - - /* Declare Windows procedure */ - LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); - - /* Make the class name into a global variable */ - char szClassName[ ] = "JSmooth"; - ResourceManager* globalResMan; - DebugConsole *DEBUGCONSOLE = NULL; --- 28,32 ---- *************** *** 50,62 **** } - // void debug(std::string text) - // { - // } - - // void _debugOutputCheck(std::string text) - // { - // debug(text); - // } - void _debugOutput(const std::string& text) { --- 39,42 ---- *************** *** 79,125 **** MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ ! ! // jlist->run(); ! atexit(lastExit); - // debugOutput = debug; - - /* The Window structure */ - wincl.hInstance = hThisInstance; - wincl.lpszClassName = szClassName; - wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ - wincl.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW; /* Catch double-clicks */ - wincl.cbSize = sizeof (WNDCLASSEX); - - /* Use default icon and mouse-pointer */ - wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); - wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); - wincl.hCursor = LoadCursor (NULL, IDC_ARROW); - wincl.lpszMenuName = NULL; /* No menu */ - wincl.cbClsExtra = 0; /* No extra bytes after the window class */ - wincl.cbWndExtra = 0; /* structure or the window instance */ - /* Use Windows's default color as the background of the window */ - wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; - - /* Register the window class, and if it fails quit the program */ - if (!RegisterClassEx (&wincl)) - return 0; - - /* The class is registered, let's create the program*/ - - hwnd = CreateWindowEx ( - 0, /* Extended possibilites for variation */ - szClassName, /* Classname */ - "Windows App", /* Title Text */ - WS_OVERLAPPEDWINDOW, /* default window */ - CW_USEDEFAULT, /* Windows decides the position */ - CW_USEDEFAULT, /* where the window ends up on the screen */ - 544, /* The programs width */ - 375, /* and height in pixels */ - HWND_DESKTOP, /* The window is a child-window to desktop */ - NULL, /* No menu */ - hThisInstance, /* Program Instance handler */ - NULL /* No Window Creation data */ - ); globalResMan = new ResourceManager("JAVA", PROPID, JARID); --- 59,64 ---- MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ ! atexit(lastExit); globalResMan = new ResourceManager("JAVA", PROPID, JARID); *************** *** 148,154 **** SetCurrentDirectory(newcurdir.c_str()); - ShowWindow(hwnd, SW_HIDE); - UpdateWindow(hwnd); - JavaMachineManager man(*globalResMan); std::string preferDLLstr = globalResMan->getProperty("skel_SingleProcess"); --- 87,90 ---- *************** *** 167,226 **** } - // MessageBox(hwnd, "Launched java", "DEBUG", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); - DEBUG("NORMAL EXIT"); DEBUGWAITKEY(); - /* Make the window visible on the screen */ - - // ShowWindow (hwnd, nFunsterStil); - // UpdateWindow(hwnd); - /* Run the message loop. It will run until GetMessage() returns 0 */ - // while (GetMessage (&messages, NULL, 0, 0) > 0) - // { - // /* Translate virtual-key messages into character messages */ - // TranslateMessage(&messages); - // /* Send message to WindowProcedure */ - // DispatchMessage(&messages); - // } - - // MessageBox(hwnd, "AFTER GETMESSAGE", "DEBUG", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); - - delete DEBUGCONSOLE; - /* The program return-value is 0 - The value that PostQuitMessage() gave */ return messages.wParam; } - - /* This function is called by the Windows function DispatchMessage() */ - - LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) - { - HDC hdc; - PAINTSTRUCT ps; - - char buffer[255]; - char * mesg = "............................"; - mesg = buffer; - - switch (message) /* handle the messages */ - { - case WM_PAINT: - hdc = BeginPaint(hwnd, &ps); - // TODO: Add any drawing code here... - RECT rt; - GetClientRect(hwnd, &rt); - DrawText(hdc, mesg, 10, &rt, DT_CENTER); - EndPaint(hwnd, &ps); - break; - - case WM_DESTROY: - PostQuitMessage (0); /* send a WM_QUIT to the message queue */ - break; - default: /* for messages that we don't deal with */ - return DefWindowProc (hwnd, message, wParam, lParam); - } - - return 0; - } --- 103,111 ---- |
From: <re...@us...> - 2004-03-06 13:52:40
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21473/skeletons/commonjava Modified Files: SunJVMLauncher.cpp Log Message: minor trace add Index: SunJVMLauncher.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** SunJVMLauncher.cpp 5 Mar 2004 22:52:51 -0000 1.12 --- SunJVMLauncher.cpp 6 Mar 2004 13:29:54 -0000 1.13 *************** *** 307,310 **** --- 307,311 ---- DEBUG("VM CALLED !!"); vm->DestroyJavaVM(); + DEBUG("VM DESTROYED !!"); return true; } |
From: <re...@us...> - 2004-03-06 10:31:23
|
Update of /cvsroot/jsmooth/jsmooth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24047 Modified Files: build.xml Log Message: fixed lib path fileset Index: build.xml =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/build.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** build.xml 5 Mar 2004 22:55:53 -0000 1.18 --- build.xml 6 Mar 2004 10:08:43 -0000 1.19 *************** *** 53,58 **** <path id="jsmooth.class.path"> ! <pathelement path="lib/jox116.jar"/> ! <pathelement path="lib/dtdparser113.jar"/> </path> --- 53,59 ---- <path id="jsmooth.class.path"> ! <fileset dir="lib"> ! <include name="**/*.jar"/> ! </fileset> </path> |
From: <re...@us...> - 2004-03-06 10:23:31
|
Update of /cvsroot/jsmooth/jsmooth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22915 Modified Files: build.number Log Message: -nt Index: build.number =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/build.number,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** build.number 5 Mar 2004 22:55:52 -0000 1.13 --- build.number 6 Mar 2004 10:00:49 -0000 1.14 *************** *** 1,3 **** #Build Number for ANT. Do not edit! ! #Fri Mar 05 18:54:56 GMT+01:00 2004 ! build.number=75 --- 1,3 ---- #Build Number for ANT. Do not edit! ! #Sat Mar 06 10:57:23 GMT+01:00 2004 ! build.number=77 |
From: <re...@us...> - 2004-03-06 10:23:01
|
Update of /cvsroot/jsmooth/jsmooth/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22877/docs Modified Files: jsmooth-doc.xml Log Message: removed un-necessary rational para, and added "jvm bundle" documentation Index: jsmooth-doc.xml =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/docs/jsmooth-doc.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** jsmooth-doc.xml 23 Nov 2003 20:30:53 -0000 1.10 --- jsmooth-doc.xml 6 Mar 2004 10:00:21 -0000 1.11 *************** *** 5,9 **** <article> <articleinfo> - "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" <author> --- 5,8 ---- *************** *** 31,41 **** <para> ! JSmooth is a Java Executable Wrapper that builds standard Windows ! executable binaries (.exe) that launch java applications. Such binaries ! contain all the information needed to launch your java application, ! i.e. the classpath, the java properties, the jvm version required, and ! so on. If Java is not installed, it helps the users by displaying them a ! notice before launching automatically a browser to a web site where they ! can download a JVM. </para> --- 30,39 ---- <para> ! JSmooth is a Java Executable Wrapper. It builds standard Windows ! executable binaries (.exe) that contain all the information needed to ! launch your java application, i.e. the classpath, the java properties, ! the jvm version required, and so on. If Java is not installed, it ! helps the users by displaying a notice and optionally launching a ! browser to a web site where they can download a JVM. </para> *************** *** 70,136 **** </para> ! <para> ! ! Let's examine a few facts: ! ! <itemizedlist> ! ! <listitem><para> The size of a JRE bundle gets bigger and bigger ! as the Java language evolves, as shown in the table below. ! ! <informaltable frame='all'> ! <tgroup cols='2'> ! <colspec colwidth='1.0in'/> ! <colspec colwidth='3.0in'/> ! <tbody> ! <row><entry>Version</entry><entry>Zipped JRE Bundle (approx.)</entry></row> ! <row><entry>JRE 1.1</entry><entry>2MB</entry></row> ! <row><entry>JRE 1.2</entry><entry>11MB</entry></row> ! <row><entry>JRE 1.3</entry><entry>14MB</entry></row> ! <row><entry>JRE 1.4</entry><entry>30MB</entry></row> ! </tbody> ! </tgroup> ! </informaltable> ! ! </para><para> ! ! While it was reasonable to bundle the JRE 1.1 with the ! application, bundling the JRE 1.4 increases drastically the ! size of the bundle. This may not be an issue for vendors ! that are used to sell a packaged box with a CD, but stays ! an open issue for open-source developer and companies ! distributing their software product on the internet. ! ! </para></listitem> ! ! <listitem><para> ! ! Letting average Joe User manage the configuration of his system ! is probably not a good idea either. Do not forget that the choice ! of Java for your application is your choice, not Joe's, and he ! probably don't even know what Java is. Should he really care ! about it? No, for sure. If your software product targets ! experienced users, you are a lucky developer and you may not need ! to worry about the technical details of your application's ! usage. But even for the experienced users, it is always worth it ! making sure they won't loose their time installing and ! configuring the application. ! ! </para><para> ! ! Image now that Joe was smart enough to be able to find a JVM on ! his own, to download and install it. Fine. It'll work ! seamlessly for your own application, you say. Wrong. What if ! your application requires Java 1.4 and what he installed is ! 1.3, because he did a few months ago? The application may not ! work at all, or even worse, partially work. Remember that any ! software anomaly is called a bug, and you are the one ! responsible for the bugs. ! ! </para></listitem> ! ! </itemizedlist> - </para> <para> --- 68,82 ---- </para> ! <para> The size of a JRE bundle gets bigger and bigger ! as the Java language evolves. ! While it was reasonable to bundle the 2MB JRE 1.1 with the ! application, bundling the 14MB JRE 1.4 increases ! drastically the size of the bundle. This may not be an ! issue for vendors that are used to sell a packaged box with ! a CD, but stays an open issue for open-source developer and ! companies distributing their software product on the ! internet. ! </para> <para> *************** *** 164,170 **** for every JVM version. This is the main difference between a simple .bat with "java -Xmx64m -jar myjar" which works only on ! the developer's computer, and an smart wrapper which adapts itself to the end-user's configuration. - </para> --- 110,115 ---- for every JVM version. This is the main difference between a simple .bat with "java -Xmx64m -jar myjar" which works only on ! the developer's computer, and a smart wrapper which adapts itself to the end-user's configuration. </para> *************** *** 620,623 **** --- 565,612 ---- </para> + <warning> + <para> + What the "JVM Bundle" option really specifies, is a path (relative + to the generated EXE) where a JRE can be found. This is NOT an + option to bundle a JRE in the EXE, as many people may think. + </para> + </warning> + + <para> + For the option to work correctly, you have to put a JRE in a + directory near the EXE (generally in a subdirectory called + "jre" or whatever). Once the exe is generated, it will FIRST + try to locate the JRE at the location mentionned. If it can't + be found there, then it will fallback in the normal jre look-up + mode (search for a jre or a jdk in the Windows registry or in + commonly-used environment variables). + </para> + + <para> + Therefore, if you use the "Bundle JVM" option, you'll need to + install yourself the JRE at the same relative path to the EXE. + </para> + + <para> + For instance, take the following example: + <codelisting> + +myprog/ + |- myjar.jar + |- lib/ + + mylib1.jar + + mylib2.jar + |- jre/ + + [full jre stuff here] + |- myexe.exe + </codelisting> + </para> + + <para> + In this case, the generated myexe.exe will try to use first + the jre in the "jre" sub-dir. To deploy it, either simply zip + all the "myprog" directory, or tell your favorite installer to + set-up the jre directory in the same configuration as in your + original folder tree. </para> + </sect3> |
From: <re...@us...> - 2004-03-06 09:25:27
|
Update of /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/skeleton In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14906/src/net/charabia/jsmoothgen/skeleton Modified Files: SkeletonList.java Log Message: minor linefeed removal Index: SkeletonList.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/skeleton/SkeletonList.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** SkeletonList.java 22 Sep 2003 19:28:00 -0000 1.6 --- SkeletonList.java 6 Mar 2004 09:02:49 -0000 1.7 *************** *** 132,136 **** } } - - } --- 132,134 ---- |
From: <re...@us...> - 2004-03-06 09:22:35
|
Update of /cvsroot/jsmooth/jsmooth/jsprj In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14546/jsprj Modified Files: jsmoothcmd.jsmooth jsmoothgen.jsmooth prooftest.jsmooth Log Message: new debug format update Index: jsmoothcmd.jsmooth =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/jsprj/jsmoothcmd.jsmooth,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** jsmoothcmd.jsmooth 23 Nov 2003 18:59:31 -0000 1.3 --- jsmoothcmd.jsmooth 6 Mar 2004 08:59:47 -0000 1.4 *************** *** 11,19 **** <classPath>..\lib\JimiProClasses.zip</classPath> <classPath>..\lib\dtdparser113.jar</classPath> ! <embeddedJar>true</embeddedJar> <executableName>..\jsmoothcmd.exe</executableName> <iconLocation>..\src\icons\gnome-application-x-jar-bm.gif</iconLocation> <initialMemoryHeap>-1</initialMemoryHeap> - <jarLocation>..\jsmoothgen.jar</jarLocation> <javaProperties> <name>jsmooth.basedir</name> --- 11,19 ---- <classPath>..\lib\JimiProClasses.zip</classPath> <classPath>..\lib\dtdparser113.jar</classPath> ! <classPath>..\lib\jsmoothgen.jar</classPath> ! <embeddedJar>false</embeddedJar> <executableName>..\jsmoothcmd.exe</executableName> <iconLocation>..\src\icons\gnome-application-x-jar-bm.gif</iconLocation> <initialMemoryHeap>-1</initialMemoryHeap> <javaProperties> <name>jsmooth.basedir</name> Index: jsmoothgen.jsmooth =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/jsprj/jsmoothgen.jsmooth,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** jsmoothgen.jsmooth 23 Nov 2003 18:59:31 -0000 1.3 --- jsmoothgen.jsmooth 6 Mar 2004 08:59:47 -0000 1.4 *************** *** 11,14 **** --- 11,15 ---- <classPath>..\lib\dtdparser113.jar</classPath> <classPath>..\lib\jsmoothgen.jar</classPath> + <classPath>..\jsmoothgen.jar</classPath> <embeddedJar>false</embeddedJar> <executableName>..\JSmoothGen.exe</executableName> *************** *** 31,34 **** --- 32,39 ---- <skeletonProperties> <key>SingleProcess</key> + <value>1</value> + </skeletonProperties> + <skeletonProperties> + <key>Debug</key> <value>0</value> </skeletonProperties> Index: prooftest.jsmooth =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/jsprj/prooftest.jsmooth,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** prooftest.jsmooth 22 Sep 2003 20:29:21 -0000 1.1 --- prooftest.jsmooth 6 Mar 2004 08:59:47 -0000 1.2 *************** *** 7,10 **** --- 7,11 ---- <JVMSearchPath>exepath</JVMSearchPath> <JVMSearchPath>jview</JVMSearchPath> + <embeddedJar>true</embeddedJar> <executableName>..\proof-test.exe</executableName> <iconLocation>..\src\icons\stock_web-support.png</iconLocation> *************** *** 15,19 **** <maximumVersion></maximumVersion> <minimumVersion></minimumVersion> ! <skeletonName>Windowed Wrapper (Debug)</skeletonName> <skeletonProperties> <key>Message</key> --- 16,20 ---- <maximumVersion></maximumVersion> <minimumVersion></minimumVersion> ! <skeletonName>Windowed Wrapper</skeletonName> <skeletonProperties> <key>Message</key> *************** *** 22,27 **** </skeletonProperties> <skeletonProperties> ! <key>PressKey</key> <value>0</value> </skeletonProperties> </jsmoothproject> --- 23,36 ---- </skeletonProperties> <skeletonProperties> ! <key>URL</key> ! <value>http://www.java.com</value> ! </skeletonProperties> ! <skeletonProperties> ! <key>SingleProcess</key> <value>0</value> </skeletonProperties> + <skeletonProperties> + <key>Debug</key> + <value>1</value> + </skeletonProperties> </jsmoothproject> |
From: <re...@us...> - 2004-03-06 09:22:02
|
Update of /cvsroot/jsmooth/jsmooth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14494 Modified Files: Changelog Log Message: update changes Index: Changelog =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/Changelog,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Changelog 4 Mar 2004 13:48:08 -0000 1.18 --- Changelog 6 Mar 2004 08:59:25 -0000 1.19 *************** *** 3,7 **** account (not only the installed JRE) - Fixed bug #858829 (Windowed Wrapper blocks Explorer) ! - Fixed issue with main class selector 0.9.5 --- 3,14 ---- account (not only the installed JRE) - Fixed bug #858829 (Windowed Wrapper blocks Explorer) ! - Fixed bug #909610 (Class chooser not working when "embedded jar" ! not selected) ! - Fixed bug #910091 (SingleProcess flag of Windowed wrapper not ! working) ! - Fixed bug #854895 (Windowed Wrapper (Debug) does not display ! debug log) ! - adds sorting of the registry JVMs from highest version number to ! lower (thus, most recent JVMs are tried first). 0.9.5 |
From: <re...@us...> - 2004-03-05 23:18:18
|
Update of /cvsroot/jsmooth/jsmooth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20685 Modified Files: build.number build.xml Log Message: updated build script Index: build.number =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/build.number,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** build.number 4 Mar 2004 12:47:31 -0000 1.12 --- build.number 5 Mar 2004 22:55:52 -0000 1.13 *************** *** 1,3 **** #Build Number for ANT. Do not edit! ! #Fri Dec 19 23:39:04 GMT+01:00 2003 ! build.number=68 --- 1,3 ---- #Build Number for ANT. Do not edit! ! #Fri Mar 05 18:54:56 GMT+01:00 2004 ! build.number=75 Index: build.xml =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/build.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** build.xml 4 Mar 2004 14:14:02 -0000 1.17 --- build.xml 5 Mar 2004 22:55:53 -0000 1.18 *************** *** 18,22 **** <!-- set here the properties specific the release --> ! <property name="VERSION" value="0.9.5"/> <!-- You should need to modify the properties below --> --- 18,22 ---- <!-- set here the properties specific the release --> ! <property name="VERSION" value="0.9.6"/> <!-- You should need to modify the properties below --> *************** *** 218,246 **** <copy todir="${dist}" file="${tmp}/docs/license.txt"/> ! ! <!-- Compile the windowed wrapper in debug mode --> ! ! <mkdir dir="${dist}/skeletons/windowed-wrapper-debug"/> ! <antcall target="compileskels"> ! <param name="skelflags" value="-DDEBUGMODE=1"/> ! </antcall> ! <copy todir="${dist}/skeletons/windowed-wrapper-debug" file="skeletons/simplewrap/jwrap.exe"/> ! <copy todir="${dist}/skeletons/windowed-wrapper-debug" file="skeletons/simplewrap/description-debug.skel"/> ! <exec executable="strip.exe" dir="${dist}/skeletons/windowed-wrapper-debug"> ! <arg value="jwrap.exe"/> ! </exec> ! ! <!-- Compile the console wrapper in debug mode --> ! <mkdir dir="${dist}/skeletons/console-wrapper-debug"/> ! <antcall target="compileskels"> ! <param name="skelflags" value="-DDEBUGMODE=2"/> ! </antcall> ! <copy todir="${dist}/skeletons/console-wrapper-debug" file="skeletons/consolewrapper/consolewrapper.exe"/> ! <copy todir="${dist}/skeletons/console-wrapper-debug" file="skeletons/consolewrapper/description-debug.skel"/> ! <exec executable="strip.exe" dir="${dist}/skeletons/console-wrapper-debug"> ! <arg value="consolewrapper.exe"/> ! </exec> ! ! <!-- Compile the normal wrappers --> <ant antfile="build.xml" dir="skeletons/simplewrap/samplejar/" target="dist"/> <ant antfile="build.xml" dir="skeletons/consolewrapper/samplejar/" target="dist"/> --- 218,222 ---- <copy todir="${dist}" file="${tmp}/docs/license.txt"/> ! <!-- Compile the wrappers --> <ant antfile="build.xml" dir="skeletons/simplewrap/samplejar/" target="dist"/> <ant antfile="build.xml" dir="skeletons/consolewrapper/samplejar/" target="dist"/> *************** *** 252,262 **** </antcall> <copy todir="${dist}/skeletons/windowed-wrapper" file="skeletons/simplewrap/jwrap.exe"/> ! <copy todir="${dist}/skeletons/windowed-wrapper" file="skeletons/simplewrap/description-normal.skel"/> <copy todir="${dist}/skeletons/console-wrapper" file="skeletons/consolewrapper/consolewrapper.exe"/> ! <copy todir="${dist}/skeletons/console-wrapper" file="skeletons/consolewrapper/description-normal.skel"/> ! <exec executable="strip.exe" dir="${dist}/skeletons/console-wrapper"> <arg value="consolewrapper.exe"/> </exec> ! <exec executable="strip.exe" dir="${dist}/skeletons/windowed-wrapper"> <arg value="jwrap.exe"/> </exec> --- 228,238 ---- </antcall> <copy todir="${dist}/skeletons/windowed-wrapper" file="skeletons/simplewrap/jwrap.exe"/> ! <copy todir="${dist}/skeletons/windowed-wrapper" file="skeletons/simplewrap/description.skel"/> <copy todir="${dist}/skeletons/console-wrapper" file="skeletons/consolewrapper/consolewrapper.exe"/> ! <copy todir="${dist}/skeletons/console-wrapper" file="skeletons/consolewrapper/description.skel"/> ! <exec executable="${mingw-strip}" dir="${dist}/skeletons/console-wrapper"> <arg value="consolewrapper.exe"/> </exec> ! <exec executable="${mingw-strip}" dir="${dist}/skeletons/windowed-wrapper"> <arg value="jwrap.exe"/> </exec> *************** *** 290,294 **** <target name="compileskels" depends=""> - <!-- clean --> <ant dir="skeletons/simplewrap/samplejar" /> <ant dir="skeletons/consolewrapper/samplejar" /> --- 266,269 ---- *************** *** 306,318 **** <param name="skelflags" value="${skelflags}"/> </antcall> - </target> - <target name="skeleton-debug"> - <antcall target="compileskels"> - <param name="skelflags" value="-DDEBUGMODE=1"/> - </antcall> - </target> - <target name="clean"> <delete dir="${classes}"/> --- 281,286 ---- *************** *** 328,331 **** --- 296,308 ---- </target> + <target name="runskeletoneditor" depends="jar"> + <java classname="net.charabia.jsmoothgen.skeleton.SkeletonEditor" fork="yes" > + <classpath refid="jsmooth.class.path"/> + <classpath> + <pathelement path="${jsmoothjar}"/> + </classpath> + </java> + </target> + <target name="swt-tests" depends="jar"> <java |
From: <re...@us...> - 2004-03-05 23:17:28
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20552/skeletons/simplewrap Modified Files: description.skel Removed Files: description-debug.skel description-normal.skel Log Message: skeleton description updated to suit new debug mode Index: description.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/description.skel,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** description.skel 18 Sep 2003 05:32:37 -0000 1.5 --- description.skel 5 Mar 2004 22:55:10 -0000 1.6 *************** *** 1,87 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <java version="1.4.2" class="java.beans.XMLDecoder"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonBean"> ! <void property="description"> ! <string>This skeleton wraps GUI application. - No console I/O is displayed - If no Java VM is found, it is able to display a configurable URL (typically to a java download page). ! </string> ! </void> ! <void property="executableName"> ! <string>jwrap.exe</string> ! </void> ! <void property="resourceCategory"> ! <string>JAVA</string> ! </void> ! <void property="resourceJarId"> ! <int>102</int> ! </void> ! <void property="resourcePropsId"> ! <int>103</int> ! </void> ! <void property="shortName"> ! <string>Windowed Wrapper</string> ! </void> ! <void property="skeletonProperties"> ! <array class="net.charabia.jsmoothgen.skeleton.SkeletonProperty" length="3"> ! <void index="0"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonProperty"> ! <void property="description"> ! <string>When no JVM is found in the target computer, the user is prompted with the message defined below. Then, the default browser is launched with the URL defined here.</string> ! </void> ! <void property="idName"> ! <string>Message</string> ! </void> ! <void property="label"> ! <string>Message</string> ! </void> ! <void property="type"> ! <string>textarea</string> ! </void> ! <void property="value"> ! <string>Java has not been found on your computer. Do you want to download it?</string> ! </void> ! </object> ! </void> ! <void index="1"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonProperty"> ! <void property="description"> ! <string>If the user selects YES to the message prompted above, the default web browser is launched with this URL.</string> ! </void> ! <void property="idName"> ! <string>URL</string> ! </void> ! <void property="label"> ! <string>URL</string> ! </void> ! <void property="type"> ! <string>string</string> ! </void> ! <void property="value"> ! <string>http://www.java.com</string> ! </void> ! </object> ! </void> ! <void index="2"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonProperty"> ! <void property="description"> ! <string>The default behaviour is to launch the java application in a different (detached) process. If you want to force the wrapper to launch the Java application in the same process than the exe, than select this option.</string> ! </void> ! <void property="idName"> ! <string>SingleProcess</string> ! </void> ! <void property="label"> ! <string>Launch java app in the exe process</string> ! </void> ! <void property="type"> ! <string>boolean</string> ! </void> ! <void property="value"> ! <string>0</string> ! </void> ! </object> ! </void> ! </array> ! </void> ! </object> ! </java> --- 1,41 ---- ! <?xml version="1.0" encoding="ISO-8859-1"?> ! <jsmoothskeleton> ! <debug>false</debug> ! <description>This skeleton wraps GUI applications. - No console I/O is displayed - If no Java VM is found, it is able to display a configurable URL (typically to a java download page). ! </description> ! <executableName>jwrap.exe</executableName> ! <resourceCategory>JAVA</resourceCategory> ! <resourceJarId>102</resourceJarId> ! <resourcePropsId>103</resourcePropsId> ! <shortName>Windowed Wrapper</shortName> ! <skeletonProperties> ! <description>When no JVM is found in the target computer, the user is prompted with the message defined below. Then, the default browser is launched with the URL defined here.</description> ! <idName>Message</idName> ! <label>Message</label> ! <type>textarea</type> ! <value>Java has not been found on your computer. Do you want to download it?</value> ! </skeletonProperties> ! <skeletonProperties> ! <description>If the user selects YES to the message prompted above, the default web browser is launched with this URL.</description> ! <idName>URL</idName> ! <label>URL</label> ! <type>string</type> ! <value>http://www.java.com</value> ! </skeletonProperties> ! <skeletonProperties> ! <description>The default behaviour is to launch the java application in a different (detached) process. If you want to force the wrapper to launch the Java application in the same process than the exe, than select this option.</description> ! <idName>SingleProcess</idName> ! <label>Launch java app in the exe process</label> ! <type>boolean</type> ! <value>0</value> ! </skeletonProperties> ! <skeletonProperties> ! <description>Enable the jsmooth debug console.</description> ! <idName>Debug</idName> ! <label>Debug console</label> ! <type>boolean</type> ! <value>0</value> ! </skeletonProperties> ! </jsmoothskeleton> --- description-debug.skel DELETED --- --- description-normal.skel DELETED --- |
From: <re...@us...> - 2004-03-05 23:17:28
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20552/skeletons/consolewrapper Modified Files: description.skel Removed Files: description-debug.skel description-normal.skel Log Message: skeleton description updated to suit new debug mode Index: description.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper/description.skel,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** description.skel 3 Sep 2003 05:45:13 -0000 1.2 --- description.skel 5 Mar 2004 22:55:10 -0000 1.3 *************** *** 1,71 **** ! <?xml version="1.0" encoding="UTF-8"?> ! <java version="1.4.2" class="java.beans.XMLDecoder"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonBean"> ! <void property="description"> ! <string>This skeleton wraps a console application. ! - Output/Error and Input are available - If no Java VM is found, it displays a default message. ! Although it is designed for console application (i.e. launched from the command.com shell prompt), it can launch standard GUI application. In such a case, any output of the java application (from System.out or System.err) is displayed on the a DOS Console. ! </string> ! </void> ! <void property="executableName"> ! <string>consolewrapper.exe</string> ! </void> ! <void property="resourceCategory"> ! <string>JAVA</string> ! </void> ! <void property="resourceJarId"> ! <int>102</int> ! </void> ! <void property="resourcePropsId"> ! <int>103</int> ! </void> ! <void property="shortName"> ! <string>Console Wrapper</string> ! </void> ! <void property="skeletonProperties"> ! <array class="net.charabia.jsmoothgen.skeleton.SkeletonProperty" length="2"> ! <void index="0"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonProperty"> ! <void property="description"> ! <string>When no JVM is found in the target computer, the following message is displayed on the console.</string> ! </void> ! <void property="idName"> ! <string>Message</string> ! </void> ! <void property="label"> ! <string>Message</string> ! </void> ! <void property="type"> ! <string>textarea</string> ! </void> ! <void property="value"> ! <string>This program needs Java to run. ! Please download it at http://www.java.com</string> ! </void> ! </object> ! </void> ! <void index="1"> ! <object class="net.charabia.jsmoothgen.skeleton.SkeletonProperty"> ! <void property="description"> ! <string>The wrapper waits a keypress on the console when the application exits.</string> ! </void> ! <void property="idName"> ! <string>PressKey</string> ! </void> ! <void property="label"> ! <string>PressKey</string> ! </void> ! <void property="type"> ! <string>boolean</string> ! </void> ! <void property="value"> ! <string>0</string> ! </void> ! </object> ! </void> ! </array> ! </void> ! </object> ! </java> --- 1,37 ---- ! <?xml version="1.0" encoding="ISO-8859-1"?> ! <jsmoothskeleton> ! <debug>false</debug> ! <description>This skeleton wraps console applications. ! - Standard Input/Output and Error streams are available - If no Java VM is found, it displays a default message. ! Although it is designed for console application (i.e. launched from the command.com shell prompt), it can launch standard GUI application. In such a case, any output of the java application (from System.out or System.err) is displayed in the a DOS Console. ! </description> ! <executableName>consolewrapper.exe</executableName> ! <resourceCategory>JAVA</resourceCategory> ! <resourceJarId>102</resourceJarId> ! <resourcePropsId>103</resourcePropsId> ! <shortName>Console Wrapper</shortName> ! <skeletonProperties> ! <description>When no JVM is found in the target computer, the following message is displayed on the console.</description> ! <idName>Message</idName> ! <label>Message</label> ! <type>textarea</type> ! <value>This program needs Java to run. ! Please download it at http://www.java.com</value> ! </skeletonProperties> ! <skeletonProperties> ! <description>The wrapper waits a keypress on the console when the application exits.</description> ! <idName>PressKey</idName> ! <label>PressKey</label> ! <type>boolean</type> ! <value>0</value> ! </skeletonProperties> ! <skeletonProperties> ! <description>Enable the jsmooth debug traces</description> ! <idName>Debug</idName> ! <label>Debug traces</label> ! <type>boolean</type> ! <value>0</value> ! </skeletonProperties> ! </jsmoothskeleton> --- description-debug.skel DELETED --- --- description-normal.skel DELETED --- |
From: <re...@us...> - 2004-03-05 23:15:10
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19864/skeletons/commonjava Modified Files: JavaMachineManager.cpp JVMRegistryLookup.cpp SunJVMLauncher.cpp SunJVMLauncher.h Log Message: adds sorting of the registry JVMs from highest version number to lower Index: JavaMachineManager.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/JavaMachineManager.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** JavaMachineManager.cpp 4 Mar 2004 18:38:56 -0000 1.8 --- JavaMachineManager.cpp 5 Mar 2004 22:52:51 -0000 1.9 *************** *** 73,76 **** --- 73,83 ---- { DEBUG("Trying to use a JVM defined in the registry (" + StringUtils::toString(m_registryVms.size()) + " available)"); + string vms = "VM will be tried in the following order: "; + for (int i=0; i<m_registryVms.size(); i++) + { + vms += m_registryVms[i].VmVersion.toString(); + vms += ";"; + } + DEBUG(vms); for (int i=0; i<m_registryVms.size(); i++) Index: JVMRegistryLookup.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/JVMRegistryLookup.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JVMRegistryLookup.cpp 4 Mar 2004 18:38:56 -0000 1.3 --- JVMRegistryLookup.cpp 5 Mar 2004 22:52:51 -0000 1.4 *************** *** 21,27 **** --- 21,36 ---- #include "JVMRegistryLookup.h" + struct jvmsorter_dec : public binary_function<const SunJVMLauncher&, const SunJVMLauncher&, bool> + { + bool operator()(const SunJVMLauncher& s1, const SunJVMLauncher& s2) + { + return s2 < s1; + } + }; + vector<SunJVMLauncher> JVMRegistryLookup::lookupJVM() { vector<SunJVMLauncher> res = JVMRegistryLookup::lookup(HKEY_LOCAL_MACHINE, "SOFTWARE\\JavaSoft\\Java Runtime Environment"); + vector<SunJVMLauncher> res2 = JVMRegistryLookup::lookup(HKEY_LOCAL_MACHINE, "SOFTWARE\\JavaSoft\\Java Development Kit"); *************** *** 31,34 **** --- 40,45 ---- } + std::sort(res.begin(), res.end(), jvmsorter_dec() ); + return res; } Index: SunJVMLauncher.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** SunJVMLauncher.cpp 4 Mar 2004 21:03:11 -0000 1.11 --- SunJVMLauncher.cpp 5 Mar 2004 22:52:51 -0000 1.12 *************** *** 724,725 **** --- 724,730 ---- } } + + bool operator < (const SunJVMLauncher& v1, const SunJVMLauncher& v2) + { + return v1.VmVersion < v2.VmVersion; + } Index: SunJVMLauncher.h =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SunJVMLauncher.h 22 Sep 2003 19:26:41 -0000 1.5 --- SunJVMLauncher.h 5 Mar 2004 22:52:51 -0000 1.6 *************** *** 98,101 **** --- 98,105 ---- Version guessVersionByProcess(const string& exepath); + // int operator<(const SunJVMLauncher& other) const; + + friend bool operator < (const SunJVMLauncher& v1, const SunJVMLauncher& v2); + private: *************** *** 110,112 **** --- 114,117 ---- }; + #endif |
From: <re...@us...> - 2004-03-05 13:36:01
|
Update of /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26627/src/net/charabia/jsmoothgen/application/gui Modified Files: JavaApp.java Log Message: fixes bug #909610 ( Class chooser not working when "embedded jar" not selected) JarClassChooser now also displays all the classes available in the classpath. Index: JavaApp.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/JavaApp.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** JavaApp.java 19 Nov 2003 22:17:16 -0000 1.11 --- JavaApp.java 5 Mar 2004 13:14:00 -0000 1.12 *************** *** 202,217 **** // Add your handling code here: try { ! File jar = m_jarLocation.getFile(); ! if (jar.isAbsolute() == false) ! { ! jar = new File(m_basedir, jar.toString()); ! } ! JarFile jf = new JarFile(jar); ! if (m_classchooser == null) { m_classchooser = new JarClassChooser(JOptionPane.getFrameForComponent(this), true); m_classchooser.setLocationRelativeTo(this); } ! m_classchooser.setJar(jf); System.out.println("Classname to set: " + m_mainClassName.getText()); m_classchooser.setClassName((m_mainClassName.getText()!=null)?m_mainClassName.getText():""); --- 202,232 ---- // Add your handling code here: try { ! if (m_classchooser == null) { m_classchooser = new JarClassChooser(JOptionPane.getFrameForComponent(this), true); m_classchooser.setLocationRelativeTo(this); } ! m_classchooser.clear(); ! ! if (m_embedJar.isSelected() && (m_jarLocation.getFile() != null)) ! { ! File jar = m_jarLocation.getFile(); ! if (jar.isAbsolute() == false) ! { ! jar = new File(m_basedir, jar.toString()); ! } ! JarFile jf = new JarFile(jar); ! m_classchooser.addJar(jf); ! } ! ! Object[] cpels = m_classPathList.getData(); ! for (int i=0; i<cpels.length; i++) ! { ! File f = (File)cpels[i]; ! if (f.isAbsolute() == false) ! f = new File(m_basedir, f.toString()); ! m_classchooser.addJar(new JarFile(f)); ! } ! System.out.println("Classname to set: " + m_mainClassName.getText()); m_classchooser.setClassName((m_mainClassName.getText()!=null)?m_mainClassName.getText():""); |
From: <re...@us...> - 2004-03-05 13:35:59
|
Update of /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26627/src/net/charabia/jsmoothgen/application/gui/util Modified Files: JarClassChooser.java Log Message: fixes bug #909610 ( Class chooser not working when "embedded jar" not selected) JarClassChooser now also displays all the classes available in the classpath. Index: JarClassChooser.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/util/JarClassChooser.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** JarClassChooser.java 4 Mar 2004 12:46:17 -0000 1.4 --- JarClassChooser.java 5 Mar 2004 13:14:00 -0000 1.5 *************** *** 107,122 **** initComponents(); } ! ! public void setJar(JarFile jf) { ! JarEntryTreeNode root = new JarEntryTreeNode(jf.getName()); ! m_root = root; for (Enumeration e=jf.entries(); e.hasMoreElements(); ) { - JarEntry entry = (JarEntry)e.nextElement(); String[] res = entry.toString().split("/"); ! System.out.println("JarEntry: " + entry); if ((res.length > 0) && (res[res.length-1].toLowerCase().endsWith(".class"))) { --- 107,125 ---- initComponents(); } ! ! public void clear() { ! JarEntryTreeNode root = new JarEntryTreeNode("Available Classes"); ! m_root = root; ! m_tree.setModel(new DefaultTreeModel(m_root)); ! } + public void addJar(JarFile jf) + { for (Enumeration e=jf.entries(); e.hasMoreElements(); ) { JarEntry entry = (JarEntry)e.nextElement(); String[] res = entry.toString().split("/"); ! // System.out.println("JarEntry: " + entry); if ((res.length > 0) && (res[res.length-1].toLowerCase().endsWith(".class"))) { *************** *** 124,130 **** rs = rs.substring(0, rs.length()-6); res[res.length-1] = rs; ! root.add(res); } } m_tree.setModel(new DefaultTreeModel(root)); } --- 127,140 ---- rs = rs.substring(0, rs.length()-6); res[res.length-1] = rs; ! m_root.add(res); } } + } + + public void setJar(JarFile jf) + { + JarEntryTreeNode root = new JarEntryTreeNode(jf.getName()); + m_root = root; + m_tree.setModel(new DefaultTreeModel(root)); } |
From: <re...@us...> - 2004-03-04 23:38:36
|
Update of /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12150/src/net/charabia/jsmoothgen/application/gui Modified Files: SkeletonChooser.form SkeletonChooser.java Log Message: disabled debug mode selection (now done at runtime) Index: SkeletonChooser.form =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/SkeletonChooser.form,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SkeletonChooser.form 21 Sep 2003 14:06:29 -0000 1.3 --- SkeletonChooser.form 4 Mar 2004 23:17:02 -0000 1.4 *************** *** 52,68 **** </SubComponents> </Container> - <Component class="javax.swing.JCheckBox" name="m_cbDebug"> - <Properties> - <Property name="text" type="java.lang.String" value="Display Debug Wrapper"/> - </Properties> - <Events> - <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbDebugActionPerformed"/> - </Events> - <Constraints> - <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> - <GridBagConstraints gridX="-1" gridY="-1" gridWidth="0" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> - </Constraint> - </Constraints> - </Component> </SubComponents> </Form> --- 52,55 ---- Index: SkeletonChooser.java =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/src/net/charabia/jsmoothgen/application/gui/SkeletonChooser.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SkeletonChooser.java 21 Sep 2003 14:06:29 -0000 1.7 --- SkeletonChooser.java 4 Mar 2004 23:17:02 -0000 1.8 *************** *** 53,60 **** Iterator i = null; SkeletonBean skel = list.getSkeleton(m_model.getSkeletonName()); ! if (((skel != null) && (skel.isDebug())) || (m_cbDebug.isSelected())) ! i = m_list.getIteratorName(); ! else ! i = m_list.getIteratorNoDebugName(); for (; i.hasNext(); ) --- 53,60 ---- Iterator i = null; SkeletonBean skel = list.getSkeleton(m_model.getSkeletonName()); ! // if (((skel != null) && (skel.isDebug())) || (m_cbDebug.isSelected())) ! // i = m_list.getIteratorName(); ! // else ! i = m_list.getIteratorNoDebugName(); for (; i.hasNext(); ) *************** *** 85,89 **** jScrollPane2 = new javax.swing.JScrollPane(); m_skeletonDescription = new javax.swing.JTextPane(); - m_cbDebug = new javax.swing.JCheckBox(); setLayout(new java.awt.GridBagLayout()); --- 85,88 ---- *************** *** 131,159 **** add(jScrollPane2, gridBagConstraints); - m_cbDebug.setText("Display Debug Wrapper"); - m_cbDebug.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(java.awt.event.ActionEvent evt) - { - cbDebugActionPerformed(evt); - } - }); - - gridBagConstraints = new java.awt.GridBagConstraints(); - gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; - gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; - add(m_cbDebug, gridBagConstraints); - }//GEN-END:initComponents - private void cbDebugActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_cbDebugActionPerformed - {//GEN-HEADEREND:event_cbDebugActionPerformed - // Add your handling code here: - if (m_list != null) - { - setSkeletonList(m_list); - } - }//GEN-LAST:event_cbDebugActionPerformed - private void comboNamesActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_comboNamesActionPerformed {//GEN-HEADEREND:event_comboNamesActionPerformed --- 130,135 ---- *************** *** 189,193 **** private javax.swing.JLabel jLabel2; private javax.swing.JScrollPane jScrollPane2; - private javax.swing.JCheckBox m_cbDebug; private javax.swing.JComboBox m_comboNames; private javax.swing.JTextPane m_skeletonDescription; --- 165,168 ---- |
From: <re...@us...> - 2004-03-04 22:56:32
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2308/skeletons/simplewrap Modified Files: description-normal.skel Log Message: added option to enable or disable the debug console at runtime Index: description-normal.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/description-normal.skel,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** description-normal.skel 17 Nov 2003 19:15:50 -0000 1.2 --- description-normal.skel 4 Mar 2004 22:35:01 -0000 1.3 *************** *** 1,4 **** --- 1,5 ---- <?xml version="1.0" encoding="ISO-8859-1"?> <jsmoothskeleton> + <debug>false</debug> <description>This skeleton wraps GUI applications. - No console I/O is displayed *************** *** 31,33 **** --- 32,41 ---- <value>0</value> </skeletonProperties> + <skeletonProperties> + <description>Enable the jsmooth debug console.</description> + <idName>Debug</idName> + <label>Debug console</label> + <type>boolean</type> + <value>0</value> + </skeletonProperties> </jsmoothskeleton> |
From: <re...@us...> - 2004-03-04 22:56:31
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2308/skeletons/consolewrapper Modified Files: description-normal.skel main.cpp Log Message: added option to enable or disable the debug console at runtime Index: description-normal.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper/description-normal.skel,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** description-normal.skel 17 Nov 2003 19:15:50 -0000 1.2 --- description-normal.skel 4 Mar 2004 22:35:01 -0000 1.3 *************** *** 1,4 **** --- 1,5 ---- <?xml version="1.0" encoding="ISO-8859-1"?> <jsmoothskeleton> + <debug>false</debug> <description>This skeleton wraps console applications. - Standard Input/Output and Error streams are available *************** *** 27,29 **** --- 28,37 ---- <value>0</value> </skeletonProperties> + <skeletonProperties> + <description>Enable the jsmooth debug traces</description> + <idName>Debug</idName> + <label>Debug traces</label> + <type>boolean</type> + <value>0</value> + </skeletonProperties> </jsmoothskeleton> Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/consolewrapper/main.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main.cpp 4 Mar 2004 08:23:44 -0000 1.8 --- main.cpp 4 Mar 2004 22:35:01 -0000 1.9 *************** *** 32,39 **** using namespace std; void _debugOutput(const std::string& text) { ! std::cerr << text << "\r\n"; } --- 32,41 ---- using namespace std; + bool enableDebug = false; void _debugOutput(const std::string& text) { ! if (enableDebug) ! std::cerr << text << "\r\n"; } *************** *** 45,48 **** --- 47,56 ---- { ResourceManager* globalResMan = new ResourceManager("JAVA", PROPID, JARID); + std::string dodebug = globalResMan->getProperty("skel_Debug"); + if (StringUtils::parseInt(dodebug) != 0) + { + enableDebug = true; + } + char curdir[256]; GetCurrentDirectory(256, curdir); |
From: <re...@us...> - 2004-03-04 22:35:26
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29990/skeletons/simplewrap Modified Files: main.cpp Log Message: added option to enable or disable the debug console at runtime Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/main.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** main.cpp 4 Mar 2004 21:04:49 -0000 1.16 --- main.cpp 4 Mar 2004 22:13:55 -0000 1.17 *************** *** 40,45 **** --- 40,49 ---- ResourceManager* globalResMan; + DebugConsole *DEBUGCONSOLE = NULL; + void lastExit() { + delete DEBUGCONSOLE; + DEBUGCONSOLE = 0; delete globalResMan; globalResMan = 0; *************** *** 54,67 **** // debug(text); // } - DebugConsole DEBUGCONSOLE("JSmooth Debug"); void _debugOutput(const std::string& text) { ! DEBUGCONSOLE.writeline(text); } void _debugWaitKey() { ! DEBUGCONSOLE.waitKey(); } --- 58,72 ---- // debug(text); // } void _debugOutput(const std::string& text) { ! if (DEBUGCONSOLE != NULL) ! DEBUGCONSOLE->writeline(text); } void _debugWaitKey() { ! if (DEBUGCONSOLE != NULL) ! DEBUGCONSOLE->waitKey(); } *************** *** 119,122 **** --- 124,134 ---- globalResMan = new ResourceManager("JAVA", PROPID, JARID); + + std::string dodebug = globalResMan->getProperty("skel_Debug"); + if (StringUtils::parseInt(dodebug) != 0) + { + DEBUGCONSOLE = new DebugConsole("JSmooth Debug"); + } + DEBUG(string("Main class: ") + globalResMan->getMainName()); *************** *** 175,178 **** --- 187,192 ---- // MessageBox(hwnd, "AFTER GETMESSAGE", "DEBUG", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); + delete DEBUGCONSOLE; + /* The program return-value is 0 - The value that PostQuitMessage() gave */ return messages.wParam; |
From: <re...@us...> - 2004-03-04 22:34:44
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29857/skeletons/commonjava Modified Files: common.h Log Message: removed un-necessary DEBUGCONSOLE reference Index: common.h =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/common.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** common.h 4 Mar 2004 08:18:41 -0000 1.10 --- common.h 4 Mar 2004 22:13:10 -0000 1.11 *************** *** 33,37 **** extern std::vector< std::string > LOG; - extern DebugConsole DEBUGCONSOLE; void _debugOutput(const std::string& text); --- 33,36 ---- |
From: <re...@us...> - 2004-03-04 21:26:20
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/simplewrap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13500/skeletons/simplewrap Modified Files: main.cpp Log Message: debug message uncommented Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/simplewrap/main.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** main.cpp 4 Mar 2004 08:23:44 -0000 1.15 --- main.cpp 4 Mar 2004 21:04:49 -0000 1.16 *************** *** 142,147 **** std::string preferDLLstr = globalResMan->getProperty("skel_SingleProcess"); - MessageBox(hwnd, preferDLLstr.c_str(), "preferDLL", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); - bool preferDLL = false; if (StringUtils::parseInt(preferDLLstr) > 0) --- 142,145 ---- *************** *** 159,164 **** // MessageBox(hwnd, "Launched java", "DEBUG", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); ! // DEBUG("NORMAL EXIT"); ! // DEBUGWAITKEY(); /* Make the window visible on the screen */ --- 157,162 ---- // MessageBox(hwnd, "Launched java", "DEBUG", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); ! DEBUG("NORMAL EXIT"); ! DEBUGWAITKEY(); /* Make the window visible on the screen */ |
From: <re...@us...> - 2004-03-04 21:24:41
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13247/skeletons/commonjava Modified Files: SunJVMLauncher.cpp Log Message: Fixes bug #910091 (SingleProcess flag of Windowed wrapper not working). was due to the class name being set with "." as separator instead of "/"! Index: SunJVMLauncher.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SunJVMLauncher.cpp 4 Mar 2004 18:38:56 -0000 1.10 --- SunJVMLauncher.cpp 4 Mar 2004 21:03:11 -0000 1.11 *************** *** 228,234 **** JavaVMInitArgs vm_args; JavaVMOption options[1 + jpropstrv.size()]; ! std::string cpoption = "-Djava.class.path="; cpoption += jarpath; cpoption += ";" + resource.getNormalizedClassPath(); DEBUG("Classpath: " + cpoption); --- 228,235 ---- JavaVMInitArgs vm_args; JavaVMOption options[1 + jpropstrv.size()]; ! std::string cpoption = "-Djava.class.path=\""; cpoption += jarpath; cpoption += ";" + resource.getNormalizedClassPath(); + cpoption += "\""; DEBUG("Classpath: " + cpoption); *************** *** 268,272 **** return false; } ! cls = (env)->FindClass(classname.c_str()); if (cls == 0) --- 269,275 ---- return false; } ! ! classname = StringUtils::replace(classname,".", "/"); ! DEBUG("Look for " + classname); cls = (env)->FindClass(classname.c_str()); if (cls == 0) *************** *** 433,437 **** return false; } ! cls = (env)->FindClass(classname.c_str()); if (cls == 0) --- 436,441 ---- return false; } ! ! classname = StringUtils::replace(classname,".", "/"); cls = (env)->FindClass(classname.c_str()); if (cls == 0) *************** *** 444,448 **** } else ! DEBUG("CLASS FOUND"); char strbuf[255]; --- 448,452 ---- } else ! DEBUG("CLASS "+ classname +" FOUND"); char strbuf[255]; |
Update of /cvsroot/jsmooth/jsmooth/skeletons/commonjava In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11985/skeletons/commonjava Modified Files: FileUtils.cpp JavaMachineManager.cpp JVMEnvVarLookup.cpp JVMRegistryLookup.cpp Properties.cpp ResourceManager.cpp SunJVMLauncher.cpp Log Message: improved debug messages Index: FileUtils.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/FileUtils.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FileUtils.cpp 16 Nov 2003 09:05:49 -0000 1.5 --- FileUtils.cpp 4 Mar 2004 18:38:56 -0000 1.6 *************** *** 35,40 **** } while (GetFileAttributes(temp.c_str()) != 0xFFFFFFFF); - DEBUG("TEMPFILE: " + temp); - return temp; } --- 35,38 ---- *************** *** 53,66 **** string file = path + ((path[path.length()-1]=='\\')?"":"\\") + pattern; - DEBUG("scanning " + file); - HANDLE handle = FindFirstFile(file.c_str(), &data); if (handle != INVALID_HANDLE_VALUE) { - DEBUG(string("Found first file ") + data.cFileName); result.push_back(path + ((path[path.length()-1]=='\\')?"":"\\") + data.cFileName); for ( ; FindNextFile(handle, &data) == TRUE ; ) { - DEBUG(string("ADDED ") + data.cFileName); result.push_back(path + ((path[path.length()-1]=='\\')?"":"\\") + data.cFileName); } --- 51,60 ---- *************** *** 77,81 **** if ((foundpath != ".") && (foundpath != "..") && ((data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0)) { - DEBUG(string("REC DIR FOUND ") + data.cFileName + " (attr: " + StringUtils::toString(data.dwFileAttributes) + ") / " + StringUtils::toString(FILE_ATTRIBUTE_DIRECTORY)); string npath = path + ((path[path.length()-1]=='\\')?"":"\\") + data.cFileName; vector<string> tres = FileUtils::recursiveSearch(npath, pattern); --- 71,74 ---- Index: JavaMachineManager.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/JavaMachineManager.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** JavaMachineManager.cpp 16 Nov 2003 09:05:49 -0000 1.7 --- JavaMachineManager.cpp 4 Mar 2004 18:38:56 -0000 1.8 *************** *** 23,42 **** JavaMachineManager::JavaMachineManager(ResourceManager& resman): m_resman(resman) { m_registryVms = JVMRegistryLookup::lookupJVM(); m_javahomeVm = JVMEnvVarLookup::lookupJVM("JAVA_HOME"); m_jrepathVm = JVMEnvVarLookup::lookupJVM("JRE_PATH"); m_jdkpathVm = JVMEnvVarLookup::lookupJVM("JDK_PATH"); if (resman.getProperty("bundledvm").length() > 0) { string bjvm = resman.getProperty("bundledvm"); ! DEBUG("Found bundled vm <" + bjvm + ">"); m_localVMenabled = true; m_localVM.JavaHome = FileUtils::concFile(resman.getCurrentDirectory(), bjvm); - DEBUG("Curdir is " + resman.getCurrentDirectory()); - DEBUG("Stored as " + m_localVM.JavaHome); } else { m_localVMenabled = false; } } --- 23,44 ---- JavaMachineManager::JavaMachineManager(ResourceManager& resman): m_resman(resman) { + DEBUG("Now searching the JVM installed on the system..."); + m_registryVms = JVMRegistryLookup::lookupJVM(); m_javahomeVm = JVMEnvVarLookup::lookupJVM("JAVA_HOME"); m_jrepathVm = JVMEnvVarLookup::lookupJVM("JRE_PATH"); m_jdkpathVm = JVMEnvVarLookup::lookupJVM("JDK_PATH"); + if (resman.getProperty("bundledvm").length() > 0) { string bjvm = resman.getProperty("bundledvm"); ! DEBUG("Found a vm bundled with the application: (" + bjvm + ")"); m_localVMenabled = true; m_localVM.JavaHome = FileUtils::concFile(resman.getCurrentDirectory(), bjvm); } else { m_localVMenabled = false; } + DEBUG("Current directory is " + resman.getCurrentDirectory()); } *************** *** 47,51 **** if (m_localVMenabled) { ! DEBUG("Trying bundled VM " + m_localVM.JavaHome); if (m_localVM.runProc(m_resman, dontUseConsole, "bundled")) return true; --- 49,53 ---- if (m_localVMenabled) { ! DEBUG("Trying to use bundled VM " + m_localVM.JavaHome); if (m_localVM.runProc(m_resman, dontUseConsole, "bundled")) return true; *************** *** 60,64 **** } ! DEBUG("VMORDER == " + vmorder); vector<string> jvmorder = StringUtils::split(vmorder, ";,", ""); --- 62,66 ---- } ! DEBUG("JSmooth will now try to use the VM in the following order: " + vmorder); vector<string> jvmorder = StringUtils::split(vmorder, ";,", ""); *************** *** 66,75 **** for (vector<string>::const_iterator i = jvmorder.begin(); i != jvmorder.end(); i++) { if (*i == "registry") { ! DEBUG("Lookup " + *i + " :: " + StringUtils::toString(m_registryVms.size())); for (int i=0; i<m_registryVms.size(); i++) { ! DEBUG("trying registry: " + m_registryVms[i].toString()); if (dontUseConsole) --- 68,80 ---- for (vector<string>::const_iterator i = jvmorder.begin(); i != jvmorder.end(); i++) { + DEBUG("------------------------------"); + if (*i == "registry") { ! DEBUG("Trying to use a JVM defined in the registry (" + StringUtils::toString(m_registryVms.size()) + " available)"); ! for (int i=0; i<m_registryVms.size(); i++) { ! DEBUG("- Trying registry: " + m_registryVms[i].toString()); if (dontUseConsole) *************** *** 83,97 **** if (preferSingleProcess) { if (m_registryVms[i].run(m_resman, "registry")) { return true; ! } else if (m_registryVms[i].runProc(m_resman, dontUseConsole, "registry")) ! { ! return true; ! } } else { - DEBUG("DONT USE CONSOLE == TRUE"); if (m_registryVms[i].runProc(m_resman, dontUseConsole, "registry")) { --- 88,105 ---- if (preferSingleProcess) { + DEBUG("Trying to run the JVM as a DLL call (executing in this process)..."); if (m_registryVms[i].run(m_resman, "registry")) { return true; ! } ! DEBUG("Well, couldn't use a DLL (see traces above), so falling back into normal process creation mode"); ! ! if (m_registryVms[i].runProc(m_resman, dontUseConsole, "registry")) ! { ! return true; ! } } else { if (m_registryVms[i].runProc(m_resman, dontUseConsole, "registry")) { *************** *** 116,123 **** } } } } else if (*i == "jview") { ! DEBUG("trying JVIEW"); if (m_jviewVm.runProc(m_resman, dontUseConsole)) { --- 124,132 ---- } } + DEBUG("Couldn't use this VM, now trying something else"); } } else if (*i == "jview") { ! DEBUG("- Trying to launch the application with JVIEW"); if (m_jviewVm.runProc(m_resman, dontUseConsole)) { *************** *** 127,131 **** } else if (*i == "javahome") { ! DEBUG("trying JAVAHOME"); if (m_javahomeVm.size()>0) { --- 136,140 ---- } else if (*i == "javahome") { ! DEBUG("- Trying to use JAVAHOME"); if (m_javahomeVm.size()>0) { *************** *** 137,153 **** } } - - // for (int i=0; i<m_registryVms.size(); i++) - // { - // DEBUG("trying registry PROC: " + m_registryVms[i].toString()); - // if (m_registryVms[i].runProc(m_resman, dontUseConsole, "javahome")) - // { - // return true; - // } - // } - } else if (*i == "jrepath") { ! DEBUG("trying JREPATH"); if (m_jrepathVm.size()>0) { --- 146,152 ---- } } } else if (*i == "jrepath") { ! DEBUG("- Trying to use JREPATH"); if (m_jrepathVm.size()>0) { *************** *** 159,163 **** } else if (*i == "jdkpath") { ! DEBUG("trying JDKPATH"); if (m_jdkpathVm.size()>0) { --- 158,162 ---- } else if (*i == "jdkpath") { ! DEBUG("- Trying to use JDKPATH"); if (m_jdkpathVm.size()>0) { Index: JVMEnvVarLookup.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/JVMEnvVarLookup.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JVMEnvVarLookup.cpp 2 Sep 2003 05:48:01 -0000 1.1 --- JVMEnvVarLookup.cpp 4 Mar 2004 18:38:56 -0000 1.2 *************** *** 31,40 **** SunJVMLauncher jvm; jvm.JavaHome = buffer; ! DEBUG("ENVVAR " + envvar + " FOUND = " + buffer); result.push_back(jvm); } else { ! DEBUG("ENVVAR " + envvar + " NOT FOUND"); } --- 31,40 ---- SunJVMLauncher jvm; jvm.JavaHome = buffer; ! DEBUG("JVM Lookup: Env-Var " + envvar + " defined (" + buffer + ")!"); result.push_back(jvm); } else { ! DEBUG("JVM Lookup: Env-Var " + envvar + " not defined on this system."); } Index: JVMRegistryLookup.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/JVMRegistryLookup.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JVMRegistryLookup.cpp 4 Mar 2004 08:21:08 -0000 1.2 --- JVMRegistryLookup.cpp 4 Mar 2004 18:38:56 -0000 1.3 *************** *** 93,97 **** char buffer[244]; sprintf(buffer, "V(%d)(%d)(%d)", vm.VmVersion.getMajor(), vm.VmVersion.getMinor(), vm.VmVersion.getSubMinor()); ! DEBUG(std::string("Found new VM: ") + vm.RuntimeLibPath + " : " + vm.JavaHome + " : "+ vm.VmVersion.Value + " :: " + buffer); } } --- 93,97 ---- char buffer[244]; sprintf(buffer, "V(%d)(%d)(%d)", vm.VmVersion.getMajor(), vm.VmVersion.getMinor(), vm.VmVersion.getSubMinor()); ! DEBUG(std::string("JVM Lookup: found VM (") + buffer + ") in registry."); } } Index: Properties.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/Properties.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Properties.cpp 4 Mar 2004 08:19:46 -0000 1.3 --- Properties.cpp 4 Mar 2004 18:38:56 -0000 1.4 *************** *** 35,39 **** { int cursor = 0; ! DEBUG(string("Extracting properties from resource ") + data); while (cursor < datalen) --- 35,39 ---- { int cursor = 0; ! DEBUG("Extracting properties from resource:"); while (cursor < datalen) Index: ResourceManager.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/ResourceManager.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ResourceManager.cpp 23 Nov 2003 18:35:11 -0000 1.9 --- ResourceManager.cpp 4 Mar 2004 18:38:56 -0000 1.10 *************** *** 90,99 **** string namekey = string("javaproperty_name_") + StringUtils::toString(i); string valuekey = string("javaproperty_value_") + StringUtils::toString(i); - string name = m_props.get(namekey); string value = m_props.get(valuekey); - DEBUG("JPROP: " + name + "=" + StringUtils::StringUtils::replaceEnvironmentVariable(value)); - value = StringUtils::replaceEnvironmentVariable(value); value = StringUtils::replace(value, "${EXECUTABLEPATH}", exepath); --- 90,96 ---- *************** *** 103,106 **** --- 100,105 ---- JavaProperty jprop(name, value); m_javaProperties.push_back(jprop); + + DEBUG("Setting up java properties: " + name + "=" + value); } *************** *** 116,143 **** for (std::vector<std::string>::iterator i=m_deleteOnFinalize.begin(); i != m_deleteOnFinalize.end(); i++) { - // MessageBox(NULL, i->c_str(), "ERASING", MB_OK); int res = DeleteFile(i->c_str()); - // MessageBox(NULL, ("DONE " + StringUtils::toString(res) + " / " + StringUtils::toString(GetLastError())).c_str(), "ERASING", MB_OK); - - // LPVOID lpMsgBuf; - // - //FormatMessage( - // FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, - // NULL, - // GetLastError(), - // MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language - // (LPTSTR) &lpMsgBuf, - // 0, - // NULL - //); - // - //// Display the string. - //MessageBox( NULL, (const CHAR*)lpMsgBuf, "GetLastError", MB_OK|MB_ICONINFORMATION ); - // - //// Free the buffer. - //LocalFree( lpMsgBuf ); - } } void ResourceManager::setProperty(const std::string& key, const std::string& value) { --- 115,122 ---- for (std::vector<std::string>::iterator i=m_deleteOnFinalize.begin(); i != m_deleteOnFinalize.end(); i++) { int res = DeleteFile(i->c_str()); } } + void ResourceManager::setProperty(const std::string& key, const std::string& value) { *************** *** 185,189 **** std::string tempfilename = FileUtils::createTempFileName(".jar"); ! DEBUG("Created tempfilename " + tempfilename); saveTemp(tempfilename); return tempfilename; --- 164,168 ---- std::string tempfilename = FileUtils::createTempFileName(".jar"); ! DEBUG("Created temporary filename to hold the jar (" + tempfilename + ")"); saveTemp(tempfilename); return tempfilename; *************** *** 201,206 **** basepath = FileUtils::concFile(basepath, curdirmodifier); - DEBUG("basepath for classpath = " + basepath); - std::string cp = getProperty(string(ResourceManager::KEY_CLASSPATH)); vector<string>cps = StringUtils::split(cp, ";", "", false); --- 180,183 ---- *************** *** 209,213 **** string lib = cps[i]; cps[i] = FileUtils::concFile(basepath, cps[i]); ! DEBUG("FOUND " + basepath + " :: " + lib + " -> " + cps[i]); } --- 186,190 ---- string lib = cps[i]; cps[i] = FileUtils::concFile(basepath, cps[i]); ! DEBUG("ClassPath element " + StringUtils::toString(i)+ "=" + cps[i]); } Index: SunJVMLauncher.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/commonjava/SunJVMLauncher.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** SunJVMLauncher.cpp 4 Mar 2004 08:23:03 -0000 1.9 --- SunJVMLauncher.cpp 4 Mar 2004 18:38:56 -0000 1.10 *************** *** 78,83 **** bool SunJVMLauncher::run(ResourceManager& resource, const string& origin) { - MessageBox(NULL, "Doing DLL call", "debug", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); - if ( ! VmVersion.isValid()) return false; --- 78,81 ---- *************** *** 94,99 **** DEBUG("Launching " + toString()); - MessageBox(NULL, "Launching", "debug", MB_OKCANCEL|MB_ICONQUESTION|MB_APPLMODAL); - if (Version("1.2") <= VmVersion) { --- 92,95 ---- |
From: <re...@us...> - 2004-03-04 14:35:28
|
Update of /cvsroot/jsmooth/jsmooth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14773 Modified Files: build.xml Log Message: small clean-up Index: build.xml =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/build.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** build.xml 4 Mar 2004 12:47:31 -0000 1.16 --- build.xml 4 Mar 2004 14:14:02 -0000 1.17 *************** *** 1,7 **** <project name="jsmoothgen" default="jar" basedir="."> ! <!-- set here the properties specific to your computer --> ! <!-- see the README.txt file for additional information --> ! <property name="JDKDIR" value="c:\Program Files\j2sdk_nb\j2sdk1.4.2"/> <property name="RM" value="CMD /C DEL"/> --- 1,7 ---- <project name="jsmoothgen" default="jar" basedir="."> ! <!-- set here the properties specific to your computer --> ! <!-- see the README.txt file for additional information --> ! <!-- DO NOT SKIP THIS PART! REALLY! IT WON'T WORK OTHERWISE --> <property name="JDKDIR" value="c:\Program Files\j2sdk_nb\j2sdk1.4.2"/> <property name="RM" value="CMD /C DEL"/> *************** *** 16,20 **** <property name="DOCBOOKBASE" value="c:\programs\docbook-xsl-1.62.0"/> - <!-- set here the properties specific the release --> --- 16,19 ---- *************** *** 122,131 **** </target> - - - <!-- Builds the distribution file for jsmooth. - --> --- 121,126 ---- |