Class OS390Linker
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractLinker
net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
net.sf.antcontrib.cpptasks.os390.OS390Linker
Adapter for the IBM (R) OS/390 (tm) Linker
- Author:
- Hiram Chirino (cojonudo14@hotmail.com)
-
Field Summary
Fields inherited from class AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidprotected voidaddImpliedArgs(boolean debug, LinkType linkType, Vector args) protected voidaddIncremental(boolean incremental, Vector args) protected String[]addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) protected voidprotected voidgetCommandFileSwitch(String commandFile) static OS390Linkerstatic OS390LinkerFile[]returns the library path for the linkerString[]getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) Returns a set of filename patterns corresponding to library names.Gets the linker that is associated with this processorsintString[]getOutputFileNames(String baseName, VersionInfo versionInfo) Output file name (no path components) corresponding to source fileString[]getOutputFileSwitch(String outputFile) protected String[]getOutputFileSwitch(CCTask task, String outputFile) booleanReturns true if the linker is case-sensitivevoidlink(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) Performs a link using a command line linkerprotected intrunCommand(CCTask task, File workingDir, String[] cmdline) This method is exposed so test classes can overload and test the arguments without actually spawning the compilerMethods inherited from class CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, setCommandMethods inherited from class AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKeyMethods inherited from class AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Method Details
-
getDataSetInstance
-
getInstance
-
addBase
- Specified by:
addBasein classCommandLineLinker
-
addFixed
- Specified by:
addFixedin classCommandLineLinker
-
addImpliedArgs
- Specified by:
addImpliedArgsin classCommandLineLinker
-
addIncremental
- Specified by:
addIncrementalin classCommandLineLinker
-
addLibrarySets
protected String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, Vector midargs, Vector endargs) - Overrides:
addLibrarySetsin classCommandLineLinker
-
addMap
- Specified by:
addMapin classCommandLineLinker
-
addStack
- Specified by:
addStackin classCommandLineLinker
-
addEntry
- Specified by:
addEntryin classCommandLineLinker
-
getCommandFileSwitch
- Specified by:
getCommandFileSwitchin classCommandLineLinker
-
getLibraryPath
-
getLibraryPatterns
Description copied from interface:LinkerReturns a set of filename patterns corresponding to library names. For example, "advapi32" would be expanded to "advapi32.dll" by DevStudioLinker and to "libadvapi32.a" and "libadvapi32.so" by GccLinker.- Parameters:
libnames- array of library names
-
getLinker
-
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLengthin classCommandLineLinker
-
getOutputFileNames
Description copied from interface:ProcessorOutput file name (no path components) corresponding to source file- Specified by:
getOutputFileNamesin interfaceProcessor- Overrides:
getOutputFileNamesin classCommandLineLinker- Parameters:
baseName- input file- Returns:
- output file name or null if no output file or name not determined by input file
-
getOutputFileSwitch
- Overrides:
getOutputFileSwitchin classCommandLineLinker
-
getOutputFileSwitch
- Specified by:
getOutputFileSwitchin classCommandLineLinker
-
isCaseSensitive
public boolean isCaseSensitive()Description copied from interface:LinkerReturns true if the linker is case-sensitive -
link
public void link(CCTask task, File outputFile, String[] sourceFiles, CommandLineLinkerConfiguration config) throws org.apache.tools.ant.BuildException Description copied from class:CommandLineLinkerPerforms a link using a command line linker- Overrides:
linkin classCommandLineLinker- Throws:
org.apache.tools.ant.BuildException
-
runCommand
protected int runCommand(CCTask task, File workingDir, String[] cmdline) throws org.apache.tools.ant.BuildException Description copied from class:CommandLineLinkerThis method is exposed so test classes can overload and test the arguments without actually spawning the compiler- Overrides:
runCommandin classCommandLineLinker- Throws:
org.apache.tools.ant.BuildException
-