[mapguide-trac] #1343: MgCooker: Generated batch scripts are not portable

MapGuide Open Source trac_mapguide at osgeo.org
Tue May 4 00:50:17 EDT 2010


#1343: MgCooker: Generated batch scripts are not portable
-----------------------+----------------------------------------------------
   Reporter:  jng      |       Owner:  jng        
       Type:  defect   |      Status:  new        
   Priority:  low      |   Milestone:  Maestro-2.1
  Component:  Maestro  |     Version:             
   Severity:  trivial  |    Keywords:             
External_id:           |  
-----------------------+----------------------------------------------------
 The batch files generated by MgCooker are not portable in that they may
 fail when not run from the same directory as MgCooker.exe

 The fix is to wrap the MgCooker.exe call like so:

 pushd %MGCOOKER_EXE_PATH%
 MgCooker.exe ...
 popd

 This way, running the batch file will enter into that directory ensuring
 any needed dlls are properly loaded.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1343>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list