* creating the command line for a linker that extends it, even if the
* linker is brought in through a reference.
*/
public void testExtendsLinkerArgsViaReference() {
Project project = new Project();
LinkerDef baseLinker = new LinkerDef();
baseLinker.setProject(project);
baseLinker.setId("base");
project.addReference("base", baseLinker);
LinkerArgument linkerArg = new LinkerArgument();
linkerArg.setValue("/base");
baseLinker.addConfiguredLinkerArg(linkerArg);
LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(
baseLinker);
extendedLinker.setProject(project);
extendedLinker.setId("extended");
project.addReference("extended", extendedLinker);
LinkerDef linkerRef = new LinkerDef();
linkerRef.setProject(project);
linkerRef.setRefid(new Reference(project, "extended"));
String[] preArgs = getPreArguments(linkerRef);
assertEquals(1, preArgs.length);
assertEquals("/base", preArgs[0]);
}