[Jsmooth-cvs] jsmooth/skeletons/autodownload Makefile.win, 1.5, 1.6 autodownload.skel, 1.5, 1.6 cus
Status: Beta
Brought to you by:
reyes
From: Rodrigo R. <re...@us...> - 2007-05-17 10:56:57
|
Update of /cvsroot/jsmooth/jsmooth/skeletons/autodownload In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv14160/skeletons/autodownload Modified Files: Makefile.win autodownload.skel customdownload.skel main.cpp Log Message: adds the single instance feature Index: main.cpp =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/autodownload/main.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main.cpp 1 May 2007 19:40:16 -0000 1.8 --- main.cpp 17 May 2007 10:56:16 -0000 1.9 *************** *** 28,31 **** --- 28,32 ---- #include "JVMRegistryLookup.h" #include "JavaMachineManager.h" + #include "SingleInstanceManager.h" #include "httpdownload.h" *************** *** 66,69 **** --- 67,71 ---- { atexit(lastExit); + SingleInstanceManager instanceman; globalResMan = new ResourceManager("JAVA", PROPID, JARID); *************** *** 86,89 **** --- 88,105 ---- } + bool singleinstance = globalResMan->getBooleanProperty("skel_SingleInstance"); + if (singleinstance) + { + if (instanceman.alreadyExists()) + { + instanceman.sendMessageInstanceShow(); + exit(0); + } + else + { + instanceman.startMasterInstanceServer(); + } + } + DEBUG(string("Main class: ") + globalResMan->getMainName()); Index: customdownload.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/autodownload/customdownload.skel,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** customdownload.skel 27 Mar 2007 20:16:57 -0000 1.3 --- customdownload.skel 17 May 2007 10:56:16 -0000 1.4 *************** *** 36,38 **** --- 36,45 ---- <value>0</value> </skeletonProperties> + <skeletonProperties> + <description>SKEL_GENERIC_SINGLEINSTANCE_DESCRIPTION</description> + <idName>SingleInstance</idName> + <label>SKEL_GENERIC_SINGLEINSTANCE</label> + <type>boolean</type> + <value>0</value> + </skeletonProperties> </jsmoothskeleton> Index: Makefile.win =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/autodownload/Makefile.win,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.win 13 May 2007 20:07:43 -0000 1.5 --- Makefile.win 17 May 2007 10:56:15 -0000 1.6 *************** *** 18,22 **** ##LINKLIBS = ../commonjava/CommonJava.a ../util-core/util-core.a mspack.a ../util-net/util-net.a LINKLIBS = ../commonjava/CommonJava.a ../util-net/util-net.a ../util-core/util-core.a ! LIBS = -L. -L"$(MINGW)/lib" -L"/lib" -lws2_32 -L"/lib" -L"../commonjava" -mwindows -L"../util-core" -L"../util-net" $(LINKLIBS) $(FLTK-LDFLAGS) -lsetupapi INCS = -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32" CXXINCS = -I"$(MINGW)/include/c++" -I"$(MINGW)/include/c++/mingw32" -I"$(MINGW)/include/c++/backward" -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32" -I"../commonjava" -I"../util-core" -I"../util-net" $(FLTK-CXXFLAGS) --- 18,22 ---- ##LINKLIBS = ../commonjava/CommonJava.a ../util-core/util-core.a mspack.a ../util-net/util-net.a LINKLIBS = ../commonjava/CommonJava.a ../util-net/util-net.a ../util-core/util-core.a ! LIBS = -L. -L"$(MINGW)/lib" -L"/lib" -lws2_32 -L"/lib" -L"../commonjava" -mwindows -L"../util-core" -L"../util-net" $(LINKLIBS) $(FLTK-LDFLAGS) -lsetupapi -lwininet INCS = -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32" CXXINCS = -I"$(MINGW)/include/c++" -I"$(MINGW)/include/c++/mingw32" -I"$(MINGW)/include/c++/backward" -I"$(MINGW)/include" -I"$(JDK)/include" -I"$(JDK)/include/win32" -I"../commonjava" -I"../util-core" -I"../util-net" $(FLTK-CXXFLAGS) Index: autodownload.skel =================================================================== RCS file: /cvsroot/jsmooth/jsmooth/skeletons/autodownload/autodownload.skel,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** autodownload.skel 1 May 2007 19:40:16 -0000 1.5 --- autodownload.skel 17 May 2007 10:56:15 -0000 1.6 *************** *** 36,38 **** --- 36,45 ---- <value>0</value> </skeletonProperties> + <skeletonProperties> + <description>SKEL_GENERIC_SINGLEINSTANCE_DESCRIPTION</description> + <idName>SingleInstance</idName> + <label>SKEL_GENERIC_SINGLEINSTANCE</label> + <type>boolean</type> + <value>0</value> + </skeletonProperties> </jsmoothskeleton> |