Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] ArgumentParser produces array with null entries

Hi Daniel,

The current design is intended to support the simple case of arguments that would normally be supplied via execve (or similar), so it can handle paths and a few special characters. Variable substitution for something like ${launchArgs} is something that would need to be handled specially in Eclipse (if you want Eclipse to do the substitution) or by the shell, in which case it can be escaped.

Regards,

Greg


On Jun 16, 2008, at 5:03 PM, Daniel Felix Ferber wrote:

Hi,

I tried to use ArgumentParser to get a list of arguments based on the string below: mpirun -display-map -np 1 ${launchArgs} /home/dfferber/ EclipseWorkspaces/runtime-New_configuration/mpi/Debug/mpi_sample

The array I get from .getArguments() is:
[mpirun, -display-map, -np, 1, null, null, launchArgs, null, /home/ dfferber/EclipseWorkspaces/runtime-New_configuration/mpi/Debug/ mpi_sample]

It seems that it does not handle chars like $, { and }

Best regards,
Daniel Felix Ferber

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev




Back to the top