Changes between Version 52 and Version 53 of WrapperApp
- Timestamp:
- Jul 12, 2011, 10:44:52 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WrapperApp
v52 v53 88 88 Assume you have an executable program for a particular platform 89 89 (say "worker_windows_intelx6_0.exe" for Win32). 90 The program reads from '''infile''' and writes to '''outfile'''. 90 The program reads from '''in''' and writes to '''out'''. 91 (You can use the program in '''samples/worker/''' for this purpose). 91 92 92 93 We assume that you have already [MakeProject created a project] … … 111 112 <task> 112 113 <application>worker</application> 113 <stdin_filename>stdin</stdin_filename>114 <stdout_filename>stdout</stdout_filename>115 114 <command_line>10</command_line> 116 115 </task> … … 134 133 </version> 135 134 }}} 136 * In the 'PROJECT/templates' directory create a workunit template file called 'worker_ wu':135 * In the 'PROJECT/templates' directory create a workunit template file called 'worker_in': 137 136 {{{ 138 137 <file_info> … … 149 148 </workunit> 150 149 }}} 151 and a result template file called 'worker_ result'150 and a result template file called 'worker_out' 152 151 {{{ 153 152 <file_info> … … 161 160 <file_ref> 162 161 <file_name><OUTFILE_0/></file_name> 163 <open_name>out file</open_name>162 <open_name>out</open_name> 164 163 <copy_file/> 165 164 </file_ref> 166 165 </result> 167 166 }}} 168 * Run [UpdateVersions bin/update_versions] to create an app version and to copy the application files to the 'PROJECT/download' directory.167 * Run [UpdateVersions bin/update_versions] to create an app version. 169 168 * Run [StartTool 'bin/start'] to start the daemons. 170 169 * Run a script like … … 172 171 #! /bin/sh 173 172 cp download/input `bin/dir_hier_path input` 174 cp download/input2 `bin/dir_hier_path input2` 175 176 bin/create_work -appname worker -wu_name worker_nodelete \ 177 -wu_template templates/worker_wu \ 178 -result_template templates/worker_result \ 179 input input2 173 174 bin/create_work --appname worker --wu_name worker_nodelete input 180 175 }}} 181 176 to generate a workunit.