Here's what I think you will need to do:
1. Given an ILaunchConfiguration, obtain an ILaunchController using RMLaunchUtils#getLaunchController().
2. Initialize the controller using ILaunchController#initialize().
3. Get the configuration using ILaunchController#getConfiguration().
4. Locate the run command ResourceManagerData#getControlData()#getSubmitBatch() (checking for null along the way).
5. Get the list of arguments using getArg().
6. Modify this list to prepend an ArgType.
7. Start the controller using ILaunchController#start().
8. Submit the job using ILaunhcController#submitJob().
Let me know if this works.
Cheers, Greg On Jul 9, 2012, at 10:55 PM, Wyatt Spear wrote: I'm mostly wondering if there's a reasonable piece of the launch API, or a launch configuration attribute, to grab and make this adjustment. =WyattOn Tue, Jul 3, 2012 at 10:01 PM, Wyatt Spear <wspear@xxxxxxxxxxxxxx> wrote:
Yes, that's the plan. I have access to the launch configuration.=Wyatt
On Tue, Jul 3, 2012 at 9:59 PM, Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
Hi Wyatt,
I presume you want to do this from a plugin, programmatically? Do you have access to the launch configuration?
Greg
On Jul 4, 2012, at 12:53 AM, Wyatt Spear wrote:
> Greetings,
>
> Now that everything is being done with jaxb it seems like a good time to revisit this issue. I would like to be able to use the ETFW to take the default run command on a remote system (e.g. mpirun) and prepend it with a call to a performance tool (so instead we get tau_exec mpirun) for example. Is there a reasonable way of adjusting these commands without user intervention as they're being wrangled by the launch delegate?
>
> Thanks,
> Wyatt
> _______________________________________________
> ptp-dev mailing list
> ptp-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________ ptp-dev mailing list ptp-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/ptp-dev
|