From 683d490074d93baa8a47db7ec43b7bd31145a12a Mon Sep 17 00:00:00 2001 From: Mark Donszelmann Date: Thu, 5 Nov 2009 23:00:15 +0100 Subject: Tar file expanded and committed --- LICENSE | 202 + NOTICE | 4 + build.xml | 763 +++ pom.xml | 256 + site/antdocs/CCTask.html | 633 +++ site/antdocs/CommentDef.html | 228 + site/antdocs/CompilerArgument.html | 266 + site/antdocs/CompilerDef.html | 447 ++ site/antdocs/CompilerParam.html | 265 + site/antdocs/ConditionalFileSet.html | 372 ++ site/antdocs/ConditionalPath.html | 296 ++ site/antdocs/DebugDef.html | 258 + site/antdocs/DefineArgument.html | 260 + site/antdocs/DefineSet.html | 288 ++ site/antdocs/DependencyDef.html | 248 + site/antdocs/DistributerDef.html | 290 ++ site/antdocs/DistributerMap.html | 276 ++ site/antdocs/IncludePath.html | 299 ++ site/antdocs/LibrarySet.html | 291 ++ site/antdocs/LinkerArgument.html | 266 + site/antdocs/LinkerDef.html | 424 ++ site/antdocs/LinkerParam.html | 265 + site/antdocs/PrecompileDef.html | 280 ++ site/antdocs/PrecompileExceptDef.html | 249 + site/antdocs/ProjectDef.html | 332 ++ site/antdocs/SystemIncludePath.html | 306 ++ site/antdocs/SystemLibrarySet.html | 293 ++ site/antdocs/TargetDef.html | 282 ++ site/antdocs/UndefineArgument.html | 256 + site/antdocs/VersionInfo.html | 353 ++ site/apidocs/allclasses-frame.html | 399 ++ site/apidocs/allclasses-noframe.html | 399 ++ site/apidocs/constant-values.html | 213 + site/apidocs/deprecated-list.html | 158 + site/apidocs/help-doc.html | 220 + site/apidocs/index-all.html | 5090 ++++++++++++++++++++ site/apidocs/index.html | 40 + .../net/sf/antcontrib/cpptasks/AboutCCTask.html | 261 + .../net/sf/antcontrib/cpptasks/ArchEnum.html | 297 ++ .../apidocs/net/sf/antcontrib/cpptasks/CCTask.html | 1774 +++++++ .../antcontrib/cpptasks/CCTaskProgressMonitor.html | 307 ++ .../net/sf/antcontrib/cpptasks/CPUEnum.html | 297 ++ .../cpptasks/CUtil.StringArrayBuilder.html | 258 + site/apidocs/net/sf/antcontrib/cpptasks/CUtil.html | 775 +++ .../net/sf/antcontrib/cpptasks/CompilerDef.html | 961 ++++ .../net/sf/antcontrib/cpptasks/CompilerEnum.html | 443 ++ .../net/sf/antcontrib/cpptasks/CompilerParam.html | 273 ++ .../net/sf/antcontrib/cpptasks/DependencyInfo.html | 382 ++ .../DependencyTable.DependencyVisitor.html | 307 ++ .../cpptasks/DependencyTable.TimestampChecker.html | 338 ++ .../sf/antcontrib/cpptasks/DependencyTable.html | 438 ++ .../net/sf/antcontrib/cpptasks/DistributerDef.html | 603 +++ .../net/sf/antcontrib/cpptasks/DistributerMap.html | 535 ++ .../cpptasks/DistributerProtocolEnum.html | 297 ++ .../net/sf/antcontrib/cpptasks/FileVisitor.html | 217 + .../net/sf/antcontrib/cpptasks/LinkerDef.html | 970 ++++ .../net/sf/antcontrib/cpptasks/LinkerEnum.html | 308 ++ .../net/sf/antcontrib/cpptasks/LinkerParam.html | 273 ++ .../net/sf/antcontrib/cpptasks/OSFamilyEnum.html | 297 ++ .../antcontrib/cpptasks/ObjectFileCollector.html | 267 + .../sf/antcontrib/cpptasks/OptimizationEnum.html | 363 ++ .../net/sf/antcontrib/cpptasks/OutputTypeEnum.html | 299 ++ .../net/sf/antcontrib/cpptasks/PrecompileDef.html | 564 +++ .../antcontrib/cpptasks/PrecompileExceptDef.html | 334 ++ .../net/sf/antcontrib/cpptasks/ProcessorDef.html | 1124 +++++ .../sf/antcontrib/cpptasks/ProcessorEnumValue.html | 299 ++ .../net/sf/antcontrib/cpptasks/ProcessorParam.html | 406 ++ .../net/sf/antcontrib/cpptasks/RuntimeType.html | 285 ++ .../net/sf/antcontrib/cpptasks/SourceHistory.html | 300 ++ .../net/sf/antcontrib/cpptasks/SubsystemEnum.html | 289 ++ .../net/sf/antcontrib/cpptasks/TargetDef.html | 585 +++ .../net/sf/antcontrib/cpptasks/TargetHistory.html | 319 ++ .../sf/antcontrib/cpptasks/TargetHistoryTable.html | 374 ++ .../net/sf/antcontrib/cpptasks/TargetInfo.html | 456 ++ .../net/sf/antcontrib/cpptasks/TargetMatcher.html | 281 ++ .../net/sf/antcontrib/cpptasks/VersionInfo.html | 1303 +++++ .../sf/antcontrib/cpptasks/WarningLevelEnum.html | 291 ++ .../cpptasks/apple/PropertyListSerialization.html | 236 + .../cpptasks/apple/XcodeProjectWriter.html | 280 ++ .../apple/class-use/PropertyListSerialization.html | 141 + .../apple/class-use/XcodeProjectWriter.html | 141 + .../antcontrib/cpptasks/apple/package-frame.html | 35 + .../antcontrib/cpptasks/apple/package-summary.html | 175 + .../sf/antcontrib/cpptasks/apple/package-tree.html | 151 + .../sf/antcontrib/cpptasks/apple/package-use.html | 141 + .../sf/antcontrib/cpptasks/arm/ADSCCompiler.html | 581 +++ .../sf/antcontrib/cpptasks/arm/ADSLibrarian.html | 608 +++ .../net/sf/antcontrib/cpptasks/arm/ADSLinker.html | 629 +++ .../cpptasks/arm/class-use/ADSCCompiler.html | 201 + .../cpptasks/arm/class-use/ADSLibrarian.html | 177 + .../cpptasks/arm/class-use/ADSLinker.html | 185 + .../sf/antcontrib/cpptasks/arm/package-frame.html | 37 + .../antcontrib/cpptasks/arm/package-summary.html | 166 + .../sf/antcontrib/cpptasks/arm/package-tree.html | 165 + .../sf/antcontrib/cpptasks/arm/package-use.html | 182 + .../cpptasks/borland/BorlandCCompiler.html | 579 +++ .../cpptasks/borland/BorlandCfgParser.html | 315 ++ .../cpptasks/borland/BorlandLibrarian.html | 759 +++ .../antcontrib/cpptasks/borland/BorlandLinker.html | 760 +++ .../cpptasks/borland/BorlandProcessor.html | 425 ++ .../cpptasks/borland/BorlandResourceCompiler.html | 667 +++ .../cpptasks/borland/CBuilderXProjectWriter.html | 283 ++ .../cpptasks/borland/CfgFilenameState.html | 270 ++ .../cpptasks/borland/ConsumeToSpaceOrNewLine.html | 267 + .../cpptasks/borland/QuoteBranchState.html | 271 ++ .../borland/class-use/BorlandCCompiler.html | 177 + .../borland/class-use/BorlandCfgParser.html | 141 + .../borland/class-use/BorlandLibrarian.html | 177 + .../cpptasks/borland/class-use/BorlandLinker.html | 177 + .../borland/class-use/BorlandProcessor.html | 141 + .../borland/class-use/BorlandResourceCompiler.html | 177 + .../borland/class-use/CBuilderXProjectWriter.html | 141 + .../borland/class-use/CfgFilenameState.html | 141 + .../borland/class-use/ConsumeToSpaceOrNewLine.html | 141 + .../borland/class-use/QuoteBranchState.html | 141 + .../antcontrib/cpptasks/borland/package-frame.html | 51 + .../cpptasks/borland/package-summary.html | 206 + .../antcontrib/cpptasks/borland/package-tree.html | 175 + .../antcontrib/cpptasks/borland/package-use.html | 185 + .../antcontrib/cpptasks/class-use/AboutCCTask.html | 141 + .../sf/antcontrib/cpptasks/class-use/ArchEnum.html | 193 + .../sf/antcontrib/cpptasks/class-use/CCTask.html | 1210 +++++ .../cpptasks/class-use/CCTaskProgressMonitor.html | 141 + .../sf/antcontrib/cpptasks/class-use/CPUEnum.html | 193 + .../class-use/CUtil.StringArrayBuilder.html | 194 + .../sf/antcontrib/cpptasks/class-use/CUtil.html | 141 + .../antcontrib/cpptasks/class-use/CompilerDef.html | 319 ++ .../cpptasks/class-use/CompilerEnum.html | 185 + .../cpptasks/class-use/CompilerParam.html | 214 + .../cpptasks/class-use/DependencyInfo.html | 328 ++ .../DependencyTable.DependencyVisitor.html | 197 + .../DependencyTable.TimestampChecker.html | 141 + .../cpptasks/class-use/DependencyTable.html | 141 + .../cpptasks/class-use/DistributerDef.html | 177 + .../cpptasks/class-use/DistributerMap.html | 177 + .../class-use/DistributerProtocolEnum.html | 193 + .../antcontrib/cpptasks/class-use/FileVisitor.html | 252 + .../antcontrib/cpptasks/class-use/LinkerDef.html | 305 ++ .../antcontrib/cpptasks/class-use/LinkerEnum.html | 177 + .../antcontrib/cpptasks/class-use/LinkerParam.html | 214 + .../cpptasks/class-use/OSFamilyEnum.html | 193 + .../cpptasks/class-use/ObjectFileCollector.html | 141 + .../cpptasks/class-use/OptimizationEnum.html | 895 ++++ .../cpptasks/class-use/OutputTypeEnum.html | 214 + .../cpptasks/class-use/PrecompileDef.html | 207 + .../cpptasks/class-use/PrecompileExceptDef.html | 178 + .../cpptasks/class-use/ProcessorDef.html | 409 ++ .../cpptasks/class-use/ProcessorEnumValue.html | 177 + .../cpptasks/class-use/ProcessorParam.html | 300 ++ .../antcontrib/cpptasks/class-use/RuntimeType.html | 177 + .../cpptasks/class-use/SourceHistory.html | 203 + .../cpptasks/class-use/SubsystemEnum.html | 207 + .../antcontrib/cpptasks/class-use/TargetDef.html | 317 ++ .../cpptasks/class-use/TargetHistory.html | 178 + .../cpptasks/class-use/TargetHistoryTable.html | 208 + .../antcontrib/cpptasks/class-use/TargetInfo.html | 414 ++ .../cpptasks/class-use/TargetMatcher.html | 337 ++ .../antcontrib/cpptasks/class-use/VersionInfo.html | 818 ++++ .../cpptasks/class-use/WarningLevelEnum.html | 187 + .../compaq/CompaqVisualFortranCompiler.html | 515 ++ .../compaq/CompaqVisualFortranLibrarian.html | 608 +++ .../cpptasks/compaq/CompaqVisualFortranLinker.html | 358 ++ .../class-use/CompaqVisualFortranCompiler.html | 177 + .../class-use/CompaqVisualFortranLibrarian.html | 177 + .../class-use/CompaqVisualFortranLinker.html | 177 + .../antcontrib/cpptasks/compaq/package-frame.html | 37 + .../cpptasks/compaq/package-summary.html | 163 + .../antcontrib/cpptasks/compaq/package-tree.html | 167 + .../sf/antcontrib/cpptasks/compaq/package-use.html | 179 + .../cpptasks/compiler/AbstractCompiler.html | 528 ++ .../cpptasks/compiler/AbstractLinker.html | 513 ++ .../cpptasks/compiler/AbstractProcessor.html | 594 +++ .../cpptasks/compiler/CaptureStreamHandler.html | 425 ++ .../cpptasks/compiler/CommandLineCCompiler.html | 343 ++ .../cpptasks/compiler/CommandLineCompiler.html | 811 ++++ .../compiler/CommandLineCompilerConfiguration.html | 713 +++ .../compiler/CommandLineFortranCompiler.html | 343 ++ .../cpptasks/compiler/CommandLineLinker.html | 920 ++++ .../compiler/CommandLineLinkerConfiguration.html | 613 +++ .../sf/antcontrib/cpptasks/compiler/Compiler.html | 199 + .../cpptasks/compiler/CompilerConfiguration.html | 378 ++ .../sf/antcontrib/cpptasks/compiler/LinkType.html | 509 ++ .../sf/antcontrib/cpptasks/compiler/Linker.html | 377 ++ .../cpptasks/compiler/LinkerConfiguration.html | 301 ++ .../compiler/PrecompilingCommandLineCCompiler.html | 352 ++ .../compiler/PrecompilingCommandLineCompiler.html | 416 ++ .../cpptasks/compiler/PrecompilingCompiler.html | 235 + .../sf/antcontrib/cpptasks/compiler/Processor.html | 350 ++ .../cpptasks/compiler/ProcessorConfiguration.html | 311 ++ .../cpptasks/compiler/ProgressMonitor.html | 257 + .../compiler/class-use/AbstractCompiler.html | 821 ++++ .../compiler/class-use/AbstractLinker.html | 712 +++ .../compiler/class-use/AbstractProcessor.html | 1059 ++++ .../compiler/class-use/CaptureStreamHandler.html | 141 + .../compiler/class-use/CommandLineCCompiler.html | 478 ++ .../compiler/class-use/CommandLineCompiler.html | 819 ++++ .../CommandLineCompilerConfiguration.html | 429 ++ .../class-use/CommandLineFortranCompiler.html | 212 + .../compiler/class-use/CommandLineLinker.html | 745 +++ .../class-use/CommandLineLinkerConfiguration.html | 465 ++ .../cpptasks/compiler/class-use/Compiler.html | 826 ++++ .../compiler/class-use/CompilerConfiguration.html | 443 ++ .../cpptasks/compiler/class-use/LinkType.html | 1926 ++++++++ .../cpptasks/compiler/class-use/Linker.html | 1554 ++++++ .../compiler/class-use/LinkerConfiguration.html | 282 ++ .../PrecompilingCommandLineCCompiler.html | 298 ++ .../class-use/PrecompilingCommandLineCompiler.html | 314 ++ .../compiler/class-use/PrecompilingCompiler.html | 300 ++ .../cpptasks/compiler/class-use/Processor.html | 1571 ++++++ .../compiler/class-use/ProcessorConfiguration.html | 387 ++ .../compiler/class-use/ProgressMonitor.html | 381 ++ .../cpptasks/compiler/package-frame.html | 82 + .../cpptasks/compiler/package-summary.html | 250 + .../antcontrib/cpptasks/compiler/package-tree.html | 176 + .../antcontrib/cpptasks/compiler/package-use.html | 1632 +++++++ .../cpptasks/devstudio/DevStudio2005CCompiler.html | 407 ++ .../cpptasks/devstudio/DevStudioCCompiler.html | 383 ++ .../devstudio/DevStudioCompatibleCCompiler.html | 556 +++ .../devstudio/DevStudioCompatibleLibrarian.html | 613 +++ .../devstudio/DevStudioCompatibleLinker.html | 654 +++ .../cpptasks/devstudio/DevStudioLibrarian.html | 310 ++ .../cpptasks/devstudio/DevStudioLinker.html | 310 ++ .../cpptasks/devstudio/DevStudioMIDLCompiler.html | 625 +++ .../cpptasks/devstudio/DevStudioProcessor.html | 343 ++ .../cpptasks/devstudio/DevStudioProjectWriter.html | 286 ++ .../devstudio/DevStudioResourceCompiler.html | 653 +++ .../devstudio/VisualStudioNETProjectWriter.html | 289 ++ .../class-use/DevStudio2005CCompiler.html | 177 + .../devstudio/class-use/DevStudioCCompiler.html | 177 + .../class-use/DevStudioCompatibleCCompiler.html | 225 + .../class-use/DevStudioCompatibleLibrarian.html | 207 + .../class-use/DevStudioCompatibleLinker.html | 235 + .../devstudio/class-use/DevStudioLibrarian.html | 177 + .../devstudio/class-use/DevStudioLinker.html | 177 + .../devstudio/class-use/DevStudioMIDLCompiler.html | 177 + .../devstudio/class-use/DevStudioProcessor.html | 141 + .../class-use/DevStudioProjectWriter.html | 141 + .../class-use/DevStudioResourceCompiler.html | 177 + .../class-use/VisualStudioNETProjectWriter.html | 141 + .../cpptasks/devstudio/package-frame.html | 55 + .../cpptasks/devstudio/package-summary.html | 217 + .../cpptasks/devstudio/package-tree.html | 176 + .../antcontrib/cpptasks/devstudio/package-use.html | 272 ++ .../cpptasks/gcc/AbstractArLibrarian.html | 689 +++ .../antcontrib/cpptasks/gcc/AbstractLdLinker.html | 852 ++++ .../sf/antcontrib/cpptasks/gcc/GccCCompiler.html | 542 +++ .../cpptasks/gcc/GccCompatibleCCompiler.html | 536 +++ .../sf/antcontrib/cpptasks/gcc/GccLibrarian.html | 310 ++ .../net/sf/antcontrib/cpptasks/gcc/GccLinker.html | 435 ++ .../sf/antcontrib/cpptasks/gcc/GccProcessor.html | 399 ++ .../net/sf/antcontrib/cpptasks/gcc/GppLinker.html | 528 ++ .../net/sf/antcontrib/cpptasks/gcc/LdLinker.html | 310 ++ .../cpptasks/gcc/WindresResourceCompiler.html | 653 +++ .../gcc/class-use/AbstractArLibrarian.html | 198 + .../cpptasks/gcc/class-use/AbstractLdLinker.html | 338 ++ .../cpptasks/gcc/class-use/GccCCompiler.html | 201 + .../gcc/class-use/GccCompatibleCCompiler.html | 339 ++ .../cpptasks/gcc/class-use/GccLibrarian.html | 177 + .../cpptasks/gcc/class-use/GccLinker.html | 197 + .../cpptasks/gcc/class-use/GccProcessor.html | 141 + .../cpptasks/gcc/class-use/GppLinker.html | 197 + .../cpptasks/gcc/class-use/LdLinker.html | 177 + .../gcc/class-use/WindresResourceCompiler.html | 177 + .../cpptasks/gcc/cross/GccCCompiler.html | 609 +++ .../cpptasks/gcc/cross/GccLibrarian.html | 369 ++ .../antcontrib/cpptasks/gcc/cross/GccLinker.html | 494 ++ .../cpptasks/gcc/cross/GccProcessor.html | 380 ++ .../antcontrib/cpptasks/gcc/cross/GppLinker.html | 587 +++ .../sf/antcontrib/cpptasks/gcc/cross/LdLinker.html | 369 ++ .../cpptasks/gcc/cross/class-use/GccCCompiler.html | 201 + .../cpptasks/gcc/cross/class-use/GccLibrarian.html | 177 + .../cpptasks/gcc/cross/class-use/GccLinker.html | 197 + .../cpptasks/gcc/cross/class-use/GccProcessor.html | 141 + .../cpptasks/gcc/cross/class-use/GppLinker.html | 197 + .../cpptasks/gcc/cross/class-use/LdLinker.html | 177 + .../cpptasks/gcc/cross/package-frame.html | 43 + .../cpptasks/gcc/cross/package-summary.html | 175 + .../cpptasks/gcc/cross/package-tree.html | 171 + .../antcontrib/cpptasks/gcc/cross/package-use.html | 191 + .../gcc/cross/sparc_sun_solaris2/GccCCompiler.html | 569 +++ .../gcc/cross/sparc_sun_solaris2/GccLibrarian.html | 310 ++ .../gcc/cross/sparc_sun_solaris2/GccLinker.html | 435 ++ .../gcc/cross/sparc_sun_solaris2/GccProcessor.html | 401 ++ .../gcc/cross/sparc_sun_solaris2/GppLinker.html | 528 ++ .../gcc/cross/sparc_sun_solaris2/LdLinker.html | 310 ++ .../sparc_sun_solaris2/class-use/GccCCompiler.html | 201 + .../sparc_sun_solaris2/class-use/GccLibrarian.html | 177 + .../sparc_sun_solaris2/class-use/GccLinker.html | 197 + .../sparc_sun_solaris2/class-use/GccProcessor.html | 141 + .../sparc_sun_solaris2/class-use/GppLinker.html | 197 + .../sparc_sun_solaris2/class-use/LdLinker.html | 177 + .../cross/sparc_sun_solaris2/package-frame.html | 43 + .../cross/sparc_sun_solaris2/package-summary.html | 175 + .../gcc/cross/sparc_sun_solaris2/package-tree.html | 171 + .../gcc/cross/sparc_sun_solaris2/package-use.html | 191 + .../sf/antcontrib/cpptasks/gcc/package-frame.html | 51 + .../antcontrib/cpptasks/gcc/package-summary.html | 192 + .../sf/antcontrib/cpptasks/gcc/package-tree.html | 171 + .../sf/antcontrib/cpptasks/gcc/package-use.html | 320 ++ .../net/sf/antcontrib/cpptasks/hp/aCCCompiler.html | 431 ++ .../net/sf/antcontrib/cpptasks/hp/aCCLinker.html | 384 ++ .../cpptasks/hp/class-use/aCCCompiler.html | 177 + .../cpptasks/hp/class-use/aCCLinker.html | 177 + .../sf/antcontrib/cpptasks/hp/package-frame.html | 35 + .../sf/antcontrib/cpptasks/hp/package-summary.html | 159 + .../sf/antcontrib/cpptasks/hp/package-tree.html | 169 + .../net/sf/antcontrib/cpptasks/hp/package-use.html | 173 + .../cpptasks/ibm/VisualAgeCCompiler.html | 436 ++ .../antcontrib/cpptasks/ibm/VisualAgeLinker.html | 407 ++ .../cpptasks/ibm/class-use/VisualAgeCCompiler.html | 177 + .../cpptasks/ibm/class-use/VisualAgeLinker.html | 177 + .../sf/antcontrib/cpptasks/ibm/package-frame.html | 35 + .../antcontrib/cpptasks/ibm/package-summary.html | 159 + .../sf/antcontrib/cpptasks/ibm/package-tree.html | 169 + .../sf/antcontrib/cpptasks/ibm/package-use.html | 173 + .../net/sf/antcontrib/cpptasks/ide/CommentDef.html | 295 ++ .../net/sf/antcontrib/cpptasks/ide/DebugDef.html | 463 ++ .../sf/antcontrib/cpptasks/ide/DependencyDef.html | 406 ++ .../net/sf/antcontrib/cpptasks/ide/ProjectDef.html | 760 +++ .../sf/antcontrib/cpptasks/ide/ProjectWriter.html | 232 + .../antcontrib/cpptasks/ide/ProjectWriterEnum.html | 349 ++ .../cpptasks/ide/class-use/CommentDef.html | 177 + .../cpptasks/ide/class-use/DebugDef.html | 141 + .../cpptasks/ide/class-use/DependencyDef.html | 177 + .../cpptasks/ide/class-use/ProjectDef.html | 326 ++ .../cpptasks/ide/class-use/ProjectWriter.html | 272 ++ .../cpptasks/ide/class-use/ProjectWriterEnum.html | 177 + .../sf/antcontrib/cpptasks/ide/package-frame.html | 52 + .../antcontrib/cpptasks/ide/package-summary.html | 200 + .../sf/antcontrib/cpptasks/ide/package-tree.html | 161 + .../sf/antcontrib/cpptasks/ide/package-use.html | 285 ++ .../cpptasks/intel/IntelLinux32CCompiler.html | 376 ++ .../cpptasks/intel/IntelLinux32Linker.html | 310 ++ .../cpptasks/intel/IntelLinux64CCompiler.html | 376 ++ .../cpptasks/intel/IntelLinux64Linker.html | 310 ++ .../antcontrib/cpptasks/intel/IntelProcessor.html | 343 ++ .../cpptasks/intel/IntelWin32CCompiler.html | 386 ++ .../cpptasks/intel/IntelWin32Librarian.html | 346 ++ .../cpptasks/intel/IntelWin32Linker.html | 310 ++ .../cpptasks/intel/IntelWin64CCompiler.html | 383 ++ .../intel/class-use/IntelLinux32CCompiler.html | 177 + .../intel/class-use/IntelLinux32Linker.html | 177 + .../intel/class-use/IntelLinux64CCompiler.html | 177 + .../intel/class-use/IntelLinux64Linker.html | 177 + .../cpptasks/intel/class-use/IntelProcessor.html | 141 + .../intel/class-use/IntelWin32CCompiler.html | 177 + .../intel/class-use/IntelWin32Librarian.html | 177 + .../cpptasks/intel/class-use/IntelWin32Linker.html | 177 + .../intel/class-use/IntelWin64CCompiler.html | 177 + .../antcontrib/cpptasks/intel/package-frame.html | 49 + .../antcontrib/cpptasks/intel/package-summary.html | 197 + .../sf/antcontrib/cpptasks/intel/package-tree.html | 180 + .../sf/antcontrib/cpptasks/intel/package-use.html | 219 + .../antcontrib/cpptasks/mozilla/XpidlCompiler.html | 782 +++ .../cpptasks/mozilla/class-use/XpidlCompiler.html | 177 + .../antcontrib/cpptasks/mozilla/package-frame.html | 33 + .../cpptasks/mozilla/package-summary.html | 170 + .../antcontrib/cpptasks/mozilla/package-tree.html | 158 + .../antcontrib/cpptasks/mozilla/package-use.html | 167 + .../cpptasks/openwatcom/OpenWatcomCCompiler.html | 345 ++ .../cpptasks/openwatcom/OpenWatcomCLinker.html | 311 ++ .../cpptasks/openwatcom/OpenWatcomCompiler.html | 536 +++ .../openwatcom/OpenWatcomFortranCompiler.html | 345 ++ .../openwatcom/OpenWatcomFortranLinker.html | 311 ++ .../cpptasks/openwatcom/OpenWatcomLibrarian.html | 691 +++ .../cpptasks/openwatcom/OpenWatcomLinker.html | 676 +++ .../cpptasks/openwatcom/OpenWatcomProcessor.html | 385 ++ .../openwatcom/class-use/OpenWatcomCCompiler.html | 177 + .../openwatcom/class-use/OpenWatcomCLinker.html | 177 + .../openwatcom/class-use/OpenWatcomCompiler.html | 185 + .../class-use/OpenWatcomFortranCompiler.html | 177 + .../class-use/OpenWatcomFortranLinker.html | 177 + .../openwatcom/class-use/OpenWatcomLibrarian.html | 177 + .../openwatcom/class-use/OpenWatcomLinker.html | 185 + .../openwatcom/class-use/OpenWatcomProcessor.html | 141 + .../cpptasks/openwatcom/package-frame.html | 47 + .../cpptasks/openwatcom/package-summary.html | 198 + .../cpptasks/openwatcom/package-tree.html | 167 + .../cpptasks/openwatcom/package-use.html | 203 + .../antcontrib/cpptasks/os390/OS390CCompiler.html | 569 +++ .../sf/antcontrib/cpptasks/os390/OS390Linker.html | 780 +++ .../antcontrib/cpptasks/os390/OS390Processor.html | 303 ++ .../cpptasks/os390/class-use/OS390CCompiler.html | 141 + .../cpptasks/os390/class-use/OS390Linker.html | 185 + .../cpptasks/os390/class-use/OS390Processor.html | 141 + .../antcontrib/cpptasks/os390/package-frame.html | 37 + .../antcontrib/cpptasks/os390/package-summary.html | 163 + .../sf/antcontrib/cpptasks/os390/package-tree.html | 165 + .../sf/antcontrib/cpptasks/os390/package-use.html | 167 + .../sf/antcontrib/cpptasks/os400/IccCompiler.html | 537 +++ .../sf/antcontrib/cpptasks/os400/IccLinker.html | 780 +++ .../sf/antcontrib/cpptasks/os400/IccProcessor.html | 303 ++ .../cpptasks/os400/class-use/IccCompiler.html | 141 + .../cpptasks/os400/class-use/IccLinker.html | 185 + .../cpptasks/os400/class-use/IccProcessor.html | 141 + .../antcontrib/cpptasks/os400/package-frame.html | 37 + .../antcontrib/cpptasks/os400/package-summary.html | 163 + .../sf/antcontrib/cpptasks/os400/package-tree.html | 165 + .../sf/antcontrib/cpptasks/os400/package-use.html | 167 + .../net/sf/antcontrib/cpptasks/package-frame.html | 116 + .../sf/antcontrib/cpptasks/package-summary.html | 469 ++ .../net/sf/antcontrib/cpptasks/package-tree.html | 172 + .../net/sf/antcontrib/cpptasks/package-use.html | 1126 +++++ .../antcontrib/cpptasks/parser/AbstractParser.html | 304 ++ .../cpptasks/parser/AbstractParserState.html | 285 ++ .../sf/antcontrib/cpptasks/parser/BranchState.html | 292 ++ .../net/sf/antcontrib/cpptasks/parser/CParser.html | 334 ++ .../parser/CaseInsensitiveLetterState.html | 286 ++ .../antcontrib/cpptasks/parser/FilenameState.html | 272 ++ .../antcontrib/cpptasks/parser/FortranParser.html | 346 ++ .../sf/antcontrib/cpptasks/parser/LetterState.html | 285 ++ .../net/sf/antcontrib/cpptasks/parser/Parser.html | 237 + .../net/sf/antcontrib/cpptasks/parser/PostE.html | 271 ++ .../WhitespaceOrCaseInsensitiveLetterState.html | 284 ++ .../cpptasks/parser/WhitespaceOrLetterState.html | 284 ++ .../cpptasks/parser/class-use/AbstractParser.html | 353 ++ .../parser/class-use/AbstractParserState.html | 531 ++ .../cpptasks/parser/class-use/BranchState.html | 141 + .../cpptasks/parser/class-use/CParser.html | 178 + .../class-use/CaseInsensitiveLetterState.html | 141 + .../cpptasks/parser/class-use/FilenameState.html | 177 + .../cpptasks/parser/class-use/FortranParser.html | 141 + .../cpptasks/parser/class-use/LetterState.html | 141 + .../cpptasks/parser/class-use/Parser.html | 524 ++ .../cpptasks/parser/class-use/PostE.html | 141 + .../WhitespaceOrCaseInsensitiveLetterState.html | 141 + .../parser/class-use/WhitespaceOrLetterState.html | 141 + .../antcontrib/cpptasks/parser/package-frame.html | 64 + .../cpptasks/parser/package-summary.html | 229 + .../antcontrib/cpptasks/parser/package-tree.html | 161 + .../sf/antcontrib/cpptasks/parser/package-use.html | 349 ++ .../cpptasks/platforms/WindowsPlatform.html | 296 ++ .../platforms/class-use/WindowsPlatform.html | 141 + .../cpptasks/platforms/package-frame.html | 33 + .../cpptasks/platforms/package-summary.html | 170 + .../cpptasks/platforms/package-tree.html | 150 + .../antcontrib/cpptasks/platforms/package-use.html | 141 + .../sf/antcontrib/cpptasks/sun/C89CCompiler.html | 537 +++ .../net/sf/antcontrib/cpptasks/sun/C89Linker.html | 667 +++ .../sf/antcontrib/cpptasks/sun/C89Processor.html | 368 ++ .../antcontrib/cpptasks/sun/ForteCCCompiler.html | 431 ++ .../sf/antcontrib/cpptasks/sun/ForteCCLinker.html | 384 ++ .../cpptasks/sun/class-use/C89CCompiler.html | 141 + .../cpptasks/sun/class-use/C89Linker.html | 177 + .../cpptasks/sun/class-use/C89Processor.html | 141 + .../cpptasks/sun/class-use/ForteCCCompiler.html | 177 + .../cpptasks/sun/class-use/ForteCCLinker.html | 177 + .../sf/antcontrib/cpptasks/sun/package-frame.html | 41 + .../antcontrib/cpptasks/sun/package-summary.html | 171 + .../sf/antcontrib/cpptasks/sun/package-tree.html | 169 + .../sf/antcontrib/cpptasks/sun/package-use.html | 179 + .../sf/antcontrib/cpptasks/ti/ClxxCCompiler.html | 510 ++ .../sf/antcontrib/cpptasks/ti/ClxxLibrarian.html | 628 +++ .../net/sf/antcontrib/cpptasks/ti/ClxxLinker.html | 666 +++ .../cpptasks/ti/class-use/ClxxCCompiler.html | 185 + .../cpptasks/ti/class-use/ClxxLibrarian.html | 185 + .../cpptasks/ti/class-use/ClxxLinker.html | 201 + .../sf/antcontrib/cpptasks/ti/package-frame.html | 37 + .../sf/antcontrib/cpptasks/ti/package-summary.html | 165 + .../sf/antcontrib/cpptasks/ti/package-tree.html | 165 + .../net/sf/antcontrib/cpptasks/ti/package-use.html | 181 + .../cpptasks/trolltech/MetaObjectCompiler.html | 705 +++ .../cpptasks/trolltech/MetaObjectParser.html | 329 ++ .../cpptasks/trolltech/UserInterfaceCompiler.html | 727 +++ .../cpptasks/trolltech/UserInterfaceParser.html | 324 ++ .../trolltech/class-use/MetaObjectCompiler.html | 177 + .../trolltech/class-use/MetaObjectParser.html | 141 + .../trolltech/class-use/UserInterfaceCompiler.html | 177 + .../trolltech/class-use/UserInterfaceParser.html | 141 + .../cpptasks/trolltech/package-frame.html | 39 + .../cpptasks/trolltech/package-summary.html | 182 + .../cpptasks/trolltech/package-tree.html | 161 + .../antcontrib/cpptasks/trolltech/package-use.html | 173 + .../types/CommandLineArgument.LocationEnum.html | 288 ++ .../cpptasks/types/CommandLineArgument.html | 417 ++ .../cpptasks/types/CompilerArgument.html | 286 ++ .../cpptasks/types/ConditionalFileSet.html | 437 ++ .../antcontrib/cpptasks/types/ConditionalPath.html | 426 ++ .../antcontrib/cpptasks/types/DefineArgument.html | 296 ++ .../sf/antcontrib/cpptasks/types/DefineSet.html | 587 +++ .../net/sf/antcontrib/cpptasks/types/FlexLong.html | 291 ++ .../sf/antcontrib/cpptasks/types/IncludePath.html | 378 ++ .../sf/antcontrib/cpptasks/types/LibrarySet.html | 663 +++ .../antcontrib/cpptasks/types/LibraryTypeEnum.html | 299 ++ .../antcontrib/cpptasks/types/LinkerArgument.html | 286 ++ .../cpptasks/types/SystemIncludePath.html | 385 ++ .../cpptasks/types/SystemLibrarySet.html | 325 ++ .../cpptasks/types/UndefineArgument.html | 476 ++ .../CommandLineArgument.LocationEnum.html | 177 + .../types/class-use/CommandLineArgument.html | 231 + .../cpptasks/types/class-use/CompilerArgument.html | 185 + .../types/class-use/ConditionalFileSet.html | 203 + .../cpptasks/types/class-use/ConditionalPath.html | 185 + .../cpptasks/types/class-use/DefineArgument.html | 177 + .../cpptasks/types/class-use/DefineSet.html | 185 + .../cpptasks/types/class-use/FlexLong.html | 177 + .../cpptasks/types/class-use/IncludePath.html | 185 + .../cpptasks/types/class-use/LibrarySet.html | 492 ++ .../cpptasks/types/class-use/LibraryTypeEnum.html | 634 +++ .../cpptasks/types/class-use/LinkerArgument.html | 185 + .../types/class-use/SystemIncludePath.html | 185 + .../cpptasks/types/class-use/SystemLibrarySet.html | 185 + .../cpptasks/types/class-use/UndefineArgument.html | 268 ++ .../antcontrib/cpptasks/types/package-frame.html | 61 + .../antcontrib/cpptasks/types/package-summary.html | 213 + .../sf/antcontrib/cpptasks/types/package-tree.html | 172 + .../sf/antcontrib/cpptasks/types/package-use.html | 542 +++ site/apidocs/options | 17 + site/apidocs/overview-frame.html | 89 + site/apidocs/overview-summary.html | 247 + site/apidocs/overview-tree.html | 245 + site/apidocs/package-list | 24 + site/apidocs/packages | 24 + site/apidocs/resources/inherit.gif | Bin 0 -> 57 bytes site/apidocs/stylesheet.css | 29 + site/changes-report.html | 400 ++ site/css/maven-base.css | 145 + site/css/maven-theme.css | 141 + site/css/print.css | 7 + site/css/site.css | 0 site/images/add.gif | Bin 0 -> 207 bytes site/images/collapsed.gif | Bin 0 -> 53 bytes site/images/expanded.gif | Bin 0 -> 52 bytes site/images/external.png | Bin 0 -> 230 bytes site/images/fix.gif | Bin 0 -> 181 bytes site/images/icon_error_sml.gif | Bin 0 -> 1010 bytes site/images/icon_help_sml.gif | Bin 0 -> 1019 bytes site/images/icon_info_sml.gif | Bin 0 -> 606 bytes site/images/icon_success_sml.gif | Bin 0 -> 990 bytes site/images/icon_warning_sml.gif | Bin 0 -> 576 bytes site/images/logos/build-by-maven-black.png | Bin 0 -> 2294 bytes site/images/logos/build-by-maven-white.png | Bin 0 -> 2260 bytes site/images/logos/maven-feather.png | Bin 0 -> 3330 bytes site/images/newwindow.png | Bin 0 -> 220 bytes site/images/remove.gif | Bin 0 -> 227 bytes site/images/rss.png | Bin 0 -> 249 bytes site/images/update.gif | Bin 0 -> 192 bytes site/index.html | 248 + site/integration.html | 226 + site/issue-tracking.html | 224 + site/license.html | 426 ++ site/mail-lists.html | 244 + site/project-info.html | 245 + site/project-reports.html | 237 + site/source-repository.html | 253 + site/testapidocs/allclasses-frame.html | 111 + site/testapidocs/allclasses-noframe.html | 111 + site/testapidocs/constant-values.html | 143 + site/testapidocs/deprecated-list.html | 143 + site/testapidocs/help-doc.html | 220 + site/testapidocs/index-all.html | 1182 +++++ site/testapidocs/index.html | 40 + .../sf/antcontrib/cpptasks/MockBuildListener.html | 590 +++ .../sf/antcontrib/cpptasks/MockFileCollector.html | 346 ++ .../net/sf/antcontrib/cpptasks/TestAllClasses.html | 269 ++ .../net/sf/antcontrib/cpptasks/TestCCTask.html | 374 ++ .../net/sf/antcontrib/cpptasks/TestCUtil.html | 615 +++ .../sf/antcontrib/cpptasks/TestCompilerDef.html | 694 +++ .../sf/antcontrib/cpptasks/TestCompilerEnum.html | 304 ++ .../antcontrib/cpptasks/TestDependencyTable.html | 332 ++ .../net/sf/antcontrib/cpptasks/TestLinkerDef.html | 741 +++ .../net/sf/antcontrib/cpptasks/TestLinkerEnum.html | 289 ++ .../sf/antcontrib/cpptasks/TestOutputTypeEnum.html | 287 ++ .../sf/antcontrib/cpptasks/TestProcessorDef.html | 628 +++ ...getHistoryTable.MockProcessorConfiguration.html | 349 ++ .../cpptasks/TestTargetHistoryTable.html | 365 ++ .../net/sf/antcontrib/cpptasks/TestTargetInfo.html | 391 ++ .../sf/antcontrib/cpptasks/TestXMLConsumer.html | 319 ++ .../cpptasks/borland/TestBorlandCCompiler.html | 346 ++ .../borland/class-use/TestBorlandCCompiler.html | 141 + .../antcontrib/cpptasks/borland/package-frame.html | 33 + .../cpptasks/borland/package-summary.html | 157 + .../antcontrib/cpptasks/borland/package-tree.html | 159 + .../antcontrib/cpptasks/borland/package-use.html | 141 + .../cpptasks/class-use/MockBuildListener.html | 141 + .../cpptasks/class-use/MockFileCollector.html | 141 + .../cpptasks/class-use/TestAllClasses.html | 141 + .../antcontrib/cpptasks/class-use/TestCCTask.html | 141 + .../antcontrib/cpptasks/class-use/TestCUtil.html | 141 + .../cpptasks/class-use/TestCompilerDef.html | 141 + .../cpptasks/class-use/TestCompilerEnum.html | 141 + .../cpptasks/class-use/TestDependencyTable.html | 141 + .../cpptasks/class-use/TestLinkerDef.html | 141 + .../cpptasks/class-use/TestLinkerEnum.html | 141 + .../cpptasks/class-use/TestOutputTypeEnum.html | 141 + .../cpptasks/class-use/TestProcessorDef.html | 185 + ...getHistoryTable.MockProcessorConfiguration.html | 141 + .../cpptasks/class-use/TestTargetHistoryTable.html | 141 + .../cpptasks/class-use/TestTargetInfo.html | 141 + .../cpptasks/class-use/TestXMLConsumer.html | 185 + .../cpptasks/compiler/TestAbstractCompiler.html | 352 ++ .../cpptasks/compiler/TestAbstractLinker.html | 317 ++ .../cpptasks/compiler/TestAbstractProcessor.html | 320 ++ .../TestCommandLineCompilerConfiguration.html | 343 ++ .../compiler/TestCompilerConfiguration.html | 352 ++ .../antcontrib/cpptasks/compiler/TestLinkType.html | 316 ++ .../compiler/class-use/TestAbstractCompiler.html | 208 + .../compiler/class-use/TestAbstractLinker.html | 218 + .../compiler/class-use/TestAbstractProcessor.html | 319 ++ .../TestCommandLineCompilerConfiguration.html | 141 + .../class-use/TestCompilerConfiguration.html | 177 + .../cpptasks/compiler/class-use/TestLinkType.html | 141 + .../cpptasks/compiler/package-frame.html | 43 + .../cpptasks/compiler/package-summary.html | 181 + .../antcontrib/cpptasks/compiler/package-tree.html | 159 + .../antcontrib/cpptasks/compiler/package-use.html | 291 ++ .../devstudio/TestDevStudio2005CCompiler.html | 277 ++ .../cpptasks/devstudio/TestDevStudioCCompiler.html | 277 ++ .../cpptasks/devstudio/TestDevStudioLinker.html | 318 ++ .../devstudio/TestInstalledDevStudioLinker.html | 300 ++ .../class-use/TestDevStudio2005CCompiler.html | 141 + .../class-use/TestDevStudioCCompiler.html | 141 + .../devstudio/class-use/TestDevStudioLinker.html | 179 + .../class-use/TestInstalledDevStudioLinker.html | 141 + .../cpptasks/devstudio/package-frame.html | 39 + .../cpptasks/devstudio/package-summary.html | 171 + .../cpptasks/devstudio/package-tree.html | 161 + .../antcontrib/cpptasks/devstudio/package-use.html | 169 + .../cpptasks/gcc/TestAbstractArLibrarian.html | 388 ++ .../cpptasks/gcc/TestAbstractLdLinker.html | 518 ++ .../antcontrib/cpptasks/gcc/TestGccCCompiler.html | 469 ++ .../cpptasks/gcc/TestGccCompatibleCCompiler.html | 421 ++ .../sf/antcontrib/cpptasks/gcc/TestGccLinker.html | 363 ++ .../gcc/class-use/TestAbstractArLibrarian.html | 141 + .../gcc/class-use/TestAbstractLdLinker.html | 141 + .../cpptasks/gcc/class-use/TestGccCCompiler.html | 141 + .../gcc/class-use/TestGccCompatibleCCompiler.html | 177 + .../cpptasks/gcc/class-use/TestGccLinker.html | 141 + .../sf/antcontrib/cpptasks/gcc/package-frame.html | 41 + .../antcontrib/cpptasks/gcc/package-summary.html | 173 + .../sf/antcontrib/cpptasks/gcc/package-tree.html | 161 + .../sf/antcontrib/cpptasks/gcc/package-use.html | 167 + .../sf/antcontrib/cpptasks/hp/TestaCCCompiler.html | 486 ++ .../cpptasks/hp/class-use/TestaCCCompiler.html | 141 + .../sf/antcontrib/cpptasks/hp/package-frame.html | 33 + .../sf/antcontrib/cpptasks/hp/package-summary.html | 155 + .../sf/antcontrib/cpptasks/hp/package-tree.html | 155 + .../net/sf/antcontrib/cpptasks/hp/package-use.html | 141 + .../cpptasks/ibm/TestVisualAgeCCompiler.html | 391 ++ .../ibm/class-use/TestVisualAgeCCompiler.html | 141 + .../sf/antcontrib/cpptasks/ibm/package-frame.html | 33 + .../antcontrib/cpptasks/ibm/package-summary.html | 155 + .../sf/antcontrib/cpptasks/ibm/package-tree.html | 155 + .../sf/antcontrib/cpptasks/ibm/package-use.html | 141 + .../net/sf/antcontrib/cpptasks/package-frame.html | 63 + .../sf/antcontrib/cpptasks/package-summary.html | 233 + .../net/sf/antcontrib/cpptasks/package-tree.html | 165 + .../net/sf/antcontrib/cpptasks/package-use.html | 173 + .../sf/antcontrib/cpptasks/parser/TestCParser.html | 550 +++ .../cpptasks/parser/TestFortranParser.html | 334 ++ .../cpptasks/parser/class-use/TestCParser.html | 141 + .../parser/class-use/TestFortranParser.html | 141 + .../antcontrib/cpptasks/parser/package-frame.html | 35 + .../cpptasks/parser/package-summary.html | 174 + .../antcontrib/cpptasks/parser/package-tree.html | 155 + .../sf/antcontrib/cpptasks/parser/package-use.html | 141 + .../cpptasks/sun/TestForteCCCompiler.html | 536 +++ .../sun/class-use/TestForteCCCompiler.html | 141 + .../sf/antcontrib/cpptasks/sun/package-frame.html | 33 + .../antcontrib/cpptasks/sun/package-summary.html | 155 + .../sf/antcontrib/cpptasks/sun/package-tree.html | 155 + .../sf/antcontrib/cpptasks/sun/package-use.html | 141 + .../cpptasks/trolltech/TestMetaObjectCompiler.html | 380 ++ .../cpptasks/trolltech/TestMetaObjectParser.html | 310 ++ .../class-use/TestMetaObjectCompiler.html | 141 + .../trolltech/class-use/TestMetaObjectParser.html | 141 + .../cpptasks/trolltech/package-frame.html | 35 + .../cpptasks/trolltech/package-summary.html | 174 + .../cpptasks/trolltech/package-tree.html | 159 + .../antcontrib/cpptasks/trolltech/package-use.html | 141 + .../cpptasks/types/TestDefineArgument.html | 429 ++ .../antcontrib/cpptasks/types/TestLibrarySet.html | 619 +++ .../types/class-use/TestDefineArgument.html | 141 + .../cpptasks/types/class-use/TestLibrarySet.html | 141 + .../antcontrib/cpptasks/types/package-frame.html | 35 + .../antcontrib/cpptasks/types/package-summary.html | 174 + .../sf/antcontrib/cpptasks/types/package-tree.html | 155 + .../sf/antcontrib/cpptasks/types/package-use.html | 141 + site/testapidocs/options | 17 + site/testapidocs/overview-frame.html | 63 + site/testapidocs/overview-summary.html | 194 + site/testapidocs/overview-tree.html | 176 + site/testapidocs/package-list | 11 + site/testapidocs/packages | 11 + site/testapidocs/resources/inherit.gif | Bin 0 -> 57 bytes site/testapidocs/stylesheet.css | 29 + src/assembly/bin.xml | 38 + src/changes/changes.xml | 60 + .../net/sf/antcontrib/cpptasks/AboutCCTask.java | 49 + .../java/net/sf/antcontrib/cpptasks/ArchEnum.java | 72 + .../java/net/sf/antcontrib/cpptasks/CCTask.java | 1440 ++++++ .../antcontrib/cpptasks/CCTaskProgressMonitor.java | 58 + .../java/net/sf/antcontrib/cpptasks/CPUEnum.java | 71 + .../java/net/sf/antcontrib/cpptasks/CUtil.java | 523 ++ .../net/sf/antcontrib/cpptasks/CompilerDef.java | 502 ++ .../net/sf/antcontrib/cpptasks/CompilerEnum.java | 262 + .../net/sf/antcontrib/cpptasks/CompilerParam.java | 33 + .../net/sf/antcontrib/cpptasks/DependencyInfo.java | 86 + .../sf/antcontrib/cpptasks/DependencyTable.java | 610 +++ .../net/sf/antcontrib/cpptasks/DistributerDef.java | 243 + .../net/sf/antcontrib/cpptasks/DistributerMap.java | 218 + .../cpptasks/DistributerProtocolEnum.java | 50 + .../net/sf/antcontrib/cpptasks/FileVisitor.java | 27 + .../java/net/sf/antcontrib/cpptasks/LinkerDef.java | 509 ++ .../net/sf/antcontrib/cpptasks/LinkerEnum.java | 112 + .../net/sf/antcontrib/cpptasks/LinkerParam.java | 33 + .../net/sf/antcontrib/cpptasks/OSFamilyEnum.java | 59 + .../antcontrib/cpptasks/ObjectFileCollector.java | 42 + .../sf/antcontrib/cpptasks/OptimizationEnum.java | 82 + .../net/sf/antcontrib/cpptasks/OutputTypeEnum.java | 48 + .../net/sf/antcontrib/cpptasks/PrecompileDef.java | 212 + .../antcontrib/cpptasks/PrecompileExceptDef.java | 80 + .../net/sf/antcontrib/cpptasks/ProcessorDef.java | 679 +++ .../sf/antcontrib/cpptasks/ProcessorEnumValue.java | 47 + .../net/sf/antcontrib/cpptasks/ProcessorParam.java | 100 + .../net/sf/antcontrib/cpptasks/RuntimeType.java | 26 + .../net/sf/antcontrib/cpptasks/SourceHistory.java | 51 + .../net/sf/antcontrib/cpptasks/SubsystemEnum.java | 34 + .../java/net/sf/antcontrib/cpptasks/TargetDef.java | 228 + .../net/sf/antcontrib/cpptasks/TargetHistory.java | 58 + .../sf/antcontrib/cpptasks/TargetHistoryTable.java | 430 ++ .../net/sf/antcontrib/cpptasks/TargetInfo.java | 127 + .../net/sf/antcontrib/cpptasks/TargetMatcher.java | 120 + .../net/sf/antcontrib/cpptasks/VersionInfo.java | 671 +++ .../sf/antcontrib/cpptasks/WarningLevelEnum.java | 40 + .../cpptasks/apple/PropertyListSerialization.java | 235 + .../cpptasks/apple/XcodeProjectWriter.java | 1016 ++++ .../net/sf/antcontrib/cpptasks/apple/package.html | 27 + .../sf/antcontrib/cpptasks/arm/ADSCCompiler.java | 210 + .../sf/antcontrib/cpptasks/arm/ADSLibrarian.java | 159 + .../net/sf/antcontrib/cpptasks/arm/ADSLinker.java | 166 + .../cpptasks/borland/BorlandCCompiler.java | 134 + .../cpptasks/borland/BorlandCfgParser.java | 70 + .../cpptasks/borland/BorlandLibrarian.java | 219 + .../antcontrib/cpptasks/borland/BorlandLinker.java | 293 ++ .../cpptasks/borland/BorlandProcessor.java | 219 + .../cpptasks/borland/BorlandResourceCompiler.java | 129 + .../cpptasks/borland/CBuilderXProjectWriter.java | 542 +++ .../cpptasks/borland/CfgFilenameState.java | 46 + .../cpptasks/borland/ConsumeToSpaceOrNewLine.java | 30 + .../cpptasks/borland/QuoteBranchState.java | 35 + .../sf/antcontrib/cpptasks/borland/package.html | 27 + .../compaq/CompaqVisualFortranCompiler.java | 137 + .../compaq/CompaqVisualFortranLibrarian.java | 82 + .../cpptasks/compaq/CompaqVisualFortranLinker.java | 77 + .../cpptasks/compiler/AbstractCompiler.java | 207 + .../cpptasks/compiler/AbstractLinker.java | 122 + .../cpptasks/compiler/AbstractProcessor.java | 129 + .../cpptasks/compiler/CaptureStreamHandler.java | 122 + .../cpptasks/compiler/CommandLineCCompiler.java | 42 + .../cpptasks/compiler/CommandLineCompiler.java | 437 ++ .../compiler/CommandLineCompilerConfiguration.java | 226 + .../compiler/CommandLineFortranCompiler.java | 42 + .../cpptasks/compiler/CommandLineLinker.java | 407 ++ .../compiler/CommandLineLinkerConfiguration.java | 128 + .../sf/antcontrib/cpptasks/compiler/Compiler.java | 24 + .../cpptasks/compiler/CompilerConfiguration.java | 64 + .../sf/antcontrib/cpptasks/compiler/LinkType.java | 150 + .../sf/antcontrib/cpptasks/compiler/Linker.java | 80 + .../cpptasks/compiler/LinkerConfiguration.java | 33 + .../compiler/PrecompilingCommandLineCCompiler.java | 43 + .../compiler/PrecompilingCommandLineCompiler.java | 104 + .../cpptasks/compiler/PrecompilingCompiler.java | 49 + .../sf/antcontrib/cpptasks/compiler/Processor.java | 75 + .../cpptasks/compiler/ProcessorConfiguration.java | 54 + .../cpptasks/compiler/ProgressMonitor.java | 31 + .../cpptasks/devstudio/DevStudio2005CCompiler.java | 62 + .../cpptasks/devstudio/DevStudioCCompiler.java | 50 + .../devstudio/DevStudioCompatibleCCompiler.java | 136 + .../devstudio/DevStudioCompatibleLibrarian.java | 80 + .../devstudio/DevStudioCompatibleLinker.java | 148 + .../cpptasks/devstudio/DevStudioLibrarian.java | 36 + .../cpptasks/devstudio/DevStudioLinker.java | 44 + .../cpptasks/devstudio/DevStudioMIDLCompiler.java | 112 + .../cpptasks/devstudio/DevStudioProcessor.java | 90 + .../cpptasks/devstudio/DevStudioProjectWriter.java | 710 +++ .../devstudio/DevStudioResourceCompiler.java | 119 + .../devstudio/VisualStudioNETProjectWriter.java | 866 ++++ .../sf/antcontrib/cpptasks/devstudio/package.html | 27 + .../cpptasks/gcc/AbstractArLibrarian.java | 107 + .../antcontrib/cpptasks/gcc/AbstractLdLinker.java | 339 ++ .../sf/antcontrib/cpptasks/gcc/GccCCompiler.java | 242 + .../cpptasks/gcc/GccCompatibleCCompiler.java | 146 + .../sf/antcontrib/cpptasks/gcc/GccLibrarian.java | 41 + .../net/sf/antcontrib/cpptasks/gcc/GccLinker.java | 210 + .../sf/antcontrib/cpptasks/gcc/GccProcessor.java | 299 ++ .../net/sf/antcontrib/cpptasks/gcc/GppLinker.java | 203 + .../net/sf/antcontrib/cpptasks/gcc/LdLinker.java | 57 + .../cpptasks/gcc/WindresResourceCompiler.java | 121 + .../cpptasks/gcc/cross/GccCCompiler.java | 272 ++ .../cpptasks/gcc/cross/GccLibrarian.java | 69 + .../antcontrib/cpptasks/gcc/cross/GccLinker.java | 234 + .../cpptasks/gcc/cross/GccProcessor.java | 288 ++ .../antcontrib/cpptasks/gcc/cross/GppLinker.java | 228 + .../sf/antcontrib/cpptasks/gcc/cross/LdLinker.java | 83 + .../gcc/cross/sparc_sun_solaris2/GccCCompiler.java | 244 + .../gcc/cross/sparc_sun_solaris2/GccLibrarian.java | 43 + .../gcc/cross/sparc_sun_solaris2/GccLinker.java | 215 + .../gcc/cross/sparc_sun_solaris2/GccProcessor.java | 305 ++ .../gcc/cross/sparc_sun_solaris2/GppLinker.java | 210 + .../gcc/cross/sparc_sun_solaris2/LdLinker.java | 60 + .../net/sf/antcontrib/cpptasks/hp/aCCCompiler.java | 116 + .../net/sf/antcontrib/cpptasks/hp/aCCLinker.java | 100 + .../cpptasks/ibm/VisualAgeCCompiler.java | 118 + .../antcontrib/cpptasks/ibm/VisualAgeLinker.java | 83 + .../net/sf/antcontrib/cpptasks/ide/CommentDef.java | 47 + .../net/sf/antcontrib/cpptasks/ide/DebugDef.java | 127 + .../sf/antcontrib/cpptasks/ide/DependencyDef.java | 77 + .../net/sf/antcontrib/cpptasks/ide/ProjectDef.java | 372 ++ .../sf/antcontrib/cpptasks/ide/ProjectWriter.java | 53 + .../antcontrib/cpptasks/ide/ProjectWriterEnum.java | 105 + .../net/sf/antcontrib/cpptasks/ide/package.html | 27 + .../cpptasks/intel/IntelLinux32CCompiler.java | 58 + .../cpptasks/intel/IntelLinux32Linker.java | 55 + .../cpptasks/intel/IntelLinux64CCompiler.java | 58 + .../cpptasks/intel/IntelLinux64Linker.java | 55 + .../antcontrib/cpptasks/intel/IntelProcessor.java | 51 + .../cpptasks/intel/IntelWin32CCompiler.java | 52 + .../cpptasks/intel/IntelWin32Librarian.java | 38 + .../cpptasks/intel/IntelWin32Linker.java | 46 + .../cpptasks/intel/IntelWin64CCompiler.java | 53 + .../antcontrib/cpptasks/mozilla/XpidlCompiler.java | 365 ++ .../sf/antcontrib/cpptasks/mozilla/package.html | 27 + .../cpptasks/openwatcom/OpenWatcomCCompiler.java | 84 + .../cpptasks/openwatcom/OpenWatcomCLinker.java | 69 + .../cpptasks/openwatcom/OpenWatcomCompiler.java | 169 + .../openwatcom/OpenWatcomFortranCompiler.java | 86 + .../openwatcom/OpenWatcomFortranLinker.java | 69 + .../cpptasks/openwatcom/OpenWatcomLibrarian.java | 254 + .../cpptasks/openwatcom/OpenWatcomLinker.java | 205 + .../cpptasks/openwatcom/OpenWatcomProcessor.java | 169 + .../sf/antcontrib/cpptasks/openwatcom/package.html | 27 + .../antcontrib/cpptasks/os390/OS390CCompiler.java | 156 + .../sf/antcontrib/cpptasks/os390/OS390Linker.java | 208 + .../antcontrib/cpptasks/os390/OS390Processor.java | 71 + .../sf/antcontrib/cpptasks/os400/IccCompiler.java | 123 + .../sf/antcontrib/cpptasks/os400/IccLinker.java | 209 + .../sf/antcontrib/cpptasks/os400/IccProcessor.java | 71 + .../java/net/sf/antcontrib/cpptasks/package.html | 27 + .../antcontrib/cpptasks/parser/AbstractParser.java | 67 + .../cpptasks/parser/AbstractParserState.java | 41 + .../sf/antcontrib/cpptasks/parser/BranchState.java | 46 + .../net/sf/antcontrib/cpptasks/parser/CParser.java | 78 + .../parser/CaseInsensitiveLetterState.java | 87 + .../antcontrib/cpptasks/parser/FilenameState.java | 41 + .../antcontrib/cpptasks/parser/FortranParser.java | 106 + .../sf/antcontrib/cpptasks/parser/LetterState.java | 80 + .../net/sf/antcontrib/cpptasks/parser/Parser.java | 28 + .../net/sf/antcontrib/cpptasks/parser/PostE.java | 41 + .../WhitespaceOrCaseInsensitiveLetterState.java | 83 + .../cpptasks/parser/WhitespaceOrLetterState.java | 75 + .../net/sf/antcontrib/cpptasks/parser/package.html | 28 + .../cpptasks/platforms/WindowsPlatform.java | 364 ++ .../sf/antcontrib/cpptasks/platforms/package.html | 27 + .../sf/antcontrib/cpptasks/sun/C89CCompiler.java | 108 + .../net/sf/antcontrib/cpptasks/sun/C89Linker.java | 132 + .../sf/antcontrib/cpptasks/sun/C89Processor.java | 116 + .../antcontrib/cpptasks/sun/ForteCCCompiler.java | 130 + .../sf/antcontrib/cpptasks/sun/ForteCCLinker.java | 100 + .../sf/antcontrib/cpptasks/ti/ClxxCCompiler.java | 191 + .../sf/antcontrib/cpptasks/ti/ClxxLibrarian.java | 162 + .../net/sf/antcontrib/cpptasks/ti/ClxxLinker.java | 181 + .../cpptasks/trolltech/MetaObjectCompiler.java | 280 ++ .../cpptasks/trolltech/MetaObjectParser.java | 148 + .../cpptasks/trolltech/UserInterfaceCompiler.java | 347 ++ .../cpptasks/trolltech/UserInterfaceParser.java | 67 + .../sf/antcontrib/cpptasks/trolltech/package.html | 27 + .../cpptasks/types/CommandLineArgument.java | 104 + .../cpptasks/types/CompilerArgument.java | 28 + .../cpptasks/types/ConditionalFileSet.java | 84 + .../antcontrib/cpptasks/types/ConditionalPath.java | 75 + .../antcontrib/cpptasks/types/DefineArgument.java | 38 + .../sf/antcontrib/cpptasks/types/DefineSet.java | 199 + .../net/sf/antcontrib/cpptasks/types/FlexLong.java | 59 + .../sf/antcontrib/cpptasks/types/IncludePath.java | 38 + .../sf/antcontrib/cpptasks/types/LibrarySet.java | 347 ++ .../antcontrib/cpptasks/types/LibraryTypeEnum.java | 48 + .../antcontrib/cpptasks/types/LinkerArgument.java | 28 + .../cpptasks/types/SystemIncludePath.java | 45 + .../cpptasks/types/SystemLibrarySet.java | 37 + .../cpptasks/types/UndefineArgument.java | 153 + src/main/resources/META-INF/LICENSE | 202 + src/main/resources/META-INF/NOTICE | 4 + src/main/resources/cpptasks.tasks | 1 + src/main/resources/cpptasks.types | 8 + .../net/sf/antcontrib/cpptasks/antlib.xml | 22 + src/samples/blas.ant | 185 + src/samples/check.ant | 206 + src/samples/cppunit.ant | 583 +++ src/samples/hello/build.xml | 27 + src/samples/hello/src/main/c/hello.c | 25 + src/samples/qtunit.ant | 238 + src/samples/xercesc.ant | 1113 +++++ src/samples/xpcom.ant | 120 + src/site/apt/index.apt | 71 + src/site/site.xml | 69 + src/site/xdoc/antdocs/CCTask.xml | 534 ++ src/site/xdoc/antdocs/CommentDef.xml | 37 + src/site/xdoc/antdocs/CompilerArgument.xml | 83 + src/site/xdoc/antdocs/CompilerDef.xml | 313 ++ src/site/xdoc/antdocs/CompilerParam.xml | 81 + src/site/xdoc/antdocs/ConditionalFileSet.xml | 221 + src/site/xdoc/antdocs/ConditionalPath.xml | 122 + src/site/xdoc/antdocs/DebugDef.xml | 76 + src/site/xdoc/antdocs/DefineArgument.xml | 76 + src/site/xdoc/antdocs/DefineSet.xml | 111 + src/site/xdoc/antdocs/DependencyDef.xml | 64 + src/site/xdoc/antdocs/DistributerDef.xml | 113 + src/site/xdoc/antdocs/DistributerMap.xml | 96 + src/site/xdoc/antdocs/IncludePath.xml | 125 + src/site/xdoc/antdocs/LibrarySet.xml | 114 + src/site/xdoc/antdocs/LinkerArgument.xml | 83 + src/site/xdoc/antdocs/LinkerDef.xml | 284 ++ src/site/xdoc/antdocs/LinkerParam.xml | 81 + src/site/xdoc/antdocs/PrecompileDef.xml | 99 + src/site/xdoc/antdocs/PrecompileExceptDef.xml | 64 + src/site/xdoc/antdocs/ProjectDef.xml | 166 + src/site/xdoc/antdocs/SystemIncludePath.xml | 132 + src/site/xdoc/antdocs/SystemLibrarySet.xml | 116 + src/site/xdoc/antdocs/TargetDef.xml | 105 + src/site/xdoc/antdocs/UndefineArgument.xml | 71 + src/site/xdoc/antdocs/VersionInfo.xml | 187 + .../net/sf/antcontrib/taskdocs/TaskDoclet.java | 1 + .../net/sf/antcontrib/taskdocs/element.xslt | 210 + .../sf/antcontrib/cpptasks/MockBuildListener.java | 172 + .../sf/antcontrib/cpptasks/MockFileCollector.java | 90 + .../net/sf/antcontrib/cpptasks/TestAllClasses.java | 63 + .../net/sf/antcontrib/cpptasks/TestCCTask.java | 128 + .../java/net/sf/antcontrib/cpptasks/TestCUtil.java | 153 + .../sf/antcontrib/cpptasks/TestCompilerDef.java | 357 ++ .../sf/antcontrib/cpptasks/TestCompilerEnum.java | 51 + .../antcontrib/cpptasks/TestDependencyTable.java | 73 + .../net/sf/antcontrib/cpptasks/TestLinkerDef.java | 374 ++ .../net/sf/antcontrib/cpptasks/TestLinkerEnum.java | 40 + .../sf/antcontrib/cpptasks/TestOutputTypeEnum.java | 39 + .../sf/antcontrib/cpptasks/TestProcessorDef.java | 278 ++ .../cpptasks/TestTargetHistoryTable.java | 141 + .../net/sf/antcontrib/cpptasks/TestTargetInfo.java | 134 + .../sf/antcontrib/cpptasks/TestXMLConsumer.java | 96 + .../cpptasks/borland/TestBorlandCCompiler.java | 37 + .../cpptasks/compiler/TestAbstractCompiler.java | 85 + .../cpptasks/compiler/TestAbstractLinker.java | 89 + .../cpptasks/compiler/TestAbstractProcessor.java | 80 + .../TestCommandLineCompilerConfiguration.java | 59 + .../compiler/TestCompilerConfiguration.java | 68 + .../antcontrib/cpptasks/compiler/TestLinkType.java | 59 + .../devstudio/TestDevStudio2005CCompiler.java | 41 + .../cpptasks/devstudio/TestDevStudioCCompiler.java | 41 + .../cpptasks/devstudio/TestDevStudioLinker.java | 44 + .../devstudio/TestInstalledDevStudioLinker.java | 60 + .../cpptasks/gcc/TestAbstractArLibrarian.java | 79 + .../cpptasks/gcc/TestAbstractLdLinker.java | 247 + .../antcontrib/cpptasks/gcc/TestGccCCompiler.java | 80 + .../cpptasks/gcc/TestGccCompatibleCCompiler.java | 105 + .../sf/antcontrib/cpptasks/gcc/TestGccLinker.java | 79 + .../sf/antcontrib/cpptasks/hp/TestaCCCompiler.java | 93 + .../cpptasks/ibm/TestVisualAgeCCompiler.java | 68 + .../java/net/sf/antcontrib/cpptasks/package.html | 28 + .../sf/antcontrib/cpptasks/parser/TestCParser.java | 199 + .../cpptasks/parser/TestFortranParser.java | 81 + .../net/sf/antcontrib/cpptasks/parser/package.html | 27 + .../cpptasks/sun/TestForteCCCompiler.java | 132 + .../cpptasks/trolltech/TestMetaObjectCompiler.java | 74 + .../cpptasks/trolltech/TestMetaObjectParser.java | 58 + .../sf/antcontrib/cpptasks/trolltech/package.html | 27 + .../cpptasks/types/TestDefineArgument.java | 124 + .../antcontrib/cpptasks/types/TestLibrarySet.java | 337 ++ .../net/sf/antcontrib/cpptasks/types/package.html | 28 + src/test/resources/openshore/dependencies.xml | 911 ++++ src/test/resources/openshore/history.xml | 74 + src/test/resources/xerces-c/dependencies.xml | 3330 +++++++++++++ src/test/resources/xerces-c/history.xml | 636 +++ sun_checks.xml | 169 + 973 files changed, 246646 insertions(+) create mode 100644 LICENSE create mode 100644 NOTICE create mode 100644 build.xml create mode 100644 pom.xml create mode 100644 site/antdocs/CCTask.html create mode 100644 site/antdocs/CommentDef.html create mode 100644 site/antdocs/CompilerArgument.html create mode 100644 site/antdocs/CompilerDef.html create mode 100644 site/antdocs/CompilerParam.html create mode 100644 site/antdocs/ConditionalFileSet.html create mode 100644 site/antdocs/ConditionalPath.html create mode 100644 site/antdocs/DebugDef.html create mode 100644 site/antdocs/DefineArgument.html create mode 100644 site/antdocs/DefineSet.html create mode 100644 site/antdocs/DependencyDef.html create mode 100644 site/antdocs/DistributerDef.html create mode 100644 site/antdocs/DistributerMap.html create mode 100644 site/antdocs/IncludePath.html create mode 100644 site/antdocs/LibrarySet.html create mode 100644 site/antdocs/LinkerArgument.html create mode 100644 site/antdocs/LinkerDef.html create mode 100644 site/antdocs/LinkerParam.html create mode 100644 site/antdocs/PrecompileDef.html create mode 100644 site/antdocs/PrecompileExceptDef.html create mode 100644 site/antdocs/ProjectDef.html create mode 100644 site/antdocs/SystemIncludePath.html create mode 100644 site/antdocs/SystemLibrarySet.html create mode 100644 site/antdocs/TargetDef.html create mode 100644 site/antdocs/UndefineArgument.html create mode 100644 site/antdocs/VersionInfo.html create mode 100644 site/apidocs/allclasses-frame.html create mode 100644 site/apidocs/allclasses-noframe.html create mode 100644 site/apidocs/constant-values.html create mode 100644 site/apidocs/deprecated-list.html create mode 100644 site/apidocs/help-doc.html create mode 100644 site/apidocs/index-all.html create mode 100644 site/apidocs/index.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/AboutCCTask.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ArchEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CCTask.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CPUEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CUtil.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CompilerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CompilerEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/CompilerParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DependencyInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.DependencyVisitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.TimestampChecker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DistributerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DistributerMap.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/FileVisitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/LinkerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/LinkerEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/LinkerParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/OSFamilyEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ObjectFileCollector.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/OptimizationEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/OutputTypeEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/PrecompileDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/PrecompileExceptDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ProcessorDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ProcessorEnumValue.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ProcessorParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/RuntimeType.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/SourceHistory.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/SubsystemEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/TargetDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/TargetHistory.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/TargetHistoryTable.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/TargetInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/TargetMatcher.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/VersionInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/WarningLevelEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/PropertyListSerialization.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/XcodeProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/apple/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/arm/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCfgParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CBuilderXProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CfgFilenameState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/ConsumeToSpaceOrNewLine.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/QuoteBranchState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/borland/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/AboutCCTask.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/ArchEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTask.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTaskProgressMonitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CPUEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.StringArrayBuilder.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.DependencyVisitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.TimestampChecker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerMap.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerProtocolEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/FileVisitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/OSFamilyEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/ObjectFileCollector.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/OptimizationEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/OutputTypeEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileExceptDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorEnumValue.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorParam.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/RuntimeType.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/SourceHistory.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/SubsystemEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistory.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistoryTable.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetMatcher.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/VersionInfo.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/class-use/WarningLevelEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/Compiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkType.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CaptureStreamHandler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompilerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinkerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Compiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CompilerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkType.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkerConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProcessorConfiguration.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProgressMonitor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudio2005CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioMIDLCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/VisualStudioNETProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractArLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractLdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCompatibleCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/WindresResourceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GppLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/LdLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/hp/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/CommentDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/DebugDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/DependencyDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/CommentDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DebugDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DependencyDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectDef.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriter.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriterEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ide/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Librarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin64CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/intel/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/class-use/XpidlCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os390/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/IccCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/IccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/IccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccProcessor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/os400/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParserState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/BranchState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/CParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/FilenameState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/FortranParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/LetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/Parser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/PostE.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParserState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/BranchState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CaseInsensitiveLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FilenameState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FortranParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/LetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/Parser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/PostE.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrCaseInsensitiveLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrLetterState.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/parser/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/class-use/WindowsPlatform.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/C89CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89CCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Linker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Processor.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/sun/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxCCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLibrarian.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLinker.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/ti/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceCompiler.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceParser.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.LocationEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/CompilerArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalPath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/DefineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/DefineSet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/FlexLong.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/IncludePath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/LibrarySet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/LinkerArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/SystemIncludePath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/UndefineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.LocationEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CompilerArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalFileSet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalPath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineSet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/FlexLong.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/IncludePath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibrarySet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibraryTypeEnum.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LinkerArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemIncludePath.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemLibrarySet.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/UndefineArgument.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/package-frame.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/package-summary.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/package-tree.html create mode 100644 site/apidocs/net/sf/antcontrib/cpptasks/types/package-use.html create mode 100644 site/apidocs/options create mode 100644 site/apidocs/overview-frame.html create mode 100644 site/apidocs/overview-summary.html create mode 100644 site/apidocs/overview-tree.html create mode 100644 site/apidocs/package-list create mode 100644 site/apidocs/packages create mode 100644 site/apidocs/resources/inherit.gif create mode 100644 site/apidocs/stylesheet.css create mode 100644 site/changes-report.html create mode 100644 site/css/maven-base.css create mode 100644 site/css/maven-theme.css create mode 100644 site/css/print.css create mode 100644 site/css/site.css create mode 100644 site/images/add.gif create mode 100644 site/images/collapsed.gif create mode 100644 site/images/expanded.gif create mode 100644 site/images/external.png create mode 100644 site/images/fix.gif create mode 100644 site/images/icon_error_sml.gif create mode 100644 site/images/icon_help_sml.gif create mode 100644 site/images/icon_info_sml.gif create mode 100644 site/images/icon_success_sml.gif create mode 100644 site/images/icon_warning_sml.gif create mode 100644 site/images/logos/build-by-maven-black.png create mode 100644 site/images/logos/build-by-maven-white.png create mode 100644 site/images/logos/maven-feather.png create mode 100644 site/images/newwindow.png create mode 100644 site/images/remove.gif create mode 100644 site/images/rss.png create mode 100644 site/images/update.gif create mode 100644 site/index.html create mode 100644 site/integration.html create mode 100644 site/issue-tracking.html create mode 100644 site/license.html create mode 100644 site/mail-lists.html create mode 100644 site/project-info.html create mode 100644 site/project-reports.html create mode 100644 site/source-repository.html create mode 100644 site/testapidocs/allclasses-frame.html create mode 100644 site/testapidocs/allclasses-noframe.html create mode 100644 site/testapidocs/constant-values.html create mode 100644 site/testapidocs/deprecated-list.html create mode 100644 site/testapidocs/help-doc.html create mode 100644 site/testapidocs/index-all.html create mode 100644 site/testapidocs/index.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/MockBuildListener.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/MockFileCollector.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestAllClasses.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestCCTask.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestCUtil.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestDependencyTable.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.MockProcessorConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetInfo.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/TestXMLConsumer.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/class-use/TestBorlandCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockBuildListener.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockFileCollector.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestAllClasses.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCCTask.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCUtil.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestDependencyTable.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestOutputTypeEnum.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestProcessorDef.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.MockProcessorConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetInfo.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestXMLConsumer.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestLinkType.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractProcessor.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCommandLineCompilerConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCompilerConfiguration.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestLinkType.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudio2005CCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestInstalledDevStudioLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractArLibrarian.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractLdLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCompatibleCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccLinker.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/class-use/TestaCCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/class-use/TestVisualAgeCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestCParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestFortranParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestCParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestFortranParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/class-use/TestForteCCCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectCompiler.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectParser.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/TestDefineArgument.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/TestLibrarySet.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestDefineArgument.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestLibrarySet.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/package-frame.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/package-summary.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/package-tree.html create mode 100644 site/testapidocs/net/sf/antcontrib/cpptasks/types/package-use.html create mode 100644 site/testapidocs/options create mode 100644 site/testapidocs/overview-frame.html create mode 100644 site/testapidocs/overview-summary.html create mode 100644 site/testapidocs/overview-tree.html create mode 100644 site/testapidocs/package-list create mode 100644 site/testapidocs/packages create mode 100644 site/testapidocs/resources/inherit.gif create mode 100644 site/testapidocs/stylesheet.css create mode 100644 src/assembly/bin.xml create mode 100644 src/changes/changes.xml create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/AboutCCTask.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ArchEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CCTask.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CPUEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CUtil.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CompilerEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/CompilerParam.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/DependencyInfo.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/DependencyTable.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/DistributerDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/DistributerMap.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/FileVisitor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/LinkerDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/LinkerEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/LinkerParam.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/OSFamilyEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ObjectFileCollector.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/OptimizationEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/OutputTypeEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/PrecompileDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/PrecompileExceptDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ProcessorDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ProcessorEnumValue.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ProcessorParam.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/RuntimeType.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/SourceHistory.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/SubsystemEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/TargetDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/TargetHistory.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/TargetHistoryTable.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/TargetInfo.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/VersionInfo.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/apple/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/borland/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/Compiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/Processor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/devstudio/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GccProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/LdLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/hp/aCCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/hp/aCCLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/CommentDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/DebugDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/DependencyDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriter.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ide/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/mozilla/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/openwatcom/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Processor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os400/IccCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os400/IccLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/os400/IccProcessor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParserState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/BranchState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/CParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/FilenameState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/FortranParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/LetterState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/Parser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/PostE.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/parser/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/platforms/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/sun/C89CCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/sun/C89Linker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/sun/C89Processor.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLinker.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/trolltech/package.html create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/CommandLineArgument.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/CompilerArgument.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalPath.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/DefineArgument.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/DefineSet.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/FlexLong.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/IncludePath.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/LibrarySet.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/LinkerArgument.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/SystemIncludePath.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.java create mode 100644 src/main/java/net/sf/antcontrib/cpptasks/types/UndefineArgument.java create mode 100644 src/main/resources/META-INF/LICENSE create mode 100644 src/main/resources/META-INF/NOTICE create mode 100644 src/main/resources/cpptasks.tasks create mode 100644 src/main/resources/cpptasks.types create mode 100644 src/main/resources/net/sf/antcontrib/cpptasks/antlib.xml create mode 100644 src/samples/blas.ant create mode 100644 src/samples/check.ant create mode 100644 src/samples/cppunit.ant create mode 100644 src/samples/hello/build.xml create mode 100644 src/samples/hello/src/main/c/hello.c create mode 100644 src/samples/qtunit.ant create mode 100644 src/samples/xercesc.ant create mode 100644 src/samples/xpcom.ant create mode 100644 src/site/apt/index.apt create mode 100644 src/site/site.xml create mode 100644 src/site/xdoc/antdocs/CCTask.xml create mode 100644 src/site/xdoc/antdocs/CommentDef.xml create mode 100644 src/site/xdoc/antdocs/CompilerArgument.xml create mode 100644 src/site/xdoc/antdocs/CompilerDef.xml create mode 100644 src/site/xdoc/antdocs/CompilerParam.xml create mode 100644 src/site/xdoc/antdocs/ConditionalFileSet.xml create mode 100644 src/site/xdoc/antdocs/ConditionalPath.xml create mode 100644 src/site/xdoc/antdocs/DebugDef.xml create mode 100644 src/site/xdoc/antdocs/DefineArgument.xml create mode 100644 src/site/xdoc/antdocs/DefineSet.xml create mode 100644 src/site/xdoc/antdocs/DependencyDef.xml create mode 100644 src/site/xdoc/antdocs/DistributerDef.xml create mode 100644 src/site/xdoc/antdocs/DistributerMap.xml create mode 100644 src/site/xdoc/antdocs/IncludePath.xml create mode 100644 src/site/xdoc/antdocs/LibrarySet.xml create mode 100644 src/site/xdoc/antdocs/LinkerArgument.xml create mode 100644 src/site/xdoc/antdocs/LinkerDef.xml create mode 100644 src/site/xdoc/antdocs/LinkerParam.xml create mode 100644 src/site/xdoc/antdocs/PrecompileDef.xml create mode 100644 src/site/xdoc/antdocs/PrecompileExceptDef.xml create mode 100644 src/site/xdoc/antdocs/ProjectDef.xml create mode 100644 src/site/xdoc/antdocs/SystemIncludePath.xml create mode 100644 src/site/xdoc/antdocs/SystemLibrarySet.xml create mode 100644 src/site/xdoc/antdocs/TargetDef.xml create mode 100644 src/site/xdoc/antdocs/UndefineArgument.xml create mode 100644 src/site/xdoc/antdocs/VersionInfo.xml create mode 100644 src/taskdocs/java/net/sf/antcontrib/taskdocs/TaskDoclet.java create mode 100644 src/taskdocs/resources/net/sf/antcontrib/taskdocs/element.xslt create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/MockBuildListener.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/MockFileCollector.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestAllClasses.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestCUtil.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestCompilerDef.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestCompilerEnum.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestDependencyTable.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestLinkerDef.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestLinkerEnum.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestProcessorDef.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestTargetInfo.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/TestXMLConsumer.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/compiler/TestLinkType.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/package.html create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/parser/TestCParser.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/parser/TestFortranParser.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/parser/package.html create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/trolltech/package.html create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/types/TestDefineArgument.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/types/TestLibrarySet.java create mode 100644 src/test/java/net/sf/antcontrib/cpptasks/types/package.html create mode 100644 src/test/resources/openshore/dependencies.xml create mode 100644 src/test/resources/openshore/history.xml create mode 100644 src/test/resources/xerces-c/dependencies.xml create mode 100644 src/test/resources/xerces-c/history.xml create mode 100644 sun_checks.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..340dceb --- /dev/null +++ b/NOTICE @@ -0,0 +1,4 @@ +This product includes software developed by + The Ant-Contrib project (http://ant-contrib.sourceforge.net) +This product includes software developed by + The Apache Software Foundation (http://www.apache.org/). diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..ed3a0f7 --- /dev/null +++ b/build.xml @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copyright © 2001-${year} Ant-Contrib project. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cpptasks.jar must be in the classpath, SET CLASSPATH=${build.dir}\lib\cpptasks.jar before running ant. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..664bfea --- /dev/null +++ b/pom.xml @@ -0,0 +1,256 @@ + + 4.0.0 + ant-contrib + cpptasks + jar + cpptasks + 1.0b5 + Compile tasks for Apache Ant + http://ant-contrib.sourceforge.net:80/cpptasks + + SourceForge Tracker + http://sourceforge.net/tracker/?group_id=36177/ + + + Gump + http://vmgump.apache.org/gump/public/cpptasks/index.html + + 2001 + + + ant-contrib-cvs + https://lists.sourceforge.net/lists/listinfo/ant-contrib-cvs + https://lists.sourceforge.net/lists/listinfo/ant-contrib-cvs + http://sourceforge.net/mailarchive/forum.php?forum_name=ant-contrib-cvs + + + ant-contrib-developers + http://lists.sourceforge.net/mailman/listinfo/ant-contrib-developers + http://lists.sourceforge.net/mailman/listinfo/ant-contrib-developers + ant-contrib-developers@lists.sourceforge.net + http://sourceforge.net/mailarchive/forum.php?forum_name=ant-contrib-developers + + + + Ant-Contrib Project + http://ant-contrib.sourceforge.net + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + scm:svn:https://ant-contrib.svn.sourceforge.net/svnroot/ant-contrib/cpptasks/tags/cpptasks-1.0b5 + scm:svn:https://ant-contrib.svn.sourceforge.net/svnroot/ant-contrib/cpptasks/tags/cpptasks-1.0b5 + http://ant-contrib.svn.sourceforge.net/viewvc/ant-contrib/cpptasks/tags/cpptasks-1.0b5 + + + + + maven-surefire-plugin + 2.4.1 + + plain + + **/TestInstalledDevStudioLinker.java + **/TestMetaObjectCompiler.java + **/TestAbstract*.java + + + + + maven-compiler-plugin + + 1.3 + 1.1 + true + + + + maven-jar-plugin + + + + + net.sf.antcontrib.cpptasks + + cpptasks: Compiler Tasks for Apache Ant. + ${project.version} + Ant-Contrib Project + + + + + + + + maven-antrun-plugin + + + + pre-site + pre-site + + + + + + + + + + + + run + + + + site + untag-site + + + + + + + + + + + run + + + + + + ant + ant-nodeps + 1.6.5 + + + ant + ant-trax + 1.6.5 + + + + + maven-assembly-plugin + + + src/assembly/bin.xml + + false + + + + + assembly + + + + + + maven-javadoc-plugin + + + + jar + + + + + + maven-source-plugin + + + + jar + + + + + + org.codehaus.mojo + clirr-maven-plugin + + 1.0b3 + + + + + + + ant + ant + 1.6.5 + + + xerces + xercesImpl + 2.8.1 + + + junit + junit + 3.8.1 + test + + + + true + + + maven-project-info-reports-plugin + + + + scm + cim + javadoc + issue-tracking + mailing-list + license + + + + + + maven-release-plugin + + site-deploy + + + + maven-changes-plugin + + + + changes-report + + + + + http://sourceforge.net/tracker/index.php?func=detail&aid=%ISSUE%&group_id=36177&atid=416920 + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + + + + ant-contrib.repo + file:///${user.dir}/target/m2-repo + + + cpptasks.site + file:///${user.dir}/target/site-deploy + + + \ No newline at end of file diff --git a/site/antdocs/CCTask.html b/site/antdocs/CCTask.html new file mode 100644 index 0000000..cd35b53 --- /dev/null +++ b/site/antdocs/CCTask.html @@ -0,0 +1,633 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - cc + + + + + + + +
+ +
+
+
+

+cc

+

+Description

+Compile and link task. + +

+ This task can compile various source languages and produce executables, + shared libraries (aka DLL's) and static libraries. Compiler adaptors are + currently available for several C/C++ compilers, FORTRAN, MIDL and Windows + Resource files. +

+

+ Copyright (c) 2001-2008, The Ant-Contrib project. +

+

+ Licensed under the Apache Software License 2.0, + http://www.apache.org/licenses/LICENSE-2.0. +

+

+ For use with Apache Ant 1.5 or later. This software is not a product of the + of the Apache Software Foundation and no endorsement is implied. +

+

+ THIS SOFTWARE IS PROVIDED 'AS-IS', See + http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers. +

+ + + To use: +
  1. + Place cpptasks.jar into Ant's classpath by placing it in Ant's lib + directory, adding it to the CLASSPATH environment variable or by using the + -lib command line option. +
  2. +
  3. + Add type and task definitions to the build file: +
    • + Ant 1.6 or later: +
      • Add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to + <project> element. +
      • +
      • + Add <cpptasks:cc/>, <cpptasks:compiler/> and + <cpptasks:linker/> elements to the project. +
      • +
      +
    • +
    • + Ant 1.5 or later: +
      • Add <taskdef resource="cpptasks.tasks"/> and + <typedef resource="cpptasks.types"/> to body of <project> + element. +
      • +
      • + Add <cc/>, <compiler/> and <linker/> elements to the + project. +
      • +
      +
    • +
    +
  4. +
  5. + Set the path and environment variables to be able to run compiler from + command line. +
  6. +
  7. + Build the project. +
  8. +
+
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
classnameSets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler.String
datasetSets the dataset for OS/390 builds.String
debugEnables or disables generation of debug info.boolean
dependencydepthDeprecated. + + Controls the depth of the dependency evaluation. Used to do a quick + check of changes before a full build. + + Any negative value which will perform full dependency checking. Positive + values will truncate dependency checking. A value of 0 will cause only + those files that changed to be recompiled, a value of 1 which cause + files that changed or that explicitly include a file that changed to be + recompiled. + + Any non-negative value will cause a BuildException to be thrown before + attempting a link or completing the task.int
descriptionString
exceptionsEnables generation of exception handling codeboolean
failonerrorIndicates whether the build will continue + even if there are compilation errors; defaults to true.boolean
incrementalEnables or disables incremental linking.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command line for + compatible processorsboolean
linkSets the output file type. Supported values "executable", "shared", and + "static". Deprecated, specify outtype instead.OutputTypeEnum +
locationLocation
multithreadedEnables or disables generation of multithreaded codeboolean
nameSets type of the default compiler and linker. + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler (creates .h, .cpp and moc_*.cpp files).
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+
CompilerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
objdirSets the destination directory for object files. + + Generally this should be a property expression that evaluates to + distinct debug and release object file directories.File
optimizeSets optimization.OptimizationEnum +
outfileSets the output file name. If not specified, the task will only compile + files and not attempt to link. If an extension is not specified, the + task may use a system appropriate extension and prefix, for example, + outfile="example" may result in "libexample.so" being created.File
outputfilepropertySpecifies the name of a property to set with the physical filename that + is produced by the linkerString
outtypeSets the output file type. Supported values "executable", "shared", and + "static".OutputTypeEnum +
owningtargetTarget
projectsonlyboolean
rebuildIf set to true, all files will be rebuilt.boolean
relentlessIf set to true, compilation errors will not stop the task until all + files have been attempted.boolean
rttiEnables run-time type information.boolean
runtimeSets the type of runtime library, possible values "dynamic", "static".RuntimeType +
subsystemSets the nature of the subsystem under which that the program will + execute. + + Supported subsystems + + + + + + + + +
guiGraphical User Interface
consoleCommand Line Console
otherOther
+
SubsystemEnum +
tasknameString
tasktypeString
warningsEnumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".WarningLevelEnum +
+
+

+parameters as nested elements

+
compiler +
+
Adds a compiler definition or reference.
+
compilerarg +
+
Adds a compiler command-line arg. Argument will be inherited by all + nested compiler elements that do not have inherit="false".
+
defineset +
+
Adds a defineset. Will be inherited by all compiler elements that do not + have inherit="false".
+
distributer +
+
Adds a distributer definition or reference (Non-functional prototype).
+
env +
+
Add an environment variable to the launched process.
+
fileset +
+
Adds a source file set. + + Files in these filesets will be auctioned to the available compiler + configurations, with the default compiler implied by the cc element + bidding last. If no compiler is interested in the file, it will be + passed to the linker. + + To have a file be processed by a particular compiler configuration, add + a fileset to the corresponding compiler element.
+
includepath +
+
Adds an include path. + + Include paths will be inherited by nested compiler elements that do not + have inherit="false".
+
libset +
+
Adds a library set. + + Library sets will be inherited by all linker elements that do not have + inherit="false".
+
linker +
+
Adds a linker definition. The first linker that is not disqualified by + its "if" and "unless" attributes will perform the link. If no child + linker element is active, the linker implied by the cc elements name or + classname attribute will be used.
+
linkerarg +
+
Adds a linker command-line arg. Argument will be inherited by all nested + linker elements that do not have inherit="false".
+
precompile +
+
Specifies precompilation prototype file and exclusions. Inherited by all + compilers that do not have inherit="false".
+
project +
+
Specifies the generation of IDE project file. Experimental.
+
sysincludepath +
+
Adds a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files. + + System include paths will be inherited by nested compiler elements that + do not have inherit="false".
+
syslibset +
+
Adds a system library set. Timestamps and locations of system library + sets are not used in dependency analysis. + + Essential libraries (such as C Runtime libraries) should not be + specified since the task will attempt to identify the correct libraries + based on the multithread, debug and runtime attributes. + + System library sets will be inherited by all linker elements that do not + have inherit="false".
+
target +
+
Adds a target definition or reference (Non-functional prototype).
+
versioninfo +
+
Adds desriptive version information to be included in the + generated file. The first active version info block will + be used.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/CommentDef.html b/site/antdocs/CommentDef.html new file mode 100644 index 0000000..db74357 --- /dev/null +++ b/site/antdocs/CommentDef.html @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - comment + + + + + + + +
+ +
+
+
+

+comment

+

+Description

+Defines a comment to place in the generated project files.
+

+parameters as nested elements

+
text +
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/CompilerArgument.html b/site/antdocs/CompilerArgument.html new file mode 100644 index 0000000..ea07a7b --- /dev/null +++ b/site/antdocs/CompilerArgument.html @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - compilerarg + + + + + + + +
+ +
+
+
+

+compilerarg

+

+Description

+A compiler command line argument.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.LocationEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/CompilerDef.html b/site/antdocs/CompilerDef.html new file mode 100644 index 0000000..8616420 --- /dev/null +++ b/site/antdocs/CompilerDef.html @@ -0,0 +1,447 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - compiler + + + + + + + +
+ +
+
+
+

+compiler

+

+Description

+A compiler definition. compiler elements may be placed either as children of + a cc element or the project element. A compiler element with an id attribute + may be referenced from compiler elements with refid or extends attributes.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
classnameSets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler.String
debugIf set true, all targets will be built for debugging.boolean
descriptionSets a description of the current data type.String
exceptionsEnables or disables exception support.boolean
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
inheritIf inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command lineboolean
multithreadedEnables or disables generation of multithreaded code. Unless specified, + multithreaded code generation is enabled.boolean
nameSets compiler type. + + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU Fortran compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler
mocQt meta-object compiler
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+
CompilerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
optimizeSets optimization level.OptimizationEnum +
rebuildIf set true, all targets will be unconditionally rebuilt.boolean
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "if", "unless" and "description".Reference
rttiEnables or disables run-time type information.boolean
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
warningsEnumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".WarningLevelEnum +
+
+

+parameters as nested elements

+
compilerarg +
+
Adds a compiler command-line arg.
+
compilerparam +
+
Adds a compiler command-line arg.
+
defineset +
+
Adds a defineset.
+
env +
+
Add an environment variable to the launched process.
+
fileset +
+
Adds a source file set. + + Files in these set will be processed by this configuration and will not + participate in the auction.
+
includepath +
+
Creates an include path.
+
precompile +
+
Specifies precompilation prototype file and exclusions.
+
sysincludepath +
+
Creates a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/CompilerParam.html b/site/antdocs/CompilerParam.html new file mode 100644 index 0000000..6bfcb96 --- /dev/null +++ b/site/antdocs/CompilerParam.html @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - compilerparam + + + + + + + +
+ +
+
+
+

+compilerparam

+

+Description

+Place class description here.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/ConditionalFileSet.html b/site/antdocs/ConditionalFileSet.html new file mode 100644 index 0000000..44be92c --- /dev/null +++ b/site/antdocs/ConditionalFileSet.html @@ -0,0 +1,372 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - conditionalfileset + + + + + + + +
+ +
+
+
+

+conditionalfileset

+

+Description

+An Ant FileSet object augmented with if and unless conditions.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
casesensitiveboolean
defaultexcludesboolean
descriptionString
dirFile
excludesString
excludesfileFile
fileFile
followsymlinksboolean
ifSets the property name for the 'if' condition. + + The fileset will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
includesString
includesfileFile
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the fileset will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
+
+
+
and +
+
+
contains +
+
+
containsregexp +
+
+
custom +
+
+
date +
+
+
depend +
+
+
depth +
+
+
different +
+
+
exclude +
+
+
excludesfile +
+
+
filename +
+
+
include +
+
+
includesfile +
+
+
majority +
+
+
modified +
+
+
none +
+
+
not +
+
+
or +
+
+
patternset +
+
+
present +
+
+
selector +
+
+
size +
+
+
type +
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/ConditionalPath.html b/site/antdocs/ConditionalPath.html new file mode 100644 index 0000000..469ac0c --- /dev/null +++ b/site/antdocs/ConditionalPath.html @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - conditionalpath + + + + + + + +
+ +
+
+
+

+conditionalpath

+

+Description

+An Ant Path object augmented with if and unless conditionals
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
+
+
+
dirset +
+
+
existing +
+
+
extdirs +
+
+
filelist +
+
+
fileset +
+
+
path +
+
+
pathelement +
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DebugDef.html b/site/antdocs/DebugDef.html new file mode 100644 index 0000000..37999ae --- /dev/null +++ b/site/antdocs/DebugDef.html @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - debug + + + + + + + +
+ +
+
+
+

+debug

+

+Description

+Specifies a debugging configuration for a project.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
dirSet the working directory of the process.File
executableSet the name of the executable program.String
refidReference
+
+

+parameters as nested elements

+
arg +
+
Adds a command-line argument.
+
env +
+
Add an environment variable.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DefineArgument.html b/site/antdocs/DefineArgument.html new file mode 100644 index 0000000..d05b61b --- /dev/null +++ b/site/antdocs/DefineArgument.html @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - definearg + + + + + + + +
+ +
+
+
+

+definearg

+

+Description

+Preprocessor macro definition.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet the name attributeString
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSet the value attributeString
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DefineSet.html b/site/antdocs/DefineSet.html new file mode 100644 index 0000000..7a4ecda --- /dev/null +++ b/site/antdocs/DefineSet.html @@ -0,0 +1,288 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - defineset + + + + + + + +
+ +
+
+
+

+defineset

+

+Description

+Set of preprocessor macro defines and undefines.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
defineA comma-separated list of preprocessor macros to define. Use nested + define elements to define macro values.StringArrayBuilder +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "description".Reference
undefineA comma-separated list of preprocessor macros to undefine.StringArrayBuilder +
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
define +
+
Adds a define element.
+
undefine +
+
Adds an undefine element.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DependencyDef.html b/site/antdocs/DependencyDef.html new file mode 100644 index 0000000..807ac9b --- /dev/null +++ b/site/antdocs/DependencyDef.html @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - dependency + + + + + + + +
+ +
+
+
+

+dependency

+

+Description

+Defines a dependency
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
dependsString
fileFile
idString
nameString
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DistributerDef.html b/site/antdocs/DistributerDef.html new file mode 100644 index 0000000..d1d0dc5 --- /dev/null +++ b/site/antdocs/DistributerDef.html @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - distributer + + + + + + + +
+ +
+
+
+

+distributer

+

+Description

+Distributed build information (Non-functional prototype).
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
hostsSets hosts.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
protocolSets protocol.DistributerProtocolEnum +
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
tcpcorkSets TCP_CORK value.int
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
userSets remote user name.String
+
+

+parameters as nested elements

+
map +
+
Local to remote filename maps.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/DistributerMap.html b/site/antdocs/DistributerMap.html new file mode 100644 index 0000000..6d20430 --- /dev/null +++ b/site/antdocs/DistributerMap.html @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - distributermap + + + + + + + +
+ +
+
+
+

+distributermap

+

+Description

+Local to remote filename mapping (Experimental).
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
hostsSets hosts for which this mapping is valid.String
ifSets the property name for the 'if' condition. + + This object will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
localSets local directory for base of mapping.File
refidReference
remoteSets remote name for directory.String
remoteseparatorSets the separator character (/ or \) for the remote system.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/IncludePath.html b/site/antdocs/IncludePath.html new file mode 100644 index 0000000..6d81672 --- /dev/null +++ b/site/antdocs/IncludePath.html @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - includepath + + + + + + + +
+ +
+
+
+

+includepath

+

+Description

+An include path. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
+
+
+
dirset +
+
+
existing +
+
+
extdirs +
+
+
filelist +
+
+
fileset +
+
+
path +
+
+
pathelement +
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/LibrarySet.html b/site/antdocs/LibrarySet.html new file mode 100644 index 0000000..d46fe9a --- /dev/null +++ b/site/antdocs/LibrarySet.html @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - libset + + + + + + + +
+ +
+
+
+

+libset

+

+Description

+A set of library names. Libraries can also be added to a link by specifying + them in a fileset. + + For most Unix-like compilers, libset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
casesensitiveSets case sensitivity of the file system. If not set, will default to + the linker's case sensitivity.boolean
datasetSets the dataset. Used on OS390 if the libs are in a dataset.String
descriptionString
dirLibrary directory.File
ifSets the property name for the 'if' condition. + + The library set will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
libsComma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a".StringArrayBuilder +
refidReference
typeSets the preferred library type. Supported values "shared", "static", and + "framework". "framework" is equivalent to "shared" on non-Darwin platforms.LibraryTypeEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the library set will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/LinkerArgument.html b/site/antdocs/LinkerArgument.html new file mode 100644 index 0000000..a026b01 --- /dev/null +++ b/site/antdocs/LinkerArgument.html @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - linkerarg + + + + + + + +
+ +
+
+
+

+linkerarg

+

+Description

+A linker command line argument.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.LocationEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/LinkerDef.html b/site/antdocs/LinkerDef.html new file mode 100644 index 0000000..9a903b3 --- /dev/null +++ b/site/antdocs/LinkerDef.html @@ -0,0 +1,424 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - linker + + + + + + + +
+ +
+
+
+

+linker

+

+Description

+A linker definition. linker elements may be placed either as children of a + cc element or the project element. A linker element with an id attribute may + be referenced by linker elements with refid or extends attributes.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
baseSets the base address. May be specified in either decimal or hex.FlexLong +
classnameSets the class name for the adapter. Use the "name" attribute when the + tool is supported.String
debugIf set true, all targets will be built for debugging.boolean
descriptionSets a description of the current data type.String
entrySets the starting address.String
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
fixedIf true, marks the file to be loaded only at its preferred address.boolean
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
incrementalIf true, allows incremental linking.boolean
inheritIf inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command lineboolean
mapIf set to true, a map file will be produced.boolean
nameSets linker type. + + + Supported linkers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gccGcc Linker
g++G++ Linker
ldLd Linker
arGcc Librarian
msvcMicrosoft Linker
bccBorland Linker
dfCompaq Visual Fortran Linker
iclIntel Linker for Windows (IA-32)
eclIntel Linker for Windows (IA-64)
iccIntel Linker for Linux (IA-32)
eccIntel Linker for Linux (IA-64)
CCSun ONE Linker
aCCHP aC++ Linker
os390OS390 Linker
os390batchOS390 Linker
os400IccLinker
sunc89C89 Linker
xlCVisualAge Linker
wclOpenWatcom C/C++ linker
wflOpenWatcom FORTRAN linker
+
LinkerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
rebuildIf set true, all targets will be unconditionally rebuilt.boolean
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "if", "unless" and "description".Reference
stackSets stack size in bytes.FlexInteger
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
env +
+
Add an environment variable to the launched process.
+
fileset +
+
Adds a source file set. + + Files in these set will be processed by this configuration and will not + participate in the auction.
+
libset +
+
Adds a system library set.
+
linkerarg +
+
Adds a linker command-line arg.
+
linkerparam +
+
Adds a compiler command-line arg.
+
syslibset +
+
Adds a system library set.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/LinkerParam.html b/site/antdocs/LinkerParam.html new file mode 100644 index 0000000..20352e2 --- /dev/null +++ b/site/antdocs/LinkerParam.html @@ -0,0 +1,265 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - linkerparam + + + + + + + +
+ +
+
+
+

+linkerparam

+

+Description

+Place class description here.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/PrecompileDef.html b/site/antdocs/PrecompileDef.html new file mode 100644 index 0000000..84509bc --- /dev/null +++ b/site/antdocs/PrecompileDef.html @@ -0,0 +1,280 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - precompile + + + + + + + +
+ +
+
+
+

+precompile

+

+Description

+An element that specifies a prototype file and rules for source files that + should not use precompiled headers
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSet the 'if' condition. + + The processor will be ignored unless the property is defined. + + The value of property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + isActive() is evaluated.String
prototypeSets file to precompile. + + Should be a source file that includes only one unguarded header file. + Default value is "stdafx.cpp".File
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.Reference
unlessSet the 'unless' condition. If named property exists at execution time, + the processor will be ignored. + + Value of property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when isActive is called.String
+
+

+parameters as nested elements

+
except +
+
Adds filesets that specify files that should not be processed with + precompiled headers enabled.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/PrecompileExceptDef.html b/site/antdocs/PrecompileExceptDef.html new file mode 100644 index 0000000..b1eabd0 --- /dev/null +++ b/site/antdocs/PrecompileExceptDef.html @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - precompileexcept + + + + + + + +
+ +
+
+
+

+precompileexcept

+

+Description

+Specifies files that should not be compiled using precompiled headers.
+

+parameters

+ + + + + + + + + + + + +
Attribute +Description +Type +
dirSets the base-directoryFile
includesComma or space separated list of file patterns that should not be + compiled using precompiled headers.String
+
+

+parameters as nested elements

+
fileset +
+
Adds filesets that specify files that should not be processed using + precompiled headers.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/ProjectDef.html b/site/antdocs/ProjectDef.html new file mode 100644 index 0000000..a23ad34 --- /dev/null +++ b/site/antdocs/ProjectDef.html @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - project + + + + + + + +
+ +
+
+
+

+project

+

+Description

+Requests the creation of an IDE project file. Experimental. + + Implementation status: msdev5, msdev6 and cbuilderx + generate reasonable project files for simple projects, + xcode and msdev7 and msdev71 capture source file lists and + a few settings.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
classnameClass name for a user-supplied project writer. Use the "type" + attribute to specify built-in project writer implementations.String
descriptionString
failonerrorSets whether a failure to write the project file should cause the + task to fail. Default is true.boolean
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet name.String
outfileSets the name for the generated project file.File
overwriteSets whether an existing project file should be overwritten, + default is true. If false and the project file exists, + the value of failonerror will determine if the task fails.boolean
refidReference
typeSet project type. + + + Supported project formats + + + + + + + + + + + + + + + + + + + + + + + +
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+
ProjectWriterEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
comment +
+
Add comment for the generated project file.
+
dependency +
+
Add a dependency definition to the project.
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/SystemIncludePath.html b/site/antdocs/SystemIncludePath.html new file mode 100644 index 0000000..e27a472 --- /dev/null +++ b/site/antdocs/SystemIncludePath.html @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - systemincludepath + + + + + + + +
+ +
+
+
+

+systemincludepath

+

+Description

+A system include path. + + Files located using a system include path will not participate in dependency + analysis. + + Standard include paths for a compiler should not be specified since these + should be determined from environment variables or configuration files by + the compiler adapter. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+

+parameters as nested elements

+
+
+
+
dirset +
+
+
existing +
+
+
extdirs +
+
+
filelist +
+
+
fileset +
+
+
path +
+
+
pathelement +
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/SystemLibrarySet.html b/site/antdocs/SystemLibrarySet.html new file mode 100644 index 0000000..3c2a1cf --- /dev/null +++ b/site/antdocs/SystemLibrarySet.html @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - syslibset + + + + + + + +
+ +
+
+
+

+syslibset

+

+Description

+A set of system library names. Timestamp or location of system libraries are + not considered in dependency analysis. + + Libraries can also be added to a link by specifying them in a fileset. + + For most Unix-like compilers, syslibset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
casesensitiveSets case sensitivity of the file system. If not set, will default to + the linker's case sensitivity.boolean
datasetSets the dataset. Used on OS390 if the libs are in a dataset.String
descriptionString
dirLibrary directory.File
ifSets the property name for the 'if' condition. + + The library set will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
libsComma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a".StringArrayBuilder +
refidReference
typeSets the preferred library type. Supported values "shared", "static", and + "framework". "framework" is equivalent to "shared" on non-Darwin platforms.LibraryTypeEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the library set will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/TargetDef.html b/site/antdocs/TargetDef.html new file mode 100644 index 0000000..6302bf1 --- /dev/null +++ b/site/antdocs/TargetDef.html @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - targetplatform + + + + + + + +
+ +
+
+
+

+targetplatform

+

+Description

+Information on the execution platforms for the generated code. + (Non-functional prototype)
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
archSets cpu architecture, compiler may use cpu specific instructions.ArchEnum +
cpuSets preferred cpu, but does not use cpu specific instructions.CPUEnum +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
osfamilySets operating system family.OSFamilyEnum +
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/UndefineArgument.html b/site/antdocs/UndefineArgument.html new file mode 100644 index 0000000..17a63c0 --- /dev/null +++ b/site/antdocs/UndefineArgument.html @@ -0,0 +1,256 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - undefinearg + + + + + + + +
+ +
+
+
+

+undefinearg

+

+Description

+Preprocessor macro undefinition.
+

+parameters

+ + + + + + + + + + + + + + + + +
Attribute +Description +Type +
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet the name attributeString
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/antdocs/VersionInfo.html b/site/antdocs/VersionInfo.html new file mode 100644 index 0000000..d5ce034 --- /dev/null +++ b/site/antdocs/VersionInfo.html @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - versioninfo + + + + + + + +
+ +
+
+
+

+versioninfo

+

+Description

+Version Information. + + This information is applied in a platform specific manner + to embed version information into executable images. This + behavior is new and subject to change. + + On the Microsoft Windows platform, a resource is generated and added + to the set of files to be compiled. A resource compiler must + be specified to compile the generated file. + + On Unix platforms, versioninfo is currently not used. + Future versions may append fileversion to the output file name, + use compatibility version for -soname and possibly create + symbolic links.
+

+parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attribute +Description +Type +
companynameSets company name.String
compatibilityversionSets compatibility version.String
descriptionString
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
filecommentsSets comments.String
filedescriptionSets file description.String
fileversionSets file version.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
internalnameSets internal name. Internal name will automatically be + specified from build step, only set this value if + intentionally overriding that value.String
languageSets language.String
legalcopyrightSets legal copyright.String
legaltrademarksSets legal trademark.String
originalfilenameSets original name. Only set this value if + intentionally overriding the value from the build set.String
patchedSets prerelease.boolean
prereleaseSets prerelease.boolean
privatebuildSets private build.String
productnameSets product name.String
productversionSets product version.String
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
specialbuildSets private build.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
+
+
+
+
+ + + diff --git a/site/apidocs/allclasses-frame.html b/site/apidocs/allclasses-frame.html new file mode 100644 index 0000000..805f80e --- /dev/null +++ b/site/apidocs/allclasses-frame.html @@ -0,0 +1,399 @@ + + + + + + + +All Classes (cpptasks 1.0b5 API) + + + + + + + + + + +All Classes +
+ + + + + +
AboutCCTask +
+AbstractArLibrarian +
+AbstractCompiler +
+AbstractLdLinker +
+AbstractLinker +
+AbstractParser +
+AbstractParserState +
+AbstractProcessor +
+aCCCompiler +
+aCCLinker +
+ADSCCompiler +
+ADSLibrarian +
+ADSLinker +
+ArchEnum +
+BorlandCCompiler +
+BorlandCfgParser +
+BorlandLibrarian +
+BorlandLinker +
+BorlandProcessor +
+BorlandResourceCompiler +
+BranchState +
+C89CCompiler +
+C89Linker +
+C89Processor +
+CaptureStreamHandler +
+CaseInsensitiveLetterState +
+CBuilderXProjectWriter +
+CCTask +
+CCTaskProgressMonitor +
+CfgFilenameState +
+ClxxCCompiler +
+ClxxLibrarian +
+ClxxLinker +
+CommandLineArgument +
+CommandLineArgument.LocationEnum +
+CommandLineCCompiler +
+CommandLineCompiler +
+CommandLineCompilerConfiguration +
+CommandLineFortranCompiler +
+CommandLineLinker +
+CommandLineLinkerConfiguration +
+CommentDef +
+CompaqVisualFortranCompiler +
+CompaqVisualFortranLibrarian +
+CompaqVisualFortranLinker +
+Compiler +
+CompilerArgument +
+CompilerConfiguration +
+CompilerDef +
+CompilerEnum +
+CompilerParam +
+ConditionalFileSet +
+ConditionalPath +
+ConsumeToSpaceOrNewLine +
+CParser +
+CPUEnum +
+CUtil +
+CUtil.StringArrayBuilder +
+DebugDef +
+DefineArgument +
+DefineSet +
+DependencyDef +
+DependencyInfo +
+DependencyTable +
+DevStudio2005CCompiler +
+DevStudioCCompiler +
+DevStudioCompatibleCCompiler +
+DevStudioCompatibleLibrarian +
+DevStudioCompatibleLinker +
+DevStudioLibrarian +
+DevStudioLinker +
+DevStudioMIDLCompiler +
+DevStudioProcessor +
+DevStudioProjectWriter +
+DevStudioResourceCompiler +
+DistributerDef +
+DistributerMap +
+DistributerProtocolEnum +
+FilenameState +
+FileVisitor +
+FlexLong +
+ForteCCCompiler +
+ForteCCLinker +
+FortranParser +
+GccCCompiler +
+GccCCompiler +
+GccCCompiler +
+GccCompatibleCCompiler +
+GccLibrarian +
+GccLibrarian +
+GccLibrarian +
+GccLinker +
+GccLinker +
+GccLinker +
+GccProcessor +
+GccProcessor +
+GccProcessor +
+GppLinker +
+GppLinker +
+GppLinker +
+IccCompiler +
+IccLinker +
+IccProcessor +
+IncludePath +
+IntelLinux32CCompiler +
+IntelLinux32Linker +
+IntelLinux64CCompiler +
+IntelLinux64Linker +
+IntelProcessor +
+IntelWin32CCompiler +
+IntelWin32Librarian +
+IntelWin32Linker +
+IntelWin64CCompiler +
+LdLinker +
+LdLinker +
+LdLinker +
+LetterState +
+LibrarySet +
+LibraryTypeEnum +
+Linker +
+LinkerArgument +
+LinkerConfiguration +
+LinkerDef +
+LinkerEnum +
+LinkerParam +
+LinkType +
+MetaObjectCompiler +
+MetaObjectParser +
+ObjectFileCollector +
+OpenWatcomCCompiler +
+OpenWatcomCLinker +
+OpenWatcomCompiler +
+OpenWatcomFortranCompiler +
+OpenWatcomFortranLinker +
+OpenWatcomLibrarian +
+OpenWatcomLinker +
+OpenWatcomProcessor +
+OptimizationEnum +
+OS390CCompiler +
+OS390Linker +
+OS390Processor +
+OSFamilyEnum +
+OutputTypeEnum +
+Parser +
+PostE +
+PrecompileDef +
+PrecompileExceptDef +
+PrecompilingCommandLineCCompiler +
+PrecompilingCommandLineCompiler +
+PrecompilingCompiler +
+Processor +
+ProcessorConfiguration +
+ProcessorDef +
+ProcessorEnumValue +
+ProcessorParam +
+ProgressMonitor +
+ProjectDef +
+ProjectWriter +
+ProjectWriterEnum +
+PropertyListSerialization +
+QuoteBranchState +
+RuntimeType +
+SourceHistory +
+SubsystemEnum +
+SystemIncludePath +
+SystemLibrarySet +
+TargetDef +
+TargetHistory +
+TargetHistoryTable +
+TargetInfo +
+TargetMatcher +
+UndefineArgument +
+UserInterfaceCompiler +
+UserInterfaceParser +
+VersionInfo +
+VisualAgeCCompiler +
+VisualAgeLinker +
+VisualStudioNETProjectWriter +
+WarningLevelEnum +
+WhitespaceOrCaseInsensitiveLetterState +
+WhitespaceOrLetterState +
+WindowsPlatform +
+WindresResourceCompiler +
+XcodeProjectWriter +
+XpidlCompiler +
+
+ + + diff --git a/site/apidocs/allclasses-noframe.html b/site/apidocs/allclasses-noframe.html new file mode 100644 index 0000000..4d3cd18 --- /dev/null +++ b/site/apidocs/allclasses-noframe.html @@ -0,0 +1,399 @@ + + + + + + + +All Classes (cpptasks 1.0b5 API) + + + + + + + + + + +All Classes +
+ + + + + +
AboutCCTask +
+AbstractArLibrarian +
+AbstractCompiler +
+AbstractLdLinker +
+AbstractLinker +
+AbstractParser +
+AbstractParserState +
+AbstractProcessor +
+aCCCompiler +
+aCCLinker +
+ADSCCompiler +
+ADSLibrarian +
+ADSLinker +
+ArchEnum +
+BorlandCCompiler +
+BorlandCfgParser +
+BorlandLibrarian +
+BorlandLinker +
+BorlandProcessor +
+BorlandResourceCompiler +
+BranchState +
+C89CCompiler +
+C89Linker +
+C89Processor +
+CaptureStreamHandler +
+CaseInsensitiveLetterState +
+CBuilderXProjectWriter +
+CCTask +
+CCTaskProgressMonitor +
+CfgFilenameState +
+ClxxCCompiler +
+ClxxLibrarian +
+ClxxLinker +
+CommandLineArgument +
+CommandLineArgument.LocationEnum +
+CommandLineCCompiler +
+CommandLineCompiler +
+CommandLineCompilerConfiguration +
+CommandLineFortranCompiler +
+CommandLineLinker +
+CommandLineLinkerConfiguration +
+CommentDef +
+CompaqVisualFortranCompiler +
+CompaqVisualFortranLibrarian +
+CompaqVisualFortranLinker +
+Compiler +
+CompilerArgument +
+CompilerConfiguration +
+CompilerDef +
+CompilerEnum +
+CompilerParam +
+ConditionalFileSet +
+ConditionalPath +
+ConsumeToSpaceOrNewLine +
+CParser +
+CPUEnum +
+CUtil +
+CUtil.StringArrayBuilder +
+DebugDef +
+DefineArgument +
+DefineSet +
+DependencyDef +
+DependencyInfo +
+DependencyTable +
+DevStudio2005CCompiler +
+DevStudioCCompiler +
+DevStudioCompatibleCCompiler +
+DevStudioCompatibleLibrarian +
+DevStudioCompatibleLinker +
+DevStudioLibrarian +
+DevStudioLinker +
+DevStudioMIDLCompiler +
+DevStudioProcessor +
+DevStudioProjectWriter +
+DevStudioResourceCompiler +
+DistributerDef +
+DistributerMap +
+DistributerProtocolEnum +
+FilenameState +
+FileVisitor +
+FlexLong +
+ForteCCCompiler +
+ForteCCLinker +
+FortranParser +
+GccCCompiler +
+GccCCompiler +
+GccCCompiler +
+GccCompatibleCCompiler +
+GccLibrarian +
+GccLibrarian +
+GccLibrarian +
+GccLinker +
+GccLinker +
+GccLinker +
+GccProcessor +
+GccProcessor +
+GccProcessor +
+GppLinker +
+GppLinker +
+GppLinker +
+IccCompiler +
+IccLinker +
+IccProcessor +
+IncludePath +
+IntelLinux32CCompiler +
+IntelLinux32Linker +
+IntelLinux64CCompiler +
+IntelLinux64Linker +
+IntelProcessor +
+IntelWin32CCompiler +
+IntelWin32Librarian +
+IntelWin32Linker +
+IntelWin64CCompiler +
+LdLinker +
+LdLinker +
+LdLinker +
+LetterState +
+LibrarySet +
+LibraryTypeEnum +
+Linker +
+LinkerArgument +
+LinkerConfiguration +
+LinkerDef +
+LinkerEnum +
+LinkerParam +
+LinkType +
+MetaObjectCompiler +
+MetaObjectParser +
+ObjectFileCollector +
+OpenWatcomCCompiler +
+OpenWatcomCLinker +
+OpenWatcomCompiler +
+OpenWatcomFortranCompiler +
+OpenWatcomFortranLinker +
+OpenWatcomLibrarian +
+OpenWatcomLinker +
+OpenWatcomProcessor +
+OptimizationEnum +
+OS390CCompiler +
+OS390Linker +
+OS390Processor +
+OSFamilyEnum +
+OutputTypeEnum +
+Parser +
+PostE +
+PrecompileDef +
+PrecompileExceptDef +
+PrecompilingCommandLineCCompiler +
+PrecompilingCommandLineCompiler +
+PrecompilingCompiler +
+Processor +
+ProcessorConfiguration +
+ProcessorDef +
+ProcessorEnumValue +
+ProcessorParam +
+ProgressMonitor +
+ProjectDef +
+ProjectWriter +
+ProjectWriterEnum +
+PropertyListSerialization +
+QuoteBranchState +
+RuntimeType +
+SourceHistory +
+SubsystemEnum +
+SystemIncludePath +
+SystemLibrarySet +
+TargetDef +
+TargetHistory +
+TargetHistoryTable +
+TargetInfo +
+TargetMatcher +
+UndefineArgument +
+UserInterfaceCompiler +
+UserInterfaceParser +
+VersionInfo +
+VisualAgeCCompiler +
+VisualAgeLinker +
+VisualStudioNETProjectWriter +
+WarningLevelEnum +
+WhitespaceOrCaseInsensitiveLetterState +
+WhitespaceOrLetterState +
+WindowsPlatform +
+WindresResourceCompiler +
+XcodeProjectWriter +
+XpidlCompiler +
+
+ + + diff --git a/site/apidocs/constant-values.html b/site/apidocs/constant-values.html new file mode 100644 index 0000000..0f54319 --- /dev/null +++ b/site/apidocs/constant-values.html @@ -0,0 +1,213 @@ + + + + + + + +Constant Field Values (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+net.sf.*
+ +

+ + + + + + + + + + + + +
net.sf.antcontrib.cpptasks.CUtil
+public static final intFILETIME_EPSILON500
+ +

+ +

+ + + + + + + + + + + + + + + + + +
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+public static final intDEFAULT_DISCARD_BID1
+public static final intDEFAULT_PROCESS_BID100
+ +

+ +

+ + + + + + + + + + + + +
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler
+public static final java.lang.StringCMD_PREFIX"sparc-sun-solaris2-"
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/deprecated-list.html b/site/apidocs/deprecated-list.html new file mode 100644 index 0000000..12501c9 --- /dev/null +++ b/site/apidocs/deprecated-list.html @@ -0,0 +1,158 @@ + + + + + + + +Deprecated List (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + +
+Deprecated Methods
net.sf.antcontrib.cpptasks.CCTask.setLink(OutputTypeEnum) +
+            
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/help-doc.html b/site/apidocs/help-doc.html new file mode 100644 index 0000000..7903309 --- /dev/null +++ b/site/apidocs/help-doc.html @@ -0,0 +1,220 @@ + + + + + + + +API Help (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/index-all.html b/site/apidocs/index-all.html new file mode 100644 index 0000000..38355b7 --- /dev/null +++ b/site/apidocs/index-all.html @@ -0,0 +1,5090 @@ + + + + + + + +Index (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I L M N O P Q R S T U V W X
+

+A

+
+
AboutCCTask - Class in net.sf.antcontrib.cpptasks
The equivalent of a Help About + run "java -jar cpptasks.jar" to read
AboutCCTask() - +Constructor for class net.sf.antcontrib.cpptasks.AboutCCTask +
  +
AbstractArLibrarian - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the "ar" tool
AbstractArLibrarian(String, String, String[], String[], String, String, boolean, AbstractArLibrarian) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
AbstractCompiler - Class in net.sf.antcontrib.cpptasks.compiler
An abstract compiler implementation.
AbstractCompiler(String[], String[], String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
AbstractLdLinker - Class in net.sf.antcontrib.cpptasks.gcc
Abstract adapter for ld-like linkers
AbstractLdLinker(String, String, String[], String[], String, String, boolean, AbstractLdLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
AbstractLinker - Class in net.sf.antcontrib.cpptasks.compiler
An abstract Linker implementation.
AbstractLinker(String[], String[]) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
AbstractParser - Class in net.sf.antcontrib.cpptasks.parser
An abstract base class for simple parsers
AbstractParser() - +Constructor for class net.sf.antcontrib.cpptasks.parser.AbstractParser +
  +
AbstractParserState - Class in net.sf.antcontrib.cpptasks.parser
An base class for objects that represent the state of an AbstractParser.
AbstractParserState(AbstractParser) - +Constructor for class net.sf.antcontrib.cpptasks.parser.AbstractParserState +
  +
AbstractProcessor - Class in net.sf.antcontrib.cpptasks.compiler
An abstract processor (compiler/linker) implementation.
AbstractProcessor(String[], String[]) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
aCCCompiler - Class in net.sf.antcontrib.cpptasks.hp
Adapter for the HP aC++ C++ compiler
aCCLinker - Class in net.sf.antcontrib.cpptasks.hp
Adapter for Sun (r) Forte(tm) C++ Linker
addAll(Vector, Object[]) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Adds the elements of the array to the given vector +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add base address. +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Add specified base address to linker options. +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addBase(long, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addComment(CommentDef) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Add comment for the generated project file. +
addConfiguredCompiler(CompilerDef) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a compiler definition or reference. +
addConfiguredCompilerArg(CompilerArgument) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a compiler command-line arg. +
addConfiguredCompilerArg(CompilerArgument) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Adds a compiler command-line arg. +
addConfiguredCompilerParam(CompilerParam) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Adds a compiler command-line arg. +
addConfiguredDefineset(DefineSet) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a defineset. +
addConfiguredDefineset(DefineSet) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Adds a defineset. +
addConfiguredDistributer(DistributerDef) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a distributer definition or reference (Non-functional prototype). +
addConfiguredLinker(LinkerDef) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a linker definition. +
addConfiguredLinkerArg(LinkerArgument) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a linker command-line arg. +
addConfiguredLinkerArg(LinkerArgument) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Adds a linker command-line arg. +
addConfiguredLinkerParam(LinkerParam) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Adds a compiler command-line arg. +
addConfiguredProcessorArg(CommandLineArgument) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Adds a or +
addConfiguredProcessorParam(ProcessorParam) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Adds a or +
addConfiguredTarget(TargetDef) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a target definition or reference (Non-functional prototype). +
addConfiguredVersioninfo(VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds desriptive version information to be included in the + generated file. +
addDebugSwitch(Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler +
Override the default debug flags to use VC 8 compatible versions. +
addDebugSwitch(Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
addDefine(DefineArgument) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Adds a define element. +
addDependency(DependencyDef) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Add a dependency definition to the project. +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add alternative entry point. +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Adds non-default entry point. +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addEntry(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addEnv(Environment.Variable) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Add an environment variable to the launched process. +
addEnv(Environment.Variable) - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Add an environment variable. +
addEnv(Environment.Variable) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Add an environment variable to the launched process. +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCfgParser +
  +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.parser.AbstractParser +
  +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.parser.CParser +
  +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.parser.FortranParser +
Called by FilenameState at completion of file name production. +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +
Adds a filename to the list of included files. +
addFilename(String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser +
Adds filename to the list of included files. +
addFileset(ConditionalFileSet) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a source file set. +
addFileset(ConditionalFileSet) - +Method in class net.sf.antcontrib.cpptasks.PrecompileExceptDef +
Adds filesets that specify files that should not be processed using + precompiled headers. +
addFileset(ConditionalFileSet) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Adds a source file set. +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add fixed parameter. +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Adds fixed option. +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addFixed(Boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
+
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccLinker +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Add arguments for debug, etc. +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Add implied arguments. +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add implied arguments. +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Adds other command line parameters. +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addImpliedArgs(boolean, LinkType, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Add arguments for debug, etc. +
addImpliedArgs(Vector, boolean, boolean, boolean, LinkType, Boolean, OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Add arguments for debug, etc. +
addIncludePath(String, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
Adds an include path to the command. +
addIncludes(String, File[], Vector, Vector, StringBuffer) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
Adds command-line arguments for include directories. +
addIncludes(String, File[], Vector, Vector, StringBuffer) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Adds command line arguments for include paths. +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add incremental option. +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Add command line switch to force incremental linking. +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCLinker +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addIncremental(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addLibraryPatterns(String[], StringBuffer, String, String, String[], int) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addLibrarySets(CCTask, LibrarySet[], Vector, Vector, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addLibset(LibrarySet) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a library set. +
addLibset(LibrarySet) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Adds a system library set. +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add map option. +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Add command line switch to force map generation. +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addMap(boolean, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addProject(ProjectDef) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Specifies the generation of IDE project file. +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Add stack size option. +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Add command line switch for stack reservation. +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
addStack(int, Vector) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
addSyslibset(SystemLibrarySet) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a system library set. +
addSyslibset(SystemLibrarySet) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Adds a system library set. +
addText(String) - +Method in class net.sf.antcontrib.cpptasks.ide.CommentDef +
  +
addUndefine(UndefineArgument) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Adds an undefine element. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
Adds source or object files to the bidded fileset to + support version information. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
Adds source or object files to the bidded fileset to + support version information. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
Adds source or object files to the bidded fileset to + support version information. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
Adds source or object files to the bidded fileset to + support version information. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Adds source or object files to the bidded fileset to + support version information. +
addVersionFiles(VersionInfo, LinkType, File, boolean, File, TargetMatcher) - +Static method in class net.sf.antcontrib.cpptasks.platforms.WindowsPlatform +
Adds source or object files to the bidded fileset to + support version information. +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Adds flags that customize the warnings reported + + Compiler does not appear to have warning levels but ability to turn off + specific errors by explicit switches, could fabricate levels by + prioritizing errors. +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Add arguments for specified warning level. +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Add warning switch. +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Adds warning command line options. +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Processor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.os400.IccProcessor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
addWarningSwitch(Vector, int) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Add arguments for specified warning level. +
addWarningSwitch(Vector, int) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Add arguments for specified warning level. +
ADSCCompiler - Class in net.sf.antcontrib.cpptasks.arm
Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
ADSLibrarian - Class in net.sf.antcontrib.cpptasks.arm
Adapter for ARM Librarian
ADSLinker - Class in net.sf.antcontrib.cpptasks.arm
Adapter for the ARM Linker
appendExceptFileSet(ConditionalFileSet) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Method used by PrecompileExceptDef to add exception set to + PrecompileDef. +
ArchEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of cpu architecture types.
ArchEnum() - +Constructor for class net.sf.antcontrib.cpptasks.ArchEnum +
Constructor. +
+
+

+B

+
+
bid(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
Returns the bid of the processor for the file. +
bid(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
Returns the bid of the processor for the file. +
bid(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
bid(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
bid(String) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
Returns a bid indicating the desire of this compiler to process the + file. +
bid(String) - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration +
An indication of how much this compiler would like to process this file +
bid(String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Returns the bid of the processor for the file. +
booleanValueOf(boolean) - +Static method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Returns the equivalent Boolean object for the specified value + + Equivalent to Boolean.valueOf in JDK 1.4 +
BorlandCCompiler - Class in net.sf.antcontrib.cpptasks.borland
Adapter for the Borland(r) C/C++ compiler.
BorlandCfgParser - Class in net.sf.antcontrib.cpptasks.borland
A parser that paths from a borland cfg file
BorlandCfgParser(char) - +Constructor for class net.sf.antcontrib.cpptasks.borland.BorlandCfgParser +
  +
BorlandLibrarian - Class in net.sf.antcontrib.cpptasks.borland
Adapter for the Borland(r) tlib Librarian
BorlandLinker - Class in net.sf.antcontrib.cpptasks.borland
Adapter for the Borland(r) ilink32 linker
BorlandProcessor - Class in net.sf.antcontrib.cpptasks.borland
A add-in class for Borland(r) processor adapters
BorlandResourceCompiler - Class in net.sf.antcontrib.cpptasks.borland
Adapter for the Borland(r) brc32 Resource compiler.
BranchState - Class in net.sf.antcontrib.cpptasks.parser
 
BranchState(AbstractParser, char[], AbstractParserState[], AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.BranchState +
  +
buildDefineArguments(CompilerDef[], Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
buildDefineArguments(CompilerDef[], Vector) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
The buildDefineArguments implementation CommandLineCCompiler is not good + for us because os390 defines are give by -D definex instead of + /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not + have to implement the getDefineSwitch() and the getUndefineSwitch(). +
+
+

+C

+
+
C89CCompiler - Class in net.sf.antcontrib.cpptasks.sun
Adapter for the Sun C89 C++ Compiler
C89Linker - Class in net.sf.antcontrib.cpptasks.sun
Adapter for the Sun C89 Linker
C89Processor - Class in net.sf.antcontrib.cpptasks.sun
A add-in class for Sun C89 compilers and linkers
canParse(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
Checks file name to see if parse should be attempted + + Default implementation returns false for files with extensions '.dll', + 'tlb', '.res' +
CaptureStreamHandler - Class in net.sf.antcontrib.cpptasks.compiler
Implements ExecuteStreamHandler to capture the output of a Execute to an + array of strings
CaptureStreamHandler() - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
  +
CaseInsensitiveLetterState - Class in net.sf.antcontrib.cpptasks.parser
This parser state checks consumed characters against a specific character + (case insensitive).
CaseInsensitiveLetterState(AbstractParser, char, AbstractParserState, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState +
Constructor. +
CBuilderXProjectWriter - Class in net.sf.antcontrib.cpptasks.borland
Writes a CBuilderX 1.0 project file.
CBuilderXProjectWriter() - +Constructor for class net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter +
Constructor. +
CCTask - Class in net.sf.antcontrib.cpptasks
Compile and link task.
CCTask() - +Constructor for class net.sf.antcontrib.cpptasks.CCTask +
  +
CCTaskProgressMonitor - Class in net.sf.antcontrib.cpptasks
 
CCTaskProgressMonitor(TargetHistoryTable, VersionInfo) - +Constructor for class net.sf.antcontrib.cpptasks.CCTaskProgressMonitor +
  +
CfgFilenameState - Class in net.sf.antcontrib.cpptasks.borland
 
CfgFilenameState(AbstractParser, char[]) - +Constructor for class net.sf.antcontrib.cpptasks.borland.CfgFilenameState +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
changeEnvironment(boolean, Environment) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Change enviroment (deprecated). +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Change enviroment. +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Change enviroment (deprecated). +
changeEnvironment(boolean, Environment) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Change enviroment (deprecated). +
checkDirectoryArray(String[]) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Checks a array of names for non existent or non directory entries and + nulls them out. +
checkForChangedIncludeFiles(Hashtable) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Checks all targets that are not forced to be rebuilt or are missing + object files to be checked for modified include files +
clone() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
clone() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
clone() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian +
  +
clone() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
clone() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
clone() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.LdLinker +
  +
ClxxCCompiler - Class in net.sf.antcontrib.cpptasks.ti
Adapter for TI DSP compilers with cl** commands
ClxxLibrarian - Class in net.sf.antcontrib.cpptasks.ti
Adapter for TI DSP librarian + *
ClxxLinker - Class in net.sf.antcontrib.cpptasks.ti
Adapter for TI DSP linkers + *
CMD_PREFIX - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
collectExplicitObjectFiles(Vector, Vector, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
CommandLineArgument - Class in net.sf.antcontrib.cpptasks.types
An compiler/linker command line flag.
CommandLineArgument() - +Constructor for class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
  +
CommandLineArgument.LocationEnum - Class in net.sf.antcontrib.cpptasks.types
Enumerated attribute with the values "start", "mid" and "end",
CommandLineArgument.LocationEnum() - +Constructor for class net.sf.antcontrib.cpptasks.types.CommandLineArgument.LocationEnum +
  +
CommandLineCCompiler - Class in net.sf.antcontrib.cpptasks.compiler
An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCCompiler(String, String, String[], String[], String, boolean, CommandLineCCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler +
  +
CommandLineCompiler - Class in net.sf.antcontrib.cpptasks.compiler
An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler(String, String, String[], String[], String, boolean, CommandLineCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
CommandLineCompilerConfiguration - Class in net.sf.antcontrib.cpptasks.compiler
A configuration for a C++ compiler
CommandLineCompilerConfiguration(CommandLineCompiler, String, File[], File[], File[], String, String[], ProcessorParam[], boolean, String[]) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration, String[], String[], boolean) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
CommandLineFortranCompiler - Class in net.sf.antcontrib.cpptasks.compiler
An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineFortranCompiler(String, String, String[], String[], String, boolean, CommandLineFortranCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler +
  +
CommandLineLinker - Class in net.sf.antcontrib.cpptasks.compiler
An abstract Linker implementation that performs the link via an external + command.
CommandLineLinker(String, String, String[], String[], String, boolean, CommandLineLinker) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Creates a comand line linker invocation +
CommandLineLinkerConfiguration - Class in net.sf.antcontrib.cpptasks.compiler
A configuration for a command line linker
CommandLineLinkerConfiguration(CommandLineLinker, String, String[][], ProcessorParam[], boolean, boolean, boolean, String[], String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
CommentDef - Class in net.sf.antcontrib.cpptasks.ide
Defines a comment to place in the generated project files.
CommentDef() - +Constructor for class net.sf.antcontrib.cpptasks.ide.CommentDef +
  +
commit(CCTask) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
  +
commit() - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
CompaqVisualFortranCompiler - Class in net.sf.antcontrib.cpptasks.compaq
Adapter for the Compaq(r) Visual Fortran compiler.
CompaqVisualFortranLibrarian - Class in net.sf.antcontrib.cpptasks.compaq
Adapter for the Compaq(r) Visual Fortran Librarian
CompaqVisualFortranLinker - Class in net.sf.antcontrib.cpptasks.compaq
Adapter for the Compaq(r) Visual Fortran linker.
compile(CCTask, File, String[], String[], String[], boolean, CommandLineCompilerConfiguration, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
compile(CCTask, File, String[], String[], String[], boolean, CommandLineCompilerConfiguration, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
Compiles a source file. +
compile(CCTask, File, String[], boolean, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
compile(CCTask, File, String[], boolean, ProgressMonitor) - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
  +
compile(CCTask, File, String[], String[], String[], boolean, CommandLineCompilerConfiguration, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
compile(CCTask, File, String[], String[], String[], boolean, CommandLineCompilerConfiguration, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Compiles an .idl file into the corresponding .h and .xpt files. +
compile(CCTask, File, String[], String[], String[], boolean, CommandLineCompilerConfiguration, ProgressMonitor) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files. +
Compiler - Interface in net.sf.antcontrib.cpptasks.compiler
A compiler.
CompilerArgument - Class in net.sf.antcontrib.cpptasks.types
A compiler command line argument.
CompilerArgument() - +Constructor for class net.sf.antcontrib.cpptasks.types.CompilerArgument +
  +
CompilerConfiguration - Interface in net.sf.antcontrib.cpptasks.compiler
A configuration for a compiler
CompilerDef - Class in net.sf.antcontrib.cpptasks
A compiler definition.
CompilerDef() - +Constructor for class net.sf.antcontrib.cpptasks.CompilerDef +
  +
CompilerEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of supported compilers + + Supported compilers + + gcc (default) + GCC C++ compiler + + + g++ + GCC C++ compiler + + + c++ + GCC C++ compiler + + + g77 + GNU FORTRAN compiler + + + msvc + Microsoft Visual C++ + + + msvc8 + Microsoft Visual C++ 8 + + + bcc + Borland C++ Compiler + + + msrc + Microsoft Resource Compiler + + + brc + Borland Resource Compiler + + + df + Compaq Visual Fortran Compiler + + + midl + Microsoft MIDL Compiler + + + icl + Intel C++ compiler for Windows (IA-32) + + + ecl + Intel C++ compiler for Windows (IA-64) + + + icc + Intel C++ compiler for Linux (IA-32) + + + ecc + Intel C++ compiler for Linux (IA-64) + + + CC + Sun ONE C++ compiler + + + aCC + HP aC++ C++ Compiler + + + os390 + OS390 C Compiler + + + os400 + Icc Compiler + + + sunc89 + Sun C89 C Compiler + + + xlC + VisualAge C Compiler + + + cl6x + TI TMS320C6000 Optimizing Compiler + + + cl55 + TI TMS320C55x Optimizing C/C++ Compiler + + + armcpp + ARM 32-bit C++ compiler + + + armcc + ARM 32-bit C compiler + + + tcpp + ARM 16-bit C++ compiler + + + tcc + ARM 16-bit C compiler + + * + uic + Qt user interface compiler + + + moc + Qt meta-object compiler + + + xpidl + Mozilla xpidl compiler (creates .h and .xpt files). + + + wcl + OpenWatcom C/C++ compiler (experimental) + + + wfl + OpenWatcom FORTRAN compiler (experimental) + + + windres + GNU windres resource compiler + +
CompilerEnum() - +Constructor for class net.sf.antcontrib.cpptasks.CompilerEnum +
  +
CompilerParam - Class in net.sf.antcontrib.cpptasks
Place class description here.
CompilerParam() - +Constructor for class net.sf.antcontrib.cpptasks.CompilerParam +
  +
ConditionalFileSet - Class in net.sf.antcontrib.cpptasks.types
An Ant FileSet object augmented with if and unless conditions.
ConditionalFileSet() - +Constructor for class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
  +
ConditionalPath - Class in net.sf.antcontrib.cpptasks.types
An Ant Path object augmented with if and unless conditionals
ConditionalPath(Project) - +Constructor for class net.sf.antcontrib.cpptasks.types.ConditionalPath +
  +
ConditionalPath(Project, String) - +Constructor for class net.sf.antcontrib.cpptasks.types.ConditionalPath +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.borland.CfgFilenameState +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.borland.QuoteBranchState +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.AbstractParserState +
Consume a character +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.BranchState +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState +
Consumes a character and returns the next state for the parser. +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.FilenameState +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.LetterState +
Consumes a character and returns the next state for the parser. +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.PostE +
  +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState +
Consumes a character and returns the next state for the parser. +
consume(char) - +Method in class net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState +
Consumes a character and returns the next state for the parser. +
ConsumeToSpaceOrNewLine - Class in net.sf.antcontrib.cpptasks.borland
 
ConsumeToSpaceOrNewLine(AbstractParser) - +Constructor for class net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine +
  +
convertCygwinFilenames(String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +
convertCygwinFilenames(String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +
convertCygwinFilenames(String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +
CParser - Class in net.sf.antcontrib.cpptasks.parser
A parser that extracts #include statements from a Reader.
CParser() - +Constructor for class net.sf.antcontrib.cpptasks.parser.CParser +
  +
CPUEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of cpu types.
CPUEnum() - +Constructor for class net.sf.antcontrib.cpptasks.CPUEnum +
Constructor. +
createArg() - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Adds a command-line argument. +
createConfiguration(CCTask, LinkType, ProcessorDef[], CompilerDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], ProcessorDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], LinkerDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], ProcessorDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], CompilerDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], LinkerDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
createConfiguration(CCTask, LinkType, ProcessorDef[], ProcessorDef, TargetDef, VersionInfo) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
Returns the compiler configuration for or element. +
createConfiguration(CCTask, LinkType, ProcessorDef, TargetDef, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Creates a configuration +
createExcept() - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Adds filesets that specify files that should not be processed with + precompiled headers enabled. +
createIncludePath() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds an include path. +
createIncludePath() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Creates an include path. +
createMap() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Local to remote filename maps. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler +
  +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler +
  +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler +
  +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
Create parser to determine dependencies. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
Create parser to determine dependencies. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
Create parser to determine dependencies. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets dependency parser. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler +
Create parser. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler +
Create dependency parser. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets a parser to scan source file for dependencies. +
createParser(File) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler. +
createPrecompile() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Specifies precompilation prototype file and exclusions. +
createPrecompile() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Specifies precompilation prototype file and exclusions. +
createPrecompileConfigurations(File, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. +
createPrecompileConfigurations(File, String[]) - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. +
createPrecompileConfigurations(CompilerConfiguration, File, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler +
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. +
createPrecompileConfigurations(CompilerConfiguration, File, String[]) - +Method in interface net.sf.antcontrib.cpptasks.compiler.PrecompilingCompiler +
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. +
createPrecompileGeneratingConfig(CommandLineCompilerConfiguration, File, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
createPrecompileGeneratingConfig(CommandLineCompilerConfiguration, File, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler +
  +
createPrecompileGeneratingConfig(CommandLineCompilerConfiguration, File, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
createPrecompileUsingConfig(CommandLineCompilerConfiguration, File, String, String[]) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
createPrecompileUsingConfig(CommandLineCompilerConfiguration, File, String, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler +
  +
createPrecompileUsingConfig(CommandLineCompilerConfiguration, File, String, String[]) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
createSysIncludePath() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Adds a system include path. +
createSysIncludePath() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Creates a system include path. +
CUtil - Class in net.sf.antcontrib.cpptasks
Some utilities used by the CC and Link tasks.
CUtil() - +Constructor for class net.sf.antcontrib.cpptasks.CUtil +
  +
CUtil.StringArrayBuilder - Class in net.sf.antcontrib.cpptasks
A class that splits a white-space, comma-separated list into a String + array.
CUtil.StringArrayBuilder(String) - +Constructor for class net.sf.antcontrib.cpptasks.CUtil.StringArrayBuilder +
  + +
+

+D

+
+
DebugDef - Class in net.sf.antcontrib.cpptasks.ide
Specifies a debugging configuration for a project.
DebugDef() - +Constructor for class net.sf.antcontrib.cpptasks.ide.DebugDef +
Constructor. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccLinker +
Allows drived linker to decorate linker option. +
decorateLinkerOption(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
Allows drived linker to decorate linker option. +
DEFAULT_DISCARD_BID - +Static variable in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
default bid for a file name that the processor recognizes but does not + process and does not want to fall through to the linker +
DEFAULT_PROCESS_BID - +Static variable in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
default bid for a file name that the processor desires to process +
DefineArgument - Class in net.sf.antcontrib.cpptasks.types
Preprocessor macro definition.
DefineArgument() - +Constructor for class net.sf.antcontrib.cpptasks.types.DefineArgument +
  +
DefineSet - Class in net.sf.antcontrib.cpptasks.types
Set of preprocessor macro defines and undefines.
DefineSet() - +Constructor for class net.sf.antcontrib.cpptasks.types.DefineSet +
  +
DependencyDef - Class in net.sf.antcontrib.cpptasks.ide
Defines a dependency
DependencyDef() - +Constructor for class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
DependencyInfo - Class in net.sf.antcontrib.cpptasks
 
DependencyInfo(String, String, long, Vector, Vector) - +Constructor for class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
DependencyTable - Class in net.sf.antcontrib.cpptasks
 
DependencyTable(File) - +Constructor for class net.sf.antcontrib.cpptasks.DependencyTable +
Creates a target history table from dependencies.xml in the prject + directory, if it exists. +
DependencyTable.DependencyVisitor - Class in net.sf.antcontrib.cpptasks
 
DependencyTable.DependencyVisitor() - +Constructor for class net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor +
  +
DependencyTable.TimestampChecker - Class in net.sf.antcontrib.cpptasks
 
DependencyTable.TimestampChecker(long, boolean) - +Constructor for class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +
  +
DevStudio2005CCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
DevStudioCCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleCCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleCCompiler(String, String, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
DevStudioCompatibleLibrarian - Class in net.sf.antcontrib.cpptasks.devstudio
Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
DevStudioCompatibleLibrarian(String, String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
DevStudioCompatibleLinker - Class in net.sf.antcontrib.cpptasks.devstudio
Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
DevStudioCompatibleLinker(String, String, String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
DevStudioLibrarian - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft (r) Library Manager
DevStudioLinker - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft (r) Incremental Linker
DevStudioMIDLCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft (r) MIDL Compiler
DevStudioProcessor - Class in net.sf.antcontrib.cpptasks.devstudio
A add-in class for Microsoft Developer Studio processors
DevStudioProjectWriter - Class in net.sf.antcontrib.cpptasks.devstudio
Writes a Microsoft Visual Studio 97 or Visual Studio 6 project file.
DevStudioProjectWriter(String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter +
Constructor. +
DevStudioResourceCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Adapter for the Microsoft (r) Windows 32 Resource Compiler
discardFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
discardFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
discardFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
DistributerDef - Class in net.sf.antcontrib.cpptasks
Distributed build information (Non-functional prototype).
DistributerDef() - +Constructor for class net.sf.antcontrib.cpptasks.DistributerDef +
Constructor. +
DistributerMap - Class in net.sf.antcontrib.cpptasks
Local to remote filename mapping (Experimental).
DistributerMap() - +Constructor for class net.sf.antcontrib.cpptasks.DistributerMap +
Constructor. +
DistributerProtocolEnum - Class in net.sf.antcontrib.cpptasks
Distributer prococol names (experimental).
DistributerProtocolEnum() - +Constructor for class net.sf.antcontrib.cpptasks.DistributerProtocolEnum +
Constructor. +
+
+

+E

+
+
elements() - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
Returns an enumerator of DependencyInfo's +
execute() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Executes the task. +
execute() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.CompilerParam +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Required by documentation generator. +
execute() - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Required by documentation generator. +
execute(CCTask, List, Hashtable, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Executes the task. +
execute() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Required by documentation generator. +
execute() - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.LinkerParam +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.PrecompileExceptDef +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Bogus method required for documentation generation. +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.CompilerArgument +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.IncludePath +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.LinkerArgument +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.SystemIncludePath +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.SystemLibrarySet +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
  +
execute() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Methods is required for documentation generation, throws + exception if called. +
+
+

+F

+
+
failOnError - +Variable in class net.sf.antcontrib.cpptasks.CCTask +
If true, stop build on compile failure. +
FilenameState - Class in net.sf.antcontrib.cpptasks.parser
 
FilenameState(AbstractParser, char[]) - +Constructor for class net.sf.antcontrib.cpptasks.parser.FilenameState +
  +
FILETIME_EPSILON - +Static variable in class net.sf.antcontrib.cpptasks.CUtil +
  +
FileVisitor - Interface in net.sf.antcontrib.cpptasks
An abstract class implemented to walk over the fileset members of a + ProcessorDef
finish(ProcessorConfiguration, boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTaskProgressMonitor +
  +
finish(ProcessorConfiguration, boolean) - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProgressMonitor +
  +
FlexLong - Class in net.sf.antcontrib.cpptasks.types
Helper class which can be used for Ant task attribute setter methods to + allow the build file to specify a long in either decimal, octal, or + hexadecimal format.
FlexLong(String) - +Constructor for class net.sf.antcontrib.cpptasks.types.FlexLong +
Constructor used by Ant's introspection mechanism for attribute + population +
ForteCCCompiler - Class in net.sf.antcontrib.cpptasks.sun
Adapter for the Sun (r) Forte (tm) C++ compiler
ForteCCLinker - Class in net.sf.antcontrib.cpptasks.sun
Adapter for Sun (r) Forte(tm) C++ Linker
FortranParser - Class in net.sf.antcontrib.cpptasks.parser
A parser that extracts INCLUDE statements from a Reader.
FortranParser() - +Constructor for class net.sf.antcontrib.cpptasks.parser.FortranParser +
Default constructor. +
+
+

+G

+
+
GccCCompiler - Class in net.sf.antcontrib.cpptasks.gcc.cross
Adapter for the GCC C/C++ compiler
GccCCompiler - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Adapter for the GCC C/C++ compiler
GccCCompiler - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the GCC C/C++ compiler
GccCompatibleCCompiler - Class in net.sf.antcontrib.cpptasks.gcc
Abstract base class for compilers that attempt to be command line compatible + with GCC
GccCompatibleCCompiler(String, String, boolean, GccCompatibleCCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
Private constructor. +
GccCompatibleCCompiler(String, String, String[], String[], boolean, GccCompatibleCCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
Private constructor. +
GccLibrarian - Class in net.sf.antcontrib.cpptasks.gcc.cross
Adapter for the 'ar' archiver
GccLibrarian - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Adapter for the 'ar' archiver
GccLibrarian - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the 'ar' archiver
GccLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross
Adapter for the GCC linker
GccLinker(String, String[], String[], String, String, boolean, GccLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
GccLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Adapter for the GCC linker
GccLinker(String, String[], String[], String, String, boolean, GccLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
  +
GccLinker - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the GCC linker
GccLinker(String, String[], String[], String, String, boolean, GccLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.GccLinker +
  +
GccProcessor - Class in net.sf.antcontrib.cpptasks.gcc.cross
A add-in class for Gcc processors
GccProcessor - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
A add-in class for Gcc processors
GccProcessor - Class in net.sf.antcontrib.cpptasks.gcc
A add-in class for Gcc processors
get(String, String) - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
getAbsolutePath(File) - +Method in class net.sf.antcontrib.cpptasks.SourceHistory +
  +
getActiveDefines() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getActiveIncludePaths() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Returns the compiler-specific include path. +
getActiveLibrarySets(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Returns an array of active library sets for this linker definition. +
getActivePrecompile(CompilerDef) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getActiveProcessorArgs() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Prepares list of processor arguments ( compilerarg, linkerarg ) that + are active for the current project settings. +
getActiveProcessorParams() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Prepares list of processor arguments ( compilerarg, linkerarg) that + are active for the current project settings. +
getActiveSysIncludePaths() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getActiveSystemLibrarySets(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Returns an array of active library sets for this linker definition. +
getActiveUserLibrarySets(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Returns an array of active library sets for this linker definition. +
getAllSourcePaths() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getAllSources() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getArch() - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Gets arch. +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets number of command line arguments per input file. +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets number of command line arguments per input file. +
getArgumentCountPerInputFile() - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets number of command line arguments per input file. +
getArguments() - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Returns all arguments defined by addLine, + addValue or the argument object. +
getArmCC() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Singleton for ARM 32-bit C compiler +
getArmCpp() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Singleton for ARM 32-bit C++ compiler +
getBase(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getBasename(File) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Extracts the basename of a file, removing the extension, if present +
getBaseOutputName(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
getCl55DllInstance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getCl55Instance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getCl55Instance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getCl55Instance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getCl6xDllInstance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getCl6xInstance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getCl6xInstance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getCl6xInstance() - +Static method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getCommand() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getCommand() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getCommand() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
May have to make this String array return +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Get command file switch. +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Get command file switch. +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Gets command line option to read from an option file. +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Processor +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os400.IccProcessor +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getCommandFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getCommandFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getComments() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
  +
getCompanyname() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets Company name. +
getCompatibilityversion() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets compatibility version. +
getCompiler() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getCompiler() - +Method in class net.sf.antcontrib.cpptasks.CompilerEnum +
  +
getCompositeLastModified() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
Returns the latest modification date of the source or anything that it + depends on. +
getConfiguration() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getCppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
Gets c++ adapter +
getCppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
Gets c++ adapter +
getCppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
Gets c++ adapter +
getCpu() - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Gets cpu. +
getDataset() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Gets the dataset. +
getDataset() - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Gets the dataset. +
getDataSetInstance() - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getDataSetInstance() - +Static method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getDebug() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Gets debug state. +
getDebug(ProcessorDef[], int) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Gets boolean indicating debug build +
getDefaultProviders(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Creates an chain of objects which provide default values in descending + order of significance. +
getDefines() - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Returns the defines and undefines in this set. +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Add command line options for preprocessor macro +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets switch to define preprocessor macro. +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Get define switch. +
getDefineSwitch(StringBuffer, String, String) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Creates a command line option to define a preprocessor macro. +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets switch to define preprocessor macro. +
getDefineSwitch(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets switch to define preprocessor macro. +
getDependencies() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
  +
getDependencyInfo(String, String) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
This method returns a DependencyInfo for the specific source file and + include path identifier +
getDepends() - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
getDependsList() - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
getDir() - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Get the working directory of the process. +
getDir(Project) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
getDllInstance() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getDynamicLibFlag() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getDynamicLibFlag() - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
  +
getEndArguments() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getEndArguments() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getEntry(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
ARMINC environment variable contains the default include path +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
Returns library path. +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets standard include paths. +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Get include path from environment. +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets standard include paths. +
getEnvironmentIncludePath() - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets standard include paths. +
getEnvironmentPath(String, char, String[]) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
This method extracts path information from the appropriate .cfg file in + the install directory. +
getExceptFiles() - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
  +
getExceptions(CompilerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getExecutable() - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Get the name of the executable program. +
getExecutableLocation(String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Gets the parent directory for the executable file name using the current + directory and system executable path +
getExtends() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Gets the ProcessorDef specified by the extends attribute +
getExtends() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
  +
getFailonerror() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Gets the failonerror flag. +
getFile() - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
getFilecomments() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets comments. +
getFiledescription() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets Description. +
getFileSet() - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
getFileversion() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets file version. +
getFixed(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getG77Instance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
Gets g77 adapter +
getG77Instance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
Gets g77 adapter +
getG77Instance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
Gets g77 adapter +
getGppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
Gets gpp adapter +
getGppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
Gets gpp adapter +
getGppInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
Gets gpp adapter +
getHeaderExtensions() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
getHosts() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Gets hosts. +
getID() - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
Gets identifier for the linker. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getIdentifier(String[], String) - +Static method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
Determines the identification of a command line processor by capture the + first line of its output for a specific command. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
Returns a string representation of this configuration. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
Returns a string representation of this configuration. +
getIdentifier() - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
Retrieve an identifier that identifies the specific version of the + compiler. +
getIdentifier() - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration +
Returns a string representation of this configuration. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
Gets identifier for the compiler. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
Gets identifier for the compiler. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets compiler identifier. +
getIf() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets if property name. +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Returns command line option to specify include directory +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getIncludeDirSwitch(String, String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets include directory switch. +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Get include directory switch. +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Create a command line option to add a directory to the include path. +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Processor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os400.IccProcessor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getIncludeDirSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets include directory switch. +
getIncludeDirSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets include directory switch. +
getIncludePath() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getIncludePathIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getIncludePathIdentifier() - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
Returns an digest for the include path for the configuration. +
getIncludePathIdentifier() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
getIncludes() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
getIncludes() - +Method in class net.sf.antcontrib.cpptasks.parser.CParser +
  +
getIncludes() - +Method in class net.sf.antcontrib.cpptasks.parser.FortranParser +
Gets collection of include file names encountered in parse. +
getIncludes() - +Method in interface net.sf.antcontrib.cpptasks.parser.Parser +
  +
getIncludes() - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser +
Gets included files. +
getIncremental(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getInherit() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Gets the inherit attribute. +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets input file arguments. +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets input file arguments. +
getInputFileArgument(File, String, int) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets input file arguments. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
Gets gcc adapter +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.LdLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
Gets gcc adapter +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
Gets gcc adapter +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccLibrarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.LdLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
Gets singleton instance of this class +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.hp.aCCLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
Gets singleton instance of this class +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelWin32Linker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets singleton instance of compiler. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler +
Get compiler. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker +
Get linker instance. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler +
Get instance. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker +
Get instance. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Singleton accessor. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
Gets singleton instance of this class +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.sun.ForteCCLinker +
  +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets singleton instance of compiler. +
getInstance() - +Static method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets singleton instance of compiler. +
getInternalname() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets internal name. +
getLanguage() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets file language, should be an IETF RFC 3066 identifier, for example, en-US. +
getLastModified() - +Method in class net.sf.antcontrib.cpptasks.SourceHistory +
  +
getLegalcopyright() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets legal copyright. +
getLegaltrademarks() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets legal trademark. +
getLibraryKey(File) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
getLibraryKey(File) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
Extracts the significant part of a library name to ensure there aren't + collisions +
getLibraryKey(File) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getLibraryNames() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getLibraryPath() - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
returns the library path for the linker +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.GccLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.hp.aCCLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Get library search path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Get search path for libraries. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCLinker +
Returns library path. +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
Returns a set of filename patterns corresponding to library names. +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
  +
getLibraryPatterns(String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Get file selectors for specified library names. +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Get file selectors for libraries. +
getLibraryPatterns(String[], LibraryTypeEnum) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Get file selectors for specified libraries. +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getLibraryPatterns(String[], LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getLibs() - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
getLibtool() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getLibtool() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
  +
getLibtoolCompiler() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
Obtains the same compiler, but with libtool set + + Default behavior is to ignore libtool +
getLibtoolLinker() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker +
  +
getLinker() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getLinker(LinkType) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
Gets the linker for the specified link type. +
getLinker() - +Method in interface net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration +
  +
getLinker(LinkType) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
Gets the linker that is associated with this processors +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.LdLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.LdLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.hp.aCCLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin32Linker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler +
  +
getLinker() - +Method in class net.sf.antcontrib.cpptasks.LinkerEnum +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets linker associated with this type. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler +
Get linker. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker +
Get linker. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler +
Get linker. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker +
Get linker. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Get linker. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets linker associated with this type. +
getLinker(LinkType) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets linker associated with this type. +
getLinkHistory(TargetHistoryTable) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
getLinkTarget(LinkerConfiguration, Vector, Vector, Hashtable, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
getLocal() - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Gets local directory. +
getLocation() - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
  +
getMachine() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
  +
getMachine() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
  +
getMachine() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
  +
getMap() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getMap(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Maximum command line length +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.hp.aCCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets maximum length of command line. +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Get maximum command line length. +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Gets maximum command line. +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Get maximum command line length. +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets maximum length of command line. +
getMaximumCommandLength() - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets maximum length of command line. +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets maximum number of input files processed per command. +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets maximum number of input files processed per command. +
getMaximumInputFilesPerCommand() - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets maximum number of input files processed per command. +
getMultithreaded(CompilerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getMustRebuild() - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +
  +
getName() - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
getName() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Get name. +
getName() - +Method in class net.sf.antcontrib.cpptasks.ProcessorEnumValue +
  +
getName() - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
  +
getName() - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Returns the name of the define +
getNewLineState() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCfgParser +
  +
getNewLineState() - +Method in class net.sf.antcontrib.cpptasks.parser.AbstractParser +
  +
getNewLineState() - +Method in class net.sf.antcontrib.cpptasks.parser.CParser +
  +
getNewLineState() - +Method in class net.sf.antcontrib.cpptasks.parser.FortranParser +
Get the state for the beginning of a new line. +
getNewLineState() - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +
Gets new line state. +
getNoMatchState() - +Method in class net.sf.antcontrib.cpptasks.parser.BranchState +
  +
getObjdir() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
getObjdir() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Gets the object files directory. +
getObjdir(File) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Sets the directory used for object files. +
getOptimization(CompilerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getOriginalfilename() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets original filename. +
getOSArch() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
Gets the target operating system architecture +
getOsfamily() - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Gets operating system family. +
getOSName() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
Gets the target operating system name +
getOutfile() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
getOutput() - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
  +
getOutput() - +Method in class net.sf.antcontrib.cpptasks.TargetHistory +
  +
getOutput() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractLinker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getOutputFileNames(String, VersionInfo) - +Method in interface net.sf.antcontrib.cpptasks.compiler.Processor +
Output file name (no path components) corresponding to source file +
getOutputFileNames(String, VersionInfo) - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration +
Output file name (no path components) corresponding to source file +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets output file names. +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets output file names. +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets output file names. +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker +
  +
getOutputFileSwitch(CCTask, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getOutputFileSwitch(String, String) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
  +
getOutputFileSwitch(String, String) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
  +
getOutputFileSwitch(String, String) - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Create output file switch. +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Get output file switch. +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Builds command line options to specify the output file names. +
getOutputFileSwitch(CCTask, String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Processor +
  +
getOutputFileSwitch(CCTask, String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.os400.IccProcessor +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
getOutputFileSwitch(String) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
getOutputFileSwitch(String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
getOutputLastModified() - +Method in class net.sf.antcontrib.cpptasks.TargetHistory +
  +
getOutputType() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets the output type. +
getOuttype() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Gets output type. +
getOverwrite() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Gets whether an existing project file should be overwritten, + default is true. +
getParam(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getParam(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getParam(String) - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
  +
getParam(String) - +Method in interface net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration +
  +
getParams() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getParams() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getParams() - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration +
  +
getParentPath(String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Extracts the parent of a file +
getParser() - +Method in class net.sf.antcontrib.cpptasks.parser.AbstractParserState +
  +
getPatched() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets patched. +
getPathFromEnvironment(String, String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Returns an array of File for each existing directory in the specified + environment variable +
getPreArguments() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getPreArguments() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getPrerelease() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets prerelease. +
getPrivatebuild() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets private build. +
getProcessor() - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getProcessor() - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getProcessor(LinkType) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getProcessor() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Obtains the appropriate processor (compiler, linker) +
getProcessor(LinkType) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Obtains the appropriate processor (compiler, linker) based on the + LinkType. +
getProcessor() - +Method in class net.sf.antcontrib.cpptasks.ProcessorEnumValue +
  +
getProcessorConfiguration() - +Method in class net.sf.antcontrib.cpptasks.TargetHistory +
  +
getProductname() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets product name. +
getProductversion() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets Product version. +
getProjectWriter() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum +
Gets ProjectWriter associated with enumeration value. +
getProtocol() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Gets protocol. +
getPrototype() - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Gets prototype source file +
getRebuild() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
getRebuild() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getRebuild() - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration +
If true, all files using this configuration should be rebuilt and any + existing output files should be ignored +
getRebuild(ProcessorDef[], int) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Gets a boolean value indicating whether all targets must be rebuilt + regardless of dependency analysis. +
getRebuild() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getRef(Project) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
overrides FileSet's implementation which would throw an exception since + the referenced object isn't this type. +
getRelativePath(String, File) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Returns a relative path for the targetFile relative to the base + directory. +
getRelativePath() - +Method in class net.sf.antcontrib.cpptasks.SourceHistory +
  +
getRemote() - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Gets remote name for directory. +
getRtti(CompilerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
getSource() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
getSourceExtensions() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
getSourceHistories(String) - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
Returns an array of SourceHistory objects (contains relative path and + last modified time) for the source[s] of this target +
getSourceLastModified() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
getSourcePaths() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getSources() - +Method in class net.sf.antcontrib.cpptasks.TargetHistory +
  +
getSources() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getSpecialbuild() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Special build +
getSpecs() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
Returns the contents of the gcc specs file. +
getSpecs() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
Returns the contents of the gcc specs file. +
getSpecs() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
Returns the contents of the gcc specs file. +
getStack(LinkerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
getStartupObject(LinkType) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
getStartupObject(LinkType) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
getStartupObject() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
getStaticLibFlag() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
getStaticLibFlag() - +Method in class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker +
  +
getSubsystem() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Gets subsystem name. +
getSubsystem() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Get subsystem name. +
getSysIncludes() - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
getSysSourcePaths() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getSysSources() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
getTargetPlatform() - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
getTargetsToBuildByConfiguration(Hashtable) - +Static method in class net.sf.antcontrib.cpptasks.CCTask +
Builds a Hashtable to targets needing to be rebuilt keyed by compiler + configuration +
getTcpcork() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Gets tcp cork. +
getText() - +Method in class net.sf.antcontrib.cpptasks.ide.CommentDef +
  +
getThumbCC() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Singleton for ARM 16-bit C compiler +
getThumbCpp() - +Static method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
Singleton for ARM 16-bit C++ compiler +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Get total command line length due to the input file. +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Get total command line length due to the input file. +
getTotalArgumentLengthForInputFile(File, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Get total command line length due to the input file. +
getType() - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Gets preferred library type +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.arm.ADSCCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler +
Gets switch to undefine preprocessor macro. +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Get undefine switch. +
getUndefineSwitch(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Builds a command line option to undefine a preprocessor macro. +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390CCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.os400.IccCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.sun.C89CCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler +
  +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler +
Gets switch to undefine preprocessor macro. +
getUndefineSwitch(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler +
Gets switch to undefine preprocessor macro. +
getUnless() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Gets if property name. +
getValue() - +Method in class net.sf.antcontrib.cpptasks.CUtil.StringArrayBuilder +
  +
getValue() - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
  +
getValue() - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
  +
getValue() - +Method in class net.sf.antcontrib.cpptasks.types.DefineArgument +
Returns the value of the define +
getValue() - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Returns the value of the define +
getValues() - +Method in class net.sf.antcontrib.cpptasks.ArchEnum +
Gets list of acceptable values. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.CompilerEnum +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.CPUEnum +
Gets list of acceptable values. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.DistributerProtocolEnum +
Gets list of acceptable values. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum +
Gets acceptible values for enumeration. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.LinkerEnum +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.OptimizationEnum +
Gets list of acceptable values. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.OSFamilyEnum +
Gets list of acceptable values. +
getValues() - +Method in class net.sf.antcontrib.cpptasks.OutputTypeEnum +
Gets list of acceptable values +
getValues(ProcessorEnumValue[]) - +Static method in class net.sf.antcontrib.cpptasks.ProcessorEnumValue +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.RuntimeType +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.SubsystemEnum +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument.LocationEnum +
  +
getValues() - +Method in class net.sf.antcontrib.cpptasks.types.LibraryTypeEnum +
Gets list of acceptable values +
getValues() - +Method in class net.sf.antcontrib.cpptasks.WarningLevelEnum +
Get allowable values. +
getVariables() - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Get the variable list as an array. +
getVersion() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
  +
getVersion() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
  +
getVersion() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
  +
getWarnings(CompilerDef[], int) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
GppLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross
Adapter for the g++ variant of the GCC linker
GppLinker(String, String[], String[], String, String, boolean, GppLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
GppLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Adapter for the g++ variant of the GCC linker
GppLinker(String, String[], String[], String, String, boolean, GppLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
GppLinker - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the g++ variant of the GCC linker
GppLinker(String, String[], String[], String, String, boolean, GppLinker) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
+
+

+H

+
+
hasFileSets() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Returns true if the processor definition contains embedded file set + definitions +
hasQObject(Reader) - +Static method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +
Determines if source file contains Q_OBJECT. +
+
+

+I

+
+
IccCompiler - Class in net.sf.antcontrib.cpptasks.os400
Adapter for the IBM (R) OS/390 (tm) C++ Compiler
IccLinker - Class in net.sf.antcontrib.cpptasks.os400
Adapter for the IBM (R) OS/390 (tm) Linker
IccProcessor - Class in net.sf.antcontrib.cpptasks.os400
A add-in class for IBM (r) OS/390 compilers and linkers
IncludePath - Class in net.sf.antcontrib.cpptasks.types
An include path.
IncludePath(Project) - +Constructor for class net.sf.antcontrib.cpptasks.types.IncludePath +
  +
IncludePath(Project, String) - +Constructor for class net.sf.antcontrib.cpptasks.types.IncludePath +
  +
IntelLinux32CCompiler - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
IntelLinux32Linker - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) Linker for Linux (r) for IA-32
IntelLinux64CCompiler - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
IntelLinux64Linker - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) linker for Linux for IA-64
IntelProcessor - Class in net.sf.antcontrib.cpptasks.intel
A add-in class for Intel (r) compilers and linkers
IntelWin32CCompiler - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
IntelWin32Librarian - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
IntelWin32Librarian() - +Constructor for class net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian +
  +
IntelWin32Linker - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel (r) linker for 32-bit applications
IntelWin64CCompiler - Class in net.sf.antcontrib.cpptasks.intel
Adapter for the Intel C++ compiler for Itanium(TM) Applications
isActive(Project, String, String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
  +
isActive() - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Returns true if the if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Returns true if the if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Determine if this def should be used. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
  +
isActive() - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Determine if this def should be used. +
isActive(Project) - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive(Project) - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
Returns true if the Path's if and unless conditions (if any) are + satisfied. +
isActive(Project) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalPath +
Returns true if the Path's if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive(Project) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive(Project) - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isActive() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Returns true if the define's if and unless conditions (if any) are + satisfied. +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLibrarian +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.arm.ADSLinker +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian +
  +
isCaseSensitive() - +Method in interface net.sf.antcontrib.cpptasks.compiler.Linker +
Returns true if the linker is case-sensitive +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.intel.IntelProcessor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Gets case-sensisitivity of processor. +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Gets file name sensitivity of processors. +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +
Gets whether processor tratement of file names is case-sensitive. +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.os390.OS390Processor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.os400.IccProcessor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.sun.C89Linker +
  +
isCaseSensitive() - +Static method in class net.sf.antcontrib.cpptasks.sun.C89Processor +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian +
  +
isCaseSensitive() - +Method in class net.sf.antcontrib.cpptasks.ti.ClxxLinker +
  +
isCygwin() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
Determines if task is running with cygwin +
isCygwin() - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
Determines if task is running with cygwin +
isCygwin() - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
Determines if task is running with cygwin +
isDarwin() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
Returns true if the target operating system is Mac OS X or Darwin. +
isDebug() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
isDebug() - +Method in interface net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration +
  +
isDefine() - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Returns true if this is a define, false if an undefine. +
isExecutable() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce an executable +
isHPUX() - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
  +
isNoOptimization() - +Method in class net.sf.antcontrib.cpptasks.OptimizationEnum +
Is no optimization performed. +
isPluginModule() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce a plugin module. +
isPrecompileGeneration() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
isPrecompileGeneration() - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
  +
isSharedLibrary() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce a shared library. +
isSignificantlyAfter(long, long) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Determines whether time1 is later than time2 + to a degree that file system time truncation is not significant. +
isSignificantlyBefore(long, long) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Determines whether time1 is earlier than time2 + to a degree that file system time truncation is not significant. +
isSize() - +Method in class net.sf.antcontrib.cpptasks.OptimizationEnum +
Is size optimized. +
isSpeed() - +Method in class net.sf.antcontrib.cpptasks.OptimizationEnum +
Is speed optimized. +
isStaticLibrary() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce a static library. +
isStaticRuntime() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the module should use a statically linked runtime library. +
isSubsystemConsole() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce a module for a console subsystem. +
isSubsystemGUI() - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Gets whether the link should produce a module for a graphical user + interface subsystem. +
isSystemPath(File) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Determines if source file has a system path, + that is part of the compiler or platform. +
+
+

+L

+
+
LdLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross
Adapter for the 'ld' linker
LdLinker - Class in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Adapter for the 'ld' linker
LdLinker - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the 'ld' linker
LetterState - Class in net.sf.antcontrib.cpptasks.parser
This parser state checks consumed characters against a specific character.
LetterState(AbstractParser, char, AbstractParserState, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.LetterState +
Constructor. +
LibrarySet - Class in net.sf.antcontrib.cpptasks.types
A set of library names.
LibrarySet() - +Constructor for class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
LibraryTypeEnum - Class in net.sf.antcontrib.cpptasks.types
Enumeration of library types for LibrarySet
LibraryTypeEnum() - +Constructor for class net.sf.antcontrib.cpptasks.types.LibraryTypeEnum +
Constructor + + Set by default to "shared" +
libtoolObjFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
libtoolObjFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
libtoolObjFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
Builds a library +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Performs a link using a command line linker +
link(CCTask, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
link(CCTask, TargetInfo) - +Method in interface net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.cross.LdLinker +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Builds a library. +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
link(CCTask, File, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
Linker - Interface in net.sf.antcontrib.cpptasks.compiler
A linker for executables, and static and dynamic libraries.
LinkerArgument - Class in net.sf.antcontrib.cpptasks.types
A linker command line argument.
LinkerArgument() - +Constructor for class net.sf.antcontrib.cpptasks.types.LinkerArgument +
  +
LinkerConfiguration - Interface in net.sf.antcontrib.cpptasks.compiler
A configuration for a linker
LinkerDef - Class in net.sf.antcontrib.cpptasks
A linker definition.
LinkerDef() - +Constructor for class net.sf.antcontrib.cpptasks.LinkerDef +
Default constructor +
LinkerEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of supported linkers
LinkerEnum() - +Constructor for class net.sf.antcontrib.cpptasks.LinkerEnum +
  +
LinkerParam - Class in net.sf.antcontrib.cpptasks
Place class description here.
LinkerParam() - +Constructor for class net.sf.antcontrib.cpptasks.LinkerParam +
  +
LinkType - Class in net.sf.antcontrib.cpptasks.compiler
This class represents the target platform for the compile and link step.
LinkType() - +Constructor for class net.sf.antcontrib.cpptasks.compiler.LinkType +
Constructor + + By default, an gui executable with a dynamically linked runtime +
load() - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
  +
longValue() - +Method in class net.sf.antcontrib.cpptasks.types.FlexLong +
Returns the decimal integer value +
+
+

+M

+
+
main(String[]) - +Static method in class net.sf.antcontrib.cpptasks.AboutCCTask +
display identification message and exit +
markForRebuild(Hashtable) - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
markForRebuild(TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
merge(UndefineArgument[], UndefineArgument[]) - +Static method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list. +
merge() - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Returns a VersionInfo that reflects any inherited version information. +
MetaObjectCompiler - Class in net.sf.antcontrib.cpptasks.trolltech
Adapter for the Trolltech Qt MOC Compiler.
MetaObjectParser - Class in net.sf.antcontrib.cpptasks.trolltech
Scans a source file for Q_OBJECT.
mustRebuild() - +Method in class net.sf.antcontrib.cpptasks.TargetInfo +
  +
+
+

+N

+
+
needsRebuild(CCTask, TargetInfo, int) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
Determines if the specified target needs to be rebuilt. +
net.sf.antcontrib.cpptasks - package net.sf.antcontrib.cpptasks
C++ and other compiled languages build support for Ant.
net.sf.antcontrib.cpptasks.apple - package net.sf.antcontrib.cpptasks.apple
Project writer for Apple Xcode
net.sf.antcontrib.cpptasks.arm - package net.sf.antcontrib.cpptasks.arm
 
net.sf.antcontrib.cpptasks.borland - package net.sf.antcontrib.cpptasks.borland
Adapter for Borland tools.
net.sf.antcontrib.cpptasks.compaq - package net.sf.antcontrib.cpptasks.compaq
 
net.sf.antcontrib.cpptasks.compiler - package net.sf.antcontrib.cpptasks.compiler
 
net.sf.antcontrib.cpptasks.devstudio - package net.sf.antcontrib.cpptasks.devstudio
Adapters for Microsoft tools.
net.sf.antcontrib.cpptasks.gcc - package net.sf.antcontrib.cpptasks.gcc
 
net.sf.antcontrib.cpptasks.gcc.cross - package net.sf.antcontrib.cpptasks.gcc.cross
 
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 - package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
 
net.sf.antcontrib.cpptasks.hp - package net.sf.antcontrib.cpptasks.hp
 
net.sf.antcontrib.cpptasks.ibm - package net.sf.antcontrib.cpptasks.ibm
 
net.sf.antcontrib.cpptasks.ide - package net.sf.antcontrib.cpptasks.ide
IDE project file generation.
net.sf.antcontrib.cpptasks.intel - package net.sf.antcontrib.cpptasks.intel
 
net.sf.antcontrib.cpptasks.mozilla - package net.sf.antcontrib.cpptasks.mozilla
Compiler adapter for Mozilla's XPCOM compiler.
net.sf.antcontrib.cpptasks.openwatcom - package net.sf.antcontrib.cpptasks.openwatcom
Adapters for OpenWatcom compilers and tools.
net.sf.antcontrib.cpptasks.os390 - package net.sf.antcontrib.cpptasks.os390
 
net.sf.antcontrib.cpptasks.os400 - package net.sf.antcontrib.cpptasks.os400
 
net.sf.antcontrib.cpptasks.parser - package net.sf.antcontrib.cpptasks.parser
Provides minimal scanners to extract dependencies, +such as include statements, from source files.
net.sf.antcontrib.cpptasks.platforms - package net.sf.antcontrib.cpptasks.platforms
Platform specific utilities.
net.sf.antcontrib.cpptasks.sun - package net.sf.antcontrib.cpptasks.sun
 
net.sf.antcontrib.cpptasks.ti - package net.sf.antcontrib.cpptasks.ti
 
net.sf.antcontrib.cpptasks.trolltech - package net.sf.antcontrib.cpptasks.trolltech
Adapters for Trolltech Qt moc and uic compilers.
net.sf.antcontrib.cpptasks.types - package net.sf.antcontrib.cpptasks.types
 
newEnvironment - +Variable in class net.sf.antcontrib.cpptasks.ProcessorDef +
  +
+
+

+O

+
+
ObjectFileCollector - Class in net.sf.antcontrib.cpptasks
Collects object files for the link step.
ObjectFileCollector(Linker, Vector) - +Constructor for class net.sf.antcontrib.cpptasks.ObjectFileCollector +
  +
objFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker +
  +
objFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker +
  +
objFiles - +Static variable in class net.sf.antcontrib.cpptasks.gcc.GppLinker +
  +
OpenWatcomCCompiler - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom C Compiler.
OpenWatcomCLinker - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom linker.
OpenWatcomCompiler - Class in net.sf.antcontrib.cpptasks.openwatcom
An abstract base class for the OpenWatcom C and Fortran compilers.
OpenWatcomCompiler(String, String, String[], String[], boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler +
Constructor. +
OpenWatcomFortranCompiler - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom Fortran compiler.
OpenWatcomFortranLinker - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom Fortran linker.
OpenWatcomLibrarian - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom Librarian.
OpenWatcomLinker - Class in net.sf.antcontrib.cpptasks.openwatcom
Adapter for the OpenWatcom linker.
OpenWatcomLinker(String, String) - +Constructor for class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker +
Constructor. +
OpenWatcomProcessor - Class in net.sf.antcontrib.cpptasks.openwatcom
A add-in class for OpenWatcom processors.
OptimizationEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of optimization levels (experimental).
OptimizationEnum() - +Constructor for class net.sf.antcontrib.cpptasks.OptimizationEnum +
Constructor. +
OS390CCompiler - Class in net.sf.antcontrib.cpptasks.os390
Adapter for the IBM (R) OS/390 (tm) C++ Compiler
OS390Linker - Class in net.sf.antcontrib.cpptasks.os390
Adapter for the IBM (R) OS/390 (tm) Linker
OS390Processor - Class in net.sf.antcontrib.cpptasks.os390
A add-in class for IBM (r) OS/390 compilers and linkers
OSFamilyEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of cpu types.
OSFamilyEnum() - +Constructor for class net.sf.antcontrib.cpptasks.OSFamilyEnum +
Constructor. +
OutputTypeEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of supported subsystems
OutputTypeEnum() - +Constructor for class net.sf.antcontrib.cpptasks.OutputTypeEnum +
Constructor + + Set by default to "executable" +
+
+

+P

+
+
parse(Reader) - +Method in class net.sf.antcontrib.cpptasks.parser.AbstractParser +
  +
parse(Reader) - +Method in class net.sf.antcontrib.cpptasks.parser.CParser +
  +
parse(Reader) - +Method in class net.sf.antcontrib.cpptasks.parser.FortranParser +
Collects all included files from the content of the reader. +
parse(Reader) - +Method in interface net.sf.antcontrib.cpptasks.parser.Parser +
  +
parse(Reader) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +
Parse input file. +
parse(Reader) - +Method in class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser +
Parses source file for dependencies. +
parseIncludes(CCTask, File, File[], File[], File[], File, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
Returns dependency info for the specified source file +
parseIncludes(CCTask, File, File) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
parseIncludes(CCTask, File, File) - +Method in interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration +
  +
parseIncludes(CCTask, CompilerConfiguration, File) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
  +
parsePath(Reader) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandCfgParser +
  +
parsePath(String, String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Parse a string containing directories into an File[] +
Parser - Interface in net.sf.antcontrib.cpptasks.parser
A parser that extracts #include statements from a Reader.
parseSpecs(String[], String, String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +
Parses the results of the specs file for a specific processor and + options +
parseSpecs(String[], String, String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +
Parses the results of the specs file for a specific processor and + options +
parseSpecs(String[], String, String[]) - +Static method in class net.sf.antcontrib.cpptasks.gcc.GccProcessor +
Parses the results of the specs file for a specific processor and + options +
parseVersion(String) - +Static method in class net.sf.antcontrib.cpptasks.platforms.WindowsPlatform +
Parse version string into array of four short values. +
PostE - Class in net.sf.antcontrib.cpptasks.parser
 
PostE(CParser, AbstractParserState, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.PostE +
  +
PrecompileDef - Class in net.sf.antcontrib.cpptasks
An element that specifies a prototype file and rules for source files that + should not use precompiled headers
PrecompileDef() - +Constructor for class net.sf.antcontrib.cpptasks.PrecompileDef +
Constructor +
PrecompileExceptDef - Class in net.sf.antcontrib.cpptasks
Specifies files that should not be compiled using precompiled headers.
PrecompileExceptDef(PrecompileDef) - +Constructor for class net.sf.antcontrib.cpptasks.PrecompileExceptDef +
Constructor +
PrecompilingCommandLineCCompiler - Class in net.sf.antcontrib.cpptasks.compiler
A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCCompiler(String, String, String[], String[], String, boolean, PrecompilingCommandLineCCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler +
  +
PrecompilingCommandLineCompiler - Class in net.sf.antcontrib.cpptasks.compiler
A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompiler(String, String, String[], String[], String, boolean, PrecompilingCommandLineCompiler, boolean, Environment) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler +
  +
PrecompilingCompiler - Interface in net.sf.antcontrib.cpptasks.compiler
A compiler that can utilize precompilation of header files
prepareArguments(CCTask, String, String, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
Prepares argument list for exec command. +
prepareArguments(CCTask, String, String, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
Prepares argument list for exec command. +
prepareArguments(CCTask, String, String, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Prepares argument list for exec command. +
prepareArguments(CCTask, String, String, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker +
Prepares argument list for exec command. +
prepareArguments(CCTask, String, String, String[], CommandLineLinkerConfiguration) - +Method in class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian +
Prepares argument list for exec command. +
prepareFilename(StringBuffer, String, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Processes filename into argument form +
prepareResponseFile(File, String[]) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
Prepares argument list to execute the linker using a response file. +
prepareResponseFile(File, String[]) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLinker +
Prepares argument list to execute the linker using a response file. +
prepareResponseFile(File, String[], String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
Prepares argument list to execute the linker using a response file. +
prepareResponseFile(File, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
Prepares argument list to execute the linker using a + response file. +
preview(DependencyInfo, DependencyInfo[]) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor +
Previews all the children of this source file. +
preview(DependencyInfo, DependencyInfo[]) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +
  +
Processor - Interface in net.sf.antcontrib.cpptasks.compiler
A processor.
ProcessorConfiguration - Interface in net.sf.antcontrib.cpptasks.compiler
A configuration for a C++ compiler, linker or other processor
ProcessorDef - Class in net.sf.antcontrib.cpptasks
An abstract compiler/linker definition.
ProcessorDef() - +Constructor for class net.sf.antcontrib.cpptasks.ProcessorDef +
Constructor +
ProcessorEnumValue - Class in net.sf.antcontrib.cpptasks
One entry in the arrays used by the CompilerEnum and LinkerEnum classes.
ProcessorEnumValue(String, Processor) - +Constructor for class net.sf.antcontrib.cpptasks.ProcessorEnumValue +
  +
ProcessorParam - Class in net.sf.antcontrib.cpptasks
Place class description here.
ProcessorParam() - +Constructor for class net.sf.antcontrib.cpptasks.ProcessorParam +
  +
progress(String[]) - +Method in class net.sf.antcontrib.cpptasks.CCTaskProgressMonitor +
  +
progress(String[]) - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProgressMonitor +
Called to notify monitor of progress +
ProgressMonitor - Interface in net.sf.antcontrib.cpptasks.compiler
Interface to receive notification of compile progress
ProjectDef - Class in net.sf.antcontrib.cpptasks.ide
Requests the creation of an IDE project file.
ProjectDef() - +Constructor for class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Constructor. +
ProjectWriter - Interface in net.sf.antcontrib.cpptasks.ide
Project writer interface.
ProjectWriterEnum - Class in net.sf.antcontrib.cpptasks.ide
Enumeration of supported project file generators.
ProjectWriterEnum() - +Constructor for class net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum +
  +
PropertyListSerialization - Class in net.sf.antcontrib.cpptasks.apple
Static class that provides methods to serialize + a Map to a Cocoa XML Property List.
+
+

+Q

+
+
QuoteBranchState - Class in net.sf.antcontrib.cpptasks.borland
 
QuoteBranchState(AbstractParser, AbstractParserState, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.borland.QuoteBranchState +
  +
quoteFile(StringBuffer, String) - +Static method in class net.sf.antcontrib.cpptasks.borland.BorlandProcessor +
  +
quoteFilename(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian +
Encloses problematic file names within quotes. +
quoteFilename(StringBuffer, String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
+
+

+R

+
+
resolveInclude(String, File[], Vector) - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler +
  +
run(String[]) - +Static method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Runs an executable and captures the output in a String array +
runCommand(CCTask, File, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler +
runCommand(CCTask, File, String[]) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler +
runCommand(CCTask, File, String[], boolean, Environment) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler +
runCommand(CCTask, File, String[]) - +Method in class net.sf.antcontrib.cpptasks.os390.OS390Linker +
  +
runCommand(CCTask, File, String[]) - +Method in class net.sf.antcontrib.cpptasks.os400.IccLinker +
  +
RuntimeType - Class in net.sf.antcontrib.cpptasks
Enumerated attribute with the values "dynamic" and "static",
RuntimeType() - +Constructor for class net.sf.antcontrib.cpptasks.RuntimeType +
  +
+
+

+S

+
+
sameList(Object[], Object[]) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Compares the contents of 2 arrays for equaliy. +
sameList(Vector, Object[]) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Compares the contents of an array and a Vector for equality. +
sameSet(Object[], Vector) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Compares the contents of an array and a Vector for set equality. +
serialize(Map, List, File) - +Static method in class net.sf.antcontrib.cpptasks.apple.PropertyListSerialization +
Serializes a property list into a Cocoa XML Property List document. +
setArch(ArchEnum) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets cpu architecture, compiler may use cpu specific instructions. +
setBase(FlexLong) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Sets the base address. +
setCaseSensitive(boolean) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Sets case sensitivity of the file system. +
setClassname(String) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the default compiler adapter. +
setClassname(String) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Sets the default compiler adapter. +
setClassname(String) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Class name for a user-supplied project writer. +
setClassname(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Sets the class name for the adapter. +
setCommand(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler +
  +
setCommand(String) - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker +
  +
setCompanyname(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets company name. +
setCompatibilityversion(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets compatibility version. +
setCompositeLastModified(long) - +Method in class net.sf.antcontrib.cpptasks.DependencyInfo +
  +
setCpu(CPUEnum) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets preferred cpu, but does not use cpu specific instructions. +
setDataset(String) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the dataset for OS/390 builds. +
setDataset(String) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Sets the dataset. +
setDebug(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enables or disables generation of debug info. +
setDebug(boolean) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
If set true, all targets will be built for debugging. +
setDefine(CUtil.StringArrayBuilder) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
A comma-separated list of preprocessor macros to define. +
setDependencyDepth(int) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Deprecated. +
setDepends(String) - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
setDescription(String) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Sets a description of the current data type. +
setDescription(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Sets a description of the current data type. +
setDescription(String) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets a description of the current data type. +
setDescription(String) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Sets a description of the current data type. +
setDir(File) - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Set the working directory of the process. +
setDir(File) - +Method in class net.sf.antcontrib.cpptasks.PrecompileExceptDef +
Sets the base-directory +
setDir(File) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Library directory. +
setEntry(String) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Sets the starting address. +
setExceptions(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enables generation of exception handling code +
setExceptions(boolean) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Enables or disables exception support. +
setExecutable(String) - +Method in class net.sf.antcontrib.cpptasks.ide.DebugDef +
Set the name of the executable program. +
setExtends(Reference) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Specifies that this element extends the element with id attribute with a + matching value. +
setExtends(Reference) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Specifies that this element extends the element with id attribute with a + matching value. +
setFailonerror(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Indicates whether the build will continue + even if there are compilation errors; defaults to true. +
setFailonerror(boolean) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Sets whether a failure to write the project file should cause the + task to fail. +
setFile(File) - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
setFilecomments(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets comments. +
setFiledescription(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets file description. +
setFileversion(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets file version. +
setFixed(boolean) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
If true, marks the file to be loaded only at its preferred address. +
setHosts(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets hosts. +
setHosts(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Sets hosts for which this mapping is valid. +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets an id that can be used to reference this element. +
setID(String) - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Sets an id that can be used to reference this element. +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Sets an id that can be used to reference this element. +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets an id that can be used to reference this element. +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Sets an id that can be used to reference this element. +
setId(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets an id that can be used to reference this element. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Set the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalPath +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Sets the property name for the 'if' condition. +
setIf(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets the property name for the 'if' condition. +
setIncludes(String) - +Method in class net.sf.antcontrib.cpptasks.PrecompileExceptDef +
Comma or space separated list of file patterns that should not be + compiled using precompiled headers. +
setIncremental(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enables or disables incremental linking. +
setIncremental(boolean) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
If true, allows incremental linking. +
setInherit(boolean) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
If inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited. +
setInternalname(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets internal name. +
setLanguage(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets language. +
setLegalcopyright(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets legal copyright. +
setLegaltrademarks(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets legal trademark. +
setLibs(CUtil.StringArrayBuilder) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Comma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a". +
setLibtool(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Set use of libtool. +
setLibtool(boolean) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Set use of libtool. +
setLink(OutputTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Deprecated.   +
setLocal(File) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Sets local directory for base of mapping. +
setLocation(CommandLineArgument.LocationEnum) - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
Specifies relative location of argument on command line. +
setMap(boolean) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
If set to true, a map file will be produced. +
setMultithreaded(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enables or disables generation of multithreaded code +
setMultithreaded(boolean) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Enables or disables generation of multithreaded code. +
setName(CompilerEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets type of the default compiler and linker. +
setName(CompilerEnum) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Sets compiler type. +
setName(String) - +Method in class net.sf.antcontrib.cpptasks.ide.DependencyDef +
  +
setName(String) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Set name. +
setName(LinkerEnum) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Sets linker type. +
setName(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
Specifies relative location of argument on command line. +
setName(String) - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Set the name attribute +
setNewenvironment(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Do not propagate old environment when new environment variables are + specified. +
setNewenvironment(boolean) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Do not propagate old environment when new environment variables are + specified. +
setObjdir(File) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the destination directory for object files. +
setOptimize(OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets optimization. +
setOptimize(OptimizationEnum) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Sets optimization level. +
setOriginalfilename(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets original name. +
setOsfamily(OSFamilyEnum) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Sets operating system family. +
setOutfile(File) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the output file name. +
setOutfile(File) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Sets the name for the generated project file. +
setOutputFileProperty(String) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Specifies the name of a property to set with the physical filename that + is produced by the linker +
setOutputType(OutputTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Sets the output type (execuable, shared, etc). +
setOuttype(OutputTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the output file type. +
setOverwrite(boolean) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Sets whether an existing project file should be overwritten, + default is true. +
setPatched(boolean) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets prerelease. +
setPrerelease(boolean) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets prerelease. +
setPrivatebuild(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets private build. +
setProcessErrorStream(InputStream) - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Install a handler for the error stream of the subprocess. +
setProcessInputStream(OutputStream) - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Install a handler for the input stream of the subprocess. +
setProcessor(Processor) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
  +
setProcessor(Processor) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
setProcessor(Processor) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Sets the processor +
setProcessOutputStream(InputStream) - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Install a handler for the output stream of the subprocess. +
setProductname(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets product name. +
setProductversion(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets product version. +
setProject(Project) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the project. +
setProject(Project) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
setProjectsOnly(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
  +
setProtocol(DistributerProtocolEnum) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets protocol. +
setPrototype(File) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Sets file to precompile. +
setQObject(boolean) - +Method in class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +
Called FinalTState to set that Q_OBJECT was found. +
setRebuild(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
If set to true, all files will be rebuilt. +
setRebuild(boolean) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
If set true, all targets will be unconditionally rebuilt. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRefid(Reference) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +
setRelentless(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
If set to true, compilation errors will not stop the task until all + files have been attempted. +
setRemote(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Sets remote name for directory. +
setRemoteSeparator(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Sets the separator character (/ or \) for the remote system. +
setRtti(boolean) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enables run-time type information. +
setRtti(boolean) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Enables or disables run-time type information. +
setRuntime(RuntimeType) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the type of runtime library, possible values "dynamic", "static". +
setSpecialbuild(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Sets private build. +
setStack(FlexInteger) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
Sets stack size in bytes. +
setStaticRuntime(boolean) - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Requests use of a static runtime library. +
setSubsystem(SubsystemEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Sets the nature of the subsystem under which that the program will + execute. +
setSubsystem(SubsystemEnum) - +Method in class net.sf.antcontrib.cpptasks.compiler.LinkType +
Sets the subsystem (gui, console, etc). +
setTcpcork(int) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets TCP_CORK value. +
setType(ProjectWriterEnum) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Set project type. +
setType(LibraryTypeEnum) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Sets the preferred library type. +
setUndefine(CUtil.StringArrayBuilder) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
A comma-separated list of preprocessor macros to undefine. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.ide.ProjectDef +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.PrecompileDef +
Set the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.TargetDef +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalFileSet +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.ConditionalPath +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.DefineSet +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.types.UndefineArgument +
Set the property name for the 'unless' condition. +
setUnless(String) - +Method in class net.sf.antcontrib.cpptasks.VersionInfo +
Set the property name for the 'unless' condition. +
setUser(String) - +Method in class net.sf.antcontrib.cpptasks.DistributerDef +
Sets remote user name. +
setValue(String) - +Method in class net.sf.antcontrib.cpptasks.ProcessorParam +
Specifies the string that should appear on the command line. +
setValue(String) - +Method in class net.sf.antcontrib.cpptasks.types.CommandLineArgument +
Specifies the string that should appear on the command line. +
setValue(String) - +Method in class net.sf.antcontrib.cpptasks.types.DefineArgument +
Set the value attribute +
setWarnings(WarningLevelEnum) - +Method in class net.sf.antcontrib.cpptasks.CCTask +
Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +
setWarnings(WarningLevelEnum) - +Method in class net.sf.antcontrib.cpptasks.CompilerDef +
Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +
SourceHistory - Class in net.sf.antcontrib.cpptasks
The history of a source file used to build a target
SourceHistory(String, long) - +Constructor for class net.sf.antcontrib.cpptasks.SourceHistory +
Constructor +
stackExhausted() - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor +
Called if the dependency depth exhausted the stack. +
stackExhausted() - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +
  +
start(ProcessorConfiguration) - +Method in class net.sf.antcontrib.cpptasks.CCTaskProgressMonitor +
  +
start() - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Start handling of the streams. +
start(ProcessorConfiguration) - +Method in interface net.sf.antcontrib.cpptasks.compiler.ProgressMonitor +
  +
stop() - +Method in class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +
Stop handling of the streams - will not be restarted. +
SubsystemEnum - Class in net.sf.antcontrib.cpptasks
Enumeration of supported subsystems
SubsystemEnum() - +Constructor for class net.sf.antcontrib.cpptasks.SubsystemEnum +
  +
SystemIncludePath - Class in net.sf.antcontrib.cpptasks.types
A system include path.
SystemIncludePath(Project) - +Constructor for class net.sf.antcontrib.cpptasks.types.SystemIncludePath +
  +
SystemIncludePath(Project, String) - +Constructor for class net.sf.antcontrib.cpptasks.types.SystemIncludePath +
  +
SystemLibrarySet - Class in net.sf.antcontrib.cpptasks.types
A set of system library names.
SystemLibrarySet() - +Constructor for class net.sf.antcontrib.cpptasks.types.SystemLibrarySet +
  +
+
+

+T

+
+
TargetDef - Class in net.sf.antcontrib.cpptasks
Information on the execution platforms for the generated code.
TargetDef() - +Constructor for class net.sf.antcontrib.cpptasks.TargetDef +
Constructor. +
TargetHistory - Class in net.sf.antcontrib.cpptasks
A description of a file built or to be built
TargetHistory(String, String, long, SourceHistory[]) - +Constructor for class net.sf.antcontrib.cpptasks.TargetHistory +
Constructor from build step +
TargetHistoryTable - Class in net.sf.antcontrib.cpptasks
A history of the compiler and linker settings used to build the files in the + same directory as the history.
TargetHistoryTable(CCTask, File) - +Constructor for class net.sf.antcontrib.cpptasks.TargetHistoryTable +
Creates a target history table from history.xml in the output directory, + if it exists. +
TargetInfo - Class in net.sf.antcontrib.cpptasks
A description of a file built or to be built
TargetInfo(ProcessorConfiguration, File[], File[], File, boolean) - +Constructor for class net.sf.antcontrib.cpptasks.TargetInfo +
  +
TargetMatcher - Class in net.sf.antcontrib.cpptasks
This class matches each visited file with an appropriate compiler
TargetMatcher(CCTask, File, ProcessorConfiguration[], LinkerConfiguration, Vector, Hashtable, VersionInfo) - +Constructor for class net.sf.antcontrib.cpptasks.TargetMatcher +
  +
toArray(Vector) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Converts a vector to a string array. +
toRemote(String, File) - +Method in class net.sf.antcontrib.cpptasks.DistributerMap +
Converts the local file name to the remote name for the same file. +
toString() - +Method in class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor +
  +
toString() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration +
  +
toString() - +Method in class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration +
  +
toString() - +Method in class net.sf.antcontrib.cpptasks.ide.CommentDef +
  +
toString() - +Method in class net.sf.antcontrib.cpptasks.types.FlexLong +
Overridden method to return the decimal value for display +
toUnixPath(String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
  +
toWindowsPath(String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
  +
+
+

+U

+
+
UndefineArgument - Class in net.sf.antcontrib.cpptasks.types
Preprocessor macro undefinition.
UndefineArgument() - +Constructor for class net.sf.antcontrib.cpptasks.types.UndefineArgument +
  +
UndefineArgument(boolean) - +Constructor for class net.sf.antcontrib.cpptasks.types.UndefineArgument +
  +
update(ProcessorConfiguration, String[], VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
update(TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.TargetHistoryTable +
  +
UserInterfaceCompiler - Class in net.sf.antcontrib.cpptasks.trolltech
Adapter for the Trolltech Qt UIC Compiler.
UserInterfaceParser - Class in net.sf.antcontrib.cpptasks.trolltech
Dependency scanner for Trolltech Qt User Interface definition files.
UserInterfaceParser() - +Constructor for class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser +
Constructor. +
+
+

+V

+
+
VersionInfo - Class in net.sf.antcontrib.cpptasks
Version Information.
VersionInfo() - +Constructor for class net.sf.antcontrib.cpptasks.VersionInfo +
Constructor. +
visit(DependencyInfo) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor +
Visits the dependency info. +
visit(DependencyInfo) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +
  +
visit(File, String) - +Method in interface net.sf.antcontrib.cpptasks.FileVisitor +
  +
visit(File, String) - +Method in class net.sf.antcontrib.cpptasks.ObjectFileCollector +
  +
visit(File, String) - +Method in class net.sf.antcontrib.cpptasks.TargetMatcher +
  +
visitFiles(FileVisitor) - +Method in class net.sf.antcontrib.cpptasks.ProcessorDef +
This method calls the FileVistor's visit function for every file in the + processors definition +
visitLibraries(Project, Linker, File[], FileVisitor) - +Method in class net.sf.antcontrib.cpptasks.types.LibrarySet +
  +
visitSystemLibraries(Linker, FileVisitor) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
visitUserLibraries(Linker, FileVisitor) - +Method in class net.sf.antcontrib.cpptasks.LinkerDef +
  +
VisualAgeCCompiler - Class in net.sf.antcontrib.cpptasks.ibm
Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
VisualAgeLinker - Class in net.sf.antcontrib.cpptasks.ibm
Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
VisualStudioNETProjectWriter - Class in net.sf.antcontrib.cpptasks.devstudio
Writes a Visual Studio.NET project file.
VisualStudioNETProjectWriter(String, String, String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter +
Constructor. +
+
+

+W

+
+
walkDependencies(CCTask, DependencyInfo, CompilerConfiguration, DependencyInfo[], DependencyTable.DependencyVisitor) - +Method in class net.sf.antcontrib.cpptasks.DependencyTable +
  +
WarningLevelEnum - Class in net.sf.antcontrib.cpptasks
Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
WarningLevelEnum() - +Constructor for class net.sf.antcontrib.cpptasks.WarningLevelEnum +
Constructor. +
WhitespaceOrCaseInsensitiveLetterState - Class in net.sf.antcontrib.cpptasks.parser
This parser state checks consumed characters against a specific character + (case insensitive) or whitespace.
WhitespaceOrCaseInsensitiveLetterState(AbstractParser, char, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState +
Constructor. +
WhitespaceOrLetterState - Class in net.sf.antcontrib.cpptasks.parser
This parser state checks consumed characters against a specific character or + whitespace.
WhitespaceOrLetterState(AbstractParser, char, AbstractParserState) - +Constructor for class net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState +
Constructor. +
WindowsPlatform - Class in net.sf.antcontrib.cpptasks.platforms
Platform specific behavior for Microsoft Windows.
WindresResourceCompiler - Class in net.sf.antcontrib.cpptasks.gcc
Adapter for the GNU windres resource compiler.
writeProject(File, CCTask, ProjectDef, List, Hashtable, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter +
Writes a project definition file. +
writeProject(File, CCTask, ProjectDef, List, Hashtable, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter +
Writes a project definition file. +
writeProject(File, CCTask, ProjectDef, List, Hashtable, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter +
Writes a project definition file. +
writeProject(File, CCTask, ProjectDef, List, Hashtable, TargetInfo) - +Method in class net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter +
Writes a project definition file. +
writeProject(File, CCTask, ProjectDef, List, Hashtable, TargetInfo) - +Method in interface net.sf.antcontrib.cpptasks.ide.ProjectWriter +
Write project definition file. +
writeResource(Writer, VersionInfo, File, boolean, LinkType) - +Static method in class net.sf.antcontrib.cpptasks.platforms.WindowsPlatform +
Writes windows resource. +
+
+

+X

+
+
XcodeProjectWriter - Class in net.sf.antcontrib.cpptasks.apple
Writes a Apple Xcode 2.1+ project directory.
XcodeProjectWriter() - +Constructor for class net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter +
Constructor. +
xmlAttribEncode(String) - +Static method in class net.sf.antcontrib.cpptasks.CUtil +
Replaces any embedded quotes in the string so that the value can be + placed in an attribute in an XML file +
XpidlCompiler - Class in net.sf.antcontrib.cpptasks.mozilla
Adapter for the Mozilla Xpidl Compiler.
+
+A B C D E F G H I L M N O P Q R S T U V W X + + + + +
+ + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/index.html b/site/apidocs/index.html new file mode 100644 index 0000000..9f8dafa --- /dev/null +++ b/site/apidocs/index.html @@ -0,0 +1,40 @@ + + + + + + + +cpptasks 1.0b5 API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/AboutCCTask.html b/site/apidocs/net/sf/antcontrib/cpptasks/AboutCCTask.html new file mode 100644 index 0000000..bfbb52a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/AboutCCTask.html @@ -0,0 +1,261 @@ + + + + + + + +AboutCCTask (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class AboutCCTask

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.AboutCCTask
+
+
+
+
public class AboutCCTask
extends java.lang.Object
+ + +

+The equivalent of a Help About + run "java -jar cpptasks.jar" to read +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AboutCCTask() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static voidmain(java.lang.String[] args) + +
+          display identification message and exit
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AboutCCTask

+
+public AboutCCTask()
+
+
+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(java.lang.String[] args)
+
+
display identification message and exit +

+

+
Parameters:
args - ignored
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ArchEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/ArchEnum.html new file mode 100644 index 0000000..e98deb9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ArchEnum.html @@ -0,0 +1,297 @@ + + + + + + + +ArchEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class ArchEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.ArchEnum
+
+
+
+
public final class ArchEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of cpu architecture types. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
ArchEnum() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ArchEnum

+
+public ArchEnum()
+
+
Constructor. + + Set by default to "pentium3" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CCTask.html b/site/apidocs/net/sf/antcontrib/cpptasks/CCTask.html new file mode 100644 index 0000000..05992a7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CCTask.html @@ -0,0 +1,1774 @@ + + + + + + + +CCTask (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CCTask

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.Task
+          extended by net.sf.antcontrib.cpptasks.CCTask
+
+
+
+
public class CCTask
extends org.apache.tools.ant.Task
+ + +

+Compile and link task. + +

+ This task can compile various source languages and produce executables, + shared libraries (aka DLL's) and static libraries. Compiler adaptors are + currently available for several C/C++ compilers, FORTRAN, MIDL and Windows + Resource files. +

+ +

+ Copyright (c) 2001-2008, The Ant-Contrib project. +

+ +

+ Licensed under the Apache Software License 2.0, + http://www.apache.org/licenses/LICENSE-2.0. +

+ +

+ For use with Apache Ant 1.5 or later. This software is not a product of the + of the Apache Software Foundation and no endorsement is implied. +

+ +

+ THIS SOFTWARE IS PROVIDED 'AS-IS', See + http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers. +

+ + To use: +
    +
  1. + Place cpptasks.jar into Ant's classpath by placing it in Ant's lib + directory, adding it to the CLASSPATH environment variable or by using the + -lib command line option. +
  2. +
  3. + Add type and task definitions to the build file: +
      +
    • + Ant 1.6 or later: +
        +
      • Add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to + <project> element. +
      • +
      • + Add <cpptasks:cc/>, <cpptasks:compiler/> and + <cpptasks:linker/> elements to the project. +
      • +
      +
    • +
    • + Ant 1.5 or later: +
        +
      • Add <taskdef resource="cpptasks.tasks"/> and + <typedef resource="cpptasks.types"/> to body of <project> + element. +
      • +
      • + Add <cc/>, <compiler/> and <linker/> elements to the + project. +
      • +
      +
    • +
    +
  4. +
  5. + Set the path and environment variables to be able to run compiler from + command line. +
  6. +
  7. + Build the project. +
  8. +
+

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  booleanfailOnError + +
+          If true, stop build on compile failure.
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
CCTask() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddConfiguredCompiler(CompilerDef compiler) + +
+          Adds a compiler definition or reference.
+ voidaddConfiguredCompilerArg(CompilerArgument arg) + +
+          Adds a compiler command-line arg.
+ voidaddConfiguredDefineset(DefineSet defs) + +
+          Adds a defineset.
+ voidaddConfiguredDistributer(DistributerDef distributer) + +
+          Adds a distributer definition or reference (Non-functional prototype).
+ voidaddConfiguredLinker(LinkerDef linker) + +
+          Adds a linker definition.
+ voidaddConfiguredLinkerArg(LinkerArgument arg) + +
+          Adds a linker command-line arg.
+ voidaddConfiguredTarget(TargetDef target) + +
+          Adds a target definition or reference (Non-functional prototype).
+ voidaddConfiguredVersioninfo(VersionInfo newVersionInfo) + +
+          Adds desriptive version information to be included in the + generated file.
+ voidaddEnv(org.apache.tools.ant.types.Environment.Variable var) + +
+          Add an environment variable to the launched process.
+ voidaddFileset(ConditionalFileSet srcSet) + +
+          Adds a source file set.
+ voidaddLibset(LibrarySet libset) + +
+          Adds a library set.
+ voidaddProject(ProjectDef projectDef) + +
+          Specifies the generation of IDE project file.
+ voidaddSyslibset(SystemLibrarySet libset) + +
+          Adds a system library set.
+protected  intcheckForChangedIncludeFiles(java.util.Hashtable targets) + +
+          Checks all targets that are not forced to be rebuilt or are missing + object files to be checked for modified include files
+protected  LinkerConfigurationcollectExplicitObjectFiles(java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + VersionInfo versionInfo) + +
+           
+ IncludePathcreateIncludePath() + +
+          Adds an include path.
+ PrecompileDefcreatePrecompile() + +
+          Specifies precompilation prototype file and exclusions.
+ SystemIncludePathcreateSysIncludePath() + +
+          Adds a system include path.
+ voidexecute() + +
+          Executes the task.
+ java.lang.StringgetDataset() + +
+          Gets the dataset.
+ booleangetDebug() + +
+          Gets debug state.
+ booleangetFailonerror() + +
+          Gets the failonerror flag.
+protected  TargetHistoryTablegetLinkHistory(TargetHistoryTable objHistory) + +
+           
+protected  TargetInfogetLinkTarget(LinkerConfiguration linkerConfig, + java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + java.util.Hashtable compileTargets, + VersionInfo versionInfo) + +
+           
+ java.io.FilegetObjdir() + +
+           
+ java.io.FilegetOutfile() + +
+           
+ java.lang.StringgetOuttype() + +
+          Gets output type.
+ java.lang.StringgetSubsystem() + +
+          Gets subsystem name.
+ TargetDefgetTargetPlatform() + +
+           
+static java.util.HashtablegetTargetsToBuildByConfiguration(java.util.Hashtable targets) + +
+          Builds a Hashtable to targets needing to be rebuilt keyed by compiler + configuration
+ voidsetClassname(java.lang.String classname) + +
+          Sets the default compiler adapter.
+ voidsetDataset(java.lang.String dataset) + +
+          Sets the dataset for OS/390 builds.
+ voidsetDebug(boolean debug) + +
+          Enables or disables generation of debug info.
+ voidsetDependencyDepth(int depth) + +
+          Deprecated.
+ voidsetExceptions(boolean exceptions) + +
+          Enables generation of exception handling code
+ voidsetFailonerror(boolean fail) + +
+          Indicates whether the build will continue + even if there are compilation errors; defaults to true.
+ voidsetIncremental(boolean incremental) + +
+          Enables or disables incremental linking.
+ voidsetLibtool(boolean libtool) + +
+          Set use of libtool.
+ voidsetLink(OutputTypeEnum outputType) + +
+          Deprecated.  
+ voidsetMultithreaded(boolean multi) + +
+          Enables or disables generation of multithreaded code
+ voidsetName(CompilerEnum name) + +
+          Sets type of the default compiler and linker.
+ voidsetNewenvironment(boolean newenv) + +
+          Do not propagate old environment when new environment variables are + specified.
+ voidsetObjdir(java.io.File dir) + +
+          Sets the destination directory for object files.
+ voidsetOptimize(OptimizationEnum optimization) + +
+          Sets optimization.
+ voidsetOutfile(java.io.File outfile) + +
+          Sets the output file name.
+ voidsetOutputFileProperty(java.lang.String outputFileProperty) + +
+          Specifies the name of a property to set with the physical filename that + is produced by the linker
+ voidsetOuttype(OutputTypeEnum outputType) + +
+          Sets the output file type.
+ voidsetProject(org.apache.tools.ant.Project project) + +
+          Sets the project.
+ voidsetProjectsOnly(boolean value) + +
+           
+ voidsetRebuild(boolean rebuildAll) + +
+          If set to true, all files will be rebuilt.
+ voidsetRelentless(boolean relentless) + +
+          If set to true, compilation errors will not stop the task until all + files have been attempted.
+ voidsetRtti(boolean rtti) + +
+          Enables run-time type information.
+ voidsetRuntime(RuntimeType rtlType) + +
+          Sets the type of runtime library, possible values "dynamic", "static".
+ voidsetSubsystem(SubsystemEnum subsystem) + +
+          Sets the nature of the subsystem under which that the program will + execute.
+ voidsetWarnings(WarningLevelEnum level) + +
+          Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+failOnError

+
+protected boolean failOnError
+
+
If true, stop build on compile failure. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+CCTask

+
+public CCTask()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getTargetsToBuildByConfiguration

+
+public static java.util.Hashtable getTargetsToBuildByConfiguration(java.util.Hashtable targets)
+
+
Builds a Hashtable to targets needing to be rebuilt keyed by compiler + configuration +

+

+
+
+
+
+ +

+addConfiguredCompiler

+
+public void addConfiguredCompiler(CompilerDef compiler)
+
+
Adds a compiler definition or reference. +

+

+
Parameters:
compiler - compiler +
Throws: +
java.lang.NullPointerException - if compiler is null
+
+
+
+ +

+addConfiguredCompilerArg

+
+public void addConfiguredCompilerArg(CompilerArgument arg)
+
+
Adds a compiler command-line arg. Argument will be inherited by all + nested compiler elements that do not have inherit="false". +

+

+
+
+
+
+ +

+addConfiguredDefineset

+
+public void addConfiguredDefineset(DefineSet defs)
+
+
Adds a defineset. Will be inherited by all compiler elements that do not + have inherit="false". +

+

+
Parameters:
defs - Define set
+
+
+
+ +

+addConfiguredLinker

+
+public void addConfiguredLinker(LinkerDef linker)
+
+
Adds a linker definition. The first linker that is not disqualified by + its "if" and "unless" attributes will perform the link. If no child + linker element is active, the linker implied by the cc elements name or + classname attribute will be used. +

+

+
Parameters:
linker - linker +
Throws: +
java.lang.NullPointerException - if linker is null
+
+
+
+ +

+addConfiguredLinkerArg

+
+public void addConfiguredLinkerArg(LinkerArgument arg)
+
+
Adds a linker command-line arg. Argument will be inherited by all nested + linker elements that do not have inherit="false". +

+

+
+
+
+
+ +

+addEnv

+
+public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
+
+
Add an environment variable to the launched process. +

+

+
+
+
+
+ +

+addFileset

+
+public void addFileset(ConditionalFileSet srcSet)
+
+
Adds a source file set. + + Files in these filesets will be auctioned to the available compiler + configurations, with the default compiler implied by the cc element + bidding last. If no compiler is interested in the file, it will be + passed to the linker. + + To have a file be processed by a particular compiler configuration, add + a fileset to the corresponding compiler element. +

+

+
+
+
+
+ +

+addLibset

+
+public void addLibset(LibrarySet libset)
+
+
Adds a library set. + + Library sets will be inherited by all linker elements that do not have + inherit="false". +

+

+
Parameters:
libset - library set +
Throws: +
java.lang.NullPointerException - if libset is null.
+
+
+
+ +

+addSyslibset

+
+public void addSyslibset(SystemLibrarySet libset)
+
+
Adds a system library set. Timestamps and locations of system library + sets are not used in dependency analysis. + + Essential libraries (such as C Runtime libraries) should not be + specified since the task will attempt to identify the correct libraries + based on the multithread, debug and runtime attributes. + + System library sets will be inherited by all linker elements that do not + have inherit="false". +

+

+
Parameters:
libset - library set +
Throws: +
java.lang.NullPointerException - if libset is null.
+
+
+
+ +

+addProject

+
+public void addProject(ProjectDef projectDef)
+
+
Specifies the generation of IDE project file. Experimental. +

+

+
Parameters:
projectDef - project file generation specification
+
+
+
+ +

+setProjectsOnly

+
+public void setProjectsOnly(boolean value)
+
+
+
+
+
+
+ +

+checkForChangedIncludeFiles

+
+protected int checkForChangedIncludeFiles(java.util.Hashtable targets)
+
+
Checks all targets that are not forced to be rebuilt or are missing + object files to be checked for modified include files +

+

+ +
Returns:
total number of targets to be rebuilt
+
+
+
+ +

+collectExplicitObjectFiles

+
+protected LinkerConfiguration collectExplicitObjectFiles(java.util.Vector objectFiles,
+                                                         java.util.Vector sysObjectFiles,
+                                                         VersionInfo versionInfo)
+
+
+
+
+
+
+ +

+createIncludePath

+
+public IncludePath createIncludePath()
+
+
Adds an include path. + + Include paths will be inherited by nested compiler elements that do not + have inherit="false". +

+

+
+
+
+
+ +

+createPrecompile

+
+public PrecompileDef createPrecompile()
+                               throws org.apache.tools.ant.BuildException
+
+
Specifies precompilation prototype file and exclusions. Inherited by all + compilers that do not have inherit="false". +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createSysIncludePath

+
+public SystemIncludePath createSysIncludePath()
+
+
Adds a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files. + + System include paths will be inherited by nested compiler elements that + do not have inherit="false". +

+

+
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
Executes the task. Compiles the given files. +

+

+
Overrides:
execute in class org.apache.tools.ant.Task
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException - if someting goes wrong with the build
+
+
+
+ +

+getDataset

+
+public java.lang.String getDataset()
+
+
Gets the dataset. +

+

+ +
Returns:
Returns a String
+
+
+
+ +

+getLinkHistory

+
+protected TargetHistoryTable getLinkHistory(TargetHistoryTable objHistory)
+
+
+
+
+
+
+ +

+getLinkTarget

+
+protected TargetInfo getLinkTarget(LinkerConfiguration linkerConfig,
+                                   java.util.Vector objectFiles,
+                                   java.util.Vector sysObjectFiles,
+                                   java.util.Hashtable compileTargets,
+                                   VersionInfo versionInfo)
+
+
+
+
+
+
+ +

+getObjdir

+
+public java.io.File getObjdir()
+
+
+
+
+
+
+ +

+getOutfile

+
+public java.io.File getOutfile()
+
+
+
+
+
+
+ +

+getTargetPlatform

+
+public TargetDef getTargetPlatform()
+
+
+
+
+
+
+ +

+setClassname

+
+public void setClassname(java.lang.String classname)
+
+
Sets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler. +

+

+
Parameters:
classname - fully qualified classname which implements CompilerAdapter
+
+
+
+ +

+setDataset

+
+public void setDataset(java.lang.String dataset)
+
+
Sets the dataset for OS/390 builds. +

+

+
Parameters:
dataset - The dataset to set
+
+
+
+ +

+setDebug

+
+public void setDebug(boolean debug)
+
+
Enables or disables generation of debug info. +

+

+
+
+
+
+ +

+getDebug

+
+public boolean getDebug()
+
+
Gets debug state. +

+

+ +
Returns:
true if building for debugging
+
+
+
+ +

+setDependencyDepth

+
+public void setDependencyDepth(int depth)
+
+
Deprecated. + + Controls the depth of the dependency evaluation. Used to do a quick + check of changes before a full build. + + Any negative value which will perform full dependency checking. Positive + values will truncate dependency checking. A value of 0 will cause only + those files that changed to be recompiled, a value of 1 which cause + files that changed or that explicitly include a file that changed to be + recompiled. + + Any non-negative value will cause a BuildException to be thrown before + attempting a link or completing the task. +

+

+
+
+
+
+ +

+setExceptions

+
+public void setExceptions(boolean exceptions)
+
+
Enables generation of exception handling code +

+

+
+
+
+
+ +

+setRtti

+
+public void setRtti(boolean rtti)
+
+
Enables run-time type information. +

+

+
+
+
+
+ +

+setIncremental

+
+public void setIncremental(boolean incremental)
+
+
Enables or disables incremental linking. +

+

+
Parameters:
incremental - new state
+
+
+
+ +

+setLibtool

+
+public void setLibtool(boolean libtool)
+
+
Set use of libtool. + + If set to true, the "libtool " will be prepended to the command line for + compatible processors +

+

+
Parameters:
libtool - If true, use libtool.
+
+
+
+ +

+setLink

+
+public void setLink(OutputTypeEnum outputType)
+
+
Deprecated.  +

+

Sets the output file type. Supported values "executable", "shared", and + "static". Deprecated, specify outtype instead. +

+

+
+
+
+
+ +

+setMultithreaded

+
+public void setMultithreaded(boolean multi)
+
+
Enables or disables generation of multithreaded code +

+

+
Parameters:
multi - If true, generated code may be multithreaded.
+
+
+
+ +

+setName

+
+public void setName(CompilerEnum name)
+
+
Sets type of the default compiler and linker. + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler (creates .h, .cpp and moc_*.cpp files).
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+

+

+
+
+
+
+ +

+setNewenvironment

+
+public void setNewenvironment(boolean newenv)
+
+
Do not propagate old environment when new environment variables are + specified. +

+

+
+
+
+
+ +

+setObjdir

+
+public void setObjdir(java.io.File dir)
+
+
Sets the destination directory for object files. + + Generally this should be a property expression that evaluates to + distinct debug and release object file directories. +

+

+
Parameters:
dir - object directory
+
+
+
+ +

+setOutfile

+
+public void setOutfile(java.io.File outfile)
+
+
Sets the output file name. If not specified, the task will only compile + files and not attempt to link. If an extension is not specified, the + task may use a system appropriate extension and prefix, for example, + outfile="example" may result in "libexample.so" being created. +

+

+
Parameters:
outfile - output file name
+
+
+
+ +

+setOutputFileProperty

+
+public void setOutputFileProperty(java.lang.String outputFileProperty)
+
+
Specifies the name of a property to set with the physical filename that + is produced by the linker +

+

+
+
+
+
+ +

+setOuttype

+
+public void setOuttype(OutputTypeEnum outputType)
+
+
Sets the output file type. Supported values "executable", "shared", and + "static". +

+

+
+
+
+
+ +

+getOuttype

+
+public java.lang.String getOuttype()
+
+
Gets output type. +

+

+ +
Returns:
output type
+
+
+
+ +

+setProject

+
+public void setProject(org.apache.tools.ant.Project project)
+
+
Sets the project. +

+

+
Overrides:
setProject in class org.apache.tools.ant.ProjectComponent
+
+
+
+
+
+
+ +

+setRebuild

+
+public void setRebuild(boolean rebuildAll)
+
+
If set to true, all files will be rebuilt. +

+

+
Parameters:
rebuildAll - If true, all files will be rebuilt. If false, up to + date files will not be rebuilt.
+
+
+
+ +

+setRelentless

+
+public void setRelentless(boolean relentless)
+
+
If set to true, compilation errors will not stop the task until all + files have been attempted. +

+

+
Parameters:
relentless - If true, don't stop on the first compilation error
+
+
+
+ +

+setRuntime

+
+public void setRuntime(RuntimeType rtlType)
+
+
Sets the type of runtime library, possible values "dynamic", "static". +

+

+
+
+
+
+ +

+setSubsystem

+
+public void setSubsystem(SubsystemEnum subsystem)
+
+
Sets the nature of the subsystem under which that the program will + execute. + + Supported subsystems + + + + + + + + + + + + +
guiGraphical User Interface
consoleCommand Line Console
otherOther
+

+

+
Parameters:
subsystem - subsystem +
Throws: +
java.lang.NullPointerException - if subsystem is null
+
+
+
+ +

+getSubsystem

+
+public java.lang.String getSubsystem()
+
+
Gets subsystem name. +

+

+ +
Returns:
Subsystem name
+
+
+
+ +

+setWarnings

+
+public void setWarnings(WarningLevelEnum level)
+
+
Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +

+

+
+
+
+
+ +

+setFailonerror

+
+public void setFailonerror(boolean fail)
+
+
Indicates whether the build will continue + even if there are compilation errors; defaults to true. +

+

+
Parameters:
fail - if true halt the build on failure
+
+
+
+ +

+getFailonerror

+
+public boolean getFailonerror()
+
+
Gets the failonerror flag. +

+

+ +
Returns:
the failonerror flag
+
+
+
+ +

+addConfiguredTarget

+
+public void addConfiguredTarget(TargetDef target)
+
+
Adds a target definition or reference (Non-functional prototype). +

+

+
Parameters:
target - target +
Throws: +
java.lang.NullPointerException - if compiler is null
+
+
+
+ +

+addConfiguredDistributer

+
+public void addConfiguredDistributer(DistributerDef distributer)
+
+
Adds a distributer definition or reference (Non-functional prototype). +

+

+
Parameters:
distributer - distributer +
Throws: +
java.lang.NullPointerException - if compiler is null
+
+
+
+ +

+setOptimize

+
+public void setOptimize(OptimizationEnum optimization)
+
+
Sets optimization. +

+

+
Parameters:
optimization -
+
+
+
+ +

+addConfiguredVersioninfo

+
+public void addConfiguredVersioninfo(VersionInfo newVersionInfo)
+
+
Adds desriptive version information to be included in the + generated file. The first active version info block will + be used. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.html new file mode 100644 index 0000000..a896508 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.html @@ -0,0 +1,307 @@ + + + + + + + +CCTaskProgressMonitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CCTaskProgressMonitor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.CCTaskProgressMonitor
+
+
+
All Implemented Interfaces:
ProgressMonitor
+
+
+
+
public class CCTaskProgressMonitor
extends java.lang.Object
implements ProgressMonitor
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CCTaskProgressMonitor(TargetHistoryTable history, + VersionInfo versionInfo) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidfinish(ProcessorConfiguration config, + boolean normal) + +
+           
+ voidprogress(java.lang.String[] sources) + +
+          Called to notify monitor of progress
+ voidstart(ProcessorConfiguration config) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CCTaskProgressMonitor

+
+public CCTaskProgressMonitor(TargetHistoryTable history,
+                             VersionInfo versionInfo)
+
+
+ + + + + + + + +
+Method Detail
+ +

+finish

+
+public void finish(ProcessorConfiguration config,
+                   boolean normal)
+
+
+
Specified by:
finish in interface ProgressMonitor
+
+
+
+
+
+
+ +

+progress

+
+public void progress(java.lang.String[] sources)
+
+
Description copied from interface: ProgressMonitor
+
Called to notify monitor of progress +

+

+
Specified by:
progress in interface ProgressMonitor
+
+
+
+
+
+
+ +

+start

+
+public void start(ProcessorConfiguration config)
+
+
+
Specified by:
start in interface ProgressMonitor
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CPUEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/CPUEnum.html new file mode 100644 index 0000000..346d1dc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CPUEnum.html @@ -0,0 +1,297 @@ + + + + + + + +CPUEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CPUEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.CPUEnum
+
+
+
+
public final class CPUEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of cpu types. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
CPUEnum() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CPUEnum

+
+public CPUEnum()
+
+
Constructor. + + Set by default to "pentium3" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html b/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html new file mode 100644 index 0000000..23a1a29 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.StringArrayBuilder.html @@ -0,0 +1,258 @@ + + + + + + + +CUtil.StringArrayBuilder (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CUtil.StringArrayBuilder

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.CUtil.StringArrayBuilder
+
+
+
Enclosing class:
CUtil
+
+
+
+
public static final class CUtil.StringArrayBuilder
extends java.lang.Object
+ + +

+A class that splits a white-space, comma-separated list into a String + array. Used for task attributes. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CUtil.StringArrayBuilder(java.lang.String value) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValue() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CUtil.StringArrayBuilder

+
+public CUtil.StringArrayBuilder(java.lang.String value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public java.lang.String[] getValue()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.html b/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.html new file mode 100644 index 0000000..6bc118b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CUtil.html @@ -0,0 +1,775 @@ + + + + + + + +CUtil (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CUtil

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.CUtil
+
+
+
+
public class CUtil
extends java.lang.Object
+ + +

+Some utilities used by the CC and Link tasks. +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classCUtil.StringArrayBuilder + +
+          A class that splits a white-space, comma-separated list into a String + array.
+ + + + + + + + + + +
+Field Summary
+static intFILETIME_EPSILON + +
+           
+  + + + + + + + + + + +
+Constructor Summary
CUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddAll(java.util.Vector dest, + java.lang.Object[] src) + +
+          Adds the elements of the array to the given vector
+static intcheckDirectoryArray(java.lang.String[] names) + +
+          Checks a array of names for non existent or non directory entries and + nulls them out.
+static java.lang.StringgetBasename(java.io.File file) + +
+          Extracts the basename of a file, removing the extension, if present
+static java.io.FilegetExecutableLocation(java.lang.String exeName) + +
+          Gets the parent directory for the executable file name using the current + directory and system executable path
+static java.lang.StringgetParentPath(java.lang.String path) + +
+          Extracts the parent of a file
+static java.io.File[]getPathFromEnvironment(java.lang.String envVariable, + java.lang.String delim) + +
+          Returns an array of File for each existing directory in the specified + environment variable
+static java.lang.StringgetRelativePath(java.lang.String base, + java.io.File targetFile) + +
+          Returns a relative path for the targetFile relative to the base + directory.
+static booleanisActive(org.apache.tools.ant.Project p, + java.lang.String ifCond, + java.lang.String unlessCond) + +
+           
+static booleanisSignificantlyAfter(long time1, + long time2) + +
+          Determines whether time1 is later than time2 + to a degree that file system time truncation is not significant.
+static booleanisSignificantlyBefore(long time1, + long time2) + +
+          Determines whether time1 is earlier than time2 + to a degree that file system time truncation is not significant.
+static booleanisSystemPath(java.io.File source) + +
+          Determines if source file has a system path, + that is part of the compiler or platform.
+static java.io.File[]parsePath(java.lang.String path, + java.lang.String delim) + +
+          Parse a string containing directories into an File[]
+static intrunCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler
+static booleansameList(java.lang.Object[] a, + java.lang.Object[] b) + +
+          Compares the contents of 2 arrays for equaliy.
+static booleansameList(java.util.Vector v, + java.lang.Object[] a) + +
+          Compares the contents of an array and a Vector for equality.
+static booleansameSet(java.lang.Object[] a, + java.util.Vector b) + +
+          Compares the contents of an array and a Vector for set equality.
+static java.lang.String[]toArray(java.util.Vector src) + +
+          Converts a vector to a string array.
+static java.lang.StringtoUnixPath(java.lang.String path) + +
+           
+static java.lang.StringtoWindowsPath(java.lang.String path) + +
+           
+static java.lang.StringxmlAttribEncode(java.lang.String attrValue) + +
+          Replaces any embedded quotes in the string so that the value can be + placed in an attribute in an XML file
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+FILETIME_EPSILON

+
+public static final int FILETIME_EPSILON
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+CUtil

+
+public CUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAll

+
+public static void addAll(java.util.Vector dest,
+                          java.lang.Object[] src)
+
+
Adds the elements of the array to the given vector +

+

+
+
+
+
+ +

+checkDirectoryArray

+
+public static int checkDirectoryArray(java.lang.String[] names)
+
+
Checks a array of names for non existent or non directory entries and + nulls them out. +

+

+ +
Returns:
Count of non-null elements
+
+
+
+ +

+getBasename

+
+public static java.lang.String getBasename(java.io.File file)
+
+
Extracts the basename of a file, removing the extension, if present +

+

+
+
+
+
+ +

+getExecutableLocation

+
+public static java.io.File getExecutableLocation(java.lang.String exeName)
+
+
Gets the parent directory for the executable file name using the current + directory and system executable path +

+

+
Parameters:
exeName - Name of executable such as "cl.exe" +
Returns:
parent directory or null if not located
+
+
+
+ +

+getParentPath

+
+public static java.lang.String getParentPath(java.lang.String path)
+
+
Extracts the parent of a file +

+

+
+
+
+
+ +

+getPathFromEnvironment

+
+public static java.io.File[] getPathFromEnvironment(java.lang.String envVariable,
+                                                    java.lang.String delim)
+
+
Returns an array of File for each existing directory in the specified + environment variable +

+

+
Parameters:
envVariable - environment variable name such as "LIB" or "INCLUDE"
delim - delimitor used to separate parts of the path, typically ";" + or ":" +
Returns:
array of File's for each part that is an existing directory
+
+
+
+ +

+getRelativePath

+
+public static java.lang.String getRelativePath(java.lang.String base,
+                                               java.io.File targetFile)
+
+
Returns a relative path for the targetFile relative to the base + directory. +

+

+
Parameters:
base - base directory as returned by File.getCanonicalPath()
targetFile - target file +
Returns:
relative path of target file. Returns targetFile if there were + no commonalities between the base and the target
+
+
+
+ +

+isActive

+
+public static boolean isActive(org.apache.tools.ant.Project p,
+                               java.lang.String ifCond,
+                               java.lang.String unlessCond)
+                        throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+parsePath

+
+public static java.io.File[] parsePath(java.lang.String path,
+                                       java.lang.String delim)
+
+
Parse a string containing directories into an File[] +

+

+
Parameters:
path - path string, for example ".;c:\something\include"
delim - delimiter, typically ; or :
+
+
+
+ +

+runCommand

+
+public static int runCommand(CCTask task,
+                             java.io.File workingDir,
+                             java.lang.String[] cmdline,
+                             boolean newEnvironment,
+                             org.apache.tools.ant.types.Environment env)
+                      throws org.apache.tools.ant.BuildException
+
+
This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+sameList

+
+public static boolean sameList(java.lang.Object[] a,
+                               java.lang.Object[] b)
+
+
Compares the contents of 2 arrays for equaliy. +

+

+
+
+
+
+ +

+sameList

+
+public static boolean sameList(java.util.Vector v,
+                               java.lang.Object[] a)
+
+
Compares the contents of an array and a Vector for equality. +

+

+
+
+
+
+ +

+sameSet

+
+public static boolean sameSet(java.lang.Object[] a,
+                              java.util.Vector b)
+
+
Compares the contents of an array and a Vector for set equality. Assumes + input array and vector are sets (i.e. no duplicate entries) +

+

+
+
+
+
+ +

+toArray

+
+public static java.lang.String[] toArray(java.util.Vector src)
+
+
Converts a vector to a string array. +

+

+
+
+
+
+ +

+xmlAttribEncode

+
+public static java.lang.String xmlAttribEncode(java.lang.String attrValue)
+
+
Replaces any embedded quotes in the string so that the value can be + placed in an attribute in an XML file +

+

+
Parameters:
attrValue - value to be expressed +
Returns:
equivalent attribute literal
+
+
+
+ +

+isSignificantlyBefore

+
+public static boolean isSignificantlyBefore(long time1,
+                                            long time2)
+
+
Determines whether time1 is earlier than time2 + to a degree that file system time truncation is not significant. +

+

+
Parameters:
time1 - long first time value
time2 - long second time value +
Returns:
boolean if first time value is earlier than second time value. + If the values are within the rounding error of the file system return false.
+
+
+
+ +

+isSignificantlyAfter

+
+public static boolean isSignificantlyAfter(long time1,
+                                           long time2)
+
+
Determines whether time1 is later than time2 + to a degree that file system time truncation is not significant. +

+

+
Parameters:
time1 - long first time value
time2 - long second time value +
Returns:
boolean if first time value is later than second time value. + If the values are within the rounding error of the file system return false.
+
+
+
+ +

+toWindowsPath

+
+public static java.lang.String toWindowsPath(java.lang.String path)
+
+
+
+
+
+
+ +

+toUnixPath

+
+public static java.lang.String toUnixPath(java.lang.String path)
+
+
+
+
+
+
+ +

+isSystemPath

+
+public static boolean isSystemPath(java.io.File source)
+
+
Determines if source file has a system path, + that is part of the compiler or platform. +

+

+
Parameters:
source - source, may not be null. +
Returns:
true is source file appears to be system library + and its path should be discarded.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CompilerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerDef.html new file mode 100644 index 0000000..640dded --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerDef.html @@ -0,0 +1,961 @@ + + + + + + + +CompilerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CompilerDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.ProcessorDef
+              extended by net.sf.antcontrib.cpptasks.CompilerDef
+
+
+
+
public final class CompilerDef
extends ProcessorDef
+ + +

+A compiler definition. compiler elements may be placed either as children of + a cc element or the project element. A compiler element with an id attribute + may be referenced from compiler elements with refid or extends attributes. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.ProcessorDef
newEnvironment
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
CompilerDef() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddConfiguredCompilerArg(CompilerArgument arg) + +
+          Adds a compiler command-line arg.
+ voidaddConfiguredCompilerParam(CompilerParam param) + +
+          Adds a compiler command-line arg.
+ voidaddConfiguredDefineset(DefineSet defs) + +
+          Adds a defineset.
+ IncludePathcreateIncludePath() + +
+          Creates an include path.
+ PrecompileDefcreatePrecompile() + +
+          Specifies precompilation prototype file and exclusions.
+ SystemIncludePathcreateSysIncludePath() + +
+          Creates a system include path.
+ voidexecute() + +
+           
+ UndefineArgument[]getActiveDefines() + +
+           
+ java.lang.String[]getActiveIncludePaths() + +
+          Returns the compiler-specific include path.
+ PrecompileDefgetActivePrecompile(CompilerDef ccElement) + +
+           
+ java.lang.String[]getActiveSysIncludePaths() + +
+           
+ booleangetExceptions(CompilerDef[] defaultProviders, + int index) + +
+           
+ booleangetMultithreaded(CompilerDef[] defaultProviders, + int index) + +
+           
+ OptimizationEnumgetOptimization(CompilerDef[] defaultProviders, + int index) + +
+           
+ ProcessorgetProcessor() + +
+          Obtains the appropriate processor (compiler, linker)
+ java.lang.BooleangetRtti(CompilerDef[] defaultProviders, + int index) + +
+           
+ intgetWarnings(CompilerDef[] defaultProviders, + int index) + +
+           
+ voidsetClassname(java.lang.String classname) + +
+          Sets the default compiler adapter.
+ voidsetExceptions(boolean exceptions) + +
+          Enables or disables exception support.
+ voidsetMultithreaded(boolean multithreaded) + +
+          Enables or disables generation of multithreaded code.
+ voidsetName(CompilerEnum name) + +
+          Sets compiler type.
+ voidsetOptimize(OptimizationEnum value) + +
+          Sets optimization level.
+protected  voidsetProcessor(Processor proc) + +
+          Sets the processor
+ voidsetRtti(boolean rtti) + +
+          Enables or disables run-time type information.
+ voidsetWarnings(WarningLevelEnum level) + +
+          Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorDef
addConfiguredProcessorArg, addConfiguredProcessorParam, addEnv, addFileset, booleanValueOf, createConfiguration, getActiveProcessorArgs, getActiveProcessorParams, getDebug, getDefaultProviders, getExtends, getInherit, getLibtool, getProcessor, getRebuild, hasFileSets, isActive, setDebug, setDescription, setExtends, setId, setIf, setInherit, setLibtool, setNewenvironment, setRebuild, setRefid, setUnless, visitFiles
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompilerDef

+
+public CompilerDef()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addConfiguredCompilerArg

+
+public void addConfiguredCompilerArg(CompilerArgument arg)
+
+
Adds a compiler command-line arg. +

+

+
+
+
+
+ +

+addConfiguredCompilerParam

+
+public void addConfiguredCompilerParam(CompilerParam param)
+
+
Adds a compiler command-line arg. +

+

+
+
+
+
+ +

+addConfiguredDefineset

+
+public void addConfiguredDefineset(DefineSet defs)
+
+
Adds a defineset. +

+

+
+
+
+
+ +

+createIncludePath

+
+public IncludePath createIncludePath()
+
+
Creates an include path. +

+

+
+
+
+
+ +

+createPrecompile

+
+public PrecompileDef createPrecompile()
+                               throws org.apache.tools.ant.BuildException
+
+
Specifies precompilation prototype file and exclusions. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createSysIncludePath

+
+public SystemIncludePath createSysIncludePath()
+
+
Creates a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files. +

+

+
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getActiveDefines

+
+public UndefineArgument[] getActiveDefines()
+
+
+
+
+
+
+ +

+getActiveIncludePaths

+
+public java.lang.String[] getActiveIncludePaths()
+
+
Returns the compiler-specific include path. +

+

+
+
+
+
+ +

+getActivePrecompile

+
+public PrecompileDef getActivePrecompile(CompilerDef ccElement)
+
+
+
+
+
+
+ +

+getActiveSysIncludePaths

+
+public java.lang.String[] getActiveSysIncludePaths()
+
+
+
+
+
+
+ +

+getExceptions

+
+public final boolean getExceptions(CompilerDef[] defaultProviders,
+                                   int index)
+
+
+
+
+
+
+ +

+getRtti

+
+public final java.lang.Boolean getRtti(CompilerDef[] defaultProviders,
+                                       int index)
+
+
+
+
+
+
+ +

+getOptimization

+
+public final OptimizationEnum getOptimization(CompilerDef[] defaultProviders,
+                                              int index)
+
+
+
+
+
+
+ +

+getMultithreaded

+
+public boolean getMultithreaded(CompilerDef[] defaultProviders,
+                                int index)
+
+
+
+
+
+
+ +

+getProcessor

+
+public Processor getProcessor()
+
+
Description copied from class: ProcessorDef
+
Obtains the appropriate processor (compiler, linker) +

+

+
Overrides:
getProcessor in class ProcessorDef
+
+
+ +
Returns:
processor
+
+
+
+ +

+getWarnings

+
+public int getWarnings(CompilerDef[] defaultProviders,
+                       int index)
+
+
+
+
+
+
+ +

+setClassname

+
+public void setClassname(java.lang.String classname)
+                  throws org.apache.tools.ant.BuildException
+
+
Sets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler. +

+

+
Overrides:
setClassname in class ProcessorDef
+
+
+
Parameters:
classname - fully qualified classname which implements CompilerAdapter +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setExceptions

+
+public void setExceptions(boolean exceptions)
+
+
Enables or disables exception support. +

+

+
Parameters:
exceptions - if true, exceptions are supported.
+
+
+
+ +

+setRtti

+
+public void setRtti(boolean rtti)
+
+
Enables or disables run-time type information. +

+

+
Parameters:
rtti - if true, run-time type information is supported.
+
+
+
+ +

+setMultithreaded

+
+public void setMultithreaded(boolean multithreaded)
+
+
Enables or disables generation of multithreaded code. Unless specified, + multithreaded code generation is enabled. +

+

+
Parameters:
multithreaded - If true, generated code may be multithreaded.
+
+
+
+ +

+setName

+
+public void setName(CompilerEnum name)
+             throws org.apache.tools.ant.BuildException
+
+
Sets compiler type. + + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU Fortran compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler
mocQt meta-object compiler
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setProcessor

+
+protected void setProcessor(Processor proc)
+                     throws org.apache.tools.ant.BuildException
+
+
Description copied from class: ProcessorDef
+
Sets the processor +

+

+
Overrides:
setProcessor in class ProcessorDef
+
+
+
Parameters:
proc - processor, may not be null. +
Throws: +
org.apache.tools.ant.BuildException - if ProcessorDef is a reference
+
+
+
+ +

+setWarnings

+
+public void setWarnings(WarningLevelEnum level)
+
+
Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +

+

+
+
+
+
+ +

+setOptimize

+
+public void setOptimize(OptimizationEnum value)
+
+
Sets optimization level. +

+

+
Parameters:
value - optimization level
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CompilerEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerEnum.html new file mode 100644 index 0000000..bf46584 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerEnum.html @@ -0,0 +1,443 @@ + + + + + + + +CompilerEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CompilerEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.CompilerEnum
+
+
+
+
public class CompilerEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of supported compilers + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + * + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
msvc8Microsoft Visual C++ 8
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
cl6xTI TMS320C6000 Optimizing Compiler
cl55TI TMS320C55x Optimizing C/C++ Compiler
armcppARM 32-bit C++ compiler
armccARM 32-bit C compiler
tcppARM 16-bit C++ compiler
tccARM 16-bit C compiler
uicQt user interface compiler
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler (experimental)
wflOpenWatcom FORTRAN compiler (experimental)
windresGNU windres resource compiler
+

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
CompilerEnum() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ CompilergetCompiler() + +
+           
+ java.lang.String[]getValues() + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompilerEnum

+
+public CompilerEnum()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getCompiler

+
+public Compiler getCompiler()
+
+
+
+
+
+
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/CompilerParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerParam.html new file mode 100644 index 0000000..1dd4461 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/CompilerParam.html @@ -0,0 +1,273 @@ + + + + + + + +CompilerParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class CompilerParam

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ProcessorParam
+      extended by net.sf.antcontrib.cpptasks.CompilerParam
+
+
+
+
public class CompilerParam
extends ProcessorParam
+ + +

+Place class description here. +

+ +

+

+
Since:
+
+
Author:
+
inger,
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CompilerParam() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorParam
getName, getValue, isActive, setIf, setName, setUnless, setValue
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompilerParam

+
+public CompilerParam()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DependencyInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyInfo.html new file mode 100644 index 0000000..4060a2c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyInfo.html @@ -0,0 +1,382 @@ + + + + + + + +DependencyInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DependencyInfo

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.DependencyInfo
+
+
+
+
public final class DependencyInfo
extends java.lang.Object
+ + +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DependencyInfo(java.lang.String includePathIdentifier, + java.lang.String source, + long sourceLastModified, + java.util.Vector includes, + java.util.Vector sysIncludes) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ longgetCompositeLastModified() + +
+          Returns the latest modification date of the source or anything that it + depends on.
+ java.lang.StringgetIncludePathIdentifier() + +
+           
+ java.lang.String[]getIncludes() + +
+           
+ java.lang.StringgetSource() + +
+           
+ longgetSourceLastModified() + +
+           
+ java.lang.String[]getSysIncludes() + +
+           
+ voidsetCompositeLastModified(long lastMod) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DependencyInfo

+
+public DependencyInfo(java.lang.String includePathIdentifier,
+                      java.lang.String source,
+                      long sourceLastModified,
+                      java.util.Vector includes,
+                      java.util.Vector sysIncludes)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getCompositeLastModified

+
+public long getCompositeLastModified()
+
+
Returns the latest modification date of the source or anything that it + depends on. +

+

+ +
Returns:
the composite lastModified time, returns Long.MIN_VALUE if not + set
+
+
+
+ +

+getIncludePathIdentifier

+
+public java.lang.String getIncludePathIdentifier()
+
+
+
+
+
+
+ +

+getIncludes

+
+public java.lang.String[] getIncludes()
+
+
+
+
+
+
+ +

+getSource

+
+public java.lang.String getSource()
+
+
+
+
+
+
+ +

+getSourceLastModified

+
+public long getSourceLastModified()
+
+
+
+
+
+
+ +

+getSysIncludes

+
+public java.lang.String[] getSysIncludes()
+
+
+
+
+
+
+ +

+setCompositeLastModified

+
+public void setCompositeLastModified(long lastMod)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.DependencyVisitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.DependencyVisitor.html new file mode 100644 index 0000000..4d9ab7a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.DependencyVisitor.html @@ -0,0 +1,307 @@ + + + + + + + +DependencyTable.DependencyVisitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DependencyTable.DependencyVisitor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor
+
+
+
Direct Known Subclasses:
DependencyTable.TimestampChecker
+
+
+
Enclosing class:
DependencyTable
+
+
+
+
public abstract class DependencyTable.DependencyVisitor
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DependencyTable.DependencyVisitor() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  booleanpreview(DependencyInfo parent, + DependencyInfo[] children) + +
+          Previews all the children of this source file.
+abstract  voidstackExhausted() + +
+          Called if the dependency depth exhausted the stack.
+abstract  booleanvisit(DependencyInfo dependInfo) + +
+          Visits the dependency info.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DependencyTable.DependencyVisitor

+
+public DependencyTable.DependencyVisitor()
+
+
+ + + + + + + + +
+Method Detail
+ +

+preview

+
+public abstract boolean preview(DependencyInfo parent,
+                                DependencyInfo[] children)
+
+
Previews all the children of this source file. + + May be called multiple times as DependencyInfo's for children are + filled in. +

+

+ +
Returns:
true to continue towards recursion into included files
+
+
+
+ +

+stackExhausted

+
+public abstract void stackExhausted()
+
+
Called if the dependency depth exhausted the stack. +

+

+
+
+
+
+ +

+visit

+
+public abstract boolean visit(DependencyInfo dependInfo)
+
+
Visits the dependency info. +

+

+ +
Returns:
true to continue towards recursion into included files
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.TimestampChecker.html b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.TimestampChecker.html new file mode 100644 index 0000000..75aa925 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.TimestampChecker.html @@ -0,0 +1,338 @@ + + + + + + + +DependencyTable.TimestampChecker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DependencyTable.TimestampChecker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor
+      extended by net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker
+
+
+
Enclosing class:
DependencyTable
+
+
+
+
public class DependencyTable.TimestampChecker
extends DependencyTable.DependencyVisitor
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DependencyTable.TimestampChecker(long outputLastModified, + boolean rebuildOnStackExhaustion) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleangetMustRebuild() + +
+           
+ booleanpreview(DependencyInfo parent, + DependencyInfo[] children) + +
+          Previews all the children of this source file.
+ voidstackExhausted() + +
+          Called if the dependency depth exhausted the stack.
+ booleanvisit(DependencyInfo dependInfo) + +
+          Visits the dependency info.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DependencyTable.TimestampChecker

+
+public DependencyTable.TimestampChecker(long outputLastModified,
+                                        boolean rebuildOnStackExhaustion)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getMustRebuild

+
+public boolean getMustRebuild()
+
+
+
+
+
+
+ +

+preview

+
+public boolean preview(DependencyInfo parent,
+                       DependencyInfo[] children)
+
+
Description copied from class: DependencyTable.DependencyVisitor
+
Previews all the children of this source file. + + May be called multiple times as DependencyInfo's for children are + filled in. +

+

+
Specified by:
preview in class DependencyTable.DependencyVisitor
+
+
+ +
Returns:
true to continue towards recursion into included files
+
+
+
+ +

+stackExhausted

+
+public void stackExhausted()
+
+
Description copied from class: DependencyTable.DependencyVisitor
+
Called if the dependency depth exhausted the stack. +

+

+
Specified by:
stackExhausted in class DependencyTable.DependencyVisitor
+
+
+
+
+
+
+ +

+visit

+
+public boolean visit(DependencyInfo dependInfo)
+
+
Description copied from class: DependencyTable.DependencyVisitor
+
Visits the dependency info. +

+

+
Specified by:
visit in class DependencyTable.DependencyVisitor
+
+
+ +
Returns:
true to continue towards recursion into included files
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.html b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.html new file mode 100644 index 0000000..cb8dcd4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DependencyTable.html @@ -0,0 +1,438 @@ + + + + + + + +DependencyTable (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DependencyTable

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.DependencyTable
+
+
+
+
public final class DependencyTable
extends java.lang.Object
+ + +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+ classDependencyTable.DependencyVisitor + +
+           
+ classDependencyTable.TimestampChecker + +
+           
+  + + + + + + + + + + +
+Constructor Summary
DependencyTable(java.io.File baseDir) + +
+          Creates a target history table from dependencies.xml in the prject + directory, if it exists.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcommit(CCTask task) + +
+           
+ java.util.Enumerationelements() + +
+          Returns an enumerator of DependencyInfo's
+ DependencyInfogetDependencyInfo(java.lang.String sourceRelativeName, + java.lang.String includePathIdentifier) + +
+          This method returns a DependencyInfo for the specific source file and + include path identifier
+ voidload() + +
+           
+ booleanneedsRebuild(CCTask task, + TargetInfo target, + int dependencyDepth) + +
+          Determines if the specified target needs to be rebuilt.
+ DependencyInfoparseIncludes(CCTask task, + CompilerConfiguration compiler, + java.io.File source) + +
+           
+ voidwalkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DependencyTable

+
+public DependencyTable(java.io.File baseDir)
+
+
Creates a target history table from dependencies.xml in the prject + directory, if it exists. Otherwise, initializes the dependencies empty. +

+

+
Parameters:
baseDir - output directory for task
+
+ + + + + + + + +
+Method Detail
+ +

+commit

+
+public void commit(CCTask task)
+
+
+
+
+
+
+ +

+elements

+
+public java.util.Enumeration elements()
+
+
Returns an enumerator of DependencyInfo's +

+

+
+
+
+
+ +

+getDependencyInfo

+
+public DependencyInfo getDependencyInfo(java.lang.String sourceRelativeName,
+                                        java.lang.String includePathIdentifier)
+
+
This method returns a DependencyInfo for the specific source file and + include path identifier +

+

+
+
+
+
+ +

+load

+
+public void load()
+          throws java.io.IOException,
+                 javax.xml.parsers.ParserConfigurationException,
+                 org.xml.sax.SAXException
+
+
+ +
Throws: +
java.io.IOException +
javax.xml.parsers.ParserConfigurationException +
org.xml.sax.SAXException
+
+
+
+ +

+needsRebuild

+
+public boolean needsRebuild(CCTask task,
+                            TargetInfo target,
+                            int dependencyDepth)
+
+
Determines if the specified target needs to be rebuilt. + + This task may result in substantial IO as files are parsed to determine + their dependencies +

+

+
+
+
+
+ +

+parseIncludes

+
+public DependencyInfo parseIncludes(CCTask task,
+                                    CompilerConfiguration compiler,
+                                    java.io.File source)
+
+
+
+
+
+
+ +

+walkDependencies

+
+public void walkDependencies(CCTask task,
+                             DependencyInfo dependInfo,
+                             CompilerConfiguration compiler,
+                             DependencyInfo[] stack,
+                             DependencyTable.DependencyVisitor visitor)
+                      throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DistributerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerDef.html new file mode 100644 index 0000000..ad1ea95 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerDef.html @@ -0,0 +1,603 @@ + + + + + + + +DistributerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DistributerDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.DistributerDef
+
+
+
+
public final class DistributerDef
extends org.apache.tools.ant.types.DataType
+ + +

+Distributed build information (Non-functional prototype). +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
DistributerDef() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DistributerMapcreateMap() + +
+          Local to remote filename maps.
+ voidexecute() + +
+          Required by documentation generator.
+ java.lang.StringgetHosts() + +
+          Gets hosts.
+ DistributerProtocolEnumgetProtocol() + +
+          Gets protocol.
+ intgetTcpcork() + +
+          Gets tcp cork.
+ booleanisActive() + +
+          Returns true if the if and unless conditions (if any) are + satisfied.
+ voidsetHosts(java.lang.String value) + +
+          Sets hosts.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetProtocol(DistributerProtocolEnum value) + +
+          Sets protocol.
+ voidsetRefid(org.apache.tools.ant.types.Reference r) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetTcpcork(int value) + +
+          Sets TCP_CORK value.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ voidsetUser(java.lang.String value) + +
+          Sets remote user name.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DistributerDef

+
+public DistributerDef()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+
+
Required by documentation generator. +

+

+
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Returns true if the if and unless conditions (if any) are + satisfied. +

+

+ +
Returns:
true if definition is active.
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference r)
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified. +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+
Parameters:
r - reference name
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+getHosts

+
+public java.lang.String getHosts()
+
+
Gets hosts. +

+

+ +
Returns:
hosts, may be null.
+
+
+
+ +

+getTcpcork

+
+public int getTcpcork()
+
+
Gets tcp cork. +

+

+ +
Returns:
TCP_CORK value.
+
+
+
+ +

+getProtocol

+
+public DistributerProtocolEnum getProtocol()
+
+
Gets protocol. +

+

+ +
Returns:
protocol, may be null.
+
+
+
+ +

+setHosts

+
+public void setHosts(java.lang.String value)
+
+
Sets hosts. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setTcpcork

+
+public void setTcpcork(int value)
+
+
Sets TCP_CORK value. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setProtocol

+
+public void setProtocol(DistributerProtocolEnum value)
+
+
Sets protocol. +

+

+
Parameters:
value - new value
+
+
+
+ +

+createMap

+
+public DistributerMap createMap()
+
+
Local to remote filename maps. +

+

+ +
Returns:
new map
+
+
+
+ +

+setUser

+
+public void setUser(java.lang.String value)
+
+
Sets remote user name. +

+

+
Parameters:
value - user name
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DistributerMap.html b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerMap.html new file mode 100644 index 0000000..293361e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerMap.html @@ -0,0 +1,535 @@ + + + + + + + +DistributerMap (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DistributerMap

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.DistributerMap
+
+
+
+
public final class DistributerMap
extends org.apache.tools.ant.types.DataType
+ + +

+Local to remote filename mapping (Experimental). +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
DistributerMap() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+          Required by documentation generator.
+ java.io.FilegetLocal() + +
+          Gets local directory.
+ java.lang.StringgetRemote() + +
+          Gets remote name for directory.
+ booleanisActive() + +
+          Returns true if the if and unless conditions (if any) are + satisfied.
+ voidsetHosts(java.lang.String value) + +
+          Sets hosts for which this mapping is valid.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetLocal(java.io.File value) + +
+          Sets local directory for base of mapping.
+ voidsetRemote(java.lang.String value) + +
+          Sets remote name for directory.
+ voidsetRemoteSeparator(java.lang.String value) + +
+          Sets the separator character (/ or \) for the remote system.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ java.lang.StringtoRemote(java.lang.String host, + java.io.File localFile) + +
+          Converts the local file name to the remote name for the same file.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DistributerMap

+
+public DistributerMap()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+
+
Required by documentation generator. +

+

+
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Returns true if the if and unless conditions (if any) are + satisfied. +

+

+ +
Returns:
true if this object is active.
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + This object will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+getLocal

+
+public java.io.File getLocal()
+
+
Gets local directory. +

+

+ +
Returns:
local directory, may be null.
+
+
+
+ +

+getRemote

+
+public java.lang.String getRemote()
+
+
Gets remote name for directory. +

+

+ +
Returns:
remote name, may be null.
+
+
+
+ +

+toRemote

+
+public java.lang.String toRemote(java.lang.String host,
+                                 java.io.File localFile)
+
+
Converts the local file name to the remote name for the same file. +

+

+
Parameters:
host - host
localFile - local file +
Returns:
remote name for local file, null if unknown.
+
+
+
+ +

+setLocal

+
+public void setLocal(java.io.File value)
+
+
Sets local directory for base of mapping. +

+

+
Parameters:
value - value
+
+
+
+ +

+setRemote

+
+public void setRemote(java.lang.String value)
+
+
Sets remote name for directory. +

+

+
Parameters:
value - remote name for directory
+
+
+
+ +

+setRemoteSeparator

+
+public void setRemoteSeparator(java.lang.String value)
+
+
Sets the separator character (/ or \) for the remote system. +

+

+
Parameters:
value - separator character
+
+
+
+ +

+setHosts

+
+public void setHosts(java.lang.String value)
+
+
Sets hosts for which this mapping is valid. +

+

+
Parameters:
value - hosts
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.html new file mode 100644 index 0000000..336e46a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.html @@ -0,0 +1,297 @@ + + + + + + + +DistributerProtocolEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class DistributerProtocolEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.DistributerProtocolEnum
+
+
+
+
public final class DistributerProtocolEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Distributer prococol names (experimental). +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
DistributerProtocolEnum() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DistributerProtocolEnum

+
+public DistributerProtocolEnum()
+
+
Constructor. + + Set by default to "distcc" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/FileVisitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/FileVisitor.html new file mode 100644 index 0000000..a5eecd5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/FileVisitor.html @@ -0,0 +1,217 @@ + + + + + + + +FileVisitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Interface FileVisitor

+
+
All Known Implementing Classes:
ObjectFileCollector, TargetMatcher
+
+
+
+
public interface FileVisitor
+ + +

+An abstract class implemented to walk over the fileset members of a + ProcessorDef +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidvisit(java.io.File parentDir, + java.lang.String filename) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+visit

+
+void visit(java.io.File parentDir,
+           java.lang.String filename)
+           throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/LinkerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerDef.html new file mode 100644 index 0000000..0b1ecf3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerDef.html @@ -0,0 +1,970 @@ + + + + + + + +LinkerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class LinkerDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.ProcessorDef
+              extended by net.sf.antcontrib.cpptasks.LinkerDef
+
+
+
+
public class LinkerDef
extends ProcessorDef
+ + +

+A linker definition. linker elements may be placed either as children of a + cc element or the project element. A linker element with an id attribute may + be referenced by linker elements with refid or extends attributes. +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.ProcessorDef
newEnvironment
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
LinkerDef() + +
+          Default constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddConfiguredLinkerArg(LinkerArgument arg) + +
+          Adds a linker command-line arg.
+ voidaddConfiguredLinkerParam(LinkerParam param) + +
+          Adds a compiler command-line arg.
+ voidaddLibset(LibrarySet libset) + +
+          Adds a system library set.
+ voidaddSyslibset(SystemLibrarySet libset) + +
+          Adds a system library set.
+ voidexecute() + +
+           
+ LibrarySet[]getActiveLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]getActiveSystemLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]getActiveUserLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ longgetBase(LinkerDef[] defaultProviders, + int index) + +
+           
+ java.lang.StringgetEntry(LinkerDef[] defaultProviders, + int index) + +
+           
+ java.lang.BooleangetFixed(LinkerDef[] defaultProviders, + int index) + +
+           
+ booleangetIncremental(LinkerDef[] defaultProviders, + int index) + +
+           
+ booleangetMap(LinkerDef[] defaultProviders, + int index) + +
+           
+ ProcessorgetProcessor() + +
+          Obtains the appropriate processor (compiler, linker)
+ ProcessorgetProcessor(LinkType linkType) + +
+          Obtains the appropriate processor (compiler, linker) based on the + LinkType.
+ intgetStack(LinkerDef[] defaultProviders, + int index) + +
+           
+ voidsetBase(FlexLong base) + +
+          Sets the base address.
+ voidsetEntry(java.lang.String entry) + +
+          Sets the starting address.
+ voidsetFixed(boolean fixed) + +
+          If true, marks the file to be loaded only at its preferred address.
+ voidsetIncremental(boolean incremental) + +
+          If true, allows incremental linking.
+ voidsetMap(boolean map) + +
+          If set to true, a map file will be produced.
+ voidsetName(LinkerEnum name) + +
+          Sets linker type.
+protected  voidsetProcessor(Processor proc) + +
+          Sets the processor
+ voidsetStack(org.apache.tools.ant.types.FlexInteger stack) + +
+          Sets stack size in bytes.
+ voidvisitSystemLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+ voidvisitUserLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorDef
addConfiguredProcessorArg, addConfiguredProcessorParam, addEnv, addFileset, booleanValueOf, createConfiguration, getActiveProcessorArgs, getActiveProcessorParams, getDebug, getDefaultProviders, getExtends, getInherit, getLibtool, getRebuild, hasFileSets, isActive, setClassname, setDebug, setDescription, setExtends, setId, setIf, setInherit, setLibtool, setNewenvironment, setRebuild, setRefid, setUnless, visitFiles
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinkerDef

+
+public LinkerDef()
+
+
Default constructor +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+addConfiguredLinkerArg

+
+public void addConfiguredLinkerArg(LinkerArgument arg)
+
+
Adds a linker command-line arg. +

+

+
+
+
+
+ +

+addConfiguredLinkerParam

+
+public void addConfiguredLinkerParam(LinkerParam param)
+
+
Adds a compiler command-line arg. +

+

+
+
+
+
+ +

+addLibset

+
+public void addLibset(LibrarySet libset)
+
+
Adds a system library set. +

+

+
+
+
+
+ +

+addSyslibset

+
+public void addSyslibset(SystemLibrarySet libset)
+
+
Adds a system library set. +

+

+
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getActiveLibrarySets

+
+public LibrarySet[] getActiveLibrarySets(LinkerDef[] defaultProviders,
+                                         int index)
+
+
Returns an array of active library sets for this linker definition. +

+

+
+
+
+
+ +

+getActiveSystemLibrarySets

+
+public LibrarySet[] getActiveSystemLibrarySets(LinkerDef[] defaultProviders,
+                                               int index)
+
+
Returns an array of active library sets for this linker definition. +

+

+
+
+
+
+ +

+getActiveUserLibrarySets

+
+public LibrarySet[] getActiveUserLibrarySets(LinkerDef[] defaultProviders,
+                                             int index)
+
+
Returns an array of active library sets for this linker definition. +

+

+
+
+
+
+ +

+getBase

+
+public long getBase(LinkerDef[] defaultProviders,
+                    int index)
+
+
+
+
+
+
+ +

+getFixed

+
+public java.lang.Boolean getFixed(LinkerDef[] defaultProviders,
+                                  int index)
+
+
+
+
+
+
+ +

+getIncremental

+
+public boolean getIncremental(LinkerDef[] defaultProviders,
+                              int index)
+
+
+
+
+
+
+ +

+getMap

+
+public boolean getMap(LinkerDef[] defaultProviders,
+                      int index)
+
+
+
+
+
+
+ +

+getEntry

+
+public java.lang.String getEntry(LinkerDef[] defaultProviders,
+                                 int index)
+
+
+
+
+
+
+ +

+getProcessor

+
+public Processor getProcessor()
+
+
Description copied from class: ProcessorDef
+
Obtains the appropriate processor (compiler, linker) +

+

+
Overrides:
getProcessor in class ProcessorDef
+
+
+ +
Returns:
processor
+
+
+
+ +

+getProcessor

+
+public Processor getProcessor(LinkType linkType)
+
+
Description copied from class: ProcessorDef
+
Obtains the appropriate processor (compiler, linker) based on the + LinkType. +

+

+
Overrides:
getProcessor in class ProcessorDef
+
+
+ +
Returns:
processor
+
+
+
+ +

+getStack

+
+public int getStack(LinkerDef[] defaultProviders,
+                    int index)
+
+
+
+
+
+
+ +

+setBase

+
+public void setBase(FlexLong base)
+
+
Sets the base address. May be specified in either decimal or hex. +

+

+
Parameters:
base - base address
+
+
+
+ +

+setEntry

+
+public void setEntry(java.lang.String entry)
+
+
Sets the starting address. +

+

+
Parameters:
entry - function name
+
+
+
+ +

+setFixed

+
+public void setFixed(boolean fixed)
+
+
If true, marks the file to be loaded only at its preferred address. +

+

+
+
+
+
+ +

+setIncremental

+
+public void setIncremental(boolean incremental)
+
+
If true, allows incremental linking. +

+

+
+
+
+
+ +

+setMap

+
+public void setMap(boolean map)
+
+
If set to true, a map file will be produced. +

+

+
+
+
+
+ +

+setName

+
+public void setName(LinkerEnum name)
+             throws org.apache.tools.ant.BuildException
+
+
Sets linker type. + + + Supported linkers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gccGcc Linker
g++G++ Linker
ldLd Linker
arGcc Librarian
msvcMicrosoft Linker
bccBorland Linker
dfCompaq Visual Fortran Linker
iclIntel Linker for Windows (IA-32)
eclIntel Linker for Windows (IA-64)
iccIntel Linker for Linux (IA-32)
eccIntel Linker for Linux (IA-64)
CCSun ONE Linker
aCCHP aC++ Linker
os390OS390 Linker
os390batchOS390 Linker
os400IccLinker
sunc89C89 Linker
xlCVisualAge Linker
wclOpenWatcom C/C++ linker
wflOpenWatcom FORTRAN linker
+

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setProcessor

+
+protected void setProcessor(Processor proc)
+                     throws org.apache.tools.ant.BuildException
+
+
Description copied from class: ProcessorDef
+
Sets the processor +

+

+
Overrides:
setProcessor in class ProcessorDef
+
+
+
Parameters:
proc - processor, may not be null. +
Throws: +
org.apache.tools.ant.BuildException - if ProcessorDef is a reference
+
+
+
+ +

+setStack

+
+public void setStack(org.apache.tools.ant.types.FlexInteger stack)
+
+
Sets stack size in bytes. +

+

+
+
+
+
+ +

+visitSystemLibraries

+
+public void visitSystemLibraries(Linker linker,
+                                 FileVisitor libraryVisitor)
+
+
+
+
+
+
+ +

+visitUserLibraries

+
+public void visitUserLibraries(Linker linker,
+                               FileVisitor libraryVisitor)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/LinkerEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerEnum.html new file mode 100644 index 0000000..88bf549 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerEnum.html @@ -0,0 +1,308 @@ + + + + + + + +LinkerEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class LinkerEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.LinkerEnum
+
+
+
+
public class LinkerEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of supported linkers +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
LinkerEnum() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ LinkergetLinker() + +
+           
+ java.lang.String[]getValues() + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinkerEnum

+
+public LinkerEnum()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getLinker

+
+public Linker getLinker()
+
+
+
+
+
+
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/LinkerParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerParam.html new file mode 100644 index 0000000..423e0c3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/LinkerParam.html @@ -0,0 +1,273 @@ + + + + + + + +LinkerParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class LinkerParam

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ProcessorParam
+      extended by net.sf.antcontrib.cpptasks.LinkerParam
+
+
+
+
public class LinkerParam
extends ProcessorParam
+ + +

+Place class description here. +

+ +

+

+
Since:
+
+
Author:
+
inger,
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LinkerParam() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorParam
getName, getValue, isActive, setIf, setName, setUnless, setValue
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinkerParam

+
+public LinkerParam()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/OSFamilyEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/OSFamilyEnum.html new file mode 100644 index 0000000..f1a488e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/OSFamilyEnum.html @@ -0,0 +1,297 @@ + + + + + + + +OSFamilyEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class OSFamilyEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.OSFamilyEnum
+
+
+
+
public final class OSFamilyEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of cpu types. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
OSFamilyEnum() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OSFamilyEnum

+
+public OSFamilyEnum()
+
+
Constructor. + + Set by default to "pentium3" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ObjectFileCollector.html b/site/apidocs/net/sf/antcontrib/cpptasks/ObjectFileCollector.html new file mode 100644 index 0000000..7ec8871 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ObjectFileCollector.html @@ -0,0 +1,267 @@ + + + + + + + +ObjectFileCollector (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class ObjectFileCollector

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ObjectFileCollector
+
+
+
All Implemented Interfaces:
FileVisitor
+
+
+
+
public final class ObjectFileCollector
extends java.lang.Object
implements FileVisitor
+ + +

+Collects object files for the link step. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ObjectFileCollector(Linker linker, + java.util.Vector files) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidvisit(java.io.File parentDir, + java.lang.String filename) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ObjectFileCollector

+
+public ObjectFileCollector(Linker linker,
+                           java.util.Vector files)
+
+
+ + + + + + + + +
+Method Detail
+ +

+visit

+
+public void visit(java.io.File parentDir,
+                  java.lang.String filename)
+           throws org.apache.tools.ant.BuildException
+
+
+
Specified by:
visit in interface FileVisitor
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/OptimizationEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/OptimizationEnum.html new file mode 100644 index 0000000..1cff8f1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/OptimizationEnum.html @@ -0,0 +1,363 @@ + + + + + + + +OptimizationEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class OptimizationEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.OptimizationEnum
+
+
+
+
public final class OptimizationEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of optimization levels (experimental). +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
OptimizationEnum() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values.
+ booleanisNoOptimization() + +
+          Is no optimization performed.
+ booleanisSize() + +
+          Is size optimized.
+ booleanisSpeed() + +
+          Is speed optimized.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OptimizationEnum

+
+public OptimizationEnum()
+
+
Constructor. + + Set by default to "speed" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+
+ +

+isSize

+
+public boolean isSize()
+
+
Is size optimized. +

+

+ +
Returns:
boolean true if size is optimized.
+
+
+
+ +

+isSpeed

+
+public boolean isSpeed()
+
+
Is speed optimized. +

+

+ +
Returns:
boolean true if speed is optimized.
+
+
+
+ +

+isNoOptimization

+
+public boolean isNoOptimization()
+
+
Is no optimization performed. +

+

+ +
Returns:
boolean true if no optimization is performed.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/OutputTypeEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/OutputTypeEnum.html new file mode 100644 index 0000000..ecec80c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/OutputTypeEnum.html @@ -0,0 +1,299 @@ + + + + + + + +OutputTypeEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class OutputTypeEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.OutputTypeEnum
+
+
+
+
public class OutputTypeEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of supported subsystems +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
OutputTypeEnum() + +
+          Constructor + + Set by default to "executable"
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OutputTypeEnum

+
+public OutputTypeEnum()
+
+
Constructor + + Set by default to "executable" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileDef.html new file mode 100644 index 0000000..f5d7096 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileDef.html @@ -0,0 +1,564 @@ + + + + + + + +PrecompileDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class PrecompileDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.PrecompileDef
+
+
+
+
public final class PrecompileDef
extends org.apache.tools.ant.types.DataType
+ + +

+An element that specifies a prototype file and rules for source files that + should not use precompiled headers +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
PrecompileDef() + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidappendExceptFileSet(ConditionalFileSet exceptSet) + +
+          Method used by PrecompileExceptDef to add exception set to + PrecompileDef.
+ PrecompileExceptDefcreateExcept() + +
+          Adds filesets that specify files that should not be processed with + precompiled headers enabled.
+ voidexecute() + +
+           
+ java.lang.String[]getExceptFiles() + +
+           
+ java.io.FilegetPrototype() + +
+          Gets prototype source file
+ booleanisActive() + +
+           
+ voidsetDescription(java.lang.String desc) + +
+          Sets a description of the current data type.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Set the 'if' condition.
+ voidsetPrototype(java.io.File prototype) + +
+          Sets file to precompile.
+ voidsetRefid(org.apache.tools.ant.types.Reference ref) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetUnless(java.lang.String propName) + +
+          Set the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrecompileDef

+
+public PrecompileDef()
+
+
Constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+appendExceptFileSet

+
+public void appendExceptFileSet(ConditionalFileSet exceptSet)
+
+
Method used by PrecompileExceptDef to add exception set to + PrecompileDef. +

+

+
+
+
+
+ +

+createExcept

+
+public PrecompileExceptDef createExcept()
+
+
Adds filesets that specify files that should not be processed with + precompiled headers enabled. +

+

+
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getExceptFiles

+
+public java.lang.String[] getExceptFiles()
+
+
+
+
+
+
+ +

+getPrototype

+
+public java.io.File getPrototype()
+
+
Gets prototype source file +

+

+
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
+
+
+
+
+ +

+setDescription

+
+public void setDescription(java.lang.String desc)
+
+
Sets a description of the current data type. +

+

+
Overrides:
setDescription in class org.apache.tools.ant.types.DataType
+
+
+
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Set the 'if' condition. + + The processor will be ignored unless the property is defined. + + The value of property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + isActive() is evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setPrototype

+
+public void setPrototype(java.io.File prototype)
+
+
Sets file to precompile. + + Should be a source file that includes only one unguarded header file. + Default value is "stdafx.cpp". +

+

+
Parameters:
prototype - file path for prototype source file
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference ref)
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+
Parameters:
ref - Reference to other element
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the 'unless' condition. If named property exists at execution time, + the processor will be ignored. + + Value of property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when isActive is called. +

+

+
Parameters:
propName - name of property
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileExceptDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileExceptDef.html new file mode 100644 index 0000000..7e1eab2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/PrecompileExceptDef.html @@ -0,0 +1,334 @@ + + + + + + + +PrecompileExceptDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class PrecompileExceptDef

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.PrecompileExceptDef
+
+
+
+
public final class PrecompileExceptDef
extends java.lang.Object
+ + +

+Specifies files that should not be compiled using precompiled headers. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PrecompileExceptDef(PrecompileDef owner) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFileset(ConditionalFileSet exceptSet) + +
+          Adds filesets that specify files that should not be processed using + precompiled headers.
+ voidexecute() + +
+           
+ voidsetDir(java.io.File dir) + +
+          Sets the base-directory
+ voidsetIncludes(java.lang.String includes) + +
+          Comma or space separated list of file patterns that should not be + compiled using precompiled headers.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrecompileExceptDef

+
+public PrecompileExceptDef(PrecompileDef owner)
+
+
Constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+addFileset

+
+public void addFileset(ConditionalFileSet exceptSet)
+
+
Adds filesets that specify files that should not be processed using + precompiled headers. +

+

+
Parameters:
exceptSet - FileSet specify files that should not be processed with + precompiled headers enabled.
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setDir

+
+public void setDir(java.io.File dir)
+            throws org.apache.tools.ant.BuildException
+
+
Sets the base-directory +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setIncludes

+
+public void setIncludes(java.lang.String includes)
+
+
Comma or space separated list of file patterns that should not be + compiled using precompiled headers. +

+

+
Parameters:
includes - the string containing the include patterns
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorDef.html new file mode 100644 index 0000000..6830bb2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorDef.html @@ -0,0 +1,1124 @@ + + + + + + + +ProcessorDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class ProcessorDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.ProcessorDef
+
+
+
Direct Known Subclasses:
CompilerDef, LinkerDef
+
+
+
+
public abstract class ProcessorDef
extends org.apache.tools.ant.types.DataType
+ + +

+An abstract compiler/linker definition. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+protected  booleannewEnvironment + +
+           
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + + +
+Constructor Summary
+protected ProcessorDef() + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddConfiguredProcessorArg(CommandLineArgument arg) + +
+          Adds a or
+protected  voidaddConfiguredProcessorParam(ProcessorParam param) + +
+          Adds a or
+ voidaddEnv(org.apache.tools.ant.types.Environment.Variable var) + +
+          Add an environment variable to the launched process.
+ voidaddFileset(ConditionalFileSet srcSet) + +
+          Adds a source file set.
+protected static java.lang.BooleanbooleanValueOf(boolean val) + +
+          Returns the equivalent Boolean object for the specified value + + Equivalent to Boolean.valueOf in JDK 1.4
+ ProcessorConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+ CommandLineArgument[]getActiveProcessorArgs() + +
+          Prepares list of processor arguments ( compilerarg, linkerarg ) that + are active for the current project settings.
+ ProcessorParam[]getActiveProcessorParams() + +
+          Prepares list of processor arguments ( compilerarg, linkerarg) that + are active for the current project settings.
+ booleangetDebug(ProcessorDef[] defaultProviders, + int index) + +
+          Gets boolean indicating debug build
+protected  ProcessorDef[]getDefaultProviders(ProcessorDef baseDef) + +
+          Creates an chain of objects which provide default values in descending + order of significance.
+ ProcessorDefgetExtends() + +
+          Gets the ProcessorDef specified by the extends attribute
+ booleangetInherit() + +
+          Gets the inherit attribute.
+ booleangetLibtool() + +
+           
+protected  ProcessorgetProcessor() + +
+          Obtains the appropriate processor (compiler, linker)
+protected  ProcessorgetProcessor(LinkType linkType) + +
+          Obtains the appropriate processor (compiler, linker) based on the + LinkType.
+ booleangetRebuild(ProcessorDef[] defaultProviders, + int index) + +
+          Gets a boolean value indicating whether all targets must be rebuilt + regardless of dependency analysis.
+ booleanhasFileSets() + +
+          Returns true if the processor definition contains embedded file set + definitions
+ booleanisActive() + +
+          Determine if this def should be used.
+ voidsetClassname(java.lang.String className) + +
+          Sets the class name for the adapter.
+ voidsetDebug(boolean debug) + +
+          If set true, all targets will be built for debugging.
+ voidsetDescription(java.lang.String desc) + +
+          Sets a description of the current data type.
+ voidsetExtends(org.apache.tools.ant.types.Reference extendsRef) + +
+          Specifies that this element extends the element with id attribute with a + matching value.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetInherit(boolean inherit) + +
+          If inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited.
+ voidsetLibtool(boolean libtool) + +
+          Set use of libtool.
+ voidsetNewenvironment(boolean newenv) + +
+          Do not propagate old environment when new environment variables are + specified.
+protected  voidsetProcessor(Processor processor) + +
+          Sets the processor
+ voidsetRebuild(boolean rebuild) + +
+          If set true, all targets will be unconditionally rebuilt.
+ voidsetRefid(org.apache.tools.ant.types.Reference ref) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ voidvisitFiles(FileVisitor visitor) + +
+          This method calls the FileVistor's visit function for every file in the + processors definition
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+newEnvironment

+
+protected boolean newEnvironment
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ProcessorDef

+
+protected ProcessorDef()
+                throws java.lang.NullPointerException
+
+
Constructor +

+

+ +
Throws: +
java.lang.NullPointerException
+
+ + + + + + + + +
+Method Detail
+ +

+booleanValueOf

+
+protected static java.lang.Boolean booleanValueOf(boolean val)
+
+
Returns the equivalent Boolean object for the specified value + + Equivalent to Boolean.valueOf in JDK 1.4 +

+

+
Parameters:
val - boolean value +
Returns:
Boolean.TRUE or Boolean.FALSE
+
+
+
+ +

+addConfiguredProcessorArg

+
+protected void addConfiguredProcessorArg(CommandLineArgument arg)
+                                  throws java.lang.NullPointerException,
+                                         org.apache.tools.ant.BuildException
+
+
Adds a or +

+

+
Parameters:
arg - command line argument, must not be null +
Throws: +
java.lang.NullPointerException - if arg is null +
org.apache.tools.ant.BuildException - if this definition is a reference
+
+
+
+ +

+addConfiguredProcessorParam

+
+protected void addConfiguredProcessorParam(ProcessorParam param)
+                                    throws java.lang.NullPointerException,
+                                           org.apache.tools.ant.BuildException
+
+
Adds a or +

+

+
Parameters:
param - command line argument, must not be null +
Throws: +
java.lang.NullPointerException - if arg is null +
org.apache.tools.ant.BuildException - if this definition is a reference
+
+
+
+ +

+addEnv

+
+public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
+
+
Add an environment variable to the launched process. +

+

+
+
+
+
+ +

+addFileset

+
+public void addFileset(ConditionalFileSet srcSet)
+                throws org.apache.tools.ant.BuildException
+
+
Adds a source file set. + + Files in these set will be processed by this configuration and will not + participate in the auction. +

+

+
Parameters:
srcSet - Fileset identifying files that should be processed by this + processor +
Throws: +
org.apache.tools.ant.BuildException - if processor definition is a reference
+
+
+
+ +

+createConfiguration

+
+public ProcessorConfiguration createConfiguration(CCTask task,
+                                                  LinkType linkType,
+                                                  ProcessorDef baseDef,
+                                                  TargetDef targetPlatform,
+                                                  VersionInfo versionInfo)
+
+
Creates a configuration +

+

+
Parameters:
baseDef - reference to def from containing cc element, may be null +
Returns:
configuration
+
+
+
+ +

+getActiveProcessorArgs

+
+public CommandLineArgument[] getActiveProcessorArgs()
+
+
Prepares list of processor arguments ( compilerarg, linkerarg ) that + are active for the current project settings. +

+

+ +
Returns:
active compiler arguments
+
+
+
+ +

+getActiveProcessorParams

+
+public ProcessorParam[] getActiveProcessorParams()
+
+
Prepares list of processor arguments ( compilerarg, linkerarg) that + are active for the current project settings. +

+

+ +
Returns:
active compiler arguments
+
+
+
+ +

+getDebug

+
+public boolean getDebug(ProcessorDef[] defaultProviders,
+                        int index)
+
+
Gets boolean indicating debug build +

+

+
Parameters:
defaultProviders - array of ProcessorDef's in descending priority
index - index to first element in array that should be considered +
Returns:
if true, built targets for debugging
+
+
+
+ +

+getDefaultProviders

+
+protected final ProcessorDef[] getDefaultProviders(ProcessorDef baseDef)
+
+
Creates an chain of objects which provide default values in descending + order of significance. +

+

+
Parameters:
baseDef - corresponding ProcessorDef from CCTask, will be last element + in array unless inherit = false +
Returns:
default provider array
+
+
+
+ +

+getExtends

+
+public ProcessorDef getExtends()
+                        throws org.apache.tools.ant.BuildException
+
+
Gets the ProcessorDef specified by the extends attribute +

+

+ +
Returns:
Base ProcessorDef, null if extends is not specified +
Throws: +
org.apache.tools.ant.BuildException - if reference is not same type object
+
+
+
+ +

+getInherit

+
+public final boolean getInherit()
+
+
Gets the inherit attribute. If the inherit value is true, this processor + definition will inherit default values from the containing cc element. +

+

+ +
Returns:
if true then properties from the containing element are + used.
+
+
+
+ +

+getLibtool

+
+public boolean getLibtool()
+
+
+
+
+
+
+ +

+getProcessor

+
+protected Processor getProcessor()
+
+
Obtains the appropriate processor (compiler, linker) +

+

+ +
Returns:
processor
+
+
+
+ +

+getProcessor

+
+protected Processor getProcessor(LinkType linkType)
+
+
Obtains the appropriate processor (compiler, linker) based on the + LinkType. +

+

+ +
Returns:
processor
+
+
+
+ +

+getRebuild

+
+public boolean getRebuild(ProcessorDef[] defaultProviders,
+                          int index)
+
+
Gets a boolean value indicating whether all targets must be rebuilt + regardless of dependency analysis. +

+

+
Parameters:
defaultProviders - array of ProcessorDef's in descending priority
index - index to first element in array that should be considered +
Returns:
true if all targets should be rebuilt.
+
+
+
+ +

+hasFileSets

+
+public boolean hasFileSets()
+
+
Returns true if the processor definition contains embedded file set + definitions +

+

+ +
Returns:
true if processor definition contains embedded filesets
+
+
+
+ +

+isActive

+
+public boolean isActive()
+                 throws org.apache.tools.ant.BuildException,
+                        java.lang.IllegalStateException
+
+
Determine if this def should be used. + + Definition will be active if the "if" variable (if specified) is set and + the "unless" variable (if specified) is not set and that all reference + or extended definitions are active +

+

+ +
Returns:
true if processor is active +
Throws: +
java.lang.IllegalStateException - if not properly initialized +
org.apache.tools.ant.BuildException - if "if" or "unless" variable contains suspicious values + "false" or "no" which indicates possible confusion
+
+
+
+ +

+setClassname

+
+public void setClassname(java.lang.String className)
+                  throws org.apache.tools.ant.BuildException
+
+
Sets the class name for the adapter. Use the "name" attribute when the + tool is supported. +

+

+
Parameters:
className - full class name +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setDebug

+
+public void setDebug(boolean debug)
+              throws org.apache.tools.ant.BuildException
+
+
If set true, all targets will be built for debugging. +

+

+
Parameters:
debug - true if targets should be built for debugging +
Throws: +
org.apache.tools.ant.BuildException - if processor definition is a reference
+
+
+
+ +

+setDescription

+
+public void setDescription(java.lang.String desc)
+
+
Sets a description of the current data type. +

+

+
Overrides:
setDescription in class org.apache.tools.ant.types.DataType
+
+
+
+
+
+
+ +

+setExtends

+
+public void setExtends(org.apache.tools.ant.types.Reference extendsRef)
+                throws org.apache.tools.ant.BuildException
+
+
Specifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element. +

+

+
Parameters:
extendsRef - Reference to the extended processor definition. +
Throws: +
org.apache.tools.ant.BuildException - if this processor definition is a reference
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setInherit

+
+public void setInherit(boolean inherit)
+                throws org.apache.tools.ant.BuildException
+
+
If inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited. +

+

+
Parameters:
inherit - new value +
Throws: +
org.apache.tools.ant.BuildException - if processor definition is a reference
+
+
+
+ +

+setLibtool

+
+public void setLibtool(boolean libtool)
+
+
Set use of libtool. + + If set to true, the "libtool " will be prepended to the command line +

+

+
Parameters:
libtool - If true, use libtool.
+
+
+
+ +

+setNewenvironment

+
+public void setNewenvironment(boolean newenv)
+
+
Do not propagate old environment when new environment variables are + specified. +

+

+
+
+
+
+ +

+setProcessor

+
+protected void setProcessor(Processor processor)
+                     throws org.apache.tools.ant.BuildException,
+                            java.lang.NullPointerException
+
+
Sets the processor +

+

+
Parameters:
processor - processor, may not be null. +
Throws: +
org.apache.tools.ant.BuildException - if ProcessorDef is a reference +
java.lang.NullPointerException - if processor is null
+
+
+
+ +

+setRebuild

+
+public void setRebuild(boolean rebuild)
+                throws org.apache.tools.ant.BuildException
+
+
If set true, all targets will be unconditionally rebuilt. +

+

+
Parameters:
rebuild - if true, rebuild all targets. +
Throws: +
org.apache.tools.ant.BuildException - if processor definition is a reference
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference ref)
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "if", "unless" and "description". +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+
Parameters:
ref - Reference to other element
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+visitFiles

+
+public void visitFiles(FileVisitor visitor)
+
+
This method calls the FileVistor's visit function for every file in the + processors definition +

+

+
Parameters:
visitor - object whose visit method is called for every file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorEnumValue.html b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorEnumValue.html new file mode 100644 index 0000000..1ad2444 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorEnumValue.html @@ -0,0 +1,299 @@ + + + + + + + +ProcessorEnumValue (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class ProcessorEnumValue

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ProcessorEnumValue
+
+
+
+
public class ProcessorEnumValue
extends java.lang.Object
+ + +

+One entry in the arrays used by the CompilerEnum and LinkerEnum classes. +

+ +

+

+
Author:
+
Curt Arnold
+
See Also:
CompilerEnum, +LinkerEnum
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ProcessorEnumValue(java.lang.String name, + Processor processor) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetName() + +
+           
+ ProcessorgetProcessor() + +
+           
+static java.lang.String[]getValues(ProcessorEnumValue[] processors) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ProcessorEnumValue

+
+public ProcessorEnumValue(java.lang.String name,
+                          Processor processor)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public static java.lang.String[] getValues(ProcessorEnumValue[] processors)
+
+
+
+
+
+
+ +

+getName

+
+public java.lang.String getName()
+
+
+
+
+
+
+ +

+getProcessor

+
+public Processor getProcessor()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorParam.html new file mode 100644 index 0000000..24d5c29 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ProcessorParam.html @@ -0,0 +1,406 @@ + + + + + + + +ProcessorParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class ProcessorParam

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ProcessorParam
+
+
+
Direct Known Subclasses:
CompilerParam, LinkerParam
+
+
+
+
public class ProcessorParam
extends java.lang.Object
+ + +

+Place class description here. +

+ +

+

+
Since:
+
+
Author:
+
inger,
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ProcessorParam() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetName() + +
+           
+ java.lang.StringgetValue() + +
+           
+ booleanisActive(org.apache.tools.ant.Project p) + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetName(java.lang.String name) + +
+          Specifies relative location of argument on command line.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ voidsetValue(java.lang.String value) + +
+          Specifies the string that should appear on the command line.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ProcessorParam

+
+public ProcessorParam()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public java.lang.String getName()
+
+
+
+
+
+
+ +

+getValue

+
+public java.lang.String getValue()
+
+
+
+
+
+
+ +

+isActive

+
+public boolean isActive(org.apache.tools.ant.Project p)
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
+
+
+
+ +

+setName

+
+public void setName(java.lang.String name)
+
+
Specifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames. +

+

+
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setValue

+
+public void setValue(java.lang.String value)
+
+
Specifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/RuntimeType.html b/site/apidocs/net/sf/antcontrib/cpptasks/RuntimeType.html new file mode 100644 index 0000000..aa0bf72 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/RuntimeType.html @@ -0,0 +1,285 @@ + + + + + + + +RuntimeType (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class RuntimeType

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.RuntimeType
+
+
+
+
public class RuntimeType
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumerated attribute with the values "dynamic" and "static", +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
RuntimeType() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RuntimeType

+
+public RuntimeType()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/SourceHistory.html b/site/apidocs/net/sf/antcontrib/cpptasks/SourceHistory.html new file mode 100644 index 0000000..43e5f7b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/SourceHistory.html @@ -0,0 +1,300 @@ + + + + + + + +SourceHistory (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class SourceHistory

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.SourceHistory
+
+
+
+
public final class SourceHistory
extends java.lang.Object
+ + +

+The history of a source file used to build a target +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
SourceHistory(java.lang.String relativePath, + long lastModified) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetAbsolutePath(java.io.File baseDir) + +
+           
+ longgetLastModified() + +
+           
+ java.lang.StringgetRelativePath() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SourceHistory

+
+public SourceHistory(java.lang.String relativePath,
+                     long lastModified)
+
+
Constructor +

+

+ + + + + + + + +
+Method Detail
+ +

+getAbsolutePath

+
+public java.lang.String getAbsolutePath(java.io.File baseDir)
+
+
+
+
+
+
+ +

+getLastModified

+
+public long getLastModified()
+
+
+
+
+
+
+ +

+getRelativePath

+
+public java.lang.String getRelativePath()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/SubsystemEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/SubsystemEnum.html new file mode 100644 index 0000000..07371ec --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/SubsystemEnum.html @@ -0,0 +1,289 @@ + + + + + + + +SubsystemEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class SubsystemEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.SubsystemEnum
+
+
+
+
public final class SubsystemEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of supported subsystems +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
SubsystemEnum() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SubsystemEnum

+
+public SubsystemEnum()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/TargetDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/TargetDef.html new file mode 100644 index 0000000..7dfaf0d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/TargetDef.html @@ -0,0 +1,585 @@ + + + + + + + +TargetDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TargetDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.TargetDef
+
+
+
+
public final class TargetDef
extends org.apache.tools.ant.types.DataType
+ + +

+Information on the execution platforms for the generated code. + (Non-functional prototype) +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
TargetDef() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+          Bogus method required for documentation generation.
+ ArchEnumgetArch() + +
+          Gets arch.
+ CPUEnumgetCpu() + +
+          Gets cpu.
+ OSFamilyEnumgetOsfamily() + +
+          Gets operating system family.
+ booleanisActive() + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ voidsetArch(ArchEnum value) + +
+          Sets cpu architecture, compiler may use cpu specific instructions.
+ voidsetCpu(CPUEnum value) + +
+          Sets preferred cpu, but does not use cpu specific instructions.
+ voidsetDescription(java.lang.String desc) + +
+          Sets a description of the current data type.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetOsfamily(OSFamilyEnum value) + +
+          Sets operating system family.
+ voidsetRefid(org.apache.tools.ant.types.Reference r) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TargetDef

+
+public TargetDef()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+
+
Bogus method required for documentation generation. +

+

+
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+ +
Returns:
true if active
+
+
+
+ +

+setDescription

+
+public void setDescription(java.lang.String desc)
+
+
Sets a description of the current data type. +

+

+
Overrides:
setDescription in class org.apache.tools.ant.types.DataType
+
+
+
Parameters:
desc - description
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference r)
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified. +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+
Parameters:
r - id of referenced target
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+getCpu

+
+public CPUEnum getCpu()
+
+
Gets cpu. +

+

+ +
Returns:
cpu, may be null.
+
+
+
+ +

+getArch

+
+public ArchEnum getArch()
+
+
Gets arch. +

+

+ +
Returns:
arch, may be null.
+
+
+
+ +

+getOsfamily

+
+public OSFamilyEnum getOsfamily()
+
+
Gets operating system family. +

+

+ +
Returns:
os family, may be null.
+
+
+
+ +

+setCpu

+
+public void setCpu(CPUEnum value)
+
+
Sets preferred cpu, but does not use cpu specific instructions. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setArch

+
+public void setArch(ArchEnum value)
+
+
Sets cpu architecture, compiler may use cpu specific instructions. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setOsfamily

+
+public void setOsfamily(OSFamilyEnum value)
+
+
Sets operating system family. +

+

+
Parameters:
value - new value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistory.html b/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistory.html new file mode 100644 index 0000000..c0ce748 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistory.html @@ -0,0 +1,319 @@ + + + + + + + +TargetHistory (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TargetHistory

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.TargetHistory
+
+
+
+
public final class TargetHistory
extends java.lang.Object
+ + +

+A description of a file built or to be built +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TargetHistory(java.lang.String config, + java.lang.String output, + long outputLastModified, + SourceHistory[] sources) + +
+          Constructor from build step
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetOutput() + +
+           
+ longgetOutputLastModified() + +
+           
+ java.lang.StringgetProcessorConfiguration() + +
+           
+ SourceHistory[]getSources() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TargetHistory

+
+public TargetHistory(java.lang.String config,
+                     java.lang.String output,
+                     long outputLastModified,
+                     SourceHistory[] sources)
+
+
Constructor from build step +

+

+ + + + + + + + +
+Method Detail
+ +

+getOutput

+
+public java.lang.String getOutput()
+
+
+
+
+
+
+ +

+getOutputLastModified

+
+public long getOutputLastModified()
+
+
+
+
+
+
+ +

+getProcessorConfiguration

+
+public java.lang.String getProcessorConfiguration()
+
+
+
+
+
+
+ +

+getSources

+
+public SourceHistory[] getSources()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistoryTable.html b/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistoryTable.html new file mode 100644 index 0000000..d51996d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/TargetHistoryTable.html @@ -0,0 +1,374 @@ + + + + + + + +TargetHistoryTable (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TargetHistoryTable

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.TargetHistoryTable
+
+
+
+
public final class TargetHistoryTable
extends java.lang.Object
+ + +

+A history of the compiler and linker settings used to build the files in the + same directory as the history. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TargetHistoryTable(CCTask task, + java.io.File outputDir) + +
+          Creates a target history table from history.xml in the output directory, + if it exists.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcommit() + +
+           
+ TargetHistoryget(java.lang.String configId, + java.lang.String outputName) + +
+           
+ voidmarkForRebuild(java.util.Hashtable targetInfos) + +
+           
+ voidmarkForRebuild(TargetInfo targetInfo) + +
+           
+ voidupdate(ProcessorConfiguration config, + java.lang.String[] sources, + VersionInfo versionInfo) + +
+           
+ voidupdate(TargetInfo linkTarget) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TargetHistoryTable

+
+public TargetHistoryTable(CCTask task,
+                          java.io.File outputDir)
+                   throws org.apache.tools.ant.BuildException
+
+
Creates a target history table from history.xml in the output directory, + if it exists. Otherwise, initializes the history table empty. +

+

+
Parameters:
task - task used for logging history load errors
outputDir - output directory for task +
Throws: +
org.apache.tools.ant.BuildException
+
+ + + + + + + + +
+Method Detail
+ +

+commit

+
+public void commit()
+            throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+get

+
+public TargetHistory get(java.lang.String configId,
+                         java.lang.String outputName)
+
+
+
+
+
+
+ +

+markForRebuild

+
+public void markForRebuild(java.util.Hashtable targetInfos)
+
+
+
+
+
+
+ +

+markForRebuild

+
+public void markForRebuild(TargetInfo targetInfo)
+
+
+
+
+
+
+ +

+update

+
+public void update(ProcessorConfiguration config,
+                   java.lang.String[] sources,
+                   VersionInfo versionInfo)
+
+
+
+
+
+
+ +

+update

+
+public void update(TargetInfo linkTarget)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/TargetInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/TargetInfo.html new file mode 100644 index 0000000..6310e17 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/TargetInfo.html @@ -0,0 +1,456 @@ + + + + + + + +TargetInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TargetInfo

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.TargetInfo
+
+
+
+
public final class TargetInfo
extends java.lang.Object
+ + +

+A description of a file built or to be built +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TargetInfo(ProcessorConfiguration config, + java.io.File[] sources, + java.io.File[] sysSources, + java.io.File output, + boolean rebuild) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getAllSourcePaths() + +
+           
+ java.io.File[]getAllSources() + +
+           
+ ProcessorConfigurationgetConfiguration() + +
+           
+ java.io.FilegetOutput() + +
+           
+ booleangetRebuild() + +
+           
+ SourceHistory[]getSourceHistories(java.lang.String basePath) + +
+          Returns an array of SourceHistory objects (contains relative path and + last modified time) for the source[s] of this target
+ java.lang.String[]getSourcePaths() + +
+           
+ java.io.File[]getSources() + +
+           
+ java.lang.String[]getSysSourcePaths() + +
+           
+ java.io.File[]getSysSources() + +
+           
+ voidmustRebuild() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TargetInfo

+
+public TargetInfo(ProcessorConfiguration config,
+                  java.io.File[] sources,
+                  java.io.File[] sysSources,
+                  java.io.File output,
+                  boolean rebuild)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getAllSourcePaths

+
+public java.lang.String[] getAllSourcePaths()
+
+
+
+
+
+
+ +

+getAllSources

+
+public java.io.File[] getAllSources()
+
+
+
+
+
+
+ +

+getConfiguration

+
+public ProcessorConfiguration getConfiguration()
+
+
+
+
+
+
+ +

+getOutput

+
+public java.io.File getOutput()
+
+
+
+
+
+
+ +

+getRebuild

+
+public boolean getRebuild()
+
+
+
+
+
+
+ +

+getSourceHistories

+
+public SourceHistory[] getSourceHistories(java.lang.String basePath)
+
+
Returns an array of SourceHistory objects (contains relative path and + last modified time) for the source[s] of this target +

+

+
+
+
+
+ +

+getSourcePaths

+
+public java.lang.String[] getSourcePaths()
+
+
+
+
+
+
+ +

+getSources

+
+public java.io.File[] getSources()
+
+
+
+
+
+
+ +

+getSysSourcePaths

+
+public java.lang.String[] getSysSourcePaths()
+
+
+
+
+
+
+ +

+getSysSources

+
+public java.io.File[] getSysSources()
+
+
+
+
+
+
+ +

+mustRebuild

+
+public void mustRebuild()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/TargetMatcher.html b/site/apidocs/net/sf/antcontrib/cpptasks/TargetMatcher.html new file mode 100644 index 0000000..5060a79 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/TargetMatcher.html @@ -0,0 +1,281 @@ + + + + + + + +TargetMatcher (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TargetMatcher

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.TargetMatcher
+
+
+
All Implemented Interfaces:
FileVisitor
+
+
+
+
public final class TargetMatcher
extends java.lang.Object
implements FileVisitor
+ + +

+This class matches each visited file with an appropriate compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TargetMatcher(CCTask task, + java.io.File outputDir, + ProcessorConfiguration[] processors, + LinkerConfiguration linker, + java.util.Vector objectFiles, + java.util.Hashtable targets, + VersionInfo versionInfo) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidvisit(java.io.File parentDir, + java.lang.String filename) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TargetMatcher

+
+public TargetMatcher(CCTask task,
+                     java.io.File outputDir,
+                     ProcessorConfiguration[] processors,
+                     LinkerConfiguration linker,
+                     java.util.Vector objectFiles,
+                     java.util.Hashtable targets,
+                     VersionInfo versionInfo)
+
+
+ + + + + + + + +
+Method Detail
+ +

+visit

+
+public void visit(java.io.File parentDir,
+                  java.lang.String filename)
+           throws org.apache.tools.ant.BuildException
+
+
+
Specified by:
visit in interface FileVisitor
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/VersionInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/VersionInfo.html new file mode 100644 index 0000000..9ab527e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/VersionInfo.html @@ -0,0 +1,1303 @@ + + + + + + + +VersionInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class VersionInfo

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.VersionInfo
+
+
+
+
public final class VersionInfo
extends org.apache.tools.ant.types.DataType
+ + +

+Version Information. + + This information is applied in a platform specific manner + to embed version information into executable images. This + behavior is new and subject to change. + + On the Microsoft Windows platform, a resource is generated and added + to the set of files to be compiled. A resource compiler must + be specified to compile the generated file. + + On Unix platforms, versioninfo is currently not used. + Future versions may append fileversion to the output file name, + use compatibility version for -soname and possibly create + symbolic links. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
VersionInfo() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+          Methods is required for documentation generation, throws + exception if called.
+ java.lang.StringgetCompanyname() + +
+          Gets Company name.
+ java.lang.StringgetCompatibilityversion() + +
+          Gets compatibility version.
+ org.apache.tools.ant.types.ReferencegetExtends() + +
+           
+ java.lang.StringgetFilecomments() + +
+          Gets comments.
+ java.lang.StringgetFiledescription() + +
+          Gets Description.
+ java.lang.StringgetFileversion() + +
+          Gets file version.
+ java.lang.StringgetIf() + +
+          Gets if property name.
+ java.lang.StringgetInternalname() + +
+          Gets internal name.
+ java.lang.StringgetLanguage() + +
+          Gets file language, should be an IETF RFC 3066 identifier, for example, en-US.
+ java.lang.StringgetLegalcopyright() + +
+          Gets legal copyright.
+ java.lang.StringgetLegaltrademarks() + +
+          Gets legal trademark.
+ java.lang.StringgetOriginalfilename() + +
+          Gets original filename.
+ java.lang.BooleangetPatched() + +
+          Gets patched.
+ java.lang.BooleangetPrerelease() + +
+          Gets prerelease.
+ java.lang.StringgetPrivatebuild() + +
+          Gets private build.
+ java.lang.StringgetProductname() + +
+          Gets product name.
+ java.lang.StringgetProductversion() + +
+          Gets Product version.
+ java.lang.StringgetSpecialbuild() + +
+          Special build
+ java.lang.StringgetUnless() + +
+          Gets if property name.
+ booleanisActive() + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ VersionInfomerge() + +
+          Returns a VersionInfo that reflects any inherited version information.
+ voidsetCompanyname(java.lang.String value) + +
+          Sets company name.
+ voidsetCompatibilityversion(java.lang.String value) + +
+          Sets compatibility version.
+ voidsetExtends(org.apache.tools.ant.types.Reference extendsRef) + +
+          Specifies that this element extends the element with id attribute with a + matching value.
+ voidsetFilecomments(java.lang.String value) + +
+          Sets comments.
+ voidsetFiledescription(java.lang.String value) + +
+          Sets file description.
+ voidsetFileversion(java.lang.String value) + +
+          Sets file version.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetInternalname(java.lang.String value) + +
+          Sets internal name.
+ voidsetLanguage(java.lang.String value) + +
+          Sets language.
+ voidsetLegalcopyright(java.lang.String value) + +
+          Sets legal copyright.
+ voidsetLegaltrademarks(java.lang.String value) + +
+          Sets legal trademark.
+ voidsetOriginalfilename(java.lang.String value) + +
+          Sets original name.
+ voidsetPatched(boolean value) + +
+          Sets prerelease.
+ voidsetPrerelease(boolean value) + +
+          Sets prerelease.
+ voidsetPrivatebuild(java.lang.String value) + +
+          Sets private build.
+ voidsetProductname(java.lang.String value) + +
+          Sets product name.
+ voidsetProductversion(java.lang.String value) + +
+          Sets product version.
+ voidsetRefid(org.apache.tools.ant.types.Reference r) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetSpecialbuild(java.lang.String value) + +
+          Sets private build.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+VersionInfo

+
+public VersionInfo()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+merge

+
+public VersionInfo merge()
+
+
Returns a VersionInfo that reflects any inherited version information. +

+

+ +
Returns:
merged version information.
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
Methods is required for documentation generation, throws + exception if called. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - if called
+
+
+
+ +

+isActive

+
+public final boolean isActive()
+                       throws org.apache.tools.ant.BuildException
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - throws build exception if name is not set
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+getExtends

+
+public org.apache.tools.ant.types.Reference getExtends()
+
+
+
+
+
+
+ +

+setExtends

+
+public void setExtends(org.apache.tools.ant.types.Reference extendsRef)
+                throws org.apache.tools.ant.BuildException
+
+
Specifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element. +

+

+
Parameters:
extendsRef - Reference to the extended processor definition. +
Throws: +
org.apache.tools.ant.BuildException - if this processor definition is a reference
+
+
+
+ +

+getIf

+
+public final java.lang.String getIf()
+
+
Gets if property name. +

+

+ +
Returns:
property name, may be null.
+
+
+
+ +

+setIf

+
+public final void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference r)
+              throws org.apache.tools.ant.BuildException
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified. +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getUnless

+
+public final java.lang.String getUnless()
+
+
Gets if property name. +

+

+ +
Returns:
property name, may be null.
+
+
+
+ +

+setUnless

+
+public final void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+getFileversion

+
+public java.lang.String getFileversion()
+
+
Gets file version. +

+

+ +
Returns:
file version, may be null.
+
+
+
+ +

+getProductversion

+
+public java.lang.String getProductversion()
+
+
Gets Product version. +

+

+ +
Returns:
product version, may be null
+
+
+
+ +

+getCompatibilityversion

+
+public java.lang.String getCompatibilityversion()
+
+
Gets compatibility version. +

+

+ +
Returns:
compatibility version, may be null
+
+
+
+ +

+getLanguage

+
+public java.lang.String getLanguage()
+
+
Gets file language, should be an IETF RFC 3066 identifier, for example, en-US. +

+

+ +
Returns:
language, may be null.
+
+
+
+ +

+getFilecomments

+
+public java.lang.String getFilecomments()
+
+
Gets comments. +

+

+ +
Returns:
comments, may be null.
+
+
+
+ +

+getCompanyname

+
+public java.lang.String getCompanyname()
+
+
Gets Company name. +

+

+ +
Returns:
company name, may be null.
+
+
+
+ +

+getFiledescription

+
+public java.lang.String getFiledescription()
+
+
Gets Description. +

+

+ +
Returns:
description, may be null.
+
+
+
+ +

+getInternalname

+
+public java.lang.String getInternalname()
+
+
Gets internal name. +

+

+ +
Returns:
internal name, may be null.
+
+
+
+ +

+getLegalcopyright

+
+public java.lang.String getLegalcopyright()
+
+
Gets legal copyright. +

+

+ +
Returns:
legal copyright, may be null.
+
+
+
+ +

+getLegaltrademarks

+
+public java.lang.String getLegaltrademarks()
+
+
Gets legal trademark. +

+

+ +
Returns:
legal trademark, may be null;
+
+
+
+ +

+getOriginalfilename

+
+public java.lang.String getOriginalfilename()
+
+
Gets original filename. +

+

+ +
Returns:
original filename, may be null.
+
+
+
+ +

+getPrivatebuild

+
+public java.lang.String getPrivatebuild()
+
+
Gets private build. +

+

+ +
Returns:
private build, may be null.
+
+
+
+ +

+getPrerelease

+
+public java.lang.Boolean getPrerelease()
+
+
Gets prerelease. +

+

+ +
Returns:
prerelease, may be null.
+
+
+
+ +

+getPatched

+
+public java.lang.Boolean getPatched()
+
+
Gets patched. +

+

+ +
Returns:
patched, may be null.
+
+
+
+ +

+getProductname

+
+public java.lang.String getProductname()
+
+
Gets product name. +

+

+ +
Returns:
product name, may be null.
+
+
+
+ +

+getSpecialbuild

+
+public java.lang.String getSpecialbuild()
+
+
Special build +

+

+ +
Returns:
special build, may be null.
+
+
+
+ +

+setFileversion

+
+public void setFileversion(java.lang.String value)
+                    throws org.apache.tools.ant.BuildException
+
+
Sets file version. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setProductversion

+
+public void setProductversion(java.lang.String value)
+                       throws org.apache.tools.ant.BuildException
+
+
Sets product version. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setCompatibilityversion

+
+public void setCompatibilityversion(java.lang.String value)
+                             throws org.apache.tools.ant.BuildException
+
+
Sets compatibility version. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setLanguage

+
+public void setLanguage(java.lang.String value)
+                 throws org.apache.tools.ant.BuildException
+
+
Sets language. +

+

+
Parameters:
value - new value, should be an IETF RFC 3066 language identifier. +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setFilecomments

+
+public void setFilecomments(java.lang.String value)
+                     throws org.apache.tools.ant.BuildException
+
+
Sets comments. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setFiledescription

+
+public void setFiledescription(java.lang.String value)
+
+
Sets file description. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setCompanyname

+
+public void setCompanyname(java.lang.String value)
+                    throws org.apache.tools.ant.BuildException
+
+
Sets company name. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setInternalname

+
+public void setInternalname(java.lang.String value)
+                     throws org.apache.tools.ant.BuildException
+
+
Sets internal name. Internal name will automatically be + specified from build step, only set this value if + intentionally overriding that value. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setLegalcopyright

+
+public void setLegalcopyright(java.lang.String value)
+                       throws org.apache.tools.ant.BuildException
+
+
Sets legal copyright. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setLegaltrademarks

+
+public void setLegaltrademarks(java.lang.String value)
+                        throws org.apache.tools.ant.BuildException
+
+
Sets legal trademark. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setOriginalfilename

+
+public void setOriginalfilename(java.lang.String value)
+                         throws org.apache.tools.ant.BuildException
+
+
Sets original name. Only set this value if + intentionally overriding the value from the build set. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setPrivatebuild

+
+public void setPrivatebuild(java.lang.String value)
+                     throws org.apache.tools.ant.BuildException
+
+
Sets private build. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setPrerelease

+
+public void setPrerelease(boolean value)
+                   throws org.apache.tools.ant.BuildException
+
+
Sets prerelease. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setPatched

+
+public void setPatched(boolean value)
+                throws org.apache.tools.ant.BuildException
+
+
Sets prerelease. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setProductname

+
+public void setProductname(java.lang.String value)
+                    throws org.apache.tools.ant.BuildException
+
+
Sets product name. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+
+ +

+setSpecialbuild

+
+public void setSpecialbuild(java.lang.String value)
+                     throws org.apache.tools.ant.BuildException
+
+
Sets private build. +

+

+
Parameters:
value - new value +
Throws: +
org.apache.tools.ant.BuildException - if specified with refid
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/WarningLevelEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/WarningLevelEnum.html new file mode 100644 index 0000000..269d960 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/WarningLevelEnum.html @@ -0,0 +1,291 @@ + + + + + + + +WarningLevelEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class WarningLevelEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.WarningLevelEnum
+
+
+
+
public final class WarningLevelEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
WarningLevelEnum() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Get allowable values.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WarningLevelEnum

+
+public WarningLevelEnum()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Get allowable values. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+ +
Returns:
allowable values
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.html new file mode 100644 index 0000000..c14539d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.html @@ -0,0 +1,236 @@ + + + + + + + +PropertyListSerialization (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.apple +
+Class PropertyListSerialization

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.apple.PropertyListSerialization
+
+
+
+
public final class PropertyListSerialization
extends java.lang.Object
+ + +

+Static class that provides methods to serialize + a Map to a Cocoa XML Property List. Does not currently support + date or data elements. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+static voidserialize(java.util.Map propertyList, + java.util.List comments, + java.io.File file) + +
+          Serializes a property list into a Cocoa XML Property List document.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+serialize

+
+public static void serialize(java.util.Map propertyList,
+                             java.util.List comments,
+                             java.io.File file)
+                      throws java.io.IOException,
+                             org.xml.sax.SAXException,
+                             javax.xml.transform.TransformerConfigurationException
+
+
Serializes a property list into a Cocoa XML Property List document. +

+

+
Parameters:
propertyList - property list.
file - destination.
comments - comments to insert into document. +
Throws: +
org.xml.sax.SAXException - if exception during serialization. +
javax.xml.transform.TransformerConfigurationException - if exception creating serializer. +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.html new file mode 100644 index 0000000..53fb9ec --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.html @@ -0,0 +1,280 @@ + + + + + + + +XcodeProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.apple +
+Class XcodeProjectWriter

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter
+
+
+
All Implemented Interfaces:
ProjectWriter
+
+
+
+
public final class XcodeProjectWriter
extends java.lang.Object
implements ProjectWriter
+ + +

+Writes a Apple Xcode 2.1+ project directory. XCode stores project + configuration as a PropertyList. Though it will always write the project + as a Cocoa Old-Style ASCII property list, it will read projects + stored using Cocoa's XML Property List format. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
XcodeProjectWriter() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ voidwriteProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+XcodeProjectWriter

+
+public XcodeProjectWriter()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+writeProject

+
+public void writeProject(java.io.File fileName,
+                         CCTask task,
+                         ProjectDef projectDef,
+                         java.util.List sources,
+                         java.util.Hashtable targets,
+                         TargetInfo linkTarget)
+                  throws java.io.IOException
+
+
Writes a project definition file. +

+

+
Specified by:
writeProject in interface ProjectWriter
+
+
+
Parameters:
fileName - File name base, writer may append appropriate extension
task - cc task for which to write project
projectDef - project element
targets - compilation targets
linkTarget - link target
sources - source and header files +
Throws: +
java.io.IOException - if error writing project file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/PropertyListSerialization.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/PropertyListSerialization.html new file mode 100644 index 0000000..9bf51bf --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/PropertyListSerialization.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.apple.PropertyListSerialization (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.apple.PropertyListSerialization

+
+No usage of net.sf.antcontrib.cpptasks.apple.PropertyListSerialization +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/XcodeProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/XcodeProjectWriter.html new file mode 100644 index 0000000..d083828 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/class-use/XcodeProjectWriter.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter

+
+No usage of net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-frame.html new file mode 100644 index 0000000..1714bbc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.apple (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.apple + + + + +
+Classes  + +
+PropertyListSerialization +
+XcodeProjectWriter
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-summary.html new file mode 100644 index 0000000..1e59212 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-summary.html @@ -0,0 +1,175 @@ + + + + + + + +net.sf.antcontrib.cpptasks.apple (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.apple +

+Project writer for Apple Xcode +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Class Summary
PropertyListSerializationStatic class that provides methods to serialize + a Map to a Cocoa XML Property List.
XcodeProjectWriterWrites a Apple Xcode 2.1+ project directory.
+  + +

+

+Package net.sf.antcontrib.cpptasks.apple Description +

+ +

+Project writer for Apple Xcode +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-tree.html new file mode 100644 index 0000000..7f2f620 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-tree.html @@ -0,0 +1,151 @@ + + + + + + + +net.sf.antcontrib.cpptasks.apple Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.apple +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-use.html new file mode 100644 index 0000000..6107df9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/apple/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.apple (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.apple

+
+No usage of net.sf.antcontrib.cpptasks.apple +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.html new file mode 100644 index 0000000..772f30c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.html @@ -0,0 +1,581 @@ + + + + + + + +ADSCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.arm +
+Class ADSCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.arm.ADSCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class ADSCCompiler
extends CommandLineCCompiler
+ + +

+Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          
+protected  voidaddWarningSwitch(java.util.Vector args, + int warnings) + +
+          Adds flags that customize the warnings reported + + Compiler does not appear to have warning levels but ability to turn off + specific errors by explicit switches, could fabricate levels by + prioritizing errors.
+static ADSCCompilergetArmCC() + +
+          Singleton for ARM 32-bit C compiler
+static ADSCCompilergetArmCpp() + +
+          Singleton for ARM 32-bit C++ compiler
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Add command line options for preprocessor macro
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          ARMINC environment variable contains the default include path
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String source) + +
+          Returns command line option to specify include directory
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+          Maximum command line length
+static ADSCCompilergetThumbCC() + +
+          Singleton for ARM 16-bit C compiler
+static ADSCCompilergetThumbCpp() + +
+          Singleton for ARM 16-bit C++ compiler
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
+  +

+ + + + + + + + +
+Method Detail
+ +

+getArmCC

+
+public static ADSCCompiler getArmCC()
+
+
Singleton for ARM 32-bit C compiler +

+

+
+
+
+
+ +

+getArmCpp

+
+public static ADSCCompiler getArmCpp()
+
+
Singleton for ARM 32-bit C++ compiler +

+

+
+
+
+
+ +

+getThumbCC

+
+public static ADSCCompiler getThumbCC()
+
+
Singleton for ARM 16-bit C compiler +

+

+
+
+
+
+ +

+getThumbCpp

+
+public static ADSCCompiler getThumbCpp()
+
+
Singleton for ARM 16-bit C++ compiler +

+

+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+

+

+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int warnings)
+
+
Adds flags that customize the warnings reported + + Compiler does not appear to have warning levels but ability to turn off + specific errors by explicit switches, could fabricate levels by + prioritizing errors. +

+

+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
See Also:
CommandLineCompiler.addWarningSwitch(java.util.Vector, + int)
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
Add command line options for preprocessor macro +

+

+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
See Also:
CommandLineCompiler.getDefineSwitch(java.lang.StringBuffer, + java.lang.String, java.lang.String)
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
ARMINC environment variable contains the default include path +

+

+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
See Also:
CommandLineCompiler.getEnvironmentIncludePath()
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String source)
+
+
Returns command line option to specify include directory +

+

+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
Maximum command line length +

+

+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
See Also:
CommandLineCompiler.getMaximumCommandLength()
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.html new file mode 100644 index 0000000..72692d8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.html @@ -0,0 +1,608 @@ + + + + + + + +ADSLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.arm +
+Class ADSLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.arm.ADSLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class ADSLibrarian
extends CommandLineLinker
+ + +

+Adapter for ARM Librarian +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+static ADSLibrariangetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+protected  intgetMaximumCommandLength() + +
+           
+protected  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static ADSLibrarian getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+protected int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLinker.html new file mode 100644 index 0000000..fe16773 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/ADSLinker.html @@ -0,0 +1,629 @@ + + + + + + + +ADSLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.arm +
+Class ADSLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.arm.ADSLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class ADSLinker
extends CommandLineLinker
+ + +

+Adapter for the ARM Linker +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+          May have to make this String array return
+static ADSLinkergetDllInstance() + +
+           
+static ADSLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+protected  intgetMaximumCommandLength() + +
+           
+protected  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getDllInstance

+
+public static ADSLinker getDllInstance()
+
+
+
+
+
+
+ +

+getInstance

+
+public static ADSLinker getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
May have to make this String array return +

+

+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
See Also:
CommandLineLinker.getCommandFileSwitch(java.lang.String)
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+protected int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSCCompiler.html new file mode 100644 index 0000000..b5b5f93 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSCCompiler.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.arm.ADSCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.arm.ADSCCompiler

+
+ + + + + + + + + +
+Packages that use ADSCCompiler
net.sf.antcontrib.cpptasks.arm  
+  +

+ + + + + +
+Uses of ADSCCompiler in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm that return ADSCCompiler
+static ADSCCompilerADSCCompiler.getArmCC() + +
+          Singleton for ARM 32-bit C compiler
+static ADSCCompilerADSCCompiler.getArmCpp() + +
+          Singleton for ARM 32-bit C++ compiler
+static ADSCCompilerADSCCompiler.getThumbCC() + +
+          Singleton for ARM 16-bit C compiler
+static ADSCCompilerADSCCompiler.getThumbCpp() + +
+          Singleton for ARM 16-bit C++ compiler
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLibrarian.html new file mode 100644 index 0000000..0d60da7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.arm.ADSLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.arm.ADSLibrarian

+
+ + + + + + + + + +
+Packages that use ADSLibrarian
net.sf.antcontrib.cpptasks.arm  
+  +

+ + + + + +
+Uses of ADSLibrarian in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm that return ADSLibrarian
+static ADSLibrarianADSLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLinker.html new file mode 100644 index 0000000..7549965 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/class-use/ADSLinker.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.arm.ADSLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.arm.ADSLinker

+
+ + + + + + + + + +
+Packages that use ADSLinker
net.sf.antcontrib.cpptasks.arm  
+  +

+ + + + + +
+Uses of ADSLinker in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm that return ADSLinker
+static ADSLinkerADSLinker.getDllInstance() + +
+           
+static ADSLinkerADSLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-frame.html new file mode 100644 index 0000000..5568503 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-frame.html @@ -0,0 +1,37 @@ + + + + + + + +net.sf.antcontrib.cpptasks.arm (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.arm + + + + +
+Classes  + +
+ADSCCompiler +
+ADSLibrarian +
+ADSLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-summary.html new file mode 100644 index 0000000..e64b7ca --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-summary.html @@ -0,0 +1,166 @@ + + + + + + + +net.sf.antcontrib.cpptasks.arm (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.arm +

+ + + + + + + + + + + + + + + + + +
+Class Summary
ADSCCompilerAdapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
ADSLibrarianAdapter for ARM Librarian
ADSLinkerAdapter for the ARM Linker
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-tree.html new file mode 100644 index 0000000..200be24 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks.arm Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.arm +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-use.html new file mode 100644 index 0000000..e6c62e7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/arm/package-use.html @@ -0,0 +1,182 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.arm (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.arm

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.arm
net.sf.antcontrib.cpptasks.arm  
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.arm used by net.sf.antcontrib.cpptasks.arm
ADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
ADSLibrarian + +
+          Adapter for ARM Librarian
ADSLinker + +
+          Adapter for the ARM Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.html new file mode 100644 index 0000000..f78d23b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.html @@ -0,0 +1,579 @@ + + + + + + + +BorlandCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.borland.BorlandCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
+
public class BorlandCCompiler
extends PrecompilingCommandLineCCompiler
+ + +

+Adapter for the Borland(r) C/C++ compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  CompilerConfigurationcreatePrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationcreatePrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static BorlandCCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static BorlandCCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createPrecompileGeneratingConfig

+
+protected CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                                 java.io.File prototype,
+                                                                 java.lang.String lastInclude)
+
+
+
Specified by:
createPrecompileGeneratingConfig in class PrecompilingCommandLineCompiler
+
+
+
+
+
+
+ +

+createPrecompileUsingConfig

+
+protected CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                            java.io.File prototype,
+                                                            java.lang.String lastInclude,
+                                                            java.lang.String[] exceptFiles)
+
+
+
Specified by:
createPrecompileUsingConfig in class PrecompilingCommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.html new file mode 100644 index 0000000..caf7625 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.html @@ -0,0 +1,315 @@ + + + + + + + +BorlandCfgParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandCfgParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParser
+      extended by net.sf.antcontrib.cpptasks.borland.BorlandCfgParser
+
+
+
+
public final class BorlandCfgParser
extends AbstractParser
+ + +

+A parser that paths from a borland cfg file +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BorlandCfgParser(char switchChar) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFilename(java.lang.String include) + +
+           
+ AbstractParserStategetNewLineState() + +
+           
+ java.lang.String[]parsePath(java.io.Reader reader) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParser
parse
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BorlandCfgParser

+
+public BorlandCfgParser(char switchChar)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addFilename

+
+public void addFilename(java.lang.String include)
+
+
+
Specified by:
addFilename in class AbstractParser
+
+
+
+
+
+
+ +

+getNewLineState

+
+public AbstractParserState getNewLineState()
+
+
+
Specified by:
getNewLineState in class AbstractParser
+
+
+
+
+
+
+ +

+parsePath

+
+public java.lang.String[] parsePath(java.io.Reader reader)
+                             throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.html new file mode 100644 index 0000000..33feb9f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.html @@ -0,0 +1,759 @@ + + + + + + + +BorlandLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.borland.BorlandLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class BorlandLibrarian
extends CommandLineLinker
+ + +

+Adapter for the Borland(r) tlib Librarian +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+ java.lang.StringgetIdentifier() + +
+          Gets identifier for the linker.
+static BorlandLibrariangetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library
+protected  java.lang.String[]prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  java.lang.String[]prepareResponseFile(java.io.File outputFile, + java.lang.String[] args) + +
+          Prepares argument list to execute the linker using a response file.
+protected  java.lang.StringquoteFilename(java.lang.StringBuffer buf, + java.lang.String filename) + +
+          Encloses problematic file names within quotes.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static BorlandLibrarian getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Gets identifier for the linker. + + TLIB will lockup when attempting to get version + information. Since the Librarian version isn't critical + just return a stock response. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineLinker
+
+
+
+
+
+
+ +

+prepareArguments

+
+protected java.lang.String[] prepareArguments(CCTask task,
+                                              java.lang.String outputDir,
+                                              java.lang.String outputName,
+                                              java.lang.String[] sourceFiles,
+                                              CommandLineLinkerConfiguration config)
+
+
Prepares argument list for exec command. +

+

+
Overrides:
prepareArguments in class CommandLineLinker
+
+
+
Parameters:
outputDir - linker output directory
outputName - linker output name
sourceFiles - linker input files (.obj, .o, .res)
config - linker configuration
task - compilation task. +
Returns:
arguments for runTask
+
+
+
+ +

+prepareResponseFile

+
+protected java.lang.String[] prepareResponseFile(java.io.File outputFile,
+                                                 java.lang.String[] args)
+                                          throws java.io.IOException
+
+
Prepares argument list to execute the linker using a response file. +

+

+
Overrides:
prepareResponseFile in class CommandLineLinker
+
+
+
Parameters:
outputFile - linker output file
args - output of prepareArguments +
Returns:
arguments for runTask +
Throws: +
java.io.IOException
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Builds a library +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+quoteFilename

+
+protected java.lang.String quoteFilename(java.lang.StringBuffer buf,
+                                         java.lang.String filename)
+
+
Encloses problematic file names within quotes. +

+

+
Overrides:
quoteFilename in class CommandLineLinker
+
+
+
Parameters:
buf - string buffer
filename - source file name +
Returns:
filename potentially enclosed in quotes.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLinker.html new file mode 100644 index 0000000..b4ed2ab --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandLinker.html @@ -0,0 +1,760 @@ + + + + + + + +BorlandLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.borland.BorlandLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class BorlandLinker
extends CommandLineLinker
+ + +

+Adapter for the Borland(r) ilink32 linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+ voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+static BorlandLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+           
+protected  java.lang.StringgetStartupObject(LinkType linkType) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+protected  java.lang.String[]prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  java.lang.String[]prepareResponseFile(java.io.File outputFile, + java.lang.String[] args) + +
+          Prepares argument list to execute the linker using a response file.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, link, prepareFilename, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static BorlandLinker getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getStartupObject

+
+protected java.lang.String getStartupObject(LinkType linkType)
+
+
+
Overrides:
getStartupObject in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+prepareArguments

+
+protected java.lang.String[] prepareArguments(CCTask task,
+                                              java.lang.String outputDir,
+                                              java.lang.String outputName,
+                                              java.lang.String[] sourceFiles,
+                                              CommandLineLinkerConfiguration config)
+
+
Prepares argument list for exec command. +

+

+
Overrides:
prepareArguments in class CommandLineLinker
+
+
+
Parameters:
outputDir - linker output directory
outputName - linker output name
sourceFiles - linker input files (.obj, .o, .res)
config - linker configuration
task - compilation task. +
Returns:
arguments for runTask
+
+
+
+ +

+prepareResponseFile

+
+protected java.lang.String[] prepareResponseFile(java.io.File outputFile,
+                                                 java.lang.String[] args)
+                                          throws java.io.IOException
+
+
Prepares argument list to execute the linker using a response file. +

+

+
Overrides:
prepareResponseFile in class CommandLineLinker
+
+
+
Parameters:
outputFile - linker output file
args - output of prepareArguments +
Returns:
arguments for runTask +
Throws: +
java.io.IOException
+
+
+
+ +

+addVersionFiles

+
+public void addVersionFiles(VersionInfo versionInfo,
+                            LinkType linkType,
+                            java.io.File outputFile,
+                            boolean isDebug,
+                            java.io.File objDir,
+                            TargetMatcher matcher)
+                     throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
Specified by:
addVersionFiles in interface Linker
Overrides:
addVersionFiles in class AbstractLinker
+
+
+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.html new file mode 100644 index 0000000..06b74da --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.html @@ -0,0 +1,425 @@ + + + + + + + +BorlandProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.borland.BorlandProcessor
+
+
+
+
public final class BorlandProcessor
extends java.lang.Object
+ + +

+A add-in class for Borland(r) processor adapters +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+static java.io.File[]getEnvironmentPath(java.lang.String toolName, + char switchChar, + java.lang.String[] defaultRelativePath) + +
+          This method extracts path information from the appropriate .cfg file in + the install directory.
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeOption, + java.lang.String includeDir) + +
+           
+static java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+           
+static voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+static booleanisCaseSensitive() + +
+           
+static java.lang.String[]prepareResponseFile(java.io.File outputFile, + java.lang.String[] args, + java.lang.String continuation) + +
+          Prepares argument list to execute the linker using a response file.
+static voidquoteFile(java.lang.StringBuffer buf, + java.lang.String outPath) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+public static void getDefineSwitch(java.lang.StringBuffer buffer,
+                                   java.lang.String define,
+                                   java.lang.String value)
+
+
+
+
+
+
+ +

+getEnvironmentPath

+
+public static java.io.File[] getEnvironmentPath(java.lang.String toolName,
+                                                char switchChar,
+                                                java.lang.String[] defaultRelativePath)
+
+
This method extracts path information from the appropriate .cfg file in + the install directory. +

+

+
Parameters:
toolName - Tool name, for example, "bcc32", "brc32", "ilink32"
switchChar - Command line switch character, for example "L" for libraries
defaultRelativePath - default path relative to executable directory +
Returns:
path
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeOption,
+                                                   java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getLibraryPatterns

+
+public static java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                                    LibraryTypeEnum libType)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+public static void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                     java.lang.String define)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+
+ +

+quoteFile

+
+public static void quoteFile(java.lang.StringBuffer buf,
+                             java.lang.String outPath)
+
+
+
+
+
+
+ +

+prepareResponseFile

+
+public static java.lang.String[] prepareResponseFile(java.io.File outputFile,
+                                                     java.lang.String[] args,
+                                                     java.lang.String continuation)
+                                              throws java.io.IOException
+
+
Prepares argument list to execute the linker using a response file. +

+

+
Parameters:
outputFile - linker output file
args - output of prepareArguments +
Returns:
arguments for runTask +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.html new file mode 100644 index 0000000..41252f3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.html @@ -0,0 +1,667 @@ + + + + + + + +BorlandResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class BorlandResourceCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class BorlandResourceCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Borland(r) brc32 Resource compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+protected  ParsercreateParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  intgetArgumentCountPerInputFile() + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+           
+static BorlandResourceCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static BorlandResourceCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    java.lang.String[] args,
+                    java.lang.String[] endArgs,
+                    boolean relentless,
+                    CommandLineCompilerConfiguration config,
+                    ProgressMonitor monitor)
+             throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineCompiler
+
Compiles a source file. +

+

+
Overrides:
compile in class CommandLineCompiler
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.html new file mode 100644 index 0000000..801f2ae --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.html @@ -0,0 +1,283 @@ + + + + + + + +CBuilderXProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class CBuilderXProjectWriter

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter
+
+
+
All Implemented Interfaces:
ProjectWriter
+
+
+
+
public final class CBuilderXProjectWriter
extends java.lang.Object
implements ProjectWriter
+ + +

+Writes a CBuilderX 1.0 project file. +

+ +

+

+
Author:
+
curta
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CBuilderXProjectWriter() + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ voidwriteProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CBuilderXProjectWriter

+
+public CBuilderXProjectWriter()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+writeProject

+
+public void writeProject(java.io.File fileName,
+                         CCTask task,
+                         ProjectDef projectDef,
+                         java.util.List sources,
+                         java.util.Hashtable targets,
+                         TargetInfo linkTarget)
+                  throws java.io.IOException,
+                         org.xml.sax.SAXException
+
+
Writes a project definition file. +

+

+
Specified by:
writeProject in interface ProjectWriter
+
+
+
Parameters:
fileName - project name for file, should has .cbx extension
task - cc task for which to write project
projectDef - project element
sources - source files
targets - compilation targets
linkTarget - link target +
Throws: +
java.io.IOException - if I/O error +
org.xml.sax.SAXException - if XML serialization error
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.html new file mode 100644 index 0000000..0b95b4f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.html @@ -0,0 +1,270 @@ + + + + + + + +CfgFilenameState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class CfgFilenameState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.FilenameState
+          extended by net.sf.antcontrib.cpptasks.borland.CfgFilenameState
+
+
+
+
public class CfgFilenameState
extends FilenameState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CfgFilenameState(AbstractParser parser, + char[] terminators) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CfgFilenameState

+
+public CfgFilenameState(AbstractParser parser,
+                        char[] terminators)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Overrides:
consume in class FilenameState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.html new file mode 100644 index 0000000..6f2eb25 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.html @@ -0,0 +1,267 @@ + + + + + + + +ConsumeToSpaceOrNewLine (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class ConsumeToSpaceOrNewLine

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine
+
+
+
+
public class ConsumeToSpaceOrNewLine
extends AbstractParserState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ConsumeToSpaceOrNewLine(AbstractParser parser) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ConsumeToSpaceOrNewLine

+
+public ConsumeToSpaceOrNewLine(AbstractParser parser)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Specified by:
consume in class AbstractParserState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.html new file mode 100644 index 0000000..9d0bf65 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.html @@ -0,0 +1,271 @@ + + + + + + + +QuoteBranchState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class QuoteBranchState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.borland.QuoteBranchState
+
+
+
+
public class QuoteBranchState
extends AbstractParserState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
QuoteBranchState(AbstractParser parser, + AbstractParserState quote, + AbstractParserState unquote) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+QuoteBranchState

+
+public QuoteBranchState(AbstractParser parser,
+                        AbstractParserState quote,
+                        AbstractParserState unquote)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Specified by:
consume in class AbstractParserState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCCompiler.html new file mode 100644 index 0000000..f352f2d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandCCompiler

+
+ + + + + + + + + +
+Packages that use BorlandCCompiler
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + +
+Uses of BorlandCCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return BorlandCCompiler
+static BorlandCCompilerBorlandCCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCfgParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCfgParser.html new file mode 100644 index 0000000..94cf31f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandCfgParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandCfgParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandCfgParser

+
+No usage of net.sf.antcontrib.cpptasks.borland.BorlandCfgParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLibrarian.html new file mode 100644 index 0000000..56d13a4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandLibrarian

+
+ + + + + + + + + +
+Packages that use BorlandLibrarian
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + +
+Uses of BorlandLibrarian in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return BorlandLibrarian
+static BorlandLibrarianBorlandLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLinker.html new file mode 100644 index 0000000..104cc48 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandLinker

+
+ + + + + + + + + +
+Packages that use BorlandLinker
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + +
+Uses of BorlandLinker in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return BorlandLinker
+static BorlandLinkerBorlandLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandProcessor.html new file mode 100644 index 0000000..acd62ac --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandProcessor

+
+No usage of net.sf.antcontrib.cpptasks.borland.BorlandProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandResourceCompiler.html new file mode 100644 index 0000000..071c8fc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/BorlandResourceCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler

+
+ + + + + + + + + +
+Packages that use BorlandResourceCompiler
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + +
+Uses of BorlandResourceCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return BorlandResourceCompiler
+static BorlandResourceCompilerBorlandResourceCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CBuilderXProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CBuilderXProjectWriter.html new file mode 100644 index 0000000..acb507c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CBuilderXProjectWriter.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter

+
+No usage of net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CfgFilenameState.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CfgFilenameState.html new file mode 100644 index 0000000..bf7b4af --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/CfgFilenameState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.CfgFilenameState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.CfgFilenameState

+
+No usage of net.sf.antcontrib.cpptasks.borland.CfgFilenameState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/ConsumeToSpaceOrNewLine.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/ConsumeToSpaceOrNewLine.html new file mode 100644 index 0000000..3e55469 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/ConsumeToSpaceOrNewLine.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine

+
+No usage of net.sf.antcontrib.cpptasks.borland.ConsumeToSpaceOrNewLine +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/QuoteBranchState.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/QuoteBranchState.html new file mode 100644 index 0000000..029b4a1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/class-use/QuoteBranchState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.QuoteBranchState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.QuoteBranchState

+
+No usage of net.sf.antcontrib.cpptasks.borland.QuoteBranchState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html new file mode 100644 index 0000000..37187d7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html @@ -0,0 +1,51 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.borland + + + + +
+Classes  + +
+BorlandCCompiler +
+BorlandCfgParser +
+BorlandLibrarian +
+BorlandLinker +
+BorlandProcessor +
+BorlandResourceCompiler +
+CBuilderXProjectWriter +
+CfgFilenameState +
+ConsumeToSpaceOrNewLine +
+QuoteBranchState
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html new file mode 100644 index 0000000..b405767 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html @@ -0,0 +1,206 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.borland +

+Adapter for Borland tools. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BorlandCCompilerAdapter for the Borland(r) C/C++ compiler.
BorlandCfgParserA parser that paths from a borland cfg file
BorlandLibrarianAdapter for the Borland(r) tlib Librarian
BorlandLinkerAdapter for the Borland(r) ilink32 linker
BorlandProcessorA add-in class for Borland(r) processor adapters
BorlandResourceCompilerAdapter for the Borland(r) brc32 Resource compiler.
CBuilderXProjectWriterWrites a CBuilderX 1.0 project file.
CfgFilenameState 
ConsumeToSpaceOrNewLine 
QuoteBranchState 
+  + +

+

+Package net.sf.antcontrib.cpptasks.borland Description +

+ +

+Adapter for Borland tools. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html new file mode 100644 index 0000000..2b4f4b0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html @@ -0,0 +1,175 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.borland +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-use.html new file mode 100644 index 0000000..2906248 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/borland/package-use.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.borland

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.borland
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.borland used by net.sf.antcontrib.cpptasks.borland
BorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
BorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
BorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
BorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/AboutCCTask.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/AboutCCTask.html new file mode 100644 index 0000000..a338242 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/AboutCCTask.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.AboutCCTask (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.AboutCCTask

+
+No usage of net.sf.antcontrib.cpptasks.AboutCCTask +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ArchEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ArchEnum.html new file mode 100644 index 0000000..cf96ed1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ArchEnum.html @@ -0,0 +1,193 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ArchEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ArchEnum

+
+ + + + + + + + + +
+Packages that use ArchEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of ArchEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return ArchEnum
+ ArchEnumTargetDef.getArch() + +
+          Gets arch.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ArchEnum
+ voidTargetDef.setArch(ArchEnum value) + +
+          Sets cpu architecture, compiler may use cpu specific instructions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTask.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTask.html new file mode 100644 index 0000000..6671fd8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTask.html @@ -0,0 +1,1210 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CCTask (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CCTask

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CCTask
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CCTask
+ voidDependencyTable.commit(CCTask task) + +
+           
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+ booleanDependencyTable.needsRebuild(CCTask task, + TargetInfo target, + int dependencyDepth) + +
+          Determines if the specified target needs to be rebuilt.
+ DependencyInfoDependencyTable.parseIncludes(CCTask task, + CompilerConfiguration compiler, + java.io.File source) + +
+           
+static intCUtil.runCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler
+ voidDependencyTable.walkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type CCTask
TargetHistoryTable(CCTask task, + java.io.File outputDir) + +
+          Creates a target history table from history.xml in the output directory, + if it exists.
TargetMatcher(CCTask task, + java.io.File outputDir, + ProcessorConfiguration[] processors, + LinkerConfiguration linker, + java.util.Vector objectFiles, + java.util.Hashtable targets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.apple
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.apple with parameters of type CCTask
+ voidXcodeProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type CCTask
+ voidBorlandResourceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+ voidBorlandLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library
+protected  java.lang.String[]BorlandLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  java.lang.String[]BorlandLibrarian.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+ voidCBuilderXProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type CCTask
+protected  java.lang.String[]CommandLineLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ voidCompilerConfiguration.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ voidCommandLineCompilerConfiguration.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ voidCommandLineCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  java.lang.String[]CommandLineLinker.getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+ voidCommandLineLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ voidLinkerConfiguration.link(CCTask task, + TargetInfo linkTarget) + +
+           
+ voidCommandLineLinkerConfiguration.link(CCTask task, + TargetInfo linkTarget) + +
+           
+ DependencyInfoCompilerConfiguration.parseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ DependencyInfoCommandLineCompilerConfiguration.parseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ DependencyInfoAbstractCompiler.parseIncludes(CCTask task, + java.io.File source, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.io.File baseDir, + java.lang.String includePathIdentifier) + +
+          Returns dependency info for the specified source file
+protected  java.lang.String[]CommandLineLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  intCommandLineLinker.runCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler
+protected  intCommandLineCompiler.runCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type CCTask
+ voidVisualStudioNETProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ voidDevStudioProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type CCTask
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ java.lang.String[]AbstractLdLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ voidAbstractArLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ java.lang.String[]AbstractLdLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type CCTask
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ voidGccCCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+ voidLdLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGppLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGccLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGccLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type CCTask
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type CCTask
+ voidProjectDef.execute(CCTask task, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Executes the task.
+ voidProjectWriter.writeProject(java.io.File baseName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Write project definition file.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type CCTask
+ voidXpidlCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .idl file into the corresponding .h and .xpt files.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type CCTask
+ voidOpenWatcomLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library.
+protected  java.lang.String[]OpenWatcomLibrarian.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type CCTask
+protected  java.lang.String[]OS390Linker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  java.lang.String[]OS390Linker.getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+ voidOS390Linker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+protected  intOS390Linker.runCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type CCTask
+protected  java.lang.String[]IccLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  java.lang.String[]IccLinker.getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+ voidIccLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+protected  intIccLinker.runCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type CCTask
+ java.lang.String[]C89Linker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of CCTask in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type CCTask
+ voidUserInterfaceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTaskProgressMonitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTaskProgressMonitor.html new file mode 100644 index 0000000..bf24d52 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CCTaskProgressMonitor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CCTaskProgressMonitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CCTaskProgressMonitor

+
+No usage of net.sf.antcontrib.cpptasks.CCTaskProgressMonitor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CPUEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CPUEnum.html new file mode 100644 index 0000000..c4a5a27 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CPUEnum.html @@ -0,0 +1,193 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CPUEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CPUEnum

+
+ + + + + + + + + +
+Packages that use CPUEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of CPUEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return CPUEnum
+ CPUEnumTargetDef.getCpu() + +
+          Gets cpu.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CPUEnum
+ voidTargetDef.setCpu(CPUEnum value) + +
+          Sets preferred cpu, but does not use cpu specific instructions.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.StringArrayBuilder.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.StringArrayBuilder.html new file mode 100644 index 0000000..f6d22e8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.StringArrayBuilder.html @@ -0,0 +1,194 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CUtil.StringArrayBuilder (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CUtil.StringArrayBuilder

+
+ + + + + + + + + +
+Packages that use CUtil.StringArrayBuilder
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of CUtil.StringArrayBuilder in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type CUtil.StringArrayBuilder
+ voidDefineSet.setDefine(CUtil.StringArrayBuilder defList) + +
+          A comma-separated list of preprocessor macros to define.
+ voidLibrarySet.setLibs(CUtil.StringArrayBuilder libs) + +
+          Comma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a".
+ voidDefineSet.setUndefine(CUtil.StringArrayBuilder undefList) + +
+          A comma-separated list of preprocessor macros to undefine.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.html new file mode 100644 index 0000000..0e393b7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CUtil.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CUtil (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CUtil

+
+No usage of net.sf.antcontrib.cpptasks.CUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerDef.html new file mode 100644 index 0000000..1ad996f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerDef.html @@ -0,0 +1,319 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CompilerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CompilerDef

+
+ + + + + + + + + + + + + + + + + +
+Packages that use CompilerDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.os390  
+  +

+ + + + + +
+Uses of CompilerDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CompilerDef
+ voidCCTask.addConfiguredCompiler(CompilerDef compiler) + +
+          Adds a compiler definition or reference.
+ PrecompileDefCompilerDef.getActivePrecompile(CompilerDef ccElement) + +
+           
+ booleanCompilerDef.getExceptions(CompilerDef[] defaultProviders, + int index) + +
+           
+ booleanCompilerDef.getMultithreaded(CompilerDef[] defaultProviders, + int index) + +
+           
+ OptimizationEnumCompilerDef.getOptimization(CompilerDef[] defaultProviders, + int index) + +
+           
+ java.lang.BooleanCompilerDef.getRtti(CompilerDef[] defaultProviders, + int index) + +
+           
+ intCompilerDef.getWarnings(CompilerDef[] defaultProviders, + int index) + +
+           
+  +

+ + + + + +
+Uses of CompilerDef in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type CompilerDef
+protected  voidCommandLineCompiler.buildDefineArguments(CompilerDef[] defs, + java.util.Vector args) + +
+           
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of CompilerDef in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type CompilerDef
+protected  voidOS390CCompiler.buildDefineArguments(CompilerDef[] defs, + java.util.Vector args) + +
+          The buildDefineArguments implementation CommandLineCCompiler is not good + for us because os390 defines are give by -D definex instead of + /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not + have to implement the getDefineSwitch() and the getUndefineSwitch().
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerEnum.html new file mode 100644 index 0000000..f73e567 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerEnum.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CompilerEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CompilerEnum

+
+ + + + + + + + + +
+Packages that use CompilerEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of CompilerEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CompilerEnum
+ voidCompilerDef.setName(CompilerEnum name) + +
+          Sets compiler type.
+ voidCCTask.setName(CompilerEnum name) + +
+          Sets type of the default compiler and linker.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerParam.html new file mode 100644 index 0000000..b61d553 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/CompilerParam.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.CompilerParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.CompilerParam

+
+ + + + + + + + + + + + + +
+Packages that use CompilerParam
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of CompilerParam in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CompilerParam
+ voidCompilerDef.addConfiguredCompilerParam(CompilerParam param) + +
+          Adds a compiler command-line arg.
+  +

+ + + + + +
+Uses of CompilerParam in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return CompilerParam
+ CompilerParamCompilerConfiguration.getParam(java.lang.String name) + +
+           
+ CompilerParamCommandLineCompilerConfiguration.getParam(java.lang.String name) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyInfo.html new file mode 100644 index 0000000..db1a103 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyInfo.html @@ -0,0 +1,328 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DependencyInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DependencyInfo

+
+ + + + + + + + + + + + + +
+Packages that use DependencyInfo
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of DependencyInfo in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return DependencyInfo
+ DependencyInfoDependencyTable.getDependencyInfo(java.lang.String sourceRelativeName, + java.lang.String includePathIdentifier) + +
+          This method returns a DependencyInfo for the specific source file and + include path identifier
+ DependencyInfoDependencyTable.parseIncludes(CCTask task, + CompilerConfiguration compiler, + java.io.File source) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type DependencyInfo
+abstract  booleanDependencyTable.DependencyVisitor.preview(DependencyInfo parent, + DependencyInfo[] children) + +
+          Previews all the children of this source file.
+abstract  booleanDependencyTable.DependencyVisitor.preview(DependencyInfo parent, + DependencyInfo[] children) + +
+          Previews all the children of this source file.
+ booleanDependencyTable.TimestampChecker.preview(DependencyInfo parent, + DependencyInfo[] children) + +
+           
+ booleanDependencyTable.TimestampChecker.preview(DependencyInfo parent, + DependencyInfo[] children) + +
+           
+abstract  booleanDependencyTable.DependencyVisitor.visit(DependencyInfo dependInfo) + +
+          Visits the dependency info.
+ booleanDependencyTable.TimestampChecker.visit(DependencyInfo dependInfo) + +
+           
+ voidDependencyTable.walkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+ voidDependencyTable.walkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+  +

+ + + + + +
+Uses of DependencyInfo in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return DependencyInfo
+ DependencyInfoCompilerConfiguration.parseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ DependencyInfoCommandLineCompilerConfiguration.parseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ DependencyInfoAbstractCompiler.parseIncludes(CCTask task, + java.io.File source, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.io.File baseDir, + java.lang.String includePathIdentifier) + +
+          Returns dependency info for the specified source file
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.DependencyVisitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.DependencyVisitor.html new file mode 100644 index 0000000..cb05445 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.DependencyVisitor.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DependencyTable.DependencyVisitor

+
+ + + + + + + + + +
+Packages that use DependencyTable.DependencyVisitor
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of DependencyTable.DependencyVisitor in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Subclasses of DependencyTable.DependencyVisitor in net.sf.antcontrib.cpptasks
+ classDependencyTable.TimestampChecker + +
+           
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type DependencyTable.DependencyVisitor
+ voidDependencyTable.walkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.TimestampChecker.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.TimestampChecker.html new file mode 100644 index 0000000..99054a9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.TimestampChecker.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker

+
+No usage of net.sf.antcontrib.cpptasks.DependencyTable.TimestampChecker +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.html new file mode 100644 index 0000000..54b8cc6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DependencyTable.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DependencyTable (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DependencyTable

+
+No usage of net.sf.antcontrib.cpptasks.DependencyTable +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerDef.html new file mode 100644 index 0000000..c616d5f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerDef.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DistributerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DistributerDef

+
+ + + + + + + + + +
+Packages that use DistributerDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of DistributerDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type DistributerDef
+ voidCCTask.addConfiguredDistributer(DistributerDef distributer) + +
+          Adds a distributer definition or reference (Non-functional prototype).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerMap.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerMap.html new file mode 100644 index 0000000..5cb3d63 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerMap.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DistributerMap (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DistributerMap

+
+ + + + + + + + + +
+Packages that use DistributerMap
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of DistributerMap in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return DistributerMap
+ DistributerMapDistributerDef.createMap() + +
+          Local to remote filename maps.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerProtocolEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerProtocolEnum.html new file mode 100644 index 0000000..7a4917f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/DistributerProtocolEnum.html @@ -0,0 +1,193 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.DistributerProtocolEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.DistributerProtocolEnum

+
+ + + + + + + + + +
+Packages that use DistributerProtocolEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of DistributerProtocolEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return DistributerProtocolEnum
+ DistributerProtocolEnumDistributerDef.getProtocol() + +
+          Gets protocol.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type DistributerProtocolEnum
+ voidDistributerDef.setProtocol(DistributerProtocolEnum value) + +
+          Sets protocol.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/FileVisitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/FileVisitor.html new file mode 100644 index 0000000..7fa5905 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/FileVisitor.html @@ -0,0 +1,252 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.FileVisitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.FileVisitor

+
+ + + + + + + + + + + + + +
+Packages that use FileVisitor
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of FileVisitor in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks that implement FileVisitor
+ classObjectFileCollector + +
+          Collects object files for the link step.
+ classTargetMatcher + +
+          This class matches each visited file with an appropriate compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type FileVisitor
+ voidProcessorDef.visitFiles(FileVisitor visitor) + +
+          This method calls the FileVistor's visit function for every file in the + processors definition
+ voidLinkerDef.visitSystemLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+ voidLinkerDef.visitUserLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+  +

+ + + + + +
+Uses of FileVisitor in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type FileVisitor
+ voidLibrarySet.visitLibraries(org.apache.tools.ant.Project project, + Linker linker, + java.io.File[] libpath, + FileVisitor visitor) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerDef.html new file mode 100644 index 0000000..0ce14bb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerDef.html @@ -0,0 +1,305 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.LinkerDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.LinkerDef

+
+ + + + + + + + + + + + + +
+Packages that use LinkerDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of LinkerDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkerDef
+ voidCCTask.addConfiguredLinker(LinkerDef linker) + +
+          Adds a linker definition.
+ LibrarySet[]LinkerDef.getActiveLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]LinkerDef.getActiveSystemLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]LinkerDef.getActiveUserLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ longLinkerDef.getBase(LinkerDef[] defaultProviders, + int index) + +
+           
+ java.lang.StringLinkerDef.getEntry(LinkerDef[] defaultProviders, + int index) + +
+           
+ java.lang.BooleanLinkerDef.getFixed(LinkerDef[] defaultProviders, + int index) + +
+           
+ booleanLinkerDef.getIncremental(LinkerDef[] defaultProviders, + int index) + +
+           
+ booleanLinkerDef.getMap(LinkerDef[] defaultProviders, + int index) + +
+           
+ intLinkerDef.getStack(LinkerDef[] defaultProviders, + int index) + +
+           
+  +

+ + + + + +
+Uses of LinkerDef in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type LinkerDef
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerEnum.html new file mode 100644 index 0000000..b26a5d3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerEnum.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.LinkerEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.LinkerEnum

+
+ + + + + + + + + +
+Packages that use LinkerEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of LinkerEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkerEnum
+ voidLinkerDef.setName(LinkerEnum name) + +
+          Sets linker type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerParam.html new file mode 100644 index 0000000..353404a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/LinkerParam.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.LinkerParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.LinkerParam

+
+ + + + + + + + + + + + + +
+Packages that use LinkerParam
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of LinkerParam in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkerParam
+ voidLinkerDef.addConfiguredLinkerParam(LinkerParam param) + +
+          Adds a compiler command-line arg.
+  +

+ + + + + +
+Uses of LinkerParam in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return LinkerParam
+ LinkerParamLinkerConfiguration.getParam(java.lang.String name) + +
+           
+ LinkerParamCommandLineLinkerConfiguration.getParam(java.lang.String name) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OSFamilyEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OSFamilyEnum.html new file mode 100644 index 0000000..62d5d23 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OSFamilyEnum.html @@ -0,0 +1,193 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.OSFamilyEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.OSFamilyEnum

+
+ + + + + + + + + +
+Packages that use OSFamilyEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of OSFamilyEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return OSFamilyEnum
+ OSFamilyEnumTargetDef.getOsfamily() + +
+          Gets operating system family.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type OSFamilyEnum
+ voidTargetDef.setOsfamily(OSFamilyEnum value) + +
+          Sets operating system family.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ObjectFileCollector.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ObjectFileCollector.html new file mode 100644 index 0000000..322a60c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ObjectFileCollector.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ObjectFileCollector (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ObjectFileCollector

+
+No usage of net.sf.antcontrib.cpptasks.ObjectFileCollector +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OptimizationEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OptimizationEnum.html new file mode 100644 index 0000000..5ac3839 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OptimizationEnum.html @@ -0,0 +1,895 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.OptimizationEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.OptimizationEnum

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use OptimizationEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return OptimizationEnum
+ OptimizationEnumCompilerDef.getOptimization(CompilerDef[] defaultProviders, + int index) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type OptimizationEnum
+ voidCompilerDef.setOptimize(OptimizationEnum value) + +
+          Sets optimization level.
+ voidCCTask.setOptimize(OptimizationEnum optimization) + +
+          Sets optimization.
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm with parameters of type OptimizationEnum
+protected  voidADSCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type OptimizationEnum
+protected  voidBorlandResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidBorlandCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq with parameters of type OptimizationEnum
+protected  voidCompaqVisualFortranCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type OptimizationEnum
+protected abstract  voidCommandLineCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type OptimizationEnum
+protected  voidDevStudioResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidDevStudioMIDLCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidDevStudioCompatibleCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type OptimizationEnum
+protected  voidWindresResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidGccCompatibleCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type OptimizationEnum
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type OptimizationEnum
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.hp with parameters of type OptimizationEnum
+ voidaCCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ibm with parameters of type OptimizationEnum
+ voidVisualAgeCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type OptimizationEnum
+protected  voidXpidlCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type OptimizationEnum
+protected  voidOpenWatcomCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add implied arguments.
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type OptimizationEnum
+protected  voidOS390CCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type OptimizationEnum
+protected  voidIccCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type OptimizationEnum
+ voidForteCCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidC89CCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti with parameters of type OptimizationEnum
+protected  voidClxxCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+  +

+ + + + + +
+Uses of OptimizationEnum in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type OptimizationEnum
+protected  voidUserInterfaceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+protected  voidMetaObjectCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OutputTypeEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OutputTypeEnum.html new file mode 100644 index 0000000..f7e09e0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/OutputTypeEnum.html @@ -0,0 +1,214 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.OutputTypeEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.OutputTypeEnum

+
+ + + + + + + + + + + + + +
+Packages that use OutputTypeEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of OutputTypeEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type OutputTypeEnum
+ voidCCTask.setLink(OutputTypeEnum outputType) + +
+          Deprecated.  
+ voidCCTask.setOuttype(OutputTypeEnum outputType) + +
+          Sets the output file type.
+  +

+ + + + + +
+Uses of OutputTypeEnum in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type OutputTypeEnum
+ voidLinkType.setOutputType(OutputTypeEnum outputType) + +
+          Sets the output type (execuable, shared, etc).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileDef.html new file mode 100644 index 0000000..944b58c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileDef.html @@ -0,0 +1,207 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.PrecompileDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.PrecompileDef

+
+ + + + + + + + + +
+Packages that use PrecompileDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of PrecompileDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return PrecompileDef
+ PrecompileDefCompilerDef.createPrecompile() + +
+          Specifies precompilation prototype file and exclusions.
+ PrecompileDefCCTask.createPrecompile() + +
+          Specifies precompilation prototype file and exclusions.
+ PrecompileDefCompilerDef.getActivePrecompile(CompilerDef ccElement) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type PrecompileDef
PrecompileExceptDef(PrecompileDef owner) + +
+          Constructor
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileExceptDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileExceptDef.html new file mode 100644 index 0000000..355a724 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/PrecompileExceptDef.html @@ -0,0 +1,178 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.PrecompileExceptDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.PrecompileExceptDef

+
+ + + + + + + + + +
+Packages that use PrecompileExceptDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of PrecompileExceptDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return PrecompileExceptDef
+ PrecompileExceptDefPrecompileDef.createExcept() + +
+          Adds filesets that specify files that should not be processed with + precompiled headers enabled.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorDef.html new file mode 100644 index 0000000..73c03fc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorDef.html @@ -0,0 +1,409 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ProcessorDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ProcessorDef

+
+ + + + + + + + + + + + + +
+Packages that use ProcessorDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of ProcessorDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Subclasses of ProcessorDef in net.sf.antcontrib.cpptasks
+ classCompilerDef + +
+          A compiler definition.
+ classLinkerDef + +
+          A linker definition.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return ProcessorDef
+protected  ProcessorDef[]ProcessorDef.getDefaultProviders(ProcessorDef baseDef) + +
+          Creates an chain of objects which provide default values in descending + order of significance.
+ ProcessorDefProcessorDef.getExtends() + +
+          Gets the ProcessorDef specified by the extends attribute
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ProcessorDef
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+ booleanProcessorDef.getDebug(ProcessorDef[] defaultProviders, + int index) + +
+          Gets boolean indicating debug build
+protected  ProcessorDef[]ProcessorDef.getDefaultProviders(ProcessorDef baseDef) + +
+          Creates an chain of objects which provide default values in descending + order of significance.
+ booleanProcessorDef.getRebuild(ProcessorDef[] defaultProviders, + int index) + +
+          Gets a boolean value indicating whether all targets must be rebuilt + regardless of dependency analysis.
+  +

+ + + + + +
+Uses of ProcessorDef in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type ProcessorDef
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorEnumValue.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorEnumValue.html new file mode 100644 index 0000000..b1cc078 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorEnumValue.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ProcessorEnumValue (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ProcessorEnumValue

+
+ + + + + + + + + +
+Packages that use ProcessorEnumValue
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of ProcessorEnumValue in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ProcessorEnumValue
+static java.lang.String[]ProcessorEnumValue.getValues(ProcessorEnumValue[] processors) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorParam.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorParam.html new file mode 100644 index 0000000..3b09cdb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/ProcessorParam.html @@ -0,0 +1,300 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ProcessorParam (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ProcessorParam

+
+ + + + + + + + + + + + + +
+Packages that use ProcessorParam
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of ProcessorParam in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Subclasses of ProcessorParam in net.sf.antcontrib.cpptasks
+ classCompilerParam + +
+          Place class description here.
+ classLinkerParam + +
+          Place class description here.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return ProcessorParam
+ ProcessorParam[]ProcessorDef.getActiveProcessorParams() + +
+          Prepares list of processor arguments ( compilerarg, linkerarg) that + are active for the current project settings.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ProcessorParam
+protected  voidProcessorDef.addConfiguredProcessorParam(ProcessorParam param) + +
+          Adds a or
+  +

+ + + + + +
+Uses of ProcessorParam in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return ProcessorParam
+ ProcessorParam[]ProcessorConfiguration.getParams() + +
+           
+ ProcessorParam[]CommandLineLinkerConfiguration.getParams() + +
+           
+ ProcessorParam[]CommandLineCompilerConfiguration.getParams() + +
+           
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type ProcessorParam
CommandLineCompilerConfiguration(CommandLineCompiler compiler, + java.lang.String identifier, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.lang.String includePathIdentifier, + java.lang.String[] args, + ProcessorParam[] params, + boolean rebuild, + java.lang.String[] endArgs) + +
+           
CommandLineLinkerConfiguration(CommandLineLinker linker, + java.lang.String identifier, + java.lang.String[][] args, + ProcessorParam[] params, + boolean rebuild, + boolean map, + boolean debug, + java.lang.String[] libraryNames, + java.lang.String startupObject) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/RuntimeType.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/RuntimeType.html new file mode 100644 index 0000000..4fec08a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/RuntimeType.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.RuntimeType (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.RuntimeType

+
+ + + + + + + + + +
+Packages that use RuntimeType
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of RuntimeType in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type RuntimeType
+ voidCCTask.setRuntime(RuntimeType rtlType) + +
+          Sets the type of runtime library, possible values "dynamic", "static".
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SourceHistory.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SourceHistory.html new file mode 100644 index 0000000..519621e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SourceHistory.html @@ -0,0 +1,203 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.SourceHistory (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.SourceHistory

+
+ + + + + + + + + +
+Packages that use SourceHistory
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of SourceHistory in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return SourceHistory
+ SourceHistory[]TargetInfo.getSourceHistories(java.lang.String basePath) + +
+          Returns an array of SourceHistory objects (contains relative path and + last modified time) for the source[s] of this target
+ SourceHistory[]TargetHistory.getSources() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type SourceHistory
TargetHistory(java.lang.String config, + java.lang.String output, + long outputLastModified, + SourceHistory[] sources) + +
+          Constructor from build step
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SubsystemEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SubsystemEnum.html new file mode 100644 index 0000000..8010339 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/SubsystemEnum.html @@ -0,0 +1,207 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.SubsystemEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.SubsystemEnum

+
+ + + + + + + + + + + + + +
+Packages that use SubsystemEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of SubsystemEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type SubsystemEnum
+ voidCCTask.setSubsystem(SubsystemEnum subsystem) + +
+          Sets the nature of the subsystem under which that the program will + execute.
+  +

+ + + + + +
+Uses of SubsystemEnum in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type SubsystemEnum
+ voidLinkType.setSubsystem(SubsystemEnum subsystem) + +
+          Sets the subsystem (gui, console, etc).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetDef.html new file mode 100644 index 0000000..625ed62 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetDef.html @@ -0,0 +1,317 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TargetDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TargetDef

+
+ + + + + + + + + + + + + +
+Packages that use TargetDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of TargetDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return TargetDef
+ TargetDefCCTask.getTargetPlatform() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type TargetDef
+ voidCCTask.addConfiguredTarget(TargetDef target) + +
+          Adds a target definition or reference (Non-functional prototype).
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+  +

+ + + + + +
+Uses of TargetDef in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type TargetDef
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistory.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistory.html new file mode 100644 index 0000000..b419cf6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistory.html @@ -0,0 +1,178 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TargetHistory (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TargetHistory

+
+ + + + + + + + + +
+Packages that use TargetHistory
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of TargetHistory in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return TargetHistory
+ TargetHistoryTargetHistoryTable.get(java.lang.String configId, + java.lang.String outputName) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistoryTable.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistoryTable.html new file mode 100644 index 0000000..b35d628 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetHistoryTable.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TargetHistoryTable (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TargetHistoryTable

+
+ + + + + + + + + +
+Packages that use TargetHistoryTable
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of TargetHistoryTable in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return TargetHistoryTable
+protected  TargetHistoryTableCCTask.getLinkHistory(TargetHistoryTable objHistory) + +
+           
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type TargetHistoryTable
+protected  TargetHistoryTableCCTask.getLinkHistory(TargetHistoryTable objHistory) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type TargetHistoryTable
CCTaskProgressMonitor(TargetHistoryTable history, + VersionInfo versionInfo) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetInfo.html new file mode 100644 index 0000000..1aad067 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetInfo.html @@ -0,0 +1,414 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TargetInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TargetInfo

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use TargetInfo
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return TargetInfo
+protected  TargetInfoCCTask.getLinkTarget(LinkerConfiguration linkerConfig, + java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + java.util.Hashtable compileTargets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type TargetInfo
+ voidTargetHistoryTable.markForRebuild(TargetInfo targetInfo) + +
+           
+ booleanDependencyTable.needsRebuild(CCTask task, + TargetInfo target, + int dependencyDepth) + +
+          Determines if the specified target needs to be rebuilt.
+ voidTargetHistoryTable.update(TargetInfo linkTarget) + +
+           
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks.apple
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.apple with parameters of type TargetInfo
+ voidXcodeProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type TargetInfo
+ voidCBuilderXProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type TargetInfo
+ voidLinkerConfiguration.link(CCTask task, + TargetInfo linkTarget) + +
+           
+ voidCommandLineLinkerConfiguration.link(CCTask task, + TargetInfo linkTarget) + +
+           
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type TargetInfo
+ voidVisualStudioNETProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ voidDevStudioProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of TargetInfo in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type TargetInfo
+ voidProjectDef.execute(CCTask task, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Executes the task.
+ voidProjectWriter.writeProject(java.io.File baseName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Write project definition file.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetMatcher.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetMatcher.html new file mode 100644 index 0000000..105d4f9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/TargetMatcher.html @@ -0,0 +1,337 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TargetMatcher (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TargetMatcher

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use TargetMatcher
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities. 
+  +

+ + + + + +
+Uses of TargetMatcher in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type TargetMatcher
+ voidBorlandLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of TargetMatcher in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type TargetMatcher
+ voidLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ voidAbstractLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of TargetMatcher in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type TargetMatcher
+ voidDevStudioCompatibleLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of TargetMatcher in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type TargetMatcher
+ voidOpenWatcomLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of TargetMatcher in net.sf.antcontrib.cpptasks.platforms
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.platforms with parameters of type TargetMatcher
+static voidWindowsPlatform.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/VersionInfo.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/VersionInfo.html new file mode 100644 index 0000000..b16ceff --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/VersionInfo.html @@ -0,0 +1,818 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.VersionInfo (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.VersionInfo

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use VersionInfo
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities. 
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return VersionInfo
+ VersionInfoVersionInfo.merge() + +
+          Returns a VersionInfo that reflects any inherited version information.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type VersionInfo
+ voidCCTask.addConfiguredVersioninfo(VersionInfo newVersionInfo) + +
+          Adds desriptive version information to be included in the + generated file.
+protected  LinkerConfigurationCCTask.collectExplicitObjectFiles(java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+protected  TargetInfoCCTask.getLinkTarget(LinkerConfiguration linkerConfig, + java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + java.util.Hashtable compileTargets, + VersionInfo versionInfo) + +
+           
+ voidTargetHistoryTable.update(ProcessorConfiguration config, + java.lang.String[] sources, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type VersionInfo
CCTaskProgressMonitor(TargetHistoryTable history, + VersionInfo versionInfo) + +
+           
TargetMatcher(CCTask task, + java.io.File outputDir, + ProcessorConfiguration[] processors, + LinkerConfiguration linker, + java.util.Vector objectFiles, + java.util.Hashtable targets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type VersionInfo
+ voidBorlandLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type VersionInfo
+ voidLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ voidAbstractLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ java.lang.String[]ProcessorConfiguration.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ java.lang.String[]Processor.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ java.lang.String[]CommandLineLinkerConfiguration.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+           
+ java.lang.String[]CommandLineLinker.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+ java.lang.String[]CommandLineCompilerConfiguration.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+           
+abstract  java.lang.String[]AbstractLinker.getOutputFileNames(java.lang.String fileName, + VersionInfo versionInfo) + +
+           
+ java.lang.String[]AbstractCompiler.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type VersionInfo
+ voidDevStudioCompatibleLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type VersionInfo
+ java.lang.String[]AbstractLdLinker.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+ java.lang.String[]AbstractArLibrarian.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type VersionInfo
+ java.lang.String[]XpidlCompiler.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type VersionInfo
+ voidOpenWatcomLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type VersionInfo
+ java.lang.String[]OS390Linker.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type VersionInfo
+ java.lang.String[]IccLinker.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.platforms
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.platforms with parameters of type VersionInfo
+static voidWindowsPlatform.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+static voidWindowsPlatform.writeResource(java.io.Writer writer, + VersionInfo versionInfo, + java.io.File outputFile, + boolean isDebug, + LinkType linkType) + +
+          Writes windows resource.
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type VersionInfo
+ java.lang.String[]C89Linker.getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of VersionInfo in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type VersionInfo
+ java.lang.String[]UserInterfaceCompiler.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+ java.lang.String[]MetaObjectCompiler.getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/class-use/WarningLevelEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/WarningLevelEnum.html new file mode 100644 index 0000000..cec5049 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/class-use/WarningLevelEnum.html @@ -0,0 +1,187 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.WarningLevelEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.WarningLevelEnum

+
+ + + + + + + + + +
+Packages that use WarningLevelEnum
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of WarningLevelEnum in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type WarningLevelEnum
+ voidCompilerDef.setWarnings(WarningLevelEnum level) + +
+          Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+ voidCCTask.setWarnings(WarningLevelEnum level) + +
+          Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.html new file mode 100644 index 0000000..facf677 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.html @@ -0,0 +1,515 @@ + + + + + + + +CompaqVisualFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compaq +
+Class CompaqVisualFortranCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler
+                  extended by net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class CompaqVisualFortranCompiler
extends CommandLineFortranCompiler
+ + +

+Adapter for the Compaq(r) Visual Fortran compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buf, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static CompaqVisualFortranCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buf, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static CompaqVisualFortranCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+public void addWarningSwitch(java.util.Vector args,
+                             int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buf,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buf,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.html new file mode 100644 index 0000000..323fa8a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.html @@ -0,0 +1,608 @@ + + + + + + + +CompaqVisualFortranLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compaq +
+Class CompaqVisualFortranLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class CompaqVisualFortranLibrarian
extends CommandLineLinker
+ + +

+Adapter for the Compaq(r) Visual Fortran Librarian +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+static CompaqVisualFortranLibrariangetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+protected  intgetMaximumCommandLength() + +
+           
+protected  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static CompaqVisualFortranLibrarian getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+protected int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.html new file mode 100644 index 0000000..fe4fec2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.html @@ -0,0 +1,358 @@ + + + + + + + +CompaqVisualFortranLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compaq +
+Class CompaqVisualFortranLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
+                  extended by net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class CompaqVisualFortranLinker
extends DevStudioCompatibleLinker
+ + +

+Adapter for the Compaq(r) Visual Fortran linker. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+static CompaqVisualFortranLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
addBase, addEntry, addFixed, addIncremental, addMap, addStack, addVersionFiles, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static CompaqVisualFortranLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class DevStudioCompatibleLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Overrides:
getOutputFileSwitch in class DevStudioCompatibleLinker
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranCompiler.html new file mode 100644 index 0000000..09e5b87 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler

+
+ + + + + + + + + +
+Packages that use CompaqVisualFortranCompiler
net.sf.antcontrib.cpptasks.compaq  
+  +

+ + + + + +
+Uses of CompaqVisualFortranCompiler in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq that return CompaqVisualFortranCompiler
+static CompaqVisualFortranCompilerCompaqVisualFortranCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLibrarian.html new file mode 100644 index 0000000..53057dc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLibrarian

+
+ + + + + + + + + +
+Packages that use CompaqVisualFortranLibrarian
net.sf.antcontrib.cpptasks.compaq  
+  +

+ + + + + +
+Uses of CompaqVisualFortranLibrarian in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq that return CompaqVisualFortranLibrarian
+static CompaqVisualFortranLibrarianCompaqVisualFortranLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLinker.html new file mode 100644 index 0000000..94ff509 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/class-use/CompaqVisualFortranLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker

+
+ + + + + + + + + +
+Packages that use CompaqVisualFortranLinker
net.sf.antcontrib.cpptasks.compaq  
+  +

+ + + + + +
+Uses of CompaqVisualFortranLinker in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq that return CompaqVisualFortranLinker
+static CompaqVisualFortranLinkerCompaqVisualFortranLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-frame.html new file mode 100644 index 0000000..1bf897e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-frame.html @@ -0,0 +1,37 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compaq (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.compaq + + + + +
+Classes  + +
+CompaqVisualFortranCompiler +
+CompaqVisualFortranLibrarian +
+CompaqVisualFortranLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-summary.html new file mode 100644 index 0000000..d5e28eb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-summary.html @@ -0,0 +1,163 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compaq (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.compaq +

+ + + + + + + + + + + + + + + + + +
+Class Summary
CompaqVisualFortranCompilerAdapter for the Compaq(r) Visual Fortran compiler.
CompaqVisualFortranLibrarianAdapter for the Compaq(r) Visual Fortran Librarian
CompaqVisualFortranLinkerAdapter for the Compaq(r) Visual Fortran linker.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-tree.html new file mode 100644 index 0000000..2ece43e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-tree.html @@ -0,0 +1,167 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compaq Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.compaq +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-use.html new file mode 100644 index 0000000..4cc79fe --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compaq/package-use.html @@ -0,0 +1,179 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.compaq (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.compaq

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.compaq
net.sf.antcontrib.cpptasks.compaq  
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compaq used by net.sf.antcontrib.cpptasks.compaq
CompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
CompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
CompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.html new file mode 100644 index 0000000..b3cd4ff --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.html @@ -0,0 +1,528 @@ + + + + + + + +AbstractCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class AbstractCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
CommandLineCompiler
+
+
+
+
public abstract class AbstractCompiler
extends AbstractProcessor
implements Compiler
+ + +

+An abstract compiler implementation. +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected AbstractCompiler(java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  booleancanParse(java.io.File sourceFile) + +
+          Checks file name to see if parse should be attempted + + Default implementation returns false for files with extensions '.dll', + 'tlb', '.res'
+protected abstract  CompilerConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+protected abstract  ParsercreateParser(java.io.File sourceFile) + +
+           
+protected  java.lang.StringgetBaseOutputName(java.lang.String inputFile) + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ DependencyInfoparseIncludes(CCTask task, + java.io.File source, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.io.File baseDir, + java.lang.String includePathIdentifier) + +
+          Returns dependency info for the specified source file
+protected  booleanresolveInclude(java.lang.String includeName, + java.io.File[] includePath, + java.util.Vector onThisPath) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getIdentifier, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractCompiler

+
+protected AbstractCompiler(java.lang.String[] sourceExtensions,
+                           java.lang.String[] headerExtensions,
+                           java.lang.String outputSuffix)
+
+
+ + + + + + + + +
+Method Detail
+ +

+canParse

+
+protected boolean canParse(java.io.File sourceFile)
+
+
Checks file name to see if parse should be attempted + + Default implementation returns false for files with extensions '.dll', + 'tlb', '.res' +

+

+
+
+
+
+
+
+
+ +

+createConfiguration

+
+protected abstract CompilerConfiguration createConfiguration(CCTask task,
+                                                             LinkType linkType,
+                                                             ProcessorDef[] baseConfigs,
+                                                             CompilerDef specificConfig,
+                                                             TargetDef targetPlatform,
+                                                             VersionInfo versionInfo)
+
+
+
+
+
+
+
+
+
+ +

+createConfiguration

+
+public ProcessorConfiguration createConfiguration(CCTask task,
+                                                  LinkType linkType,
+                                                  ProcessorDef[] baseConfigs,
+                                                  ProcessorDef specificConfig,
+                                                  TargetDef targetPlatform,
+                                                  VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Returns the compiler configuration for or element. +

+

+
Specified by:
createConfiguration in interface Processor
+
+
+
baseConfigs - When specificConfig corresponds to a or linker + element, defaultProvider will be a zero to two element array. + If there is an extends attribute, the first element will be + the referenced ProcessorDef, unless inherit = false, the last + element will be the containing element
specificConfig - A or element. +
Returns:
resulting configuration
+
+
+
+ +

+createParser

+
+protected abstract Parser createParser(java.io.File sourceFile)
+
+
+
+
+
+
+
+
+
+ +

+getBaseOutputName

+
+protected java.lang.String getBaseOutputName(java.lang.String inputFile)
+
+
+
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
+
+
+
Parameters:
inputFile - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+parseIncludes

+
+public final DependencyInfo parseIncludes(CCTask task,
+                                          java.io.File source,
+                                          java.io.File[] includePath,
+                                          java.io.File[] sysIncludePath,
+                                          java.io.File[] envIncludePath,
+                                          java.io.File baseDir,
+                                          java.lang.String includePathIdentifier)
+
+
Returns dependency info for the specified source file +

+

+
+
+
+
Parameters:
task - task for any diagnostic output
source - file to be parsed
includePath - include path to be used to resolve included files
sysIncludePath - sysinclude path from build file, files resolved using + sysInclude path will not participate in dependency analysis
envIncludePath - include path from environment variable, files resolved with + envIncludePath will not participate in dependency analysis
baseDir - used to produce relative paths in DependencyInfo
includePathIdentifier - used to distinguish DependencyInfo's from different include + path settings
+
+
+
+ +

+resolveInclude

+
+protected boolean resolveInclude(java.lang.String includeName,
+                                 java.io.File[] includePath,
+                                 java.util.Vector onThisPath)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.html new file mode 100644 index 0000000..4cf1970 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.html @@ -0,0 +1,513 @@ + + + + + + + +AbstractLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class AbstractLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
CommandLineLinker
+
+
+
+
public abstract class AbstractLinker
extends AbstractProcessor
implements Linker
+ + +

+An abstract Linker implementation. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + +
+Constructor Summary
AbstractLinker(java.lang.String[] objExtensions, + java.lang.String[] ignoredExtensions) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ intbid(java.lang.String inputFile) + +
+          Returns the bid of the processor for the file.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected abstract  LinkerConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ java.lang.StringgetLibraryKey(java.io.File libfile) + +
+          Extracts the significant part of a library name to ensure there aren't + collisions
+abstract  java.lang.String[]getOutputFileNames(java.lang.String fileName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLibraryPath, getLibraryPatterns, getLinker, isCaseSensitive
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
getIdentifier
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractLinker

+
+public AbstractLinker(java.lang.String[] objExtensions,
+                      java.lang.String[] ignoredExtensions)
+
+
+ + + + + + + + +
+Method Detail
+ +

+bid

+
+public int bid(java.lang.String inputFile)
+
+
Returns the bid of the processor for the file. + + A linker will bid 1 on any unrecognized file type. +

+

+
Specified by:
bid in interface Processor
Overrides:
bid in class AbstractProcessor
+
+
+
Parameters:
inputFile - filename of input file +
Returns:
bid for the file, 0 indicates no interest, 1 indicates that the + processor recognizes the file but doesn't process it (header + files, for example), 100 indicates strong interest
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createConfiguration

+
+protected abstract LinkerConfiguration createConfiguration(CCTask task,
+                                                           LinkType linkType,
+                                                           ProcessorDef[] baseConfigs,
+                                                           LinkerDef specificConfig,
+                                                           TargetDef targetPlatform,
+                                                           VersionInfo versionInfo)
+
+
+
+
+
+
+
+
+
+ +

+createConfiguration

+
+public ProcessorConfiguration createConfiguration(CCTask task,
+                                                  LinkType linkType,
+                                                  ProcessorDef[] baseConfigs,
+                                                  ProcessorDef specificConfig,
+                                                  TargetDef targetPlatform,
+                                                  VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Returns the compiler configuration for or element. +

+

+
Specified by:
createConfiguration in interface Processor
+
+
+
baseConfigs - When specificConfig corresponds to a or linker + element, defaultProvider will be a zero to two element array. + If there is an extends attribute, the first element will be + the referenced ProcessorDef, unless inherit = false, the last + element will be the containing element
specificConfig - A or element. +
Returns:
resulting configuration
+
+
+
+ +

+getLibraryKey

+
+public java.lang.String getLibraryKey(java.io.File libfile)
+
+
Description copied from interface: Linker
+
Extracts the significant part of a library name to ensure there aren't + collisions +

+

+
Specified by:
getLibraryKey in interface Linker
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public abstract java.lang.String[] getOutputFileNames(java.lang.String fileName,
+                                                      VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
+
+
+
Parameters:
fileName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+addVersionFiles

+
+public void addVersionFiles(VersionInfo versionInfo,
+                            LinkType linkType,
+                            java.io.File outputFile,
+                            boolean isDebug,
+                            java.io.File objDir,
+                            TargetMatcher matcher)
+                     throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
Specified by:
addVersionFiles in interface Linker
+
+
+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.html new file mode 100644 index 0000000..2e1e2a3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.html @@ -0,0 +1,594 @@ + + + + + + + +AbstractProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class AbstractProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Processor
+
+
+
Direct Known Subclasses:
AbstractCompiler, AbstractLinker
+
+
+
+
public abstract class AbstractProcessor
extends java.lang.Object
implements Processor, java.lang.Cloneable
+ + +

+An abstract processor (compiler/linker) implementation. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static intDEFAULT_DISCARD_BID + +
+          default bid for a file name that the processor recognizes but does not + process and does not want to fall through to the linker
+static intDEFAULT_PROCESS_BID + +
+          default bid for a file name that the processor desires to process
+  + + + + + + + + + + + +
+Constructor Summary
+protected AbstractProcessor(java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String inputFile) + +
+          Returns the bid of the processor for the file.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  java.lang.Objectclone() + +
+           
+ java.lang.String[]getHeaderExtensions() + +
+           
+abstract  java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+protected static java.lang.StringgetIdentifier(java.lang.String[] command, + java.lang.String fallback) + +
+          Determines the identification of a command line processor by capture the + first line of its output for a specific command.
+protected  java.lang.StringgetOSArch() + +
+          Gets the target operating system architecture
+protected  java.lang.StringgetOSName() + +
+          Gets the target operating system name
+ java.lang.String[]getSourceExtensions() + +
+           
+protected  booleanisDarwin() + +
+          Returns true if the target operating system is Mac OS X or Darwin.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
createConfiguration, getLinker, getOutputFileNames
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT_DISCARD_BID

+
+public static final int DEFAULT_DISCARD_BID
+
+
default bid for a file name that the processor recognizes but does not + process and does not want to fall through to the linker +

+

+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_PROCESS_BID

+
+public static final int DEFAULT_PROCESS_BID
+
+
default bid for a file name that the processor desires to process +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractProcessor

+
+protected AbstractProcessor(java.lang.String[] sourceExtensions,
+                            java.lang.String[] headerExtensions)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getIdentifier

+
+protected static java.lang.String getIdentifier(java.lang.String[] command,
+                                                java.lang.String fallback)
+
+
Determines the identification of a command line processor by capture the + first line of its output for a specific command. +

+

+
+
+
+
Parameters:
command - array of command line arguments starting with executable + name. For example, { "cl" }
fallback - start of identifier if there is an error in executing the + command +
Returns:
identifier for the processor
+
+
+
+ +

+bid

+
+public int bid(java.lang.String inputFile)
+
+
Returns the bid of the processor for the file. +

+

+
Specified by:
bid in interface Processor
+
+
+
Parameters:
inputFile - filename of input file +
Returns:
bid for the file, 0 indicates no interest, 1 indicates that the + processor recognizes the file but doesn't process it (header + files, for example), 100 indicates strong interest
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class java.lang.Object
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+getHeaderExtensions

+
+public java.lang.String[] getHeaderExtensions()
+
+
+
+
+
+
+
+
+
+ +

+getIdentifier

+
+public abstract java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
+
+
+
+
+
+
+ +

+getOSArch

+
+protected java.lang.String getOSArch()
+
+
Gets the target operating system architecture +

+

+
+
+
+ +
Returns:
String target operating system architecture
+
+
+
+ +

+getOSName

+
+protected java.lang.String getOSName()
+
+
Gets the target operating system name +

+

+
+
+
+ +
Returns:
String target operating system name
+
+
+
+ +

+getSourceExtensions

+
+public java.lang.String[] getSourceExtensions()
+
+
+
+
+
+
+
+
+
+ +

+isDarwin

+
+protected boolean isDarwin()
+
+
Returns true if the target operating system is Mac OS X or Darwin. +

+

+
+
+
+ +
Returns:
boolean
+
+
+
+ +

+toString

+
+public final java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html new file mode 100644 index 0000000..7c4da01 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.html @@ -0,0 +1,425 @@ + + + + + + + +CaptureStreamHandler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CaptureStreamHandler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler
+
+
+
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
+
public class CaptureStreamHandler
extends java.lang.Object
implements org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+ + +

+Implements ExecuteStreamHandler to capture the output of a Execute to an + array of strings +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CaptureStreamHandler() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getOutput() + +
+           
+static java.lang.String[]run(java.lang.String[] cmdline) + +
+          Runs an executable and captures the output in a String array
+ voidsetProcessErrorStream(java.io.InputStream is) + +
+          Install a handler for the error stream of the subprocess.
+ voidsetProcessInputStream(java.io.OutputStream os) + +
+          Install a handler for the input stream of the subprocess.
+ voidsetProcessOutputStream(java.io.InputStream is) + +
+          Install a handler for the output stream of the subprocess.
+ voidstart() + +
+          Start handling of the streams.
+ voidstop() + +
+          Stop handling of the streams - will not be restarted.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CaptureStreamHandler

+
+public CaptureStreamHandler()
+
+
+ + + + + + + + +
+Method Detail
+ +

+run

+
+public static java.lang.String[] run(java.lang.String[] cmdline)
+
+
Runs an executable and captures the output in a String array +

+

+
+
+
+
Parameters:
cmdline - command line arguments +
Returns:
output of process
+
+
+
+ +

+getOutput

+
+public java.lang.String[] getOutput()
+
+
+
+
+
+
+
+
+
+ +

+setProcessErrorStream

+
+public void setProcessErrorStream(java.io.InputStream is)
+                           throws java.io.IOException
+
+
Install a handler for the error stream of the subprocess. +

+

+
Specified by:
setProcessErrorStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
is - input stream to read from the error stream from the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+setProcessInputStream

+
+public void setProcessInputStream(java.io.OutputStream os)
+                           throws java.io.IOException
+
+
Install a handler for the input stream of the subprocess. +

+

+
Specified by:
setProcessInputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
os - output stream to write to the standard input stream of the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+setProcessOutputStream

+
+public void setProcessOutputStream(java.io.InputStream is)
+                            throws java.io.IOException
+
+
Install a handler for the output stream of the subprocess. +

+

+
Specified by:
setProcessOutputStream in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
Parameters:
is - input stream to read from the error stream from the + subprocess +
Throws: +
java.io.IOException
+
+
+
+ +

+start

+
+public void start()
+           throws java.io.IOException
+
+
Start handling of the streams. +

+

+
Specified by:
start in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+stop

+
+public void stop()
+
+
Stop handling of the streams - will not be restarted. +

+

+
Specified by:
stop in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.html new file mode 100644 index 0000000..029aad6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.html @@ -0,0 +1,343 @@ + + + + + + + +CommandLineCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
ADSCCompiler, C89CCompiler, ClxxCCompiler, GccCompatibleCCompiler, IccCompiler, OS390CCompiler
+
+
+
+
public abstract class CommandLineCCompiler
extends CommandLineCompiler
+ + +

+An abstract Compiler implementation which uses an external program to + perform the compile. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected CommandLineCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+protected  ParsercreateParser(java.io.File source) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineCCompiler

+
+protected CommandLineCCompiler(java.lang.String command,
+                               java.lang.String identifierArg,
+                               java.lang.String[] sourceExtensions,
+                               java.lang.String[] headerExtensions,
+                               java.lang.String outputSuffix,
+                               boolean libtool,
+                               CommandLineCCompiler libtoolCompiler,
+                               boolean newEnvironment,
+                               org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.html new file mode 100644 index 0000000..8675f9e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.html @@ -0,0 +1,811 @@ + + + + + + + +CommandLineCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
BorlandResourceCompiler, CommandLineCCompiler, CommandLineFortranCompiler, DevStudioMIDLCompiler, DevStudioResourceCompiler, MetaObjectCompiler, OpenWatcomCompiler, PrecompilingCommandLineCompiler, UserInterfaceCompiler, WindresResourceCompiler, XpidlCompiler
+
+
+
+
public abstract class CommandLineCompiler
extends AbstractCompiler
+ + +

+An abstract Compiler implementation which uses an external program to + perform the compile. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected CommandLineCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddIncludes(java.lang.String baseDirPath, + java.io.File[] includeDirs, + java.util.Vector args, + java.util.Vector relativeArgs, + java.lang.StringBuffer includePathId) + +
+          Adds command-line arguments for include directories.
+protected abstract  voidaddWarningSwitch(java.util.Vector args, + int warnings) + +
+           
+protected  voidbuildDefineArguments(CompilerDef[] defs, + java.util.Vector args) + +
+           
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+protected  CompilerConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  intgetArgumentCountPerInputFile() + +
+           
+protected  java.lang.StringgetCommand() + +
+           
+protected abstract  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected abstract  java.io.File[]getEnvironmentIncludePath() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+protected abstract  java.lang.StringgetIncludeDirSwitch(java.lang.String source) + +
+           
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+           
+protected  booleangetLibtool() + +
+           
+ CommandLineCompilergetLibtoolCompiler() + +
+          Obtains the same compiler, but with libtool set + + Default behavior is to ignore libtool
+abstract  intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+           
+protected abstract  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+protected  intrunCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler
+protected  voidsetCommand(java.lang.String command) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineCompiler

+
+protected CommandLineCompiler(java.lang.String command,
+                              java.lang.String identifierArg,
+                              java.lang.String[] sourceExtensions,
+                              java.lang.String[] headerExtensions,
+                              java.lang.String outputSuffix,
+                              boolean libtool,
+                              CommandLineCompiler libtoolCompiler,
+                              boolean newEnvironment,
+                              org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addImpliedArgs

+
+protected abstract void addImpliedArgs(java.util.Vector args,
+                                       boolean debug,
+                                       boolean multithreaded,
+                                       boolean exceptions,
+                                       LinkType linkType,
+                                       java.lang.Boolean rtti,
+                                       OptimizationEnum optimization)
+
+
+
+
+
+
+ +

+addIncludes

+
+protected void addIncludes(java.lang.String baseDirPath,
+                           java.io.File[] includeDirs,
+                           java.util.Vector args,
+                           java.util.Vector relativeArgs,
+                           java.lang.StringBuffer includePathId)
+
+
Adds command-line arguments for include directories. + + If relativeArgs is not null will add corresponding relative paths + include switches to that vector (for use in building a configuration + identifier that is consistent between machines). +

+

+
Parameters:
baseDirPath - Base directory path.
includeDirs - Array of include directory paths
args - Vector of command line arguments used to execute the task
relativeArgs - Vector of command line arguments used to build the + configuration identifier
+
+
+
+ +

+addWarningSwitch

+
+protected abstract void addWarningSwitch(java.util.Vector args,
+                                         int warnings)
+
+
+
+
+
+
+ +

+buildDefineArguments

+
+protected void buildDefineArguments(CompilerDef[] defs,
+                                    java.util.Vector args)
+
+
+
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    java.lang.String[] args,
+                    java.lang.String[] endArgs,
+                    boolean relentless,
+                    CommandLineCompilerConfiguration config,
+                    ProgressMonitor monitor)
+             throws org.apache.tools.ant.BuildException
+
+
Compiles a source file. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createConfiguration

+
+protected CompilerConfiguration createConfiguration(CCTask task,
+                                                    LinkType linkType,
+                                                    ProcessorDef[] baseDefs,
+                                                    CompilerDef specificDef,
+                                                    TargetDef targetPlatform,
+                                                    VersionInfo versionInfo)
+
+
+
Specified by:
createConfiguration in class AbstractCompiler
+
+
+
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
+
+
+
+
+ +

+getCommand

+
+protected final java.lang.String getCommand()
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected abstract void getDefineSwitch(java.lang.StringBuffer buffer,
+                                        java.lang.String define,
+                                        java.lang.String value)
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected abstract java.io.File[] getEnvironmentIncludePath()
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Specified by:
getIdentifier in class AbstractProcessor
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected abstract java.lang.String getIncludeDirSwitch(java.lang.String source)
+
+
+
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
+
+
+
+
+ +

+getLibtool

+
+protected final boolean getLibtool()
+
+
+
+
+
+
+ +

+getLibtoolCompiler

+
+public final CommandLineCompiler getLibtoolCompiler()
+
+
Obtains the same compiler, but with libtool set + + Default behavior is to ignore libtool +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public abstract int getMaximumCommandLength()
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected abstract void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                          java.lang.String define)
+
+
+
+
+
+
+ +

+runCommand

+
+protected int runCommand(CCTask task,
+                         java.io.File workingDir,
+                         java.lang.String[] cmdline)
+                  throws org.apache.tools.ant.BuildException
+
+
This method is exposed so test classes can overload and test the + arguments without actually spawning the compiler +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setCommand

+
+protected final void setCommand(java.lang.String command)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.html new file mode 100644 index 0000000..8e4e773 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.html @@ -0,0 +1,713 @@ + + + + + + + +CommandLineCompilerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineCompilerConfiguration

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration
+
+
+
All Implemented Interfaces:
CompilerConfiguration, ProcessorConfiguration
+
+
+
+
public final class CommandLineCompilerConfiguration
extends java.lang.Object
implements CompilerConfiguration
+ + +

+A configuration for a C++ compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base, + java.lang.String[] additionalArgs, + java.lang.String[] exceptFiles, + boolean isPrecompileHeaderGeneration) + +
+           
CommandLineCompilerConfiguration(CommandLineCompiler compiler, + java.lang.String identifier, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.lang.String includePathIdentifier, + java.lang.String[] args, + ProcessorParam[] params, + boolean rebuild, + java.lang.String[] endArgs) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String inputFile) + +
+          An indication of how much this compiler would like to process this file
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ CompilerConfiguration[]createPrecompileConfigurations(java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ java.lang.StringgetCommand() + +
+           
+ CompilergetCompiler() + +
+           
+ java.lang.String[]getEndArguments() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Returns a string representation of this configuration.
+ java.io.File[]getIncludePath() + +
+           
+ java.lang.StringgetIncludePathIdentifier() + +
+          Returns an digest for the include path for the configuration.
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ CompilerParamgetParam(java.lang.String name) + +
+           
+ ProcessorParam[]getParams() + +
+           
+ java.lang.String[]getPreArguments() + +
+           
+ booleangetRebuild() + +
+          If true, all files using this configuration should be rebuilt and any + existing output files should be ignored
+ booleanisPrecompileGeneration() + +
+           
+ DependencyInfoparseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineCompilerConfiguration

+
+public CommandLineCompilerConfiguration(CommandLineCompiler compiler,
+                                        java.lang.String identifier,
+                                        java.io.File[] includePath,
+                                        java.io.File[] sysIncludePath,
+                                        java.io.File[] envIncludePath,
+                                        java.lang.String includePathIdentifier,
+                                        java.lang.String[] args,
+                                        ProcessorParam[] params,
+                                        boolean rebuild,
+                                        java.lang.String[] endArgs)
+
+
+
+ +

+CommandLineCompilerConfiguration

+
+public CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base,
+                                        java.lang.String[] additionalArgs,
+                                        java.lang.String[] exceptFiles,
+                                        boolean isPrecompileHeaderGeneration)
+
+
+ + + + + + + + +
+Method Detail
+ +

+bid

+
+public int bid(java.lang.String inputFile)
+
+
Description copied from interface: ProcessorConfiguration
+
An indication of how much this compiler would like to process this file +

+

+
Specified by:
bid in interface ProcessorConfiguration
+
+
+ +
Returns:
0 is no interest to process, 100 is strong interest to process
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    boolean relentless,
+                    ProgressMonitor monitor)
+             throws org.apache.tools.ant.BuildException
+
+
+
Specified by:
compile in interface CompilerConfiguration
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createPrecompileConfigurations

+
+public CompilerConfiguration[] createPrecompileConfigurations(java.io.File prototype,
+                                                              java.lang.String[] nonPrecompiledFiles)
+
+
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. + + The last (preferrably only) include directive in the prototype file will + be used to mark the boundary between pre-compiled and normally compiled + headers. +

+

+
Specified by:
createPrecompileConfigurations in interface CompilerConfiguration
+
+
+
Parameters:
prototype - A source file (for example, stdafx.cpp) that is used to build + the precompiled header file. @returns null if precompiled + headers are not supported or a two element array containing + the precompiled header generation configuration and the + consuming configuration
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Returns a string representation of this configuration. Should be + canonical so that equivalent configurations will have equivalent string + representations +

+

+
Specified by:
getIdentifier in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+getIncludePathIdentifier

+
+public java.lang.String getIncludePathIdentifier()
+
+
Description copied from interface: CompilerConfiguration
+
Returns an digest for the include path for the configuration. + + This is used to determine if cached dependency information is invalid + because the include paths have changed +

+

+
Specified by:
getIncludePathIdentifier in interface CompilerConfiguration
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: ProcessorConfiguration
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface ProcessorConfiguration
+
+
+
Parameters:
inputFile - input file +
Returns:
output file names or zero-length array if no output file or name not + determined by input file
+
+
+
+ +

+getParam

+
+public CompilerParam getParam(java.lang.String name)
+
+
+
Specified by:
getParam in interface CompilerConfiguration
+
+
+
+
+
+
+ +

+getParams

+
+public ProcessorParam[] getParams()
+
+
+
Specified by:
getParams in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+getRebuild

+
+public boolean getRebuild()
+
+
Description copied from interface: ProcessorConfiguration
+
If true, all files using this configuration should be rebuilt and any + existing output files should be ignored +

+

+
Specified by:
getRebuild in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+isPrecompileGeneration

+
+public boolean isPrecompileGeneration()
+
+
+
Specified by:
isPrecompileGeneration in interface CompilerConfiguration
+
+
+
+
+
+
+ +

+parseIncludes

+
+public DependencyInfo parseIncludes(CCTask task,
+                                    java.io.File baseDir,
+                                    java.io.File source)
+
+
+
Specified by:
parseIncludes in interface CompilerConfiguration
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+
+ +

+getPreArguments

+
+public java.lang.String[] getPreArguments()
+
+
+
+
+
+
+
+
+
+ +

+getEndArguments

+
+public java.lang.String[] getEndArguments()
+
+
+
+
+
+
+
+
+
+ +

+getIncludePath

+
+public java.io.File[] getIncludePath()
+
+
+
+
+
+
+
+
+
+ +

+getCompiler

+
+public Compiler getCompiler()
+
+
+
+
+
+
+
+
+
+ +

+getCommand

+
+public java.lang.String getCommand()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.html new file mode 100644 index 0000000..8c7d4de --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.html @@ -0,0 +1,343 @@ + + + + + + + +CommandLineFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineFortranCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
CompaqVisualFortranCompiler
+
+
+
+
public abstract class CommandLineFortranCompiler
extends CommandLineCompiler
+ + +

+An abstract Compiler implementation which uses an external program to + perform the compile. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected CommandLineFortranCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineFortranCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+protected  ParsercreateParser(java.io.File source) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineFortranCompiler

+
+protected CommandLineFortranCompiler(java.lang.String command,
+                                     java.lang.String identifierArg,
+                                     java.lang.String[] sourceExtensions,
+                                     java.lang.String[] headerExtensions,
+                                     java.lang.String outputSuffix,
+                                     boolean libtool,
+                                     CommandLineFortranCompiler libtoolCompiler,
+                                     boolean newEnvironment,
+                                     org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.html new file mode 100644 index 0000000..0640e62 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.html @@ -0,0 +1,920 @@ + + + + + + + +CommandLineLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
AbstractArLibrarian, AbstractLdLinker, ADSLibrarian, ADSLinker, BorlandLibrarian, BorlandLinker, C89Linker, ClxxLibrarian, ClxxLinker, CompaqVisualFortranLibrarian, DevStudioCompatibleLibrarian, DevStudioCompatibleLinker, IccLinker, OpenWatcomLibrarian, OpenWatcomLinker, OS390Linker
+
+
+
+
public abstract class CommandLineLinker
extends AbstractLinker
+ + +

+An abstract Linker implementation that performs the link via an external + command. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + +
+Constructor Summary
CommandLineLinker(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputSuffix, + boolean isLibtool, + CommandLineLinker libtoolLinker) + +
+          Creates a comand line linker invocation
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected abstract  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected abstract  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected abstract  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected abstract  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected abstract  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected abstract  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  LinkerConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+protected  java.lang.StringgetCommand() + +
+           
+protected abstract  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+ CommandLineLinkergetLibtoolLinker() + +
+           
+protected abstract  intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+protected  java.lang.String[]getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+protected abstract  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+protected  java.lang.StringgetStartupObject(LinkType linkType) + +
+           
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+protected  java.lang.String[]prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  java.lang.StringprepareFilename(java.lang.StringBuffer buf, + java.lang.String outputDir, + java.lang.String sourceFile) + +
+          Processes filename into argument form
+protected  java.lang.String[]prepareResponseFile(java.io.File outputFile, + java.lang.String[] args) + +
+          Prepares argument list to execute the linker using a + response file.
+protected  java.lang.StringquoteFilename(java.lang.StringBuffer buf, + java.lang.String filename) + +
+           
+protected  intrunCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler
+protected  voidsetCommand(java.lang.String command) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLibraryPath, getLibraryPatterns, getLinker, isCaseSensitive
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineLinker

+
+public CommandLineLinker(java.lang.String command,
+                         java.lang.String identifierArg,
+                         java.lang.String[] extensions,
+                         java.lang.String[] ignoredExtensions,
+                         java.lang.String outputSuffix,
+                         boolean isLibtool,
+                         CommandLineLinker libtoolLinker)
+
+
Creates a comand line linker invocation +

+

+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+protected abstract void addBase(long base,
+                                java.util.Vector args)
+
+
+
+
+
+
+ +

+addFixed

+
+protected abstract void addFixed(java.lang.Boolean fixed,
+                                 java.util.Vector args)
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected abstract void addImpliedArgs(boolean debug,
+                                       LinkType linkType,
+                                       java.util.Vector args)
+
+
+
+
+
+
+ +

+addIncremental

+
+protected abstract void addIncremental(boolean incremental,
+                                       java.util.Vector args)
+
+
+
+
+
+
+ +

+addLibrarySets

+
+protected java.lang.String[] addLibrarySets(CCTask task,
+                                            LibrarySet[] libsets,
+                                            java.util.Vector preargs,
+                                            java.util.Vector midargs,
+                                            java.util.Vector endargs)
+
+
+
+
+
+
+ +

+addMap

+
+protected abstract void addMap(boolean map,
+                               java.util.Vector args)
+
+
+
+
+
+
+ +

+addStack

+
+protected abstract void addStack(int stack,
+                                 java.util.Vector args)
+
+
+
+
+
+
+ +

+addEntry

+
+protected abstract void addEntry(java.lang.String entry,
+                                 java.util.Vector args)
+
+
+
+
+
+
+ +

+createConfiguration

+
+protected LinkerConfiguration createConfiguration(CCTask task,
+                                                  LinkType linkType,
+                                                  ProcessorDef[] baseDefs,
+                                                  LinkerDef specificDef,
+                                                  TargetDef targetPlatform,
+                                                  VersionInfo versionInfo)
+
+
+
Specified by:
createConfiguration in class AbstractLinker
+
+
+
+
+
+
+ +

+decorateLinkerOption

+
+protected java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                                java.lang.String arg)
+
+
Allows drived linker to decorate linker option. + Override by GccLinker to prepend a "-Wl," to + pass option to through gcc to linker. +

+

+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getCommand

+
+protected final java.lang.String getCommand()
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected abstract java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Specified by:
getIdentifier in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLibtoolLinker

+
+public final CommandLineLinker getLibtoolLinker()
+
+
+
+
+
+
+ +

+getMaximumCommandLength

+
+protected abstract int getMaximumCommandLength()
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Specified by:
getOutputFileNames in class AbstractLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(CCTask task,
+                                                 java.lang.String outputFile)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected abstract java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
+
+
+
+ +

+getStartupObject

+
+protected java.lang.String getStartupObject(LinkType linkType)
+
+
+
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Performs a link using a command line linker +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+prepareArguments

+
+protected java.lang.String[] prepareArguments(CCTask task,
+                                              java.lang.String outputDir,
+                                              java.lang.String outputFile,
+                                              java.lang.String[] sourceFiles,
+                                              CommandLineLinkerConfiguration config)
+
+
Prepares argument list for exec command. Will return null + if command line would exceed allowable command line buffer. +

+

+
Parameters:
task - compilation task.
outputFile - linker output file
sourceFiles - linker input files (.obj, .o, .res)
config - linker configuration +
Returns:
arguments for runTask
+
+
+
+ +

+prepareFilename

+
+protected java.lang.String prepareFilename(java.lang.StringBuffer buf,
+                                           java.lang.String outputDir,
+                                           java.lang.String sourceFile)
+
+
Processes filename into argument form +

+

+
+
+
+
+ +

+prepareResponseFile

+
+protected java.lang.String[] prepareResponseFile(java.io.File outputFile,
+                                                 java.lang.String[] args)
+                                          throws java.io.IOException
+
+
Prepares argument list to execute the linker using a + response file. +

+

+
Parameters:
outputFile - linker output file
args - output of prepareArguments +
Returns:
arguments for runTask +
Throws: +
java.io.IOException
+
+
+
+ +

+quoteFilename

+
+protected java.lang.String quoteFilename(java.lang.StringBuffer buf,
+                                         java.lang.String filename)
+
+
+
+
+
+
+ +

+runCommand

+
+protected int runCommand(CCTask task,
+                         java.io.File workingDir,
+                         java.lang.String[] cmdline)
+                  throws org.apache.tools.ant.BuildException
+
+
This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setCommand

+
+protected final void setCommand(java.lang.String command)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.html new file mode 100644 index 0000000..765f278 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.html @@ -0,0 +1,613 @@ + + + + + + + +CommandLineLinkerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class CommandLineLinkerConfiguration

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration
+
+
+
All Implemented Interfaces:
LinkerConfiguration, ProcessorConfiguration
+
+
+
+
public final class CommandLineLinkerConfiguration
extends java.lang.Object
implements LinkerConfiguration
+ + +

+A configuration for a command line linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CommandLineLinkerConfiguration(CommandLineLinker linker, + java.lang.String identifier, + java.lang.String[][] args, + ProcessorParam[] params, + boolean rebuild, + boolean map, + boolean debug, + java.lang.String[] libraryNames, + java.lang.String startupObject) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String filename) + +
+          An indication of how much this compiler would like to process this file
+ java.lang.String[]getEndArguments() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Returns a string representation of this configuration.
+ java.lang.String[]getLibraryNames() + +
+           
+ LinkergetLinker() + +
+           
+ booleangetMap() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ LinkerParamgetParam(java.lang.String name) + +
+           
+ ProcessorParam[]getParams() + +
+           
+ java.lang.String[]getPreArguments() + +
+           
+ booleangetRebuild() + +
+          If true, all files using this configuration should be rebuilt and any + existing output files should be ignored
+ java.lang.StringgetStartupObject() + +
+           
+ booleanisDebug() + +
+           
+ voidlink(CCTask task, + TargetInfo linkTarget) + +
+           
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineLinkerConfiguration

+
+public CommandLineLinkerConfiguration(CommandLineLinker linker,
+                                      java.lang.String identifier,
+                                      java.lang.String[][] args,
+                                      ProcessorParam[] params,
+                                      boolean rebuild,
+                                      boolean map,
+                                      boolean debug,
+                                      java.lang.String[] libraryNames,
+                                      java.lang.String startupObject)
+
+
+ + + + + + + + +
+Method Detail
+ +

+bid

+
+public int bid(java.lang.String filename)
+
+
Description copied from interface: ProcessorConfiguration
+
An indication of how much this compiler would like to process this file +

+

+
Specified by:
bid in interface ProcessorConfiguration
+
+
+ +
Returns:
0 is no interest to process, 100 is strong interest to process
+
+
+
+ +

+getEndArguments

+
+public java.lang.String[] getEndArguments()
+
+
+
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Returns a string representation of this configuration. Should be + canonical so that equivalent configurations will have equivalent string + representations +

+

+
Specified by:
getIdentifier in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+getLibraryNames

+
+public java.lang.String[] getLibraryNames()
+
+
+
+
+
+
+
+
+
+ +

+getMap

+
+public boolean getMap()
+
+
+
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: ProcessorConfiguration
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface ProcessorConfiguration
+
+
+
Parameters:
inputFile - input file +
Returns:
output file names or zero-length array if no output file or name not + determined by input file
+
+
+
+ +

+getParam

+
+public LinkerParam getParam(java.lang.String name)
+
+
+
Specified by:
getParam in interface LinkerConfiguration
+
+
+
+
+
+
+ +

+getParams

+
+public ProcessorParam[] getParams()
+
+
+
Specified by:
getParams in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+getPreArguments

+
+public java.lang.String[] getPreArguments()
+
+
+
+
+
+
+
+
+
+ +

+getRebuild

+
+public boolean getRebuild()
+
+
Description copied from interface: ProcessorConfiguration
+
If true, all files using this configuration should be rebuilt and any + existing output files should be ignored +

+

+
Specified by:
getRebuild in interface ProcessorConfiguration
+
+
+
+
+
+
+ +

+getStartupObject

+
+public java.lang.String getStartupObject()
+
+
+
+
+
+
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 TargetInfo linkTarget)
+          throws org.apache.tools.ant.BuildException
+
+
+
Specified by:
link in interface LinkerConfiguration
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker()
+
+
+
Specified by:
getLinker in interface LinkerConfiguration
+
+
+
+
+
+
+ +

+isDebug

+
+public boolean isDebug()
+
+
+
Specified by:
isDebug in interface LinkerConfiguration
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Compiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Compiler.html new file mode 100644 index 0000000..da2d6c0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Compiler.html @@ -0,0 +1,199 @@ + + + + + + + +Compiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface Compiler

+
+
All Superinterfaces:
Processor
+
+
+
All Known Implementing Classes:
AbstractCompiler, aCCCompiler, ADSCCompiler, BorlandCCompiler, BorlandResourceCompiler, C89CCompiler, ClxxCCompiler, CommandLineCCompiler, CommandLineCompiler, CommandLineFortranCompiler, CompaqVisualFortranCompiler, DevStudio2005CCompiler, DevStudioCCompiler, DevStudioCompatibleCCompiler, DevStudioMIDLCompiler, DevStudioResourceCompiler, ForteCCCompiler, GccCCompiler, GccCCompiler, GccCCompiler, GccCompatibleCCompiler, IccCompiler, IntelLinux32CCompiler, IntelLinux64CCompiler, IntelWin32CCompiler, IntelWin64CCompiler, MetaObjectCompiler, OpenWatcomCCompiler, OpenWatcomCompiler, OpenWatcomFortranCompiler, OS390CCompiler, PrecompilingCommandLineCCompiler, PrecompilingCommandLineCompiler, UserInterfaceCompiler, VisualAgeCCompiler, WindresResourceCompiler, XpidlCompiler
+
+
+
+
public interface Compiler
extends Processor
+ + +

+A compiler. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, createConfiguration, getIdentifier, getLinker, getOutputFileNames
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.html new file mode 100644 index 0000000..bb21003 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.html @@ -0,0 +1,378 @@ + + + + + + + +CompilerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface CompilerConfiguration

+
+
All Superinterfaces:
ProcessorConfiguration
+
+
+
All Known Implementing Classes:
CommandLineCompilerConfiguration
+
+
+
+
public interface CompilerConfiguration
extends ProcessorConfiguration
+ + +

+A configuration for a compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ CompilerConfiguration[]createPrecompileConfigurations(java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ java.lang.StringgetIncludePathIdentifier() + +
+          Returns an digest for the include path for the configuration.
+ CompilerParamgetParam(java.lang.String name) + +
+           
+ booleanisPrecompileGeneration() + +
+           
+ DependencyInfoparseIncludes(CCTask task, + java.io.File baseDir, + java.io.File source) + +
+           
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
bid, getIdentifier, getOutputFileNames, getParams, getRebuild
+  +

+ + + + + + + + +
+Method Detail
+ +

+compile

+
+void compile(CCTask task,
+             java.io.File outputDir,
+             java.lang.String[] sourceFiles,
+             boolean relentless,
+             ProgressMonitor monitor)
+             throws org.apache.tools.ant.BuildException
+
+
+
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createPrecompileConfigurations

+
+CompilerConfiguration[] createPrecompileConfigurations(java.io.File prototype,
+                                                       java.lang.String[] nonPrecompiledFiles)
+
+
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. + + The last (preferrably only) include directive in the prototype file will + be used to mark the boundary between pre-compiled and normally compiled + headers. +

+

+
+
+
+
Parameters:
prototype - A source file (for example, stdafx.cpp) that is used to build + the precompiled header file. @returns null if precompiled + headers are not supported or a two element array containing + the precompiled header generation configuration and the + consuming configuration
+
+
+
+ +

+getIncludePathIdentifier

+
+java.lang.String getIncludePathIdentifier()
+
+
Returns an digest for the include path for the configuration. + + This is used to determine if cached dependency information is invalid + because the include paths have changed +

+

+
+
+
+
+
+
+
+ +

+getParam

+
+CompilerParam getParam(java.lang.String name)
+
+
+
+
+
+
+
+
+
+ +

+isPrecompileGeneration

+
+boolean isPrecompileGeneration()
+
+
+
+
+
+
+
+
+
+ +

+parseIncludes

+
+DependencyInfo parseIncludes(CCTask task,
+                             java.io.File baseDir,
+                             java.io.File source)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkType.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkType.html new file mode 100644 index 0000000..3c5701f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkType.html @@ -0,0 +1,509 @@ + + + + + + + +LinkType (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class LinkType

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.LinkType
+
+
+
+
public class LinkType
extends java.lang.Object
+ + +

+This class represents the target platform for the compile and link step. The + name is an anachronism and should be changed. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LinkType() + +
+          Constructor + + By default, an gui executable with a dynamically linked runtime
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetOutputType() + +
+          Gets the output type.
+ java.lang.StringgetSubsystem() + +
+          Get subsystem name.
+ booleanisExecutable() + +
+          Gets whether the link should produce an executable
+ booleanisPluginModule() + +
+          Gets whether the link should produce a plugin module.
+ booleanisSharedLibrary() + +
+          Gets whether the link should produce a shared library.
+ booleanisStaticLibrary() + +
+          Gets whether the link should produce a static library.
+ booleanisStaticRuntime() + +
+          Gets whether the module should use a statically linked runtime library.
+ booleanisSubsystemConsole() + +
+          Gets whether the link should produce a module for a console subsystem.
+ booleanisSubsystemGUI() + +
+          Gets whether the link should produce a module for a graphical user + interface subsystem.
+ voidsetOutputType(OutputTypeEnum outputType) + +
+          Sets the output type (execuable, shared, etc).
+ voidsetStaticRuntime(boolean staticRuntime) + +
+          Requests use of a static runtime library.
+ voidsetSubsystem(SubsystemEnum subsystem) + +
+          Sets the subsystem (gui, console, etc).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinkType

+
+public LinkType()
+
+
Constructor + + By default, an gui executable with a dynamically linked runtime +

+

+ + + + + + + + +
+Method Detail
+ +

+isExecutable

+
+public boolean isExecutable()
+
+
Gets whether the link should produce an executable +

+

+ +
Returns:
boolean
+
+
+
+ +

+isPluginModule

+
+public boolean isPluginModule()
+
+
Gets whether the link should produce a plugin module. +

+

+ +
Returns:
boolean
+
+
+
+ +

+isSharedLibrary

+
+public boolean isSharedLibrary()
+
+
Gets whether the link should produce a shared library. +

+

+ +
Returns:
boolean
+
+
+
+ +

+isStaticLibrary

+
+public boolean isStaticLibrary()
+
+
Gets whether the link should produce a static library. +

+

+ +
Returns:
boolean
+
+
+
+ +

+isStaticRuntime

+
+public boolean isStaticRuntime()
+
+
Gets whether the module should use a statically linked runtime library. +

+

+ +
Returns:
boolean
+
+
+
+ +

+isSubsystemConsole

+
+public boolean isSubsystemConsole()
+
+
Gets whether the link should produce a module for a console subsystem. +

+

+ +
Returns:
boolean
+
+
+
+ +

+isSubsystemGUI

+
+public boolean isSubsystemGUI()
+
+
Gets whether the link should produce a module for a graphical user + interface subsystem. +

+

+ +
Returns:
boolean
+
+
+
+ +

+setOutputType

+
+public void setOutputType(OutputTypeEnum outputType)
+
+
Sets the output type (execuable, shared, etc). +

+

+
Parameters:
outputType - may not be null
+
+
+
+ +

+getOutputType

+
+public java.lang.String getOutputType()
+
+
Gets the output type. +

+

+ +
Returns:
output type
+
+
+
+ +

+setStaticRuntime

+
+public void setStaticRuntime(boolean staticRuntime)
+
+
Requests use of a static runtime library. +

+

+
Parameters:
staticRuntime - if true, use static runtime library if possible.
+
+
+
+ +

+setSubsystem

+
+public void setSubsystem(SubsystemEnum subsystem)
+
+
Sets the subsystem (gui, console, etc). +

+

+
Parameters:
subsystem - subsystem, may not be null
+
+
+
+ +

+getSubsystem

+
+public java.lang.String getSubsystem()
+
+
Get subsystem name. +

+

+ +
Returns:
subsystem name
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Linker.html new file mode 100644 index 0000000..c5d9fab --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Linker.html @@ -0,0 +1,377 @@ + + + + + + + +Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface Linker

+
+
All Superinterfaces:
Processor
+
+
+
All Known Implementing Classes:
AbstractArLibrarian, AbstractLdLinker, AbstractLinker, aCCLinker, ADSLibrarian, ADSLinker, BorlandLibrarian, BorlandLinker, C89Linker, ClxxLibrarian, ClxxLinker, CommandLineLinker, CompaqVisualFortranLibrarian, CompaqVisualFortranLinker, DevStudioCompatibleLibrarian, DevStudioCompatibleLinker, DevStudioLibrarian, DevStudioLinker, ForteCCLinker, GccLibrarian, GccLibrarian, GccLibrarian, GccLinker, GccLinker, GccLinker, GppLinker, GppLinker, GppLinker, IccLinker, IntelLinux32Linker, IntelLinux64Linker, IntelWin32Librarian, IntelWin32Linker, LdLinker, LdLinker, LdLinker, OpenWatcomCLinker, OpenWatcomFortranLinker, OpenWatcomLibrarian, OpenWatcomLinker, OS390Linker, VisualAgeLinker
+
+
+
+
public interface Linker
extends Processor
+ + +

+A linker for executables, and static and dynamic libraries. +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ java.lang.StringgetLibraryKey(java.io.File libname) + +
+          Extracts the significant part of a library name to ensure there aren't + collisions
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libraryType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, createConfiguration, getIdentifier, getOutputFileNames
+  +

+ + + + + + + + +
+Method Detail
+ +

+getLibraryKey

+
+java.lang.String getLibraryKey(java.io.File libname)
+
+
Extracts the significant part of a library name to ensure there aren't + collisions +

+

+
+
+
+
+
+
+
+ +

+getLibraryPath

+
+java.io.File[] getLibraryPath()
+
+
returns the library path for the linker +

+

+
+
+
+
+
+
+
+ +

+getLibraryPatterns

+
+java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                      LibraryTypeEnum libraryType)
+
+
Returns 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

+
+Linker getLinker(LinkType linkType)
+
+
Gets the linker for the specified link type. +

+

+
Specified by:
getLinker in interface Processor
+
+
+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+isCaseSensitive

+
+boolean isCaseSensitive()
+
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+
+
+
+ +

+addVersionFiles

+
+void addVersionFiles(VersionInfo versionInfo,
+                     LinkType linkType,
+                     java.io.File outputFile,
+                     boolean isDebug,
+                     java.io.File objDir,
+                     TargetMatcher matcher)
+                     throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
+
+
+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.html new file mode 100644 index 0000000..d72c8b9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.html @@ -0,0 +1,301 @@ + + + + + + + +LinkerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface LinkerConfiguration

+
+
All Superinterfaces:
ProcessorConfiguration
+
+
+
All Known Implementing Classes:
CommandLineLinkerConfiguration
+
+
+
+
public interface LinkerConfiguration
extends ProcessorConfiguration
+ + +

+A configuration for a linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ LinkergetLinker() + +
+           
+ LinkerParamgetParam(java.lang.String name) + +
+           
+ booleanisDebug() + +
+           
+ voidlink(CCTask task, + TargetInfo linkTarget) + +
+           
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
bid, getIdentifier, getOutputFileNames, getParams, getRebuild
+  +

+ + + + + + + + +
+Method Detail
+ +

+getParam

+
+LinkerParam getParam(java.lang.String name)
+
+
+
+
+
+
+
+
+
+ +

+link

+
+void link(CCTask task,
+          TargetInfo linkTarget)
+          throws org.apache.tools.ant.BuildException
+
+
+
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getLinker

+
+Linker getLinker()
+
+
+
+
+
+
+
+
+
+ +

+isDebug

+
+boolean isDebug()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.html new file mode 100644 index 0000000..a77186d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.html @@ -0,0 +1,352 @@ + + + + + + + +PrecompilingCommandLineCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class PrecompilingCommandLineCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
Direct Known Subclasses:
BorlandCCompiler, DevStudioCompatibleCCompiler
+
+
+
+
public abstract class PrecompilingCommandLineCCompiler
extends PrecompilingCommandLineCompiler
+ + +

+A command line C compiler that can utilize precompilation of header files +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected PrecompilingCommandLineCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + PrecompilingCommandLineCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+protected  ParsercreateParser(java.io.File source) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations, createPrecompileGeneratingConfig, createPrecompileUsingConfig
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrecompilingCommandLineCCompiler

+
+protected PrecompilingCommandLineCCompiler(java.lang.String command,
+                                           java.lang.String identifierArg,
+                                           java.lang.String[] sourceExtensions,
+                                           java.lang.String[] headerExtensions,
+                                           java.lang.String outputSuffix,
+                                           boolean libtool,
+                                           PrecompilingCommandLineCCompiler libtoolCompiler,
+                                           boolean newEnvironment,
+                                           org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.html new file mode 100644 index 0000000..87dfa14 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.html @@ -0,0 +1,416 @@ + + + + + + + +PrecompilingCommandLineCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class PrecompilingCommandLineCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
Direct Known Subclasses:
PrecompilingCommandLineCCompiler
+
+
+
+
public abstract class PrecompilingCommandLineCompiler
extends CommandLineCompiler
implements PrecompilingCompiler
+ + +

+A command line C compiler that can utilize precompilation of header files +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected PrecompilingCommandLineCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + PrecompilingCommandLineCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ CompilerConfiguration[]createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] exceptFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+protected abstract  CompilerConfigurationcreatePrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected abstract  CompilerConfigurationcreatePrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrecompilingCommandLineCompiler

+
+protected PrecompilingCommandLineCompiler(java.lang.String command,
+                                          java.lang.String identifierArg,
+                                          java.lang.String[] sourceExtensions,
+                                          java.lang.String[] headerExtensions,
+                                          java.lang.String outputSuffix,
+                                          boolean libtool,
+                                          PrecompilingCommandLineCompiler libtoolCompiler,
+                                          boolean newEnvironment,
+                                          org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+createPrecompileConfigurations

+
+public CompilerConfiguration[] createPrecompileConfigurations(CompilerConfiguration config,
+                                                              java.io.File prototype,
+                                                              java.lang.String[] exceptFiles)
+
+
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. + + The last (preferrably only) include directive in the prototype file will + be used to mark the boundary between pre-compiled and normally compiled + headers. +

+

+
Specified by:
createPrecompileConfigurations in interface PrecompilingCompiler
+
+
+
Parameters:
config - base configuration
prototype - A source file (for example, stdafx.cpp) that is used to build + the precompiled header file. @returns null if precompiled + headers are not supported or a two element array containing + the precompiled header generation configuration and the + consuming configuration
+
+
+
+ +

+createPrecompileGeneratingConfig

+
+protected abstract CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                                          java.io.File prototype,
+                                                                          java.lang.String lastInclude)
+
+
+
+
+
+
+
+
+
+ +

+createPrecompileUsingConfig

+
+protected abstract CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                                     java.io.File prototype,
+                                                                     java.lang.String lastInclude,
+                                                                     java.lang.String[] exceptFiles)
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.html new file mode 100644 index 0000000..3f53cca --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.html @@ -0,0 +1,235 @@ + + + + + + + +PrecompilingCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface PrecompilingCompiler

+
+
All Known Implementing Classes:
BorlandCCompiler, DevStudio2005CCompiler, DevStudioCCompiler, DevStudioCompatibleCCompiler, IntelWin32CCompiler, IntelWin64CCompiler, PrecompilingCommandLineCCompiler, PrecompilingCommandLineCompiler
+
+
+
+
public interface PrecompilingCompiler
+ + +

+A compiler that can utilize precompilation of header files +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ CompilerConfiguration[]createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+  +

+ + + + + + + + +
+Method Detail
+ +

+createPrecompileConfigurations

+
+CompilerConfiguration[] createPrecompileConfigurations(CompilerConfiguration config,
+                                                       java.io.File prototype,
+                                                       java.lang.String[] nonPrecompiledFiles)
+
+
This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file. + + The last (preferrably only) include directive in the prototype file will + be used to mark the boundary between pre-compiled and normally compiled + headers. +

+

+
Parameters:
config - base configuration
prototype - A source file (for example, stdafx.cpp) that is used to build + the precompiled header file. @returns null if precompiled + headers are not supported or a two element array containing + the precompiled header generation configuration and the + consuming configuration
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Processor.html new file mode 100644 index 0000000..c268ead --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/Processor.html @@ -0,0 +1,350 @@ + + + + + + + +Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface Processor

+
+
All Known Subinterfaces:
Compiler, Linker
+
+
+
All Known Implementing Classes:
AbstractArLibrarian, AbstractCompiler, AbstractLdLinker, AbstractLinker, AbstractProcessor, aCCCompiler, aCCLinker, ADSCCompiler, ADSLibrarian, ADSLinker, BorlandCCompiler, BorlandLibrarian, BorlandLinker, BorlandResourceCompiler, C89CCompiler, C89Linker, ClxxCCompiler, ClxxLibrarian, ClxxLinker, CommandLineCCompiler, CommandLineCompiler, CommandLineFortranCompiler, CommandLineLinker, CompaqVisualFortranCompiler, CompaqVisualFortranLibrarian, CompaqVisualFortranLinker, DevStudio2005CCompiler, DevStudioCCompiler, DevStudioCompatibleCCompiler, DevStudioCompatibleLibrarian, DevStudioCompatibleLinker, DevStudioLibrarian, DevStudioLinker, DevStudioMIDLCompiler, DevStudioResourceCompiler, ForteCCCompiler, ForteCCLinker, GccCCompiler, GccCCompiler, GccCCompiler, GccCompatibleCCompiler, GccLibrarian, GccLibrarian, GccLibrarian, GccLinker, GccLinker, GccLinker, GppLinker, GppLinker, GppLinker, IccCompiler, IccLinker, IntelLinux32CCompiler, IntelLinux32Linker, IntelLinux64CCompiler, IntelLinux64Linker, IntelWin32CCompiler, IntelWin32Librarian, IntelWin32Linker, IntelWin64CCompiler, LdLinker, LdLinker, LdLinker, MetaObjectCompiler, OpenWatcomCCompiler, OpenWatcomCLinker, OpenWatcomCompiler, OpenWatcomFortranCompiler, OpenWatcomFortranLinker, OpenWatcomLibrarian, OpenWatcomLinker, OS390CCompiler, OS390Linker, PrecompilingCommandLineCCompiler, PrecompilingCommandLineCompiler, UserInterfaceCompiler, VisualAgeCCompiler, VisualAgeLinker, WindresResourceCompiler, XpidlCompiler
+
+
+
+
public interface Processor
+ + +

+A processor. Base interface for Compiler and Linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String inputFile) + +
+          Returns a bid indicating the desire of this compiler to process the + file.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorConfigurationcreateConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+  +

+ + + + + + + + +
+Method Detail
+ +

+bid

+
+int bid(java.lang.String inputFile)
+
+
Returns a bid indicating the desire of this compiler to process the + file. +

+

+
Parameters:
inputFile - input file +
Returns:
0 = no interest, 100 = high interest
+
+
+
+ +

+changeEnvironment

+
+Processor changeEnvironment(boolean newEnvironment,
+                            org.apache.tools.ant.types.Environment env)
+
+
+
+
+
+
+ +

+createConfiguration

+
+ProcessorConfiguration createConfiguration(CCTask task,
+                                           LinkType linkType,
+                                           ProcessorDef[] defaultProviders,
+                                           ProcessorDef specificConfig,
+                                           TargetDef targetPlatform,
+                                           VersionInfo versionInfo)
+
+
Returns the compiler configuration for or element. +

+

+
Parameters:
defaultProviders - When specificConfig corresponds to a or linker + element, defaultProvider will be a zero to two element array. + If there is an extends attribute, the first element will be + the referenced ProcessorDef, unless inherit = false, the last + element will be the containing element
specificConfig - A or element. +
Returns:
resulting configuration
+
+
+
+ +

+getIdentifier

+
+java.lang.String getIdentifier()
+
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
+
+
+
+ +

+getLinker

+
+Linker getLinker(LinkType type)
+
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getOutputFileNames

+
+java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                      VersionInfo versionInfo)
+
+
Output file name (no path components) corresponding to source file +

+

+
Parameters:
inputFile - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.html new file mode 100644 index 0000000..29ecfa6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.html @@ -0,0 +1,311 @@ + + + + + + + +ProcessorConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface ProcessorConfiguration

+
+
All Known Subinterfaces:
CompilerConfiguration, LinkerConfiguration
+
+
+
All Known Implementing Classes:
CommandLineCompilerConfiguration, CommandLineLinkerConfiguration
+
+
+
+
public interface ProcessorConfiguration
+ + +

+A configuration for a C++ compiler, linker or other processor +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String filename) + +
+          An indication of how much this compiler would like to process this file
+ java.lang.StringgetIdentifier() + +
+          Returns a string representation of this configuration.
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ ProcessorParam[]getParams() + +
+           
+ booleangetRebuild() + +
+          If true, all files using this configuration should be rebuilt and any + existing output files should be ignored
+  +

+ + + + + + + + +
+Method Detail
+ +

+bid

+
+int bid(java.lang.String filename)
+
+
An indication of how much this compiler would like to process this file +

+

+ +
Returns:
0 is no interest to process, 100 is strong interest to process
+
+
+
+ +

+getIdentifier

+
+java.lang.String getIdentifier()
+
+
Returns a string representation of this configuration. Should be + canonical so that equivalent configurations will have equivalent string + representations +

+

+
+
+
+
+ +

+getOutputFileNames

+
+java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                      VersionInfo versionInfo)
+
+
Output file name (no path components) corresponding to source file +

+

+
Parameters:
inputFile - input file +
Returns:
output file names or zero-length array if no output file or name not + determined by input file
+
+
+
+ +

+getParams

+
+ProcessorParam[] getParams()
+
+
+
+
+
+
+ +

+getRebuild

+
+boolean getRebuild()
+
+
If true, all files using this configuration should be rebuilt and any + existing output files should be ignored +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.html new file mode 100644 index 0000000..56ba6af --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.html @@ -0,0 +1,257 @@ + + + + + + + +ProgressMonitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Interface ProgressMonitor

+
+
All Known Implementing Classes:
CCTaskProgressMonitor
+
+
+
+
public interface ProgressMonitor
+ + +

+Interface to receive notification of compile progress +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidfinish(ProcessorConfiguration config, + boolean normal) + +
+           
+ voidprogress(java.lang.String[] sources) + +
+          Called to notify monitor of progress
+ voidstart(ProcessorConfiguration config) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+finish

+
+void finish(ProcessorConfiguration config,
+            boolean normal)
+
+
+
+
+
+
+ +

+progress

+
+void progress(java.lang.String[] sources)
+
+
Called to notify monitor of progress +

+

+
+
+
+
+ +

+start

+
+void start(ProcessorConfiguration config)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractCompiler.html new file mode 100644 index 0000000..c158844 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractCompiler.html @@ -0,0 +1,821 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use AbstractCompiler
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.arm
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.borland
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+ classBorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.compiler
+ classCommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
+ classDevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.gcc
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+ classWindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.hp
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.mozilla
+ classXpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.os390
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 that return AbstractCompiler
+static AbstractCompilerOS390CCompiler.getInstance() + +
+           
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.os400
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 that return AbstractCompiler
+static AbstractCompilerIccCompiler.getInstance() + +
+           
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.sun
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return AbstractCompiler
+static AbstractCompilerC89CCompiler.getInstance() + +
+           
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.ti
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+  +

+ + + + + +
+Uses of AbstractCompiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractCompiler in net.sf.antcontrib.cpptasks.trolltech
+ classMetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
+ classUserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractLinker.html new file mode 100644 index 0000000..e6d909d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractLinker.html @@ -0,0 +1,712 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.AbstractLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.AbstractLinker

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use AbstractLinker
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.arm
+ classADSLibrarian + +
+          Adapter for ARM Librarian
+ classADSLinker + +
+          Adapter for the ARM Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.borland
+ classBorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
+ classBorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.compiler
+ classCommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
+ classDevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.gcc
+ classAbstractArLibrarian + +
+          Adapter for the "ar" tool
+ classAbstractLdLinker + +
+          Abstract adapter for ld-like linkers
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.hp
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+ classOpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
+ classOpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.os390
+ classOS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.os400
+ classIccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.sun
+ classC89Linker + +
+          Adapter for the Sun C89 Linker
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of AbstractLinker in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLinker in net.sf.antcontrib.cpptasks.ti
+ classClxxLibrarian + +
+          Adapter for TI DSP librarian + *
+ classClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractProcessor.html new file mode 100644 index 0000000..3de1c36 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/AbstractProcessor.html @@ -0,0 +1,1059 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use AbstractProcessor
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.arm
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+ classADSLibrarian + +
+          Adapter for ARM Librarian
+ classADSLinker + +
+          Adapter for the ARM Linker
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.borland
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+ classBorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
+ classBorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
+ classBorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+ classCompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.compiler
+ classAbstractCompiler + +
+          An abstract compiler implementation.
+ classAbstractLinker + +
+          An abstract Linker implementation.
+ classCommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
+ classDevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+ classDevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
+ classDevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.gcc
+ classAbstractArLibrarian + +
+          Adapter for the "ar" tool
+ classAbstractLdLinker + +
+          Abstract adapter for ld-like linkers
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+ classWindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.hp
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.mozilla
+ classXpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+ classOpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
+ classOpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.os390
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+ classOS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.os400
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+ classIccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.sun
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classC89Linker + +
+          Adapter for the Sun C89 Linker
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.ti
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+ classClxxLibrarian + +
+          Adapter for TI DSP librarian + *
+ classClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+ + + + + +
+Uses of AbstractProcessor in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractProcessor in net.sf.antcontrib.cpptasks.trolltech
+ classMetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
+ classUserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CaptureStreamHandler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CaptureStreamHandler.html new file mode 100644 index 0000000..a856de5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CaptureStreamHandler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler

+
+No usage of net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCCompiler.html new file mode 100644 index 0000000..77e2f5f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCCompiler.html @@ -0,0 +1,478 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CommandLineCCompiler
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.arm
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineCCompiler
CommandLineCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.gcc
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.hp
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.os390
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.os400
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.sun
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+  +

+ + + + + +
+Uses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + +
Subclasses of CommandLineCCompiler in net.sf.antcontrib.cpptasks.ti
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompiler.html new file mode 100644 index 0000000..5d6466f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompiler.html @@ -0,0 +1,819 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CommandLineCompiler
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.arm
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.borland
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+ classBorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.compiler
+ classCommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return CommandLineCompiler
+ CommandLineCompilerCommandLineCompiler.getLibtoolCompiler() + +
+          Obtains the same compiler, but with libtool set + + Default behavior is to ignore libtool
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineCompiler
CommandLineCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
CommandLineCompilerConfiguration(CommandLineCompiler compiler, + java.lang.String identifier, + java.io.File[] includePath, + java.io.File[] sysIncludePath, + java.io.File[] envIncludePath, + java.lang.String includePathIdentifier, + java.lang.String[] args, + ProcessorParam[] params, + boolean rebuild, + java.lang.String[] endArgs) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
+ classDevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.gcc
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+ classWindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.hp
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.mozilla
+ classXpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.os390
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.os400
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.sun
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.ti
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+  +

+ + + + + +
+Uses of CommandLineCompiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineCompiler in net.sf.antcontrib.cpptasks.trolltech
+ classMetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
+ classUserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompilerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompilerConfiguration.html new file mode 100644 index 0000000..017b50a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineCompilerConfiguration.html @@ -0,0 +1,429 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CommandLineCompilerConfiguration
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type CommandLineCompilerConfiguration
+ voidBorlandResourceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+protected  CompilerConfigurationBorlandCCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationBorlandCCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineCompilerConfiguration
+ voidCommandLineCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+protected abstract  CompilerConfigurationPrecompilingCommandLineCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected abstract  CompilerConfigurationPrecompilingCommandLineCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineCompilerConfiguration
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base, + java.lang.String[] additionalArgs, + java.lang.String[] exceptFiles, + boolean isPrecompileHeaderGeneration) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type CommandLineCompilerConfiguration
+protected  CompilerConfigurationDevStudioCompatibleCCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationDevStudioCompatibleCCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type CommandLineCompilerConfiguration
+ voidGccCCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type CommandLineCompilerConfiguration
+ voidXpidlCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .idl file into the corresponding .h and .xpt files.
+  +

+ + + + + +
+Uses of CommandLineCompilerConfiguration in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type CommandLineCompilerConfiguration
+ voidUserInterfaceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineFortranCompiler.html new file mode 100644 index 0000000..060f4eb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineFortranCompiler.html @@ -0,0 +1,212 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler

+
+ + + + + + + + + + + + + +
+Packages that use CommandLineFortranCompiler
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of CommandLineFortranCompiler in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Subclasses of CommandLineFortranCompiler in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+  +

+ + + + + +
+Uses of CommandLineFortranCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineFortranCompiler
CommandLineFortranCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + CommandLineFortranCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinker.html new file mode 100644 index 0000000..f193ebf --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinker.html @@ -0,0 +1,745 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineLinker

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CommandLineLinker
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.arm
+ classADSLibrarian + +
+          Adapter for ARM Librarian
+ classADSLinker + +
+          Adapter for the ARM Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.borland
+ classBorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
+ classBorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return CommandLineLinker
+ CommandLineLinkerCommandLineLinker.getLibtoolLinker() + +
+           
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineLinker
CommandLineLinker(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputSuffix, + boolean isLibtool, + CommandLineLinker libtoolLinker) + +
+          Creates a comand line linker invocation
CommandLineLinkerConfiguration(CommandLineLinker linker, + java.lang.String identifier, + java.lang.String[][] args, + ProcessorParam[] params, + boolean rebuild, + boolean map, + boolean debug, + java.lang.String[] libraryNames, + java.lang.String startupObject) + +
+           
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
+ classDevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.gcc
+ classAbstractArLibrarian + +
+          Adapter for the "ar" tool
+ classAbstractLdLinker + +
+          Abstract adapter for ld-like linkers
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.hp
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+ classOpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
+ classOpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.os390
+ classOS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.os400
+ classIccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.sun
+ classC89Linker + +
+          Adapter for the Sun C89 Linker
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of CommandLineLinker in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineLinker in net.sf.antcontrib.cpptasks.ti
+ classClxxLibrarian + +
+          Adapter for TI DSP librarian + *
+ classClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinkerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinkerConfiguration.html new file mode 100644 index 0000000..2e39831 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CommandLineLinkerConfiguration.html @@ -0,0 +1,465 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use CommandLineLinkerConfiguration
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type CommandLineLinkerConfiguration
+ voidBorlandLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library
+protected  java.lang.String[]BorlandLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+protected  java.lang.String[]BorlandLibrarian.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type CommandLineLinkerConfiguration
+ voidCommandLineLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+protected  java.lang.String[]CommandLineLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type CommandLineLinkerConfiguration
+ voidAbstractArLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ java.lang.String[]AbstractLdLinker.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type CommandLineLinkerConfiguration
+ voidLdLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGppLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGccLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+ voidGccLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type CommandLineLinkerConfiguration
+ voidOpenWatcomLibrarian.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library.
+protected  java.lang.String[]OpenWatcomLibrarian.prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type CommandLineLinkerConfiguration
+ voidOS390Linker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+  +

+ + + + + +
+Uses of CommandLineLinkerConfiguration in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type CommandLineLinkerConfiguration
+ voidIccLinker.link(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Compiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Compiler.html new file mode 100644 index 0000000..ac99712 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Compiler.html @@ -0,0 +1,826 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.Compiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.Compiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Compiler
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return Compiler
+ CompilerCompilerEnum.getCompiler() + +
+           
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.arm that implement Compiler
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.borland that implement Compiler
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+ classBorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compaq that implement Compiler
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement Compiler
+ classAbstractCompiler + +
+          An abstract compiler implementation.
+ classCommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return Compiler
+ CompilerCommandLineCompilerConfiguration.getCompiler() + +
+           
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.devstudio that implement Compiler
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
+ classDevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.gcc that implement Compiler
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+ classWindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.hp that implement Compiler
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ibm that implement Compiler
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.intel that implement Compiler
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.mozilla that implement Compiler
+ classXpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.openwatcom that implement Compiler
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os390 that implement Compiler
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os400 that implement Compiler
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.sun that implement Compiler
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ti that implement Compiler
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+  +

+ + + + + +
+Uses of Compiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.trolltech that implement Compiler
+ classMetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
+ classUserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CompilerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CompilerConfiguration.html new file mode 100644 index 0000000..9ff5966 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/CompilerConfiguration.html @@ -0,0 +1,443 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use CompilerConfiguration
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of CompilerConfiguration in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CompilerConfiguration
+ DependencyInfoDependencyTable.parseIncludes(CCTask task, + CompilerConfiguration compiler, + java.io.File source) + +
+           
+ voidDependencyTable.walkDependencies(CCTask task, + DependencyInfo dependInfo, + CompilerConfiguration compiler, + DependencyInfo[] stack, + DependencyTable.DependencyVisitor visitor) + +
+           
+  +

+ + + + + +
+Uses of CompilerConfiguration in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return CompilerConfiguration
+protected  CompilerConfigurationBorlandCCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationBorlandCCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+ + + + + +
+Uses of CompilerConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement CompilerConfiguration
+ classCommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return CompilerConfiguration
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ CompilerConfiguration[]PrecompilingCompiler.createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ CompilerConfiguration[]PrecompilingCommandLineCompiler.createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] exceptFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ CompilerConfiguration[]CompilerConfiguration.createPrecompileConfigurations(java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ CompilerConfiguration[]CommandLineCompilerConfiguration.createPrecompileConfigurations(java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+protected abstract  CompilerConfigurationPrecompilingCommandLineCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected abstract  CompilerConfigurationPrecompilingCommandLineCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type CompilerConfiguration
+ CompilerConfiguration[]PrecompilingCompiler.createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] nonPrecompiledFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+ CompilerConfiguration[]PrecompilingCommandLineCompiler.createPrecompileConfigurations(CompilerConfiguration config, + java.io.File prototype, + java.lang.String[] exceptFiles) + +
+          This method may be used to get two distinct compiler configurations, one + for compiling the specified file and producing a precompiled header + file, and a second for compiling other files using the precompiled + header file.
+  +

+ + + + + +
+Uses of CompilerConfiguration in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return CompilerConfiguration
+protected  CompilerConfigurationDevStudioCompatibleCCompiler.createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationDevStudioCompatibleCCompiler.createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkType.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkType.html new file mode 100644 index 0000000..0cb4250 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkType.html @@ -0,0 +1,1926 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.LinkType (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.LinkType

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use LinkType
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities. 
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkType
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+protected  ProcessorProcessorDef.getProcessor(LinkType linkType) + +
+          Obtains the appropriate processor (compiler, linker) based on the + LinkType.
+ ProcessorLinkerDef.getProcessor(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm with parameters of type LinkType
+protected  voidADSLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidADSLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidADSCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          
+ LinkerADSLinker.getLinker(LinkType linkType) + +
+           
+ LinkerADSLibrarian.getLinker(LinkType linkType) + +
+           
+ LinkerADSCCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type LinkType
+protected  voidBorlandLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidBorlandLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidBorlandResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidBorlandCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidBorlandLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ LinkerBorlandResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerBorlandLinker.getLinker(LinkType type) + +
+           
+ LinkerBorlandLibrarian.getLinker(LinkType type) + +
+           
+ LinkerBorlandCCompiler.getLinker(LinkType type) + +
+           
+protected  java.lang.StringBorlandLinker.getStartupObject(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq with parameters of type LinkType
+protected  voidCompaqVisualFortranLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidCompaqVisualFortranLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidCompaqVisualFortranCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerCompaqVisualFortranLinker.getLinker(LinkType type) + +
+           
+ LinkerCompaqVisualFortranLibrarian.getLinker(LinkType type) + +
+           
+ LinkerCompaqVisualFortranCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type LinkType
+protected abstract  voidCommandLineLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected abstract  voidCommandLineCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ voidAbstractLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+protected  CompilerConfigurationCommandLineCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + CompilerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  CompilerConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + CompilerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ LinkerProcessor.getLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ LinkerLinker.getLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+protected  java.lang.StringCommandLineLinker.getStartupObject(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type LinkType
+protected  voidDevStudioCompatibleLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidDevStudioCompatibleLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidDevStudioResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidDevStudioMIDLCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidDevStudioCompatibleCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidDevStudioCompatibleLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ LinkerDevStudioResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudioMIDLCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudioLinker.getLinker(LinkType type) + +
+           
+ LinkerDevStudioLibrarian.getLinker(LinkType type) + +
+           
+ LinkerDevStudioCCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudio2005CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type LinkType
+protected  voidGppLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidGccLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidAbstractLdLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidAbstractArLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidWindresResourceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidGccCompatibleCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerWindresResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type LinkType
+protected  voidGppLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidGccLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type LinkType
+protected  voidGppLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidGccLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidGccCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.hp with parameters of type LinkType
+ voidaCCLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidaCCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkeraCCLinker.getLinker(LinkType type) + +
+           
+ LinkeraCCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ibm with parameters of type LinkType
+ voidVisualAgeLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidVisualAgeCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerVisualAgeLinker.getLinker(LinkType type) + +
+           
+ LinkerVisualAgeCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel with parameters of type LinkType
+ LinkerIntelWin64CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32Librarian.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux64Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux64CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux32Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux32CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type LinkType
+protected  voidXpidlCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+ LinkerXpidlCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type LinkType
+protected  voidOpenWatcomLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+          Adds other command line parameters.
+protected  voidOpenWatcomLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+          Add implied arguments.
+protected  voidOpenWatcomCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add implied arguments.
+ voidOpenWatcomLinker.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ LinkerOpenWatcomLibrarian.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomFortranLinker.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomFortranCompiler.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomCLinker.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomCCompiler.getLinker(LinkType type) + +
+          Get linker.
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type LinkType
+protected  voidOS390Linker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidOS390CCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerOS390Linker.getLinker(LinkType linkType) + +
+           
+ LinkerOS390CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type LinkType
+protected  voidIccLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidIccCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerIccLinker.getLinker(LinkType linkType) + +
+           
+ LinkerIccCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.platforms
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.platforms with parameters of type LinkType
+static voidWindowsPlatform.addVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+static voidWindowsPlatform.writeResource(java.io.Writer writer, + VersionInfo versionInfo, + java.io.File outputFile, + boolean isDebug, + LinkType linkType) + +
+          Writes windows resource.
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type LinkType
+ voidForteCCLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidC89Linker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidForteCCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidC89CCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerForteCCLinker.getLinker(LinkType type) + +
+           
+ LinkerForteCCCompiler.getLinker(LinkType linkType) + +
+           
+ LinkerC89Linker.getLinker(LinkType linkType) + +
+           
+ LinkerC89CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti with parameters of type LinkType
+protected  voidClxxLinker.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidClxxLibrarian.addImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidClxxCCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ LinkerClxxLinker.getLinker(LinkType linkType) + +
+           
+ LinkerClxxLibrarian.getLinker(LinkType linkType) + +
+           
+ LinkerClxxCCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of LinkType in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type LinkType
+protected  voidUserInterfaceCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+protected  voidMetaObjectCompiler.addImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+ LinkerUserInterfaceCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+ LinkerMetaObjectCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Linker.html new file mode 100644 index 0000000..1aeea5f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Linker.html @@ -0,0 +1,1554 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.Linker

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Linker
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return Linker
+ LinkerLinkerEnum.getLinker() + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type Linker
+ voidLinkerDef.visitSystemLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+ voidLinkerDef.visitUserLibraries(Linker linker, + FileVisitor libraryVisitor) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type Linker
ObjectFileCollector(Linker linker, + java.util.Vector files) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.arm that implement Linker
+ classADSLibrarian + +
+          Adapter for ARM Librarian
+ classADSLinker + +
+          Adapter for the ARM Linker
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm that return Linker
+ LinkerADSLinker.getLinker(LinkType linkType) + +
+           
+ LinkerADSLibrarian.getLinker(LinkType linkType) + +
+           
+ LinkerADSCCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.borland that implement Linker
+ classBorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
+ classBorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return Linker
+ LinkerBorlandResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerBorlandLinker.getLinker(LinkType type) + +
+           
+ LinkerBorlandLibrarian.getLinker(LinkType type) + +
+           
+ LinkerBorlandCCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compaq that implement Linker
+ classCompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq that return Linker
+ LinkerCompaqVisualFortranLinker.getLinker(LinkType type) + +
+           
+ LinkerCompaqVisualFortranLibrarian.getLinker(LinkType type) + +
+           
+ LinkerCompaqVisualFortranCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement Linker
+ classAbstractLinker + +
+          An abstract Linker implementation.
+ classCommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return Linker
+ LinkerLinkerConfiguration.getLinker() + +
+           
+ LinkerCommandLineLinkerConfiguration.getLinker() + +
+           
+ LinkerProcessor.getLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ LinkerLinker.getLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.devstudio that implement Linker
+ classDevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
+ classDevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return Linker
+ LinkerDevStudioResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudioMIDLCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudioLinker.getLinker(LinkType type) + +
+           
+ LinkerDevStudioLibrarian.getLinker(LinkType type) + +
+           
+ LinkerDevStudioCCompiler.getLinker(LinkType type) + +
+           
+ LinkerDevStudio2005CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.gcc that implement Linker
+ classAbstractArLibrarian + +
+          Adapter for the "ar" tool
+ classAbstractLdLinker + +
+          Abstract adapter for ld-like linkers
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return Linker
+ LinkerWindresResourceCompiler.getLinker(LinkType type) + +
+           
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return Linker
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return Linker
+ LinkerLdLinker.getLinker(LinkType type) + +
+           
+ LinkerGppLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLinker.getLinker(LinkType type) + +
+           
+ LinkerGccLibrarian.getLinker(LinkType type) + +
+           
+ LinkerGccCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.hp that implement Linker
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.hp that return Linker
+ LinkeraCCLinker.getLinker(LinkType type) + +
+           
+ LinkeraCCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ibm that implement Linker
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ibm that return Linker
+ LinkerVisualAgeLinker.getLinker(LinkType type) + +
+           
+ LinkerVisualAgeCCompiler.getLinker(LinkType linkType) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.intel that implement Linker
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return Linker
+ LinkerIntelWin64CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32Librarian.getLinker(LinkType type) + +
+           
+ LinkerIntelWin32CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux64Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux64CCompiler.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux32Linker.getLinker(LinkType type) + +
+           
+ LinkerIntelLinux32CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla that return Linker
+ LinkerXpidlCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.openwatcom that implement Linker
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+ classOpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
+ classOpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return Linker
+ LinkerOpenWatcomLibrarian.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomFortranLinker.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomFortranCompiler.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomCLinker.getLinker(LinkType type) + +
+          Get linker.
+ LinkerOpenWatcomCCompiler.getLinker(LinkType type) + +
+          Get linker.
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os390 that implement Linker
+ classOS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 that return Linker
+ LinkerOS390Linker.getLinker(LinkType linkType) + +
+           
+ LinkerOS390CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os400 that implement Linker
+ classIccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 that return Linker
+ LinkerIccLinker.getLinker(LinkType linkType) + +
+           
+ LinkerIccCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.sun that implement Linker
+ classC89Linker + +
+          Adapter for the Sun C89 Linker
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return Linker
+ LinkerForteCCLinker.getLinker(LinkType type) + +
+           
+ LinkerForteCCCompiler.getLinker(LinkType linkType) + +
+           
+ LinkerC89Linker.getLinker(LinkType linkType) + +
+           
+ LinkerC89CCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ti that implement Linker
+ classClxxLibrarian + +
+          Adapter for TI DSP librarian + *
+ classClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti that return Linker
+ LinkerClxxLinker.getLinker(LinkType linkType) + +
+           
+ LinkerClxxLibrarian.getLinker(LinkType linkType) + +
+           
+ LinkerClxxCCompiler.getLinker(LinkType type) + +
+           
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return Linker
+ LinkerUserInterfaceCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+ LinkerMetaObjectCompiler.getLinker(LinkType type) + +
+          Gets linker associated with this type.
+  +

+ + + + + +
+Uses of Linker in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type Linker
+ voidLibrarySet.visitLibraries(org.apache.tools.ant.Project project, + Linker linker, + java.io.File[] libpath, + FileVisitor visitor) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkerConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkerConfiguration.html new file mode 100644 index 0000000..e8e5447 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/LinkerConfiguration.html @@ -0,0 +1,282 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration

+
+ + + + + + + + + + + + + +
+Packages that use LinkerConfiguration
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of LinkerConfiguration in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return LinkerConfiguration
+protected  LinkerConfigurationCCTask.collectExplicitObjectFiles(java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkerConfiguration
+protected  TargetInfoCCTask.getLinkTarget(LinkerConfiguration linkerConfig, + java.util.Vector objectFiles, + java.util.Vector sysObjectFiles, + java.util.Hashtable compileTargets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type LinkerConfiguration
TargetMatcher(CCTask task, + java.io.File outputDir, + ProcessorConfiguration[] processors, + LinkerConfiguration linker, + java.util.Vector objectFiles, + java.util.Hashtable targets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of LinkerConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement LinkerConfiguration
+ classCommandLineLinkerConfiguration + +
+          A configuration for a command line linker
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return LinkerConfiguration
+protected  LinkerConfigurationCommandLineLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, + LinkerDef specificDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+protected abstract  LinkerConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + LinkerDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCCompiler.html new file mode 100644 index 0000000..9d12fb2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCCompiler.html @@ -0,0 +1,298 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use PrecompilingCommandLineCCompiler
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.borland
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type PrecompilingCommandLineCCompiler
PrecompilingCommandLineCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + PrecompilingCommandLineCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of PrecompilingCommandLineCCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCompiler.html new file mode 100644 index 0000000..3bd8087 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCommandLineCompiler.html @@ -0,0 +1,314 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use PrecompilingCommandLineCompiler
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.borland
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Subclasses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.compiler
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.compiler with parameters of type PrecompilingCommandLineCompiler
PrecompilingCommandLineCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + java.lang.String outputSuffix, + boolean libtool, + PrecompilingCommandLineCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+  +

+ + + + + +
+Uses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of PrecompilingCommandLineCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCompiler.html new file mode 100644 index 0000000..b1c3c8e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/PrecompilingCompiler.html @@ -0,0 +1,300 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.PrecompilingCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.PrecompilingCompiler

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use PrecompilingCompiler
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of PrecompilingCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.borland that implement PrecompilingCompiler
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+  +

+ + + + + +
+Uses of PrecompilingCompiler in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement PrecompilingCompiler
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + +
+Uses of PrecompilingCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.devstudio that implement PrecompilingCompiler
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+  +

+ + + + + +
+Uses of PrecompilingCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.intel that implement PrecompilingCompiler
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Processor.html new file mode 100644 index 0000000..0e5989e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/Processor.html @@ -0,0 +1,1571 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.Processor

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Processor
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return Processor
+ ProcessorProcessorEnumValue.getProcessor() + +
+           
+protected  ProcessorProcessorDef.getProcessor() + +
+          Obtains the appropriate processor (compiler, linker)
+ ProcessorLinkerDef.getProcessor() + +
+           
+ ProcessorCompilerDef.getProcessor() + +
+           
+protected  ProcessorProcessorDef.getProcessor(LinkType linkType) + +
+          Obtains the appropriate processor (compiler, linker) based on the + LinkType.
+ ProcessorLinkerDef.getProcessor(LinkType linkType) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type Processor
+protected  voidProcessorDef.setProcessor(Processor processor) + +
+          Sets the processor
+protected  voidLinkerDef.setProcessor(Processor proc) + +
+           
+protected  voidCompilerDef.setProcessor(Processor proc) + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type Processor
ProcessorEnumValue(java.lang.String name, + Processor processor) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.arm that implement Processor
+ classADSCCompiler + +
+          Adapter for the ARM C Compilers + + See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + http://www.arm.com/arm/User_Guides?OpenDocument
+ classADSLibrarian + +
+          Adapter for ARM Librarian
+ classADSLinker + +
+          Adapter for the ARM Linker
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.borland that implement Processor
+ classBorlandCCompiler + +
+          Adapter for the Borland(r) C/C++ compiler.
+ classBorlandLibrarian + +
+          Adapter for the Borland(r) tlib Librarian
+ classBorlandLinker + +
+          Adapter for the Borland(r) ilink32 linker
+ classBorlandResourceCompiler + +
+          Adapter for the Borland(r) brc32 Resource compiler.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return Processor
+ ProcessorBorlandResourceCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorBorlandCCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compaq that implement Processor
+ classCompaqVisualFortranCompiler + +
+          Adapter for the Compaq(r) Visual Fortran compiler.
+ classCompaqVisualFortranLibrarian + +
+          Adapter for the Compaq(r) Visual Fortran Librarian
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq that return Processor
+ ProcessorCompaqVisualFortranCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Subinterfaces of Processor in net.sf.antcontrib.cpptasks.compiler
+ interfaceCompiler + +
+          A compiler.
+ interfaceLinker + +
+          A linker for executables, and static and dynamic libraries.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement Processor
+ classAbstractCompiler + +
+          An abstract compiler implementation.
+ classAbstractLinker + +
+          An abstract Linker implementation.
+ classAbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
+ classCommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
+ classCommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
+ classPrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+ classPrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return Processor
+ ProcessorProcessor.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorAbstractProcessor.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorAbstractLinker.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.devstudio that implement Processor
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
+ classDevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
+ classDevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+ classDevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
+ classDevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return Processor
+ ProcessorDevStudioResourceCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorDevStudioMIDLCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorDevStudioCCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorDevStudio2005CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.gcc that implement Processor
+ classAbstractArLibrarian + +
+          Adapter for the "ar" tool
+ classAbstractLdLinker + +
+          Abstract adapter for ld-like linkers
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+ classGccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+ classWindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return Processor
+ ProcessorWindresResourceCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorGccCCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return Processor
+ ProcessorGccCCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return Processor
+ ProcessorGccCCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.hp that implement Processor
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ibm that implement Processor
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.intel that implement Processor
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return Processor
+ ProcessorIntelWin64CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorIntelWin32CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorIntelLinux64CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+ ProcessorIntelLinux32CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.mozilla that implement Processor
+ classXpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla that return Processor
+ ProcessorXpidlCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.openwatcom that implement Processor
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+ classOpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
+ classOpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return Processor
+ ProcessorOpenWatcomCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment.
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os390 that implement Processor
+ classOS390CCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+ classOS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 that return Processor
+ ProcessorOS390CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.os400 that implement Processor
+ classIccCompiler + +
+          Adapter for the IBM (R) OS/390 (tm) C++ Compiler
+ classIccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 that return Processor
+ ProcessorIccCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.sun that implement Processor
+ classC89CCompiler + +
+          Adapter for the Sun C89 C++ Compiler
+ classC89Linker + +
+          Adapter for the Sun C89 Linker
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return Processor
+ ProcessorC89CCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.ti that implement Processor
+ classClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
+ classClxxLibrarian + +
+          Adapter for TI DSP librarian + *
+ classClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+ + + + + +
+Uses of Processor in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.trolltech that implement Processor
+ classMetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
+ classUserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return Processor
+ ProcessorUserInterfaceCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+ ProcessorMetaObjectCompiler.changeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProcessorConfiguration.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProcessorConfiguration.html new file mode 100644 index 0000000..ddbf538 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProcessorConfiguration.html @@ -0,0 +1,387 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration

+
+ + + + + + + + + + + + + +
+Packages that use ProcessorConfiguration
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of ProcessorConfiguration in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return ProcessorConfiguration
+ ProcessorConfigurationProcessorDef.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef baseDef, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Creates a configuration
+ ProcessorConfigurationTargetInfo.getConfiguration() + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ProcessorConfiguration
+ voidCCTaskProgressMonitor.finish(ProcessorConfiguration config, + boolean normal) + +
+           
+ voidCCTaskProgressMonitor.start(ProcessorConfiguration config) + +
+           
+ voidTargetHistoryTable.update(ProcessorConfiguration config, + java.lang.String[] sources, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks with parameters of type ProcessorConfiguration
TargetInfo(ProcessorConfiguration config, + java.io.File[] sources, + java.io.File[] sysSources, + java.io.File output, + boolean rebuild) + +
+           
TargetMatcher(CCTask task, + java.io.File outputDir, + ProcessorConfiguration[] processors, + LinkerConfiguration linker, + java.util.Vector objectFiles, + java.util.Hashtable targets, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + +
+Uses of ProcessorConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Subinterfaces of ProcessorConfiguration in net.sf.antcontrib.cpptasks.compiler
+ interfaceCompilerConfiguration + +
+          A configuration for a compiler
+ interfaceLinkerConfiguration + +
+          A configuration for a linker
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.compiler that implement ProcessorConfiguration
+ classCommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
+ classCommandLineLinkerConfiguration + +
+          A configuration for a command line linker
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return ProcessorConfiguration
+ ProcessorConfigurationProcessor.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] defaultProviders, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+          Returns the compiler configuration for or element.
+ ProcessorConfigurationAbstractLinker.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+ ProcessorConfigurationAbstractCompiler.createConfiguration(CCTask task, + LinkType linkType, + ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type ProcessorConfiguration
+ voidProgressMonitor.finish(ProcessorConfiguration config, + boolean normal) + +
+           
+ voidProgressMonitor.start(ProcessorConfiguration config) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProgressMonitor.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProgressMonitor.html new file mode 100644 index 0000000..8e0a5e3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/class-use/ProgressMonitor.html @@ -0,0 +1,381 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.compiler.ProgressMonitor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.compiler.ProgressMonitor

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use ProgressMonitor
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks that implement ProgressMonitor
+ classCCTaskProgressMonitor + +
+           
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type ProgressMonitor
+ voidBorlandResourceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type ProgressMonitor
+ voidCompilerConfiguration.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ voidCommandLineCompilerConfiguration.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + boolean relentless, + ProgressMonitor monitor) + +
+           
+ voidCommandLineCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type ProgressMonitor
+ voidGccCCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+           
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla with parameters of type ProgressMonitor
+ voidXpidlCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .idl file into the corresponding .h and .xpt files.
+  +

+ + + + + +
+Uses of ProgressMonitor in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech with parameters of type ProgressMonitor
+ voidUserInterfaceCompiler.compile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html new file mode 100644 index 0000000..cc79576 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html @@ -0,0 +1,82 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.compiler + + + + +
+Interfaces  + +
+Compiler +
+CompilerConfiguration +
+Linker +
+LinkerConfiguration +
+PrecompilingCompiler +
+Processor +
+ProcessorConfiguration +
+ProgressMonitor
+ + + + + + +
+Classes  + +
+AbstractCompiler +
+AbstractLinker +
+AbstractProcessor +
+CaptureStreamHandler +
+CommandLineCCompiler +
+CommandLineCompiler +
+CommandLineCompilerConfiguration +
+CommandLineFortranCompiler +
+CommandLineLinker +
+CommandLineLinkerConfiguration +
+LinkType +
+PrecompilingCommandLineCCompiler +
+PrecompilingCommandLineCompiler
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html new file mode 100644 index 0000000..e2e40eb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html @@ -0,0 +1,250 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.compiler +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
CompilerA compiler.
CompilerConfigurationA configuration for a compiler
LinkerA linker for executables, and static and dynamic libraries.
LinkerConfigurationA configuration for a linker
PrecompilingCompilerA compiler that can utilize precompilation of header files
ProcessorA processor.
ProcessorConfigurationA configuration for a C++ compiler, linker or other processor
ProgressMonitorInterface to receive notification of compile progress
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractCompilerAn abstract compiler implementation.
AbstractLinkerAn abstract Linker implementation.
AbstractProcessorAn abstract processor (compiler/linker) implementation.
CaptureStreamHandlerImplements ExecuteStreamHandler to capture the output of a Execute to an + array of strings
CommandLineCCompilerAn abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerAn abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfigurationA configuration for a C++ compiler
CommandLineFortranCompilerAn abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinkerAn abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfigurationA configuration for a command line linker
LinkTypeThis class represents the target platform for the compile and link step.
PrecompilingCommandLineCCompilerA command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompilerA command line C compiler that can utilize precompilation of header files
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html new file mode 100644 index 0000000..d7920a5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html @@ -0,0 +1,176 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.compiler +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html new file mode 100644 index 0000000..17b3cd7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html @@ -0,0 +1,1632 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.compiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.compiler
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities. 
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks
Compiler + +
+          A compiler.
CompilerConfiguration + +
+          A configuration for a compiler
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkerConfiguration + +
+          A configuration for a linker
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
ProcessorConfiguration + +
+          A configuration for a C++ compiler, linker or other processor
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.arm
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.borland
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
CompilerConfiguration + +
+          A configuration for a compiler
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
PrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCompiler + +
+          A compiler that can utilize precompilation of header files
Processor + +
+          A processor.
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.compaq
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.compiler
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
CommandLineFortranCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
CompilerConfiguration + +
+          A configuration for a compiler
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkerConfiguration + +
+          A configuration for a linker
LinkType + +
+          This class represents the target platform for the compile and link step.
PrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCompiler + +
+          A compiler that can utilize precompilation of header files
Processor + +
+          A processor.
ProcessorConfiguration + +
+          A configuration for a C++ compiler, linker or other processor
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.devstudio
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
CompilerConfiguration + +
+          A configuration for a compiler
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
PrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCompiler + +
+          A compiler that can utilize precompilation of header files
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.gcc
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.gcc.cross
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.hp
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.ibm
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.intel
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
PrecompilingCommandLineCCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCommandLineCompiler + +
+          A command line C compiler that can utilize precompilation of header files
PrecompilingCompiler + +
+          A compiler that can utilize precompilation of header files
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.mozilla
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.openwatcom
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.os390
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.os400
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
CommandLineLinkerConfiguration + +
+          A configuration for a command line linker
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.platforms
LinkType + +
+          This class represents the target platform for the compile and link step.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.sun
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.ti
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractLinker + +
+          An abstract Linker implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineLinker + +
+          An abstract Linker implementation that performs the link via an external + command.
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.trolltech
AbstractCompiler + +
+          An abstract compiler implementation.
AbstractProcessor + +
+          An abstract processor (compiler/linker) implementation.
CommandLineCompiler + +
+          An abstract Compiler implementation which uses an external program to + perform the compile.
CommandLineCompilerConfiguration + +
+          A configuration for a C++ compiler
Compiler + +
+          A compiler.
Linker + +
+          A linker for executables, and static and dynamic libraries.
LinkType + +
+          This class represents the target platform for the compile and link step.
Processor + +
+          A processor.
ProgressMonitor + +
+          Interface to receive notification of compile progress
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.types
Linker + +
+          A linker for executables, and static and dynamic libraries.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.html new file mode 100644 index 0000000..5eb6f2c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.html @@ -0,0 +1,407 @@ + + + + + + + +DevStudio2005CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudio2005CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
+                          extended by net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
+
public final class DevStudio2005CCompiler
extends DevStudioCompatibleCCompiler
+ + +

+Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler +

+ +

+

+
Author:
+
David Haney
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddDebugSwitch(java.util.Vector args) + +
+          Override the default debug flags to use VC 8 compatible versions.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static DevStudio2005CCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
addImpliedArgs, addWarningSwitch, createPrecompileGeneratingConfig, createPrecompileUsingConfig, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudio2005CCompiler getInstance()
+
+
+
+
+
+
+ +

+addDebugSwitch

+
+protected void addDebugSwitch(java.util.Vector args)
+
+
Override the default debug flags to use VC 8 compatible versions. +

+

+
Overrides:
addDebugSwitch in class DevStudioCompatibleCCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.html new file mode 100644 index 0000000..77ba3be --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.html @@ -0,0 +1,383 @@ + + + + + + + +DevStudioCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
+                          extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
+
public final class DevStudioCCompiler
extends DevStudioCompatibleCCompiler
+ + +

+Adapter for the Microsoft(r) C/C++ Optimizing Compiler +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static DevStudioCCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
addDebugSwitch, addImpliedArgs, addWarningSwitch, createPrecompileGeneratingConfig, createPrecompileUsingConfig, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudioCCompiler getInstance()
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.html new file mode 100644 index 0000000..584d3ab --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.html @@ -0,0 +1,556 @@ + + + + + + + +DevStudioCompatibleCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioCompatibleCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
Direct Known Subclasses:
DevStudio2005CCompiler, DevStudioCCompiler, IntelWin32CCompiler, IntelWin64CCompiler
+
+
+
+
public abstract class DevStudioCompatibleCCompiler
extends PrecompilingCommandLineCCompiler
+ + +

+An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected DevStudioCompatibleCCompiler(java.lang.String command, + java.lang.String identifierArg, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddDebugSwitch(java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+protected  CompilerConfigurationcreatePrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude) + +
+           
+protected  CompilerConfigurationcreatePrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, + java.io.File prototype, + java.lang.String lastInclude, + java.lang.String[] exceptFiles) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DevStudioCompatibleCCompiler

+
+protected DevStudioCompatibleCCompiler(java.lang.String command,
+                                       java.lang.String identifierArg,
+                                       boolean newEnvironment,
+                                       org.apache.tools.ant.types.Environment env)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addDebugSwitch

+
+protected void addDebugSwitch(java.util.Vector args)
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+createPrecompileGeneratingConfig

+
+protected CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                                 java.io.File prototype,
+                                                                 java.lang.String lastInclude)
+
+
+
Specified by:
createPrecompileGeneratingConfig in class PrecompilingCommandLineCompiler
+
+
+
+
+
+
+ +

+createPrecompileUsingConfig

+
+protected CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
+                                                            java.io.File prototype,
+                                                            java.lang.String lastInclude,
+                                                            java.lang.String[] exceptFiles)
+
+
+
Specified by:
createPrecompileUsingConfig in class PrecompilingCommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.html new file mode 100644 index 0000000..cde7c80 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.html @@ -0,0 +1,613 @@ + + + + + + + +DevStudioCompatibleLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioCompatibleLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
DevStudioLibrarian, IntelWin32Librarian
+
+
+
+
public abstract class DevStudioCompatibleLibrarian
extends CommandLineLinker
+ + +

+Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + +
+Constructor Summary
DevStudioCompatibleLibrarian(java.lang.String command, + java.lang.String identifierArg) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DevStudioCompatibleLibrarian

+
+public DevStudioCompatibleLibrarian(java.lang.String command,
+                                    java.lang.String identifierArg)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.html new file mode 100644 index 0000000..7a77dbc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.html @@ -0,0 +1,654 @@ + + + + + + + +DevStudioCompatibleLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioCompatibleLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
CompaqVisualFortranLinker, DevStudioLinker, IntelWin32Linker
+
+
+
+
public abstract class DevStudioCompatibleLinker
extends CommandLineLinker
+ + +

+Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + +
+Constructor Summary
DevStudioCompatibleLinker(java.lang.String command, + java.lang.String identifierArg, + java.lang.String outputSuffix) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+ voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DevStudioCompatibleLinker

+
+public DevStudioCompatibleLinker(java.lang.String command,
+                                 java.lang.String identifierArg,
+                                 java.lang.String outputSuffix)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+addVersionFiles

+
+public void addVersionFiles(VersionInfo versionInfo,
+                            LinkType linkType,
+                            java.io.File outputFile,
+                            boolean isDebug,
+                            java.io.File objDir,
+                            TargetMatcher matcher)
+                     throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
Specified by:
addVersionFiles in interface Linker
Overrides:
addVersionFiles in class AbstractLinker
+
+
+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.html new file mode 100644 index 0000000..401eedc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.html @@ -0,0 +1,310 @@ + + + + + + + +DevStudioLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian
+                  extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class DevStudioLibrarian
extends DevStudioCompatibleLibrarian
+ + +

+Adapter for the Microsoft (r) Library Manager +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static DevStudioLibrariangetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudioLibrarian getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.html new file mode 100644 index 0000000..e501bd2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.html @@ -0,0 +1,310 @@ + + + + + + + +DevStudioLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
+                  extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class DevStudioLinker
extends DevStudioCompatibleLinker
+ + +

+Adapter for the Microsoft (r) Incremental Linker +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static DevStudioLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, addVersionFiles, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudioLinker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.html new file mode 100644 index 0000000..6a716e0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.html @@ -0,0 +1,625 @@ + + + + + + + +DevStudioMIDLCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioMIDLCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class DevStudioMIDLCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Microsoft (r) MIDL Compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  ParsercreateParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  intgetArgumentCountPerInputFile() + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+           
+static DevStudioMIDLCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudioMIDLCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.html new file mode 100644 index 0000000..382a275 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.html @@ -0,0 +1,343 @@ + + + + + + + +DevStudioProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor
+
+
+
+
public class DevStudioProcessor
extends java.lang.Object
+ + +

+A add-in class for Microsoft Developer Studio processors +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+static voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+           
+static voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+static booleanisCaseSensitive() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+public static void getDefineSwitch(java.lang.StringBuffer buffer,
+                                   java.lang.String define,
+                                   java.lang.String value)
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+public static void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                     java.lang.String define)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.html new file mode 100644 index 0000000..569fcfd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.html @@ -0,0 +1,286 @@ + + + + + + + +DevStudioProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioProjectWriter

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter
+
+
+
All Implemented Interfaces:
ProjectWriter
+
+
+
+
public final class DevStudioProjectWriter
extends java.lang.Object
implements ProjectWriter
+ + +

+Writes a Microsoft Visual Studio 97 or Visual Studio 6 project file. + + Status: Collects file list but does not pick + up libraries and settings from project. +

+ +

+

+
Author:
+
curta
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DevStudioProjectWriter(java.lang.String versionArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ voidwriteProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DevStudioProjectWriter

+
+public DevStudioProjectWriter(java.lang.String versionArg)
+
+
Constructor. +

+

+
Parameters:
versionArg - String Visual Studio version.
+
+ + + + + + + + +
+Method Detail
+ +

+writeProject

+
+public void writeProject(java.io.File fileName,
+                         CCTask task,
+                         ProjectDef projectDef,
+                         java.util.List files,
+                         java.util.Hashtable targets,
+                         TargetInfo linkTarget)
+                  throws java.io.IOException
+
+
Writes a project definition file. +

+

+
Specified by:
writeProject in interface ProjectWriter
+
+
+
Parameters:
fileName - File name base, writer may append appropriate extension
task - cc task for which to write project
projectDef - project element
files - source files
targets - compilation targets
linkTarget - link target +
Throws: +
java.io.IOException - if error writing project file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.html new file mode 100644 index 0000000..e337087 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.html @@ -0,0 +1,653 @@ + + + + + + + +DevStudioResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class DevStudioResourceCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class DevStudioResourceCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Microsoft (r) Windows 32 Resource Compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  ParsercreateParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  intgetArgumentCountPerInputFile() + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+           
+static DevStudioResourceCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static DevStudioResourceCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.html new file mode 100644 index 0000000..9882de2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.html @@ -0,0 +1,289 @@ + + + + + + + +VisualStudioNETProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class VisualStudioNETProjectWriter

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter
+
+
+
All Implemented Interfaces:
ProjectWriter
+
+
+
+
public final class VisualStudioNETProjectWriter
extends java.lang.Object
implements ProjectWriter
+ + +

+Writes a Visual Studio.NET project file. +

+ +

+

+
Author:
+
curta
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
VisualStudioNETProjectWriter(java.lang.String versionArg, + java.lang.String trueArg, + java.lang.String falseArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ voidwriteProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+VisualStudioNETProjectWriter

+
+public VisualStudioNETProjectWriter(java.lang.String versionArg,
+                                    java.lang.String trueArg,
+                                    java.lang.String falseArg)
+
+
Constructor. +

+

+
Parameters:
versionArg - String VisualStudio.NET version
trueArg - literal to represent true, "true" in VC 2005.
falseArg - literal to represent false, "false" in VC 2005.
+
+ + + + + + + + +
+Method Detail
+ +

+writeProject

+
+public void writeProject(java.io.File fileName,
+                         CCTask task,
+                         ProjectDef projectDef,
+                         java.util.List sources,
+                         java.util.Hashtable targets,
+                         TargetInfo linkTarget)
+                  throws java.io.IOException,
+                         org.xml.sax.SAXException
+
+
Writes a project definition file. +

+

+
Specified by:
writeProject in interface ProjectWriter
+
+
+
Parameters:
fileName - project name for file, should has .cbx extension
task - cc task for which to write project
projectDef - project element
sources - source files
targets - compilation targets
linkTarget - link target +
Throws: +
java.io.IOException - if I/O error +
org.xml.sax.SAXException - if XML serialization error
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudio2005CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudio2005CCompiler.html new file mode 100644 index 0000000..1f270fa --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudio2005CCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler

+
+ + + + + + + + + +
+Packages that use DevStudio2005CCompiler
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudio2005CCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudio2005CCompiler
+static DevStudio2005CCompilerDevStudio2005CCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCCompiler.html new file mode 100644 index 0000000..9dea587 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler

+
+ + + + + + + + + +
+Packages that use DevStudioCCompiler
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudioCCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudioCCompiler
+static DevStudioCCompilerDevStudioCCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleCCompiler.html new file mode 100644 index 0000000..d7659c8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleCCompiler.html @@ -0,0 +1,225 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler

+
+ + + + + + + + + + + + + +
+Packages that use DevStudioCompatibleCCompiler
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of DevStudioCompatibleCCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Subclasses of DevStudioCompatibleCCompiler in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
+ classDevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
+  +

+ + + + + +
+Uses of DevStudioCompatibleCCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of DevStudioCompatibleCCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
+ classIntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLibrarian.html new file mode 100644 index 0000000..d5ecf7e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLibrarian.html @@ -0,0 +1,207 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian

+
+ + + + + + + + + + + + + +
+Packages that use DevStudioCompatibleLibrarian
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of DevStudioCompatibleLibrarian in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Subclasses of DevStudioCompatibleLibrarian in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
+  +

+ + + + + +
+Uses of DevStudioCompatibleLibrarian in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Subclasses of DevStudioCompatibleLibrarian in net.sf.antcontrib.cpptasks.intel
+ classIntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLinker.html new file mode 100644 index 0000000..80dc69b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioCompatibleLinker.html @@ -0,0 +1,235 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker

+
+ + + + + + + + + + + + + + + + + +
+Packages that use DevStudioCompatibleLinker
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Subclasses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.compaq
+ classCompaqVisualFortranLinker + +
+          Adapter for the Compaq(r) Visual Fortran linker.
+  +

+ + + + + +
+Uses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Subclasses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.devstudio
+ classDevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
+  +

+ + + + + +
+Uses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Subclasses of DevStudioCompatibleLinker in net.sf.antcontrib.cpptasks.intel
+ classIntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLibrarian.html new file mode 100644 index 0000000..5a28ff2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian

+
+ + + + + + + + + +
+Packages that use DevStudioLibrarian
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudioLibrarian in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudioLibrarian
+static DevStudioLibrarianDevStudioLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLinker.html new file mode 100644 index 0000000..078edea --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker

+
+ + + + + + + + + +
+Packages that use DevStudioLinker
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudioLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudioLinker
+static DevStudioLinkerDevStudioLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioMIDLCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioMIDLCompiler.html new file mode 100644 index 0000000..e59711f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioMIDLCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler

+
+ + + + + + + + + +
+Packages that use DevStudioMIDLCompiler
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudioMIDLCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudioMIDLCompiler
+static DevStudioMIDLCompilerDevStudioMIDLCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProcessor.html new file mode 100644 index 0000000..4b4728e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProjectWriter.html new file mode 100644 index 0000000..04c0d9f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioProjectWriter.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioResourceCompiler.html new file mode 100644 index 0000000..72fe125 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/DevStudioResourceCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler

+
+ + + + + + + + + +
+Packages that use DevStudioResourceCompiler
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
+  +

+ + + + + +
+Uses of DevStudioResourceCompiler in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return DevStudioResourceCompiler
+static DevStudioResourceCompilerDevStudioResourceCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/VisualStudioNETProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/VisualStudioNETProjectWriter.html new file mode 100644 index 0000000..a8bd034 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/VisualStudioNETProjectWriter.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html new file mode 100644 index 0000000..c272207 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html @@ -0,0 +1,55 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.devstudio + + + + +
+Classes  + +
+DevStudio2005CCompiler +
+DevStudioCCompiler +
+DevStudioCompatibleCCompiler +
+DevStudioCompatibleLibrarian +
+DevStudioCompatibleLinker +
+DevStudioLibrarian +
+DevStudioLinker +
+DevStudioMIDLCompiler +
+DevStudioProcessor +
+DevStudioProjectWriter +
+DevStudioResourceCompiler +
+VisualStudioNETProjectWriter
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html new file mode 100644 index 0000000..4664d73 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html @@ -0,0 +1,217 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.devstudio +

+Adapters for Microsoft tools. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
DevStudio2005CCompilerAdapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
DevStudioCCompilerAdapter for the Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleCCompilerAn abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleLibrarianAbstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
DevStudioCompatibleLinkerAbstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
DevStudioLibrarianAdapter for the Microsoft (r) Library Manager
DevStudioLinkerAdapter for the Microsoft (r) Incremental Linker
DevStudioMIDLCompilerAdapter for the Microsoft (r) MIDL Compiler
DevStudioProcessorA add-in class for Microsoft Developer Studio processors
DevStudioProjectWriterWrites a Microsoft Visual Studio 97 or Visual Studio 6 project file.
DevStudioResourceCompilerAdapter for the Microsoft (r) Windows 32 Resource Compiler
VisualStudioNETProjectWriterWrites a Visual Studio.NET project file.
+  + +

+

+Package net.sf.antcontrib.cpptasks.devstudio Description +

+ +

+Adapters for Microsoft tools. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html new file mode 100644 index 0000000..44517e2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html @@ -0,0 +1,176 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.devstudio +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html new file mode 100644 index 0000000..e0d11a6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.devstudio

+
+ + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.devstudio
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.devstudio used by net.sf.antcontrib.cpptasks.compaq
DevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.devstudio used by net.sf.antcontrib.cpptasks.devstudio
DevStudio2005CCompiler + +
+          Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler
DevStudioCCompiler + +
+          Adapter for the Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
DevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
DevStudioLibrarian + +
+          Adapter for the Microsoft (r) Library Manager
DevStudioLinker + +
+          Adapter for the Microsoft (r) Incremental Linker
DevStudioMIDLCompiler + +
+          Adapter for the Microsoft (r) MIDL Compiler
DevStudioResourceCompiler + +
+          Adapter for the Microsoft (r) Windows 32 Resource Compiler
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.devstudio used by net.sf.antcontrib.cpptasks.intel
DevStudioCompatibleCCompiler + +
+          An abstract base class for compilers that are basically command line + compatible with Microsoft(r) C/C++ Optimizing Compiler
DevStudioCompatibleLibrarian + +
+          Abstract base adapter for librarians with command line options compatible + with the Microsoft(r) Library Manager
DevStudioCompatibleLinker + +
+          Abstract base class for linkers that try to mimic the command line arguments + for the Microsoft (r) Incremental Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.html new file mode 100644 index 0000000..830cf9e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.html @@ -0,0 +1,689 @@ + + + + + + + +AbstractArLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class AbstractArLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
GccLibrarian, GccLibrarian, GccLibrarian
+
+
+
+
public abstract class AbstractArLibrarian
extends CommandLineLinker
+ + +

+Adapter for the "ar" tool +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected AbstractArLibrarian(java.lang.String command, + java.lang.String identificationArg, + java.lang.String[] inputExtensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputExtension, + boolean isLibtool, + AbstractArLibrarian libtoolLibrarian) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+ voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+ voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+ voidaddMap(boolean map, + java.util.Vector args) + +
+           
+ voidaddStack(int stack, + java.util.Vector args) + +
+           
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractArLibrarian

+
+protected AbstractArLibrarian(java.lang.String command,
+                              java.lang.String identificationArg,
+                              java.lang.String[] inputExtensions,
+                              java.lang.String[] ignoredExtensions,
+                              java.lang.String outputPrefix,
+                              java.lang.String outputExtension,
+                              boolean isLibtool,
+                              AbstractArLibrarian libtoolLibrarian)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+public void addBase(long base,
+                    java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+public void addFixed(java.lang.Boolean fixed,
+                     java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(boolean debug,
+                           LinkType linkType,
+                           java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+public void addIncremental(boolean incremental,
+                           java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+public void addMap(boolean map,
+                   java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+public void addStack(int stack,
+                     java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class CommandLineLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.html new file mode 100644 index 0000000..4812cfb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.html @@ -0,0 +1,852 @@ + + + + + + + +AbstractLdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class AbstractLdLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
aCCLinker, ForteCCLinker, GccLinker, GccLinker, GccLinker, GppLinker, GppLinker, GppLinker, IntelLinux32Linker, IntelLinux64Linker, LdLinker, LdLinker, LdLinker, VisualAgeLinker
+
+
+
+
public abstract class AbstractLdLinker
extends CommandLineLinker
+ + +

+Abstract adapter for ld-like linkers +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected AbstractLdLinker(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + AbstractLdLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+ voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  intaddLibraryPatterns(java.lang.String[] libnames, + java.lang.StringBuffer buf, + java.lang.String prefix, + java.lang.String extension, + java.lang.String[] patterns, + int offset) + +
+           
+ java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ voidaddMap(boolean map, + java.util.Vector args) + +
+           
+ voidaddStack(int stack, + java.util.Vector args) + +
+           
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+protected  java.lang.StringgetDynamicLibFlag() + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          Returns library path.
+ java.lang.StringgetLibraryKey(java.io.File libfile) + +
+          Extracts the significant part of a library name to ensure there aren't + collisions
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+protected  java.lang.StringgetStaticLibFlag() + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+protected  booleanisHPUX() + +
+           
+ java.lang.String[]prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractLdLinker

+
+protected AbstractLdLinker(java.lang.String command,
+                           java.lang.String identifierArg,
+                           java.lang.String[] extensions,
+                           java.lang.String[] ignoredExtensions,
+                           java.lang.String outputPrefix,
+                           java.lang.String outputSuffix,
+                           boolean isLibtool,
+                           AbstractLdLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+public void addBase(long base,
+                    java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+public void addFixed(java.lang.Boolean fixed,
+                     java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+public void addIncremental(boolean incremental,
+                           java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addLibraryPatterns

+
+protected int addLibraryPatterns(java.lang.String[] libnames,
+                                 java.lang.StringBuffer buf,
+                                 java.lang.String prefix,
+                                 java.lang.String extension,
+                                 java.lang.String[] patterns,
+                                 int offset)
+
+
+
+
+
+
+ +

+addLibrarySets

+
+public java.lang.String[] addLibrarySets(CCTask task,
+                                         LibrarySet[] libsets,
+                                         java.util.Vector preargs,
+                                         java.util.Vector midargs,
+                                         java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+public void addMap(boolean map,
+                   java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+public void addStack(int stack,
+                     java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
Returns library path. +

+

+
+
+
+
+ +

+getLibraryKey

+
+public java.lang.String getLibraryKey(java.io.File libfile)
+
+
Description copied from interface: Linker
+
Extracts the significant part of a library name to ensure there aren't + collisions +

+

+
Specified by:
getLibraryKey in interface Linker
Overrides:
getLibraryKey in class AbstractLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class CommandLineLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+isHPUX

+
+protected boolean isHPUX()
+
+
+
+
+
+
+ +

+prepareArguments

+
+public java.lang.String[] prepareArguments(CCTask task,
+                                           java.lang.String outputDir,
+                                           java.lang.String outputFile,
+                                           java.lang.String[] sourceFiles,
+                                           CommandLineLinkerConfiguration config)
+
+
Prepares argument list for exec command. Will return null if command + line would exceed allowable command line buffer. +

+

+
Overrides:
prepareArguments in class CommandLineLinker
+
+
+
Parameters:
outputFile - linker output file
sourceFiles - linker input files (.obj, .o, .res)
config - linker configuration
task - compilation task. +
Returns:
arguments for runTask
+
+
+
+ +

+getDynamicLibFlag

+
+protected java.lang.String getDynamicLibFlag()
+
+
+
+
+
+
+ +

+getStaticLibFlag

+
+protected java.lang.String getStaticLibFlag()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.html new file mode 100644 index 0000000..dab395b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.html @@ -0,0 +1,542 @@ + + + + + + + +GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GccCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.gcc.GccCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class GccCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the GCC C/C++ compiler +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  ParsercreateParser(java.io.File source) + +
+          Create parser to determine dependencies.
+static GccCCompilergetCppInstance() + +
+          Gets c++ adapter
+ java.io.File[]getEnvironmentIncludePath() + +
+           
+static GccCCompilergetG77Instance() + +
+          Gets g77 adapter
+static GccCCompilergetGppInstance() + +
+          Gets gpp adapter
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+static GccCCompilergetInstance() + +
+          Gets gcc adapter
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCppInstance

+
+public static GccCCompiler getCppInstance()
+
+
Gets c++ adapter +

+

+
+
+
+
+ +

+getG77Instance

+
+public static GccCCompiler getG77Instance()
+
+
Gets g77 adapter +

+

+
+
+
+
+ +

+getGppInstance

+
+public static GccCCompiler getGppInstance()
+
+
Gets gpp adapter +

+

+
+
+
+
+ +

+getInstance

+
+public static GccCCompiler getInstance()
+
+
Gets gcc adapter +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
Create parser to determine dependencies. + + Will create appropriate parser (C++, FORTRAN) based on file extension. +

+

+
Overrides:
createParser in class CommandLineCCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+public java.io.File[] getEnvironmentIncludePath()
+
+
+
Overrides:
getEnvironmentIncludePath in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+                               throws org.apache.tools.ant.BuildException
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.html new file mode 100644 index 0000000..24f3803 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.html @@ -0,0 +1,536 @@ + + + + + + + +GccCompatibleCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GccCompatibleCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
aCCCompiler, ForteCCCompiler, GccCCompiler, GccCCompiler, GccCCompiler, IntelLinux32CCompiler, IntelLinux64CCompiler, VisualAgeCCompiler
+
+
+
+
public abstract class GccCompatibleCCompiler
extends CommandLineCCompiler
+ + +

+Abstract base class for compilers that attempt to be command line compatible + with GCC +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Constructor Summary
+protected GccCompatibleCCompiler(java.lang.String command, + java.lang.String identifierArg, + boolean libtool, + GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Private constructor.
+protected GccCompatibleCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + boolean libtool, + GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Private constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidaddIncludePath(java.lang.String path, + java.util.Vector cmd) + +
+          Adds an include path to the command.
+ voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+ java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+ voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GccCompatibleCCompiler

+
+protected GccCompatibleCCompiler(java.lang.String command,
+                                 java.lang.String identifierArg,
+                                 boolean libtool,
+                                 GccCompatibleCCompiler libtoolCompiler,
+                                 boolean newEnvironment,
+                                 org.apache.tools.ant.types.Environment env)
+
+
Private constructor. Use GccCCompiler.getInstance() to get singleton + instance of this class. +

+

+
+ +

+GccCompatibleCCompiler

+
+protected GccCompatibleCCompiler(java.lang.String command,
+                                 java.lang.String identifierArg,
+                                 java.lang.String[] sourceExtensions,
+                                 java.lang.String[] headerExtensions,
+                                 boolean libtool,
+                                 GccCompatibleCCompiler libtoolCompiler,
+                                 boolean newEnvironment,
+                                 org.apache.tools.ant.types.Environment env)
+
+
Private constructor. Use GccCCompiler.getInstance() to get singleton + instance of this class. +

+

+ + + + + + + + +
+Method Detail
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addIncludePath

+
+public void addIncludePath(java.lang.String path,
+                           java.util.Vector cmd)
+
+
Adds an include path to the command. +

+

+
+
+
+
+ +

+addWarningSwitch

+
+public void addWarningSwitch(java.util.Vector args,
+                             int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+public void getDefineSwitch(java.lang.StringBuffer buffer,
+                            java.lang.String define,
+                            java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+public void getUndefineSwitch(java.lang.StringBuffer buffer,
+                              java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.html new file mode 100644 index 0000000..3a2095e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.html @@ -0,0 +1,310 @@ + + + + + + + +GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GccLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class GccLibrarian
extends AbstractArLibrarian
+ + +

+Adapter for the 'ar' archiver +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static GccLibrariangetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive, link
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLibrarian getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLinker.html new file mode 100644 index 0000000..63ef0d0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccLinker.html @@ -0,0 +1,435 @@ + + + + + + + +GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GccLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GccLinker
extends AbstractLdLinker
+ + +

+Adapter for the GCC linker +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GccLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GccLinker

+
+protected GccLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GccLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GccLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccProcessor.html new file mode 100644 index 0000000..e0d5fad --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GccProcessor.html @@ -0,0 +1,399 @@ + + + + + + + +GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GccProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.gcc.GccProcessor
+
+
+
+
public class GccProcessor
extends java.lang.Object
+ + +

+A add-in class for Gcc processors +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidconvertCygwinFilenames(java.lang.String[] names) + +
+          Converts absolute Cygwin file or directory names to the corresponding + Win32 name.
+static java.lang.String[]getLibraryPatterns(java.lang.String[] libnames) + +
+           
+static java.lang.StringgetMachine() + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String letter, + java.lang.String outputFile) + +
+           
+static java.lang.String[]getSpecs() + +
+          Returns the contents of the gcc specs file.
+static java.lang.StringgetVersion() + +
+           
+static booleanisCaseSensitive() + +
+           
+static booleanisCygwin() + +
+          Determines if task is running with cygwin
+static java.lang.String[][]parseSpecs(java.lang.String[] specsContent, + java.lang.String specSectionStart, + java.lang.String[] options) + +
+          Parses the results of the specs file for a specific processor and + options
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+convertCygwinFilenames

+
+public static void convertCygwinFilenames(java.lang.String[] names)
+
+
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +

+

+
Parameters:
names - array of names, some elements may be null, will be changed in + place.
+
+
+
+ +

+getLibraryPatterns

+
+public static java.lang.String[] getLibraryPatterns(java.lang.String[] libnames)
+
+
+
+
+
+
+ +

+getMachine

+
+public static java.lang.String getMachine()
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String letter,
+                                                     java.lang.String outputFile)
+
+
+
+
+
+
+ +

+getSpecs

+
+public static java.lang.String[] getSpecs()
+
+
Returns the contents of the gcc specs file. + + The implementation locates gcc.exe in the executable path and then + builds a relative path name from the results of -dumpmachine and + -dumpversion. Attempts to use gcc -dumpspecs to provide this information + resulted in stalling on the Execute.run +

+

+ +
Returns:
contents of the specs file
+
+
+
+ +

+getVersion

+
+public static java.lang.String getVersion()
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+
+ +

+isCygwin

+
+public static boolean isCygwin()
+
+
Determines if task is running with cygwin +

+

+ +
Returns:
true if cygwin was detected
+
+
+
+ +

+parseSpecs

+
+public static java.lang.String[][] parseSpecs(java.lang.String[] specsContent,
+                                              java.lang.String specSectionStart,
+                                              java.lang.String[] options)
+
+
Parses the results of the specs file for a specific processor and + options +

+

+
Parameters:
specsContent - Contents of specs file as returned from getSpecs
specSectionStart - start of spec section, for example "*cpp:"
options - command line switches such as "-istart"
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GppLinker.html new file mode 100644 index 0000000..6a59c6e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/GppLinker.html @@ -0,0 +1,528 @@ + + + + + + + +GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class GppLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.GppLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GppLinker
extends AbstractLdLinker
+ + +

+Adapter for the g++ variant of the GCC linker +

+ +

+

+
Author:
+
Stephen M. Webb
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static java.lang.String[]discardFiles + +
+           
+protected static java.lang.String[]libtoolObjFiles + +
+           
+protected static java.lang.String[]objFiles + +
+           
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GppLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+discardFiles

+
+protected static final java.lang.String[] discardFiles
+
+
+
+
+
+ +

+objFiles

+
+protected static final java.lang.String[] objFiles
+
+
+
+
+
+ +

+libtoolObjFiles

+
+protected static final java.lang.String[] libtoolObjFiles
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GppLinker

+
+protected GppLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GppLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GppLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+public java.lang.String[] addLibrarySets(CCTask task,
+                                         LibrarySet[] libsets,
+                                         java.util.Vector preargs,
+                                         java.util.Vector midargs,
+                                         java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class AbstractLdLinker
+
+
+
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GppLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/LdLinker.html new file mode 100644 index 0000000..14f7734 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/LdLinker.html @@ -0,0 +1,310 @@ + + + + + + + +LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class LdLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.LdLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class LdLinker
extends AbstractLdLinker
+ + +

+Adapter for the 'ld' linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static LdLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static LdLinker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.html new file mode 100644 index 0000000..afba185 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.html @@ -0,0 +1,653 @@ + + + + + + + +WindresResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class WindresResourceCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class WindresResourceCompiler
extends CommandLineCompiler
+ + +

+Adapter for the GNU windres resource compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  ParsercreateParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  intgetArgumentCountPerInputFile() + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+           
+static WindresResourceCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static WindresResourceCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractArLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractArLibrarian.html new file mode 100644 index 0000000..e3cb60a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractArLibrarian.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian

+
+ + + + + + + + + +
+Packages that use AbstractArLibrarian
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of AbstractArLibrarian in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Subclasses of AbstractArLibrarian in net.sf.antcontrib.cpptasks.gcc
+ classGccLibrarian + +
+          Adapter for the 'ar' archiver
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc with parameters of type AbstractArLibrarian
AbstractArLibrarian(java.lang.String command, + java.lang.String identificationArg, + java.lang.String[] inputExtensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputExtension, + boolean isLibtool, + AbstractArLibrarian libtoolLibrarian) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractLdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractLdLinker.html new file mode 100644 index 0000000..788fe79 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/AbstractLdLinker.html @@ -0,0 +1,338 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use AbstractLdLinker
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + +
+Uses of AbstractLdLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractLdLinker in net.sf.antcontrib.cpptasks.gcc
+ classGccLinker + +
+          Adapter for the GCC linker
+ classGppLinker + +
+          Adapter for the g++ variant of the GCC linker
+ classLdLinker + +
+          Adapter for the 'ld' linker
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc with parameters of type AbstractLdLinker
AbstractLdLinker(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + AbstractLdLinker libtoolLinker) + +
+           
+  +

+ + + + + +
+Uses of AbstractLdLinker in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of AbstractLdLinker in net.sf.antcontrib.cpptasks.hp
+ classaCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+ + + + + +
+Uses of AbstractLdLinker in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of AbstractLdLinker in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+ + + + + +
+Uses of AbstractLdLinker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractLdLinker in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
+ classIntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
+  +

+ + + + + +
+Uses of AbstractLdLinker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Subclasses of AbstractLdLinker in net.sf.antcontrib.cpptasks.sun
+ classForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCCompiler.html new file mode 100644 index 0000000..9b47afc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCCompiler.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GccCCompiler

+
+ + + + + + + + + +
+Packages that use GccCCompiler
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of GccCCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return GccCCompiler
+static GccCCompilerGccCCompiler.getCppInstance() + +
+          Gets c++ adapter
+static GccCCompilerGccCCompiler.getG77Instance() + +
+          Gets g77 adapter
+static GccCCompilerGccCCompiler.getGppInstance() + +
+          Gets gpp adapter
+static GccCCompilerGccCCompiler.getInstance() + +
+          Gets gcc adapter
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCompatibleCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCompatibleCCompiler.html new file mode 100644 index 0000000..0d4967b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccCompatibleCCompiler.html @@ -0,0 +1,339 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use GccCompatibleCCompiler
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + +
+Uses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Subclasses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.gcc
+ classGccCCompiler + +
+          Adapter for the GCC C/C++ compiler
+  +

+ + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc with parameters of type GccCompatibleCCompiler
GccCompatibleCCompiler(java.lang.String command, + java.lang.String identifierArg, + boolean libtool, + GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Private constructor.
GccCompatibleCCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + boolean libtool, + GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Private constructor.
+  +

+ + + + + +
+Uses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Subclasses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.hp
+ classaCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
+  +

+ + + + + +
+Uses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Subclasses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.ibm
+ classVisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
+  +

+ + + + + +
+Uses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + + + + + +
Subclasses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.intel
+ classIntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
+ classIntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
+  +

+ + + + + +
+Uses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Subclasses of GccCompatibleCCompiler in net.sf.antcontrib.cpptasks.sun
+ classForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLibrarian.html new file mode 100644 index 0000000..705fb28 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GccLibrarian

+
+ + + + + + + + + +
+Packages that use GccLibrarian
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of GccLibrarian in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return GccLibrarian
+static GccLibrarianGccLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLinker.html new file mode 100644 index 0000000..620a149 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GccLinker

+
+ + + + + + + + + +
+Packages that use GccLinker
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of GccLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return GccLinker
+static GccLinkerGccLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc with parameters of type GccLinker
GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccProcessor.html new file mode 100644 index 0000000..83faa21 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GccProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GccProcessor

+
+No usage of net.sf.antcontrib.cpptasks.gcc.GccProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GppLinker.html new file mode 100644 index 0000000..fb2d8d8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/GppLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.GppLinker

+
+ + + + + + + + + +
+Packages that use GppLinker
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of GppLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return GppLinker
+static GppLinkerGppLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc with parameters of type GppLinker
GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/LdLinker.html new file mode 100644 index 0000000..e4e5f68 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/LdLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.LdLinker

+
+ + + + + + + + + +
+Packages that use LdLinker
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of LdLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return LdLinker
+static LdLinkerLdLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/WindresResourceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/WindresResourceCompiler.html new file mode 100644 index 0000000..0ae9a2e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/class-use/WindresResourceCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler

+
+ + + + + + + + + +
+Packages that use WindresResourceCompiler
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of WindresResourceCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return WindresResourceCompiler
+static WindresResourceCompilerWindresResourceCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.html new file mode 100644 index 0000000..bbe2635 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.html @@ -0,0 +1,609 @@ + + + + + + + +GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class GccCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class GccCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the GCC C/C++ compiler +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  java.lang.Objectclone() + +
+           
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles a source file.
+protected  ParsercreateParser(java.io.File source) + +
+          Create parser to determine dependencies.
+static GccCCompilergetCppInstance() + +
+          Gets c++ adapter
+ java.io.File[]getEnvironmentIncludePath() + +
+           
+static GccCCompilergetG77Instance() + +
+          Gets g77 adapter
+static GccCCompilergetGppInstance() + +
+          Gets gpp adapter
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+static GccCCompilergetInstance() + +
+          Gets gcc adapter
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCppInstance

+
+public static GccCCompiler getCppInstance()
+
+
Gets c++ adapter +

+

+
+
+
+
+ +

+getG77Instance

+
+public static GccCCompiler getG77Instance()
+
+
Gets g77 adapter +

+

+
+
+
+
+ +

+getGppInstance

+
+public static GccCCompiler getGppInstance()
+
+
Gets gpp adapter +

+

+
+
+
+
+ +

+getInstance

+
+public static GccCCompiler getInstance()
+
+
Gets gcc adapter +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class AbstractProcessor
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    java.lang.String[] args,
+                    java.lang.String[] endArgs,
+                    boolean relentless,
+                    CommandLineCompilerConfiguration config,
+                    ProgressMonitor monitor)
+             throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineCompiler
+
Compiles a source file. +

+

+
Overrides:
compile in class CommandLineCompiler
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
Create parser to determine dependencies. + + Will create appropriate parser (C++, FORTRAN) based on file extension. +

+

+
Overrides:
createParser in class CommandLineCCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+public java.io.File[] getEnvironmentIncludePath()
+
+
+
Overrides:
getEnvironmentIncludePath in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+                               throws org.apache.tools.ant.BuildException
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.html new file mode 100644 index 0000000..d3092fd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.html @@ -0,0 +1,369 @@ + + + + + + + +GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class GccLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class GccLibrarian
extends AbstractArLibrarian
+ + +

+Adapter for the 'ar' archiver +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  java.lang.Objectclone() + +
+           
+static GccLibrariangetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLibrarian getInstance()
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class AbstractProcessor
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class AbstractArLibrarian
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.html new file mode 100644 index 0000000..7f5e5c1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.html @@ -0,0 +1,494 @@ + + + + + + + +GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class GccLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.GccLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GccLinker
extends AbstractLdLinker
+ + +

+Adapter for the GCC linker +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  java.lang.Objectclone() + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GccLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GccLinker

+
+protected GccLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GccLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class AbstractProcessor
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GccLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.html new file mode 100644 index 0000000..ed13258 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.html @@ -0,0 +1,380 @@ + + + + + + + +GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class GccProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor
+
+
+
+
public class GccProcessor
extends java.lang.Object
+ + +

+A add-in class for Gcc processors +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidconvertCygwinFilenames(java.lang.String[] names) + +
+          Converts absolute Cygwin file or directory names to the corresponding + Win32 name.
+static java.lang.StringgetMachine() + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String letter, + java.lang.String outputFile) + +
+           
+static java.lang.String[]getSpecs() + +
+          Returns the contents of the gcc specs file.
+static java.lang.StringgetVersion() + +
+           
+static booleanisCaseSensitive() + +
+           
+static booleanisCygwin() + +
+          Determines if task is running with cygwin
+static java.lang.String[][]parseSpecs(java.lang.String[] specsContent, + java.lang.String specSectionStart, + java.lang.String[] options) + +
+          Parses the results of the specs file for a specific processor and + options
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+convertCygwinFilenames

+
+public static void convertCygwinFilenames(java.lang.String[] names)
+
+
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +

+

+
Parameters:
names - array of names, some elements may be null, will be changed in + place.
+
+
+
+ +

+getMachine

+
+public static java.lang.String getMachine()
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String letter,
+                                                     java.lang.String outputFile)
+
+
+
+
+
+
+ +

+getSpecs

+
+public static java.lang.String[] getSpecs()
+
+
Returns the contents of the gcc specs file. + + The implementation locates gcc.exe in the executable path and then + builds a relative path name from the results of -dumpmachine and + -dumpversion. Attempts to use gcc -dumpspecs to provide this information + resulted in stalling on the Execute.run +

+

+ +
Returns:
contents of the specs file
+
+
+
+ +

+getVersion

+
+public static java.lang.String getVersion()
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+
+ +

+isCygwin

+
+public static boolean isCygwin()
+
+
Determines if task is running with cygwin +

+

+ +
Returns:
true if cygwin was detected
+
+
+
+ +

+parseSpecs

+
+public static java.lang.String[][] parseSpecs(java.lang.String[] specsContent,
+                                              java.lang.String specSectionStart,
+                                              java.lang.String[] options)
+
+
Parses the results of the specs file for a specific processor and + options +

+

+
Parameters:
specsContent - Contents of specs file as returned from getSpecs
specSectionStart - start of spec section, for example "*cpp:"
options - command line switches such as "-istart"
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.html new file mode 100644 index 0000000..83c4341 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.html @@ -0,0 +1,587 @@ + + + + + + + +GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class GppLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.GppLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GppLinker
extends AbstractLdLinker
+ + +

+Adapter for the g++ variant of the GCC linker +

+ +

+

+
Author:
+
Stephen M. Webb
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static java.lang.String[]discardFiles + +
+           
+protected static java.lang.String[]libtoolObjFiles + +
+           
+protected static java.lang.String[]objFiles + +
+           
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  java.lang.Objectclone() + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GppLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+discardFiles

+
+protected static final java.lang.String[] discardFiles
+
+
+
+
+
+ +

+objFiles

+
+protected static final java.lang.String[] objFiles
+
+
+
+
+
+ +

+libtoolObjFiles

+
+protected static final java.lang.String[] libtoolObjFiles
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GppLinker

+
+protected GppLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GppLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GppLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+public java.lang.String[] addLibrarySets(CCTask task,
+                                         LibrarySet[] libsets,
+                                         java.util.Vector preargs,
+                                         java.util.Vector midargs,
+                                         java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class AbstractLdLinker
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class AbstractProcessor
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GppLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.html new file mode 100644 index 0000000..11674bd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.html @@ -0,0 +1,369 @@ + + + + + + + +LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross +
+Class LdLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.LdLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class LdLinker
extends AbstractLdLinker
+ + +

+Adapter for the 'ld' linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  java.lang.Objectclone() + +
+           
+static LdLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static LdLinker getInstance()
+
+
+
+
+
+
+ +

+clone

+
+protected java.lang.Object clone()
+                          throws java.lang.CloneNotSupportedException
+
+
+
Overrides:
clone in class AbstractProcessor
+
+
+ +
Throws: +
java.lang.CloneNotSupportedException
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccCCompiler.html new file mode 100644 index 0000000..a957a2b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccCCompiler.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler

+
+ + + + + + + + + +
+Packages that use GccCCompiler
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + +
+Uses of GccCCompiler in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return GccCCompiler
+static GccCCompilerGccCCompiler.getCppInstance() + +
+          Gets c++ adapter
+static GccCCompilerGccCCompiler.getG77Instance() + +
+          Gets g77 adapter
+static GccCCompilerGccCCompiler.getGppInstance() + +
+          Gets gpp adapter
+static GccCCompilerGccCCompiler.getInstance() + +
+          Gets gcc adapter
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLibrarian.html new file mode 100644 index 0000000..8e24d28 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian

+
+ + + + + + + + + +
+Packages that use GccLibrarian
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + +
+Uses of GccLibrarian in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return GccLibrarian
+static GccLibrarianGccLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLinker.html new file mode 100644 index 0000000..c7f7e96 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.GccLinker

+
+ + + + + + + + + +
+Packages that use GccLinker
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + +
+Uses of GccLinker in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return GccLinker
+static GccLinkerGccLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type GccLinker
GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccProcessor.html new file mode 100644 index 0000000..3ee08b7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GccProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor

+
+No usage of net.sf.antcontrib.cpptasks.gcc.cross.GccProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GppLinker.html new file mode 100644 index 0000000..7965af5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/GppLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.GppLinker

+
+ + + + + + + + + +
+Packages that use GppLinker
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + +
+Uses of GppLinker in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return GppLinker
+static GppLinkerGppLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type GppLinker
GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/LdLinker.html new file mode 100644 index 0000000..21ba03c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/class-use/LdLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.LdLinker

+
+ + + + + + + + + +
+Packages that use LdLinker
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + +
+Uses of LdLinker in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return LdLinker
+static LdLinkerLdLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-frame.html new file mode 100644 index 0000000..322993d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross + + + + +
+Classes  + +
+GccCCompiler +
+GccLibrarian +
+GccLinker +
+GccProcessor +
+GppLinker +
+LdLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-summary.html new file mode 100644 index 0000000..8c2dc2e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-summary.html @@ -0,0 +1,175 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.gcc.cross +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
GccCCompilerAdapter for the GCC C/C++ compiler
GccLibrarianAdapter for the 'ar' archiver
GccLinkerAdapter for the GCC linker
GccProcessorA add-in class for Gcc processors
GppLinkerAdapter for the g++ variant of the GCC linker
LdLinkerAdapter for the 'ld' linker
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-tree.html new file mode 100644 index 0000000..9f68c97 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-tree.html @@ -0,0 +1,171 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.gcc.cross +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-use.html new file mode 100644 index 0000000..74b13b1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/package-use.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.gcc.cross (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.gcc.cross

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.gcc.cross
net.sf.antcontrib.cpptasks.gcc.cross  
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc.cross used by net.sf.antcontrib.cpptasks.gcc.cross
GccCCompiler + +
+          Adapter for the GCC C/C++ compiler
GccLibrarian + +
+          Adapter for the 'ar' archiver
GccLinker + +
+          Adapter for the GCC linker
GppLinker + +
+          Adapter for the g++ variant of the GCC linker
LdLinker + +
+          Adapter for the 'ld' linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.html new file mode 100644 index 0000000..b06ce68 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.html @@ -0,0 +1,569 @@ + + + + + + + +GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class GccCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class GccCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the GCC C/C++ compiler +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static java.lang.StringCMD_PREFIX + +
+           
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  ParsercreateParser(java.io.File source) + +
+          Create parser to determine dependencies.
+static GccCCompilergetCppInstance() + +
+          Gets c++ adapter
+ java.io.File[]getEnvironmentIncludePath() + +
+           
+static GccCCompilergetG77Instance() + +
+          Gets g77 adapter
+static GccCCompilergetGppInstance() + +
+          Gets gpp adapter
+ java.lang.StringgetIdentifier() + +
+          Retrieve an identifier that identifies the specific version of the + compiler.
+static GccCCompilergetInstance() + +
+          Gets gcc adapter
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Field Detail
+ +

+CMD_PREFIX

+
+public static final java.lang.String CMD_PREFIX
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+getCppInstance

+
+public static GccCCompiler getCppInstance()
+
+
Gets c++ adapter +

+

+
+
+
+
+ +

+getG77Instance

+
+public static GccCCompiler getG77Instance()
+
+
Gets g77 adapter +

+

+
+
+
+
+ +

+getGppInstance

+
+public static GccCCompiler getGppInstance()
+
+
Gets gpp adapter +

+

+
+
+
+
+ +

+getInstance

+
+public static GccCCompiler getInstance()
+
+
Gets gcc adapter +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
Create parser to determine dependencies. + + Will create appropriate parser (C++, FORTRAN) based on file extension. +

+

+
Overrides:
createParser in class CommandLineCCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+public java.io.File[] getEnvironmentIncludePath()
+
+
+
Overrides:
getEnvironmentIncludePath in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+                               throws org.apache.tools.ant.BuildException
+
+
Description copied from interface: Processor
+
Retrieve an identifier that identifies the specific version of the + compiler. Compilers with the same identifier should produce the same + output files for the same input files and command line switches. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.html new file mode 100644 index 0000000..3f11c31 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.html @@ -0,0 +1,310 @@ + + + + + + + +GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class GccLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class GccLibrarian
extends AbstractArLibrarian
+ + +

+Adapter for the 'ar' archiver +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static GccLibrariangetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive, link
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLibrarian getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.html new file mode 100644 index 0000000..dfb07fa --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.html @@ -0,0 +1,435 @@ + + + + + + + +GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class GccLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GccLinker
extends AbstractLdLinker
+ + +

+Adapter for the GCC linker +

+ +

+

+
Author:
+
Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GccLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GccLinker

+
+protected GccLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GccLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GccLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GccLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.html new file mode 100644 index 0000000..5ead283 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.html @@ -0,0 +1,401 @@ + + + + + + + +GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class GccProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor
+
+
+
+
public class GccProcessor
extends java.lang.Object
+ + +

+A add-in class for Gcc processors +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidconvertCygwinFilenames(java.lang.String[] names) + +
+          Converts absolute Cygwin file or directory names to the corresponding + Win32 name.
+static java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+static java.lang.StringgetMachine() + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String letter, + java.lang.String outputFile) + +
+           
+static java.lang.String[]getSpecs() + +
+          Returns the contents of the gcc specs file.
+static java.lang.StringgetVersion() + +
+           
+static booleanisCaseSensitive() + +
+           
+static booleanisCygwin() + +
+          Determines if task is running with cygwin
+static java.lang.String[][]parseSpecs(java.lang.String[] specsContent, + java.lang.String specSectionStart, + java.lang.String[] options) + +
+          Parses the results of the specs file for a specific processor and + options
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+convertCygwinFilenames

+
+public static void convertCygwinFilenames(java.lang.String[] names)
+
+
Converts absolute Cygwin file or directory names to the corresponding + Win32 name. +

+

+
Parameters:
names - array of names, some elements may be null, will be changed in + place.
+
+
+
+ +

+getLibraryPatterns

+
+public static java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                                    LibraryTypeEnum libType)
+
+
+
+
+
+
+ +

+getMachine

+
+public static java.lang.String getMachine()
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String letter,
+                                                     java.lang.String outputFile)
+
+
+
+
+
+
+ +

+getSpecs

+
+public static java.lang.String[] getSpecs()
+
+
Returns the contents of the gcc specs file. + + The implementation locates gcc.exe in the executable path and then + builds a relative path name from the results of -dumpmachine and + -dumpversion. Attempts to use gcc -dumpspecs to provide this information + resulted in stalling on the Execute.run +

+

+ +
Returns:
contents of the specs file
+
+
+
+ +

+getVersion

+
+public static java.lang.String getVersion()
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+
+ +

+isCygwin

+
+public static boolean isCygwin()
+
+
Determines if task is running with cygwin +

+

+ +
Returns:
true if cygwin was detected
+
+
+
+ +

+parseSpecs

+
+public static java.lang.String[][] parseSpecs(java.lang.String[] specsContent,
+                                              java.lang.String specSectionStart,
+                                              java.lang.String[] options)
+
+
Parses the results of the specs file for a specific processor and + options +

+

+
Parameters:
specsContent - Contents of specs file as returned from getSpecs
specSectionStart - start of spec section, for example "*cpp:"
options - command line switches such as "-istart"
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.html new file mode 100644 index 0000000..0beb234 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.html @@ -0,0 +1,528 @@ + + + + + + + +GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class GppLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class GppLinker
extends AbstractLdLinker
+ + +

+Adapter for the g++ variant of the GCC linker +

+ +

+

+
Author:
+
Stephen M. Webb
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static java.lang.String[]discardFiles + +
+           
+protected static java.lang.String[]libtoolObjFiles + +
+           
+protected static java.lang.String[]objFiles + +
+           
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ java.lang.StringdecorateLinkerOption(java.lang.StringBuffer buf, + java.lang.String arg) + +
+          Allows drived linker to decorate linker option.
+static GppLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+discardFiles

+
+protected static final java.lang.String[] discardFiles
+
+
+
+
+
+ +

+objFiles

+
+protected static final java.lang.String[] objFiles
+
+
+
+
+
+ +

+libtoolObjFiles

+
+protected static final java.lang.String[] libtoolObjFiles
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+GppLinker

+
+protected GppLinker(java.lang.String command,
+                    java.lang.String[] extensions,
+                    java.lang.String[] ignoredExtensions,
+                    java.lang.String outputPrefix,
+                    java.lang.String outputSuffix,
+                    boolean isLibtool,
+                    GppLinker libtoolLinker)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static GppLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+public java.lang.String[] addLibrarySets(CCTask task,
+                                         LibrarySet[] libsets,
+                                         java.util.Vector preargs,
+                                         java.util.Vector midargs,
+                                         java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class AbstractLdLinker
+
+
+
+
+
+
+ +

+decorateLinkerOption

+
+public java.lang.String decorateLinkerOption(java.lang.StringBuffer buf,
+                                             java.lang.String arg)
+
+
Allows drived linker to decorate linker option. Override by GppLinker to + prepend a "-Wl," to pass option to through gcc to linker. +

+

+
Overrides:
decorateLinkerOption in class CommandLineLinker
+
+
+
Parameters:
buf - buffer that may be used and abused in the decoration process, + must not be null.
arg - linker argument
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.html new file mode 100644 index 0000000..d84bcf7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.html @@ -0,0 +1,310 @@ + + + + + + + +LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+Class LdLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class LdLinker
extends AbstractLdLinker
+ + +

+Adapter for the 'ld' linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static LdLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static LdLinker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccCCompiler.html new file mode 100644 index 0000000..8ce7189 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccCCompiler.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler

+
+ + + + + + + + + +
+Packages that use GccCCompiler
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + +
+Uses of GccCCompiler in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return GccCCompiler
+static GccCCompilerGccCCompiler.getCppInstance() + +
+          Gets c++ adapter
+static GccCCompilerGccCCompiler.getG77Instance() + +
+          Gets g77 adapter
+static GccCCompilerGccCCompiler.getGppInstance() + +
+          Gets gpp adapter
+static GccCCompilerGccCCompiler.getInstance() + +
+          Gets gcc adapter
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLibrarian.html new file mode 100644 index 0000000..ffcddfc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian

+
+ + + + + + + + + +
+Packages that use GccLibrarian
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + +
+Uses of GccLibrarian in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return GccLibrarian
+static GccLibrarianGccLibrarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLinker.html new file mode 100644 index 0000000..7f759c0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker

+
+ + + + + + + + + +
+Packages that use GccLinker
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + +
+Uses of GccLinker in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return GccLinker
+static GccLinkerGccLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type GccLinker
GccLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GccLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccProcessor.html new file mode 100644 index 0000000..9459a56 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GccProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor

+
+No usage of net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GppLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GppLinker.html new file mode 100644 index 0000000..c4a3209 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/GppLinker.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker

+
+ + + + + + + + + +
+Packages that use GppLinker
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + +
+Uses of GppLinker in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return GppLinker
+static GppLinkerGppLinker.getInstance() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type GppLinker
GppLinker(java.lang.String command, + java.lang.String[] extensions, + java.lang.String[] ignoredExtensions, + java.lang.String outputPrefix, + java.lang.String outputSuffix, + boolean isLibtool, + GppLinker libtoolLinker) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/LdLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/LdLinker.html new file mode 100644 index 0000000..6d940d5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/class-use/LdLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker

+
+ + + + + + + + + +
+Packages that use LdLinker
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + +
+Uses of LdLinker in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return LdLinker
+static LdLinkerLdLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-frame.html new file mode 100644 index 0000000..422287d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 + + + + +
+Classes  + +
+GccCCompiler +
+GccLibrarian +
+GccLinker +
+GccProcessor +
+GppLinker +
+LdLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-summary.html new file mode 100644 index 0000000..e80ea1d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-summary.html @@ -0,0 +1,175 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
GccCCompilerAdapter for the GCC C/C++ compiler
GccLibrarianAdapter for the 'ar' archiver
GccLinkerAdapter for the GCC linker
GccProcessorA add-in class for Gcc processors
GppLinkerAdapter for the g++ variant of the GCC linker
LdLinkerAdapter for the 'ld' linker
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-tree.html new file mode 100644 index 0000000..325bd7f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-tree.html @@ -0,0 +1,171 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-use.html new file mode 100644 index 0000000..1421768 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/package-use.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 used by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
GccCCompiler + +
+          Adapter for the GCC C/C++ compiler
GccLibrarian + +
+          Adapter for the 'ar' archiver
GccLinker + +
+          Adapter for the GCC linker
GppLinker + +
+          Adapter for the g++ variant of the GCC linker
LdLinker + +
+          Adapter for the 'ld' linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html new file mode 100644 index 0000000..97416e5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html @@ -0,0 +1,51 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.gcc + + + + +
+Classes  + +
+AbstractArLibrarian +
+AbstractLdLinker +
+GccCCompiler +
+GccCompatibleCCompiler +
+GccLibrarian +
+GccLinker +
+GccProcessor +
+GppLinker +
+LdLinker +
+WindresResourceCompiler
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html new file mode 100644 index 0000000..1a9b79e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html @@ -0,0 +1,192 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.gcc +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractArLibrarianAdapter for the "ar" tool
AbstractLdLinkerAbstract adapter for ld-like linkers
GccCCompilerAdapter for the GCC C/C++ compiler
GccCompatibleCCompilerAbstract base class for compilers that attempt to be command line compatible + with GCC
GccLibrarianAdapter for the 'ar' archiver
GccLinkerAdapter for the GCC linker
GccProcessorA add-in class for Gcc processors
GppLinkerAdapter for the g++ variant of the GCC linker
LdLinkerAdapter for the 'ld' linker
WindresResourceCompilerAdapter for the GNU windres resource compiler.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html new file mode 100644 index 0000000..ae76dde --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html @@ -0,0 +1,171 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.gcc +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html new file mode 100644 index 0000000..647a3df --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html @@ -0,0 +1,320 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.gcc

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.gcc
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.intel  
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.gcc
AbstractArLibrarian + +
+          Adapter for the "ar" tool
AbstractLdLinker + +
+          Abstract adapter for ld-like linkers
GccCCompiler + +
+          Adapter for the GCC C/C++ compiler
GccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
GccLibrarian + +
+          Adapter for the 'ar' archiver
GccLinker + +
+          Adapter for the GCC linker
GppLinker + +
+          Adapter for the g++ variant of the GCC linker
LdLinker + +
+          Adapter for the 'ld' linker
WindresResourceCompiler + +
+          Adapter for the GNU windres resource compiler.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.hp
AbstractLdLinker + +
+          Abstract adapter for ld-like linkers
GccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.ibm
AbstractLdLinker + +
+          Abstract adapter for ld-like linkers
GccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.intel
AbstractLdLinker + +
+          Abstract adapter for ld-like linkers
GccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.sun
AbstractLdLinker + +
+          Abstract adapter for ld-like linkers
GccCompatibleCCompiler + +
+          Abstract base class for compilers that attempt to be command line compatible + with GCC
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCCompiler.html new file mode 100644 index 0000000..00c3f76 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCCompiler.html @@ -0,0 +1,431 @@ + + + + + + + +aCCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.hp +
+Class aCCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.hp.aCCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class aCCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the HP aC++ C++ compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ java.io.File[]getEnvironmentIncludePath() + +
+           
+static aCCCompilergetInstance() + +
+          Gets singleton instance of this class
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static aCCCompiler getInstance()
+
+
Gets singleton instance of this class +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+public void addWarningSwitch(java.util.Vector args,
+                             int level)
+
+
+
Overrides:
addWarningSwitch in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+public java.io.File[] getEnvironmentIncludePath()
+
+
+
Overrides:
getEnvironmentIncludePath in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCLinker.html new file mode 100644 index 0000000..74a87bd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/aCCLinker.html @@ -0,0 +1,384 @@ + + + + + + + +aCCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.hp +
+Class aCCLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.hp.aCCLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class aCCLinker
extends AbstractLdLinker
+ + +

+Adapter for Sun (r) Forte(tm) C++ Linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+static aCCLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static aCCLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(boolean debug,
+                           LinkType linkType,
+                           java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+public void addIncremental(boolean incremental,
+                           java.util.Vector args)
+
+
+
Overrides:
addIncremental in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCCompiler.html new file mode 100644 index 0000000..ce4f125 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.hp.aCCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.hp.aCCCompiler

+
+ + + + + + + + + +
+Packages that use aCCCompiler
net.sf.antcontrib.cpptasks.hp  
+  +

+ + + + + +
+Uses of aCCCompiler in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.hp that return aCCCompiler
+static aCCCompileraCCCompiler.getInstance() + +
+          Gets singleton instance of this class
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCLinker.html new file mode 100644 index 0000000..f289547 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/class-use/aCCLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.hp.aCCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.hp.aCCLinker

+
+ + + + + + + + + +
+Packages that use aCCLinker
net.sf.antcontrib.cpptasks.hp  
+  +

+ + + + + +
+Uses of aCCLinker in net.sf.antcontrib.cpptasks.hp
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.hp that return aCCLinker
+static aCCLinkeraCCLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html new file mode 100644 index 0000000..f0b7bf3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.hp + + + + +
+Classes  + +
+aCCCompiler +
+aCCLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html new file mode 100644 index 0000000..dcf2409 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html @@ -0,0 +1,159 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.hp +

+ + + + + + + + + + + + + +
+Class Summary
aCCCompilerAdapter for the HP aC++ C++ compiler
aCCLinkerAdapter for Sun (r) Forte(tm) C++ Linker
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html new file mode 100644 index 0000000..c324e81 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html @@ -0,0 +1,169 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.hp +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-use.html new file mode 100644 index 0000000..55e984b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/hp/package-use.html @@ -0,0 +1,173 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.hp

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.hp
net.sf.antcontrib.cpptasks.hp  
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.hp used by net.sf.antcontrib.cpptasks.hp
aCCCompiler + +
+          Adapter for the HP aC++ C++ compiler
aCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.html new file mode 100644 index 0000000..eeb5a62 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.html @@ -0,0 +1,436 @@ + + + + + + + +VisualAgeCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ibm +
+Class VisualAgeCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class VisualAgeCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm) +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ java.lang.StringgetIdentifier() + +
+          Gets identifier for the compiler.
+static VisualAgeCCompilergetInstance() + +
+          Gets singleton instance of this class
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static VisualAgeCCompiler getInstance()
+
+
Gets singleton instance of this class +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+public void addWarningSwitch(java.util.Vector args,
+                             int level)
+
+
+
Overrides:
addWarningSwitch in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Gets identifier for the compiler. + + Initial attempt at extracting version information + would lock up. Using a stock response. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.html new file mode 100644 index 0000000..4800134 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.html @@ -0,0 +1,407 @@ + + + + + + + +VisualAgeLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ibm +
+Class VisualAgeLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class VisualAgeLinker
extends AbstractLdLinker
+ + +

+Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm) +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  java.lang.StringgetDynamicLibFlag() + +
+           
+ java.lang.StringgetIdentifier() + +
+          Gets identifier for the compiler.
+static VisualAgeLinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+protected  java.lang.StringgetStaticLibFlag() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static VisualAgeLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(boolean debug,
+                           LinkType linkType,
+                           java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Gets identifier for the compiler. + + Initial attempt at extracting version information + would lock up. Using a stock response. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineLinker
+
+
+
+
+
+
+ +

+getDynamicLibFlag

+
+protected java.lang.String getDynamicLibFlag()
+
+
+
Overrides:
getDynamicLibFlag in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getStaticLibFlag

+
+protected java.lang.String getStaticLibFlag()
+
+
+
Overrides:
getStaticLibFlag in class AbstractLdLinker
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeCCompiler.html new file mode 100644 index 0000000..ba6fed7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler

+
+ + + + + + + + + +
+Packages that use VisualAgeCCompiler
net.sf.antcontrib.cpptasks.ibm  
+  +

+ + + + + +
+Uses of VisualAgeCCompiler in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ibm that return VisualAgeCCompiler
+static VisualAgeCCompilerVisualAgeCCompiler.getInstance() + +
+          Gets singleton instance of this class
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeLinker.html new file mode 100644 index 0000000..6b47167 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/class-use/VisualAgeLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker

+
+ + + + + + + + + +
+Packages that use VisualAgeLinker
net.sf.antcontrib.cpptasks.ibm  
+  +

+ + + + + +
+Uses of VisualAgeLinker in net.sf.antcontrib.cpptasks.ibm
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ibm that return VisualAgeLinker
+static VisualAgeLinkerVisualAgeLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html new file mode 100644 index 0000000..ceb5de8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.ibm + + + + +
+Classes  + +
+VisualAgeCCompiler +
+VisualAgeLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html new file mode 100644 index 0000000..237b638 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html @@ -0,0 +1,159 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.ibm +

+ + + + + + + + + + + + + +
+Class Summary
VisualAgeCCompilerAdapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
VisualAgeLinkerAdapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html new file mode 100644 index 0000000..5ae7e38 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html @@ -0,0 +1,169 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.ibm +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html new file mode 100644 index 0000000..e27b442 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html @@ -0,0 +1,173 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.ibm

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.ibm
net.sf.antcontrib.cpptasks.ibm  
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ibm used by net.sf.antcontrib.cpptasks.ibm
VisualAgeCCompiler + +
+          Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm)
VisualAgeLinker + +
+          Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm)
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/CommentDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/CommentDef.html new file mode 100644 index 0000000..dd59804 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/CommentDef.html @@ -0,0 +1,295 @@ + + + + + + + +CommentDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Class CommentDef

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ide.CommentDef
+
+
+
+
public final class CommentDef
extends java.lang.Object
+ + +

+Defines a comment to place in the generated project files. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CommentDef() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddText(java.lang.String newText) + +
+           
+ java.lang.StringgetText() + +
+           
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommentDef

+
+public CommentDef()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getText

+
+public java.lang.String getText()
+
+
+
+
+
+
+ +

+addText

+
+public void addText(java.lang.String newText)
+
+
+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/DebugDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/DebugDef.html new file mode 100644 index 0000000..ddd6346 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/DebugDef.html @@ -0,0 +1,463 @@ + + + + + + + +DebugDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Class DebugDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.ide.DebugDef
+
+
+
+
public final class DebugDef
extends org.apache.tools.ant.types.DataType
+ + +

+Specifies a debugging configuration for a project. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
DebugDef() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddEnv(org.apache.tools.ant.types.Environment.Variable var) + +
+          Add an environment variable.
+ org.apache.tools.ant.types.Commandline.ArgumentcreateArg() + +
+          Adds a command-line argument.
+ java.lang.String[]getArguments() + +
+          Returns all arguments defined by addLine, + addValue or the argument object.
+ java.io.FilegetDir() + +
+          Get the working directory of the process.
+ java.lang.StringgetExecutable() + +
+          Get the name of the executable program.
+ java.lang.String[]getVariables() + +
+          Get the variable list as an array.
+ voidsetDir(java.io.File d) + +
+          Set the working directory of the process.
+ voidsetExecutable(java.lang.String value) + +
+          Set the name of the executable program.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DebugDef

+
+public DebugDef()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+setExecutable

+
+public void setExecutable(java.lang.String value)
+
+
Set the name of the executable program. +

+

+
Parameters:
value - the name of the executable program
+
+
+
+ +

+getExecutable

+
+public java.lang.String getExecutable()
+
+
Get the name of the executable program. +

+

+ +
Returns:
the name of the executable program, may be null.
+
+
+
+ +

+setDir

+
+public void setDir(java.io.File d)
+
+
Set the working directory of the process. +

+

+
Parameters:
d - the working directory of the process
+
+
+
+ +

+getDir

+
+public java.io.File getDir()
+
+
Get the working directory of the process. +

+

+ +
Returns:
the working directory of the process, may be null.
+
+
+
+ +

+addEnv

+
+public void addEnv(org.apache.tools.ant.types.Environment.Variable var)
+
+
Add an environment variable. +

+

+
Parameters:
var - new environment variable
+
+
+
+ +

+getVariables

+
+public java.lang.String[] getVariables()
+
+
Get the variable list as an array. +

+

+ +
Returns:
array of key=value assignment strings
+
+
+
+ +

+createArg

+
+public org.apache.tools.ant.types.Commandline.Argument createArg()
+
+
Adds a command-line argument. +

+

+ +
Returns:
new command line argument created
+
+
+
+ +

+getArguments

+
+public java.lang.String[] getArguments()
+
+
Returns all arguments defined by addLine, + addValue or the argument object. +

+

+ +
Returns:
array of command line arguments, may be zero-length.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/DependencyDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/DependencyDef.html new file mode 100644 index 0000000..21f6915 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/DependencyDef.html @@ -0,0 +1,406 @@ + + + + + + + +DependencyDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Class DependencyDef

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.ide.DependencyDef
+
+
+
+
public final class DependencyDef
extends java.lang.Object
+ + +

+Defines a dependency +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DependencyDef() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetDepends() + +
+           
+ java.util.ListgetDependsList() + +
+           
+ java.io.FilegetFile() + +
+           
+ java.lang.StringgetID() + +
+           
+ java.lang.StringgetName() + +
+           
+ voidsetDepends(java.lang.String val) + +
+           
+ voidsetFile(java.io.File val) + +
+           
+ voidsetID(java.lang.String val) + +
+           
+ voidsetName(java.lang.String val) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DependencyDef

+
+public DependencyDef()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setID

+
+public void setID(java.lang.String val)
+
+
+
+
+
+
+ +

+getFile

+
+public java.io.File getFile()
+
+
+
+
+
+
+ +

+setFile

+
+public void setFile(java.io.File val)
+
+
+
+
+
+
+ +

+setName

+
+public void setName(java.lang.String val)
+
+
+
+
+
+
+ +

+getName

+
+public java.lang.String getName()
+
+
+
+
+
+
+ +

+getID

+
+public java.lang.String getID()
+
+
+
+
+
+
+ +

+getDepends

+
+public java.lang.String getDepends()
+
+
+
+
+
+
+ +

+setDepends

+
+public void setDepends(java.lang.String val)
+
+
+
+
+
+
+ +

+getDependsList

+
+public java.util.List getDependsList()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectDef.html new file mode 100644 index 0000000..285b7e6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectDef.html @@ -0,0 +1,760 @@ + + + + + + + +ProjectDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Class ProjectDef

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.ide.ProjectDef
+
+
+
+
public final class ProjectDef
extends org.apache.tools.ant.types.DataType
+ + +

+Requests the creation of an IDE project file. Experimental. + + Implementation status: msdev5, msdev6 and cbuilderx + generate reasonable project files for simple projects, + xcode and msdev7 and msdev71 capture source file lists and + a few settings. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
ProjectDef() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddComment(CommentDef comment) + +
+          Add comment for the generated project file.
+ voidaddDependency(DependencyDef dependency) + +
+          Add a dependency definition to the project.
+ voidexecute() + +
+          Required by documentation generator.
+ voidexecute(CCTask task, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Executes the task.
+ java.util.ListgetComments() + +
+           
+ java.util.ListgetDependencies() + +
+           
+ java.lang.StringgetName() + +
+          Get name.
+ java.io.FilegetObjdir() + +
+          Gets the object files directory.
+ voidgetObjdir(java.io.File oDir) + +
+          Sets the directory used for object files.
+ booleangetOverwrite() + +
+          Gets whether an existing project file should be overwritten, + default is true.
+ booleanisActive() + +
+          Determine if this def should be used.
+ voidsetClassname(java.lang.String className) + +
+          Class name for a user-supplied project writer.
+ voidsetFailonerror(boolean value) + +
+          Sets whether a failure to write the project file should cause the + task to fail.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetName(java.lang.String value) + +
+          Set name.
+ voidsetOutfile(java.io.File outfile) + +
+          Sets the name for the generated project file.
+ voidsetOverwrite(boolean value) + +
+          Sets whether an existing project file should be overwritten, + default is true.
+ voidsetType(ProjectWriterEnum value) + +
+          Set project type.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ProjectDef

+
+public ProjectDef()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+setType

+
+public void setType(ProjectWriterEnum value)
+
+
Set project type. + + + Supported project formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+

+

+
Parameters:
value - new value
+
+
+
+ +

+setOutfile

+
+public void setOutfile(java.io.File outfile)
+
+
Sets the name for the generated project file. +

+

+
Parameters:
outfile - output file name
+
+
+
+ +

+setFailonerror

+
+public void setFailonerror(boolean value)
+
+
Sets whether a failure to write the project file should cause the + task to fail. Default is true. +

+

+
Parameters:
value - new value
+
+
+
+ +

+setOverwrite

+
+public void setOverwrite(boolean value)
+
+
Sets whether an existing project file should be overwritten, + default is true. If false and the project file exists, + the value of failonerror will determine if the task fails. +

+

+
Parameters:
value - new value
+
+
+
+ +

+getOverwrite

+
+public boolean getOverwrite()
+
+
Gets whether an existing project file should be overwritten, + default is true. If false and the project file exists, + the value of failonerror will determine if the task fails. +

+

+ +
Returns:
value
+
+
+
+ +

+isActive

+
+public boolean isActive()
+
+
Determine if this def should be used. + + Definition will be active if the "if" variable (if specified) is set and + the "unless" variable (if specified) is not set and that all reference + or extended definitions are active +

+

+ +
Returns:
true if processor is active
+
+
+
+ +

+setClassname

+
+public void setClassname(java.lang.String className)
+
+
Class name for a user-supplied project writer. Use the "type" + attribute to specify built-in project writer implementations. +

+

+
Parameters:
className - full class name
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+getName

+
+public java.lang.String getName()
+
+
Get name. +

+

+ +
Returns:
String name
+
+
+
+ +

+setName

+
+public void setName(java.lang.String value)
+
+
Set name. +

+

+
Parameters:
value - String name
+
+
+
+ +

+execute

+
+public void execute(CCTask task,
+                    java.util.List sources,
+                    java.util.Hashtable targets,
+                    TargetInfo linkTarget)
+
+
Executes the task. Compiles the given files. +

+

+
Parameters:
task - cc task
sources - source files (includes headers)
targets - compilation targets
linkTarget - link target
+
+
+
+ +

+getObjdir

+
+public java.io.File getObjdir()
+
+
Gets the object files directory. +

+

+ +
Returns:
directory, may be null.
+
+
+
+ +

+getObjdir

+
+public void getObjdir(java.io.File oDir)
+
+
Sets the directory used for object files. If not specified, + the object files directory from cc task will be used. +

+

+
Parameters:
oDir - object file directory.
+
+
+
+ +

+addDependency

+
+public void addDependency(DependencyDef dependency)
+
+
Add a dependency definition to the project. +

+

+
Parameters:
dependency - dependency.
+
+
+
+ +

+getDependencies

+
+public java.util.List getDependencies()
+
+
+
+
+
+
+ +

+addComment

+
+public void addComment(CommentDef comment)
+
+
Add comment for the generated project file. +

+

+
Parameters:
comment - comment, may not be null.
+
+
+
+ +

+getComments

+
+public java.util.List getComments()
+
+
+
+
+
+
+ +

+execute

+
+public void execute()
+
+
Required by documentation generator. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriter.html new file mode 100644 index 0000000..1c7d3bd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriter.html @@ -0,0 +1,232 @@ + + + + + + + +ProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Interface ProjectWriter

+
+
All Known Implementing Classes:
CBuilderXProjectWriter, DevStudioProjectWriter, VisualStudioNETProjectWriter, XcodeProjectWriter
+
+
+
+
public interface ProjectWriter
+ + +

+Project writer interface. +

+ +

+

+
Author:
+
curta
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidwriteProject(java.io.File baseName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Write project definition file.
+  +

+ + + + + + + + +
+Method Detail
+ +

+writeProject

+
+void writeProject(java.io.File baseName,
+                  CCTask task,
+                  ProjectDef projectDef,
+                  java.util.List files,
+                  java.util.Hashtable targets,
+                  TargetInfo linkTarget)
+                  throws java.io.IOException,
+                         org.xml.sax.SAXException
+
+
Write project definition file. +

+

+
Parameters:
baseName - File name base, writer may append appropriate extension
task - task
projectDef - project element
files - source and header files
targets - compilation targets
linkTarget - link target +
Throws: +
java.io.IOException - if I/O error is encountered +
org.xml.sax.SAXException - if I/O error during XML serialization
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.html new file mode 100644 index 0000000..cf4b4d2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.html @@ -0,0 +1,349 @@ + + + + + + + +ProjectWriterEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ide +
+Class ProjectWriterEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum
+
+
+
+
public final class ProjectWriterEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of supported project file generators. + + Supported project generators + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
ProjectWriterEnum() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ ProjectWritergetProjectWriter() + +
+          Gets ProjectWriter associated with enumeration value.
+ java.lang.String[]getValues() + +
+          Gets acceptible values for enumeration.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ProjectWriterEnum

+
+public ProjectWriterEnum()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getProjectWriter

+
+public ProjectWriter getProjectWriter()
+
+
Gets ProjectWriter associated with enumeration value. +

+

+ +
Returns:
project writer
+
+
+
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets acceptible values for enumeration. +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+ +
Returns:
acceptible values
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/CommentDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/CommentDef.html new file mode 100644 index 0000000..4a6efc6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/CommentDef.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ide.CommentDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ide.CommentDef

+
+ + + + + + + + + +
+Packages that use CommentDef
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of CommentDef in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type CommentDef
+ voidProjectDef.addComment(CommentDef comment) + +
+          Add comment for the generated project file.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DebugDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DebugDef.html new file mode 100644 index 0000000..d11e3c6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DebugDef.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ide.DebugDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ide.DebugDef

+
+No usage of net.sf.antcontrib.cpptasks.ide.DebugDef +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DependencyDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DependencyDef.html new file mode 100644 index 0000000..26e6115 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/DependencyDef.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ide.DependencyDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ide.DependencyDef

+
+ + + + + + + + + +
+Packages that use DependencyDef
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of DependencyDef in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type DependencyDef
+ voidProjectDef.addDependency(DependencyDef dependency) + +
+          Add a dependency definition to the project.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectDef.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectDef.html new file mode 100644 index 0000000..b09a105 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectDef.html @@ -0,0 +1,326 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ide.ProjectDef (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ide.ProjectDef

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use ProjectDef
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of ProjectDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ProjectDef
+ voidCCTask.addProject(ProjectDef projectDef) + +
+          Specifies the generation of IDE project file.
+  +

+ + + + + +
+Uses of ProjectDef in net.sf.antcontrib.cpptasks.apple
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.apple with parameters of type ProjectDef
+ voidXcodeProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of ProjectDef in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type ProjectDef
+ voidCBuilderXProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of ProjectDef in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type ProjectDef
+ voidVisualStudioNETProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List sources, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+ voidDevStudioProjectWriter.writeProject(java.io.File fileName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Writes a project definition file.
+  +

+ + + + + +
+Uses of ProjectDef in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type ProjectDef
+ voidProjectWriter.writeProject(java.io.File baseName, + CCTask task, + ProjectDef projectDef, + java.util.List files, + java.util.Hashtable targets, + TargetInfo linkTarget) + +
+          Write project definition file.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriter.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriter.html new file mode 100644 index 0000000..1b7ae11 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriter.html @@ -0,0 +1,272 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.ide.ProjectWriter (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.ide.ProjectWriter

+
+ + + + + + + + + + + + + + + + + + + + + +
+Packages that use ProjectWriter
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of ProjectWriter in net.sf.antcontrib.cpptasks.apple
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.apple that implement ProjectWriter
+ classXcodeProjectWriter + +
+          Writes a Apple Xcode 2.1+ project directory.
+  +

+ + + + + +
+Uses of ProjectWriter in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.borland that implement ProjectWriter
+ classCBuilderXProjectWriter + +
+          Writes a CBuilderX 1.0 project file.
+  +

+ + + + + +
+Uses of ProjectWriter in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.devstudio that implement ProjectWriter
+ classDevStudioProjectWriter + +
+          Writes a Microsoft Visual Studio 97 or Visual Studio 6 project file.
+ classVisualStudioNETProjectWriter + +
+          Writes a Visual Studio.NET project file.
+  +

+ + + + + +
+Uses of ProjectWriter in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide that return ProjectWriter
+ ProjectWriterProjectWriterEnum.getProjectWriter() + +
+          Gets ProjectWriter associated with enumeration value.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriterEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriterEnum.html new file mode 100644 index 0000000..8b4f33a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/class-use/ProjectWriterEnum.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ide.ProjectWriterEnum

+
+ + + + + + + + + +
+Packages that use ProjectWriterEnum
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + +
+Uses of ProjectWriterEnum in net.sf.antcontrib.cpptasks.ide
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ide with parameters of type ProjectWriterEnum
+ voidProjectDef.setType(ProjectWriterEnum value) + +
+          Set project type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-frame.html new file mode 100644 index 0000000..e2b5d33 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-frame.html @@ -0,0 +1,52 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ide (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.ide + + + + +
+Interfaces  + +
+ProjectWriter
+ + + + + + +
+Classes  + +
+CommentDef +
+DebugDef +
+DependencyDef +
+ProjectDef +
+ProjectWriterEnum
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-summary.html new file mode 100644 index 0000000..b12400f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-summary.html @@ -0,0 +1,200 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ide (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.ide +

+IDE project file generation. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
ProjectWriterProject writer interface.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
CommentDefDefines a comment to place in the generated project files.
DebugDefSpecifies a debugging configuration for a project.
DependencyDefDefines a dependency
ProjectDefRequests the creation of an IDE project file.
ProjectWriterEnumEnumeration of supported project file generators.
+  + +

+

+Package net.sf.antcontrib.cpptasks.ide Description +

+ +

+IDE project file generation. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-tree.html new file mode 100644 index 0000000..2d4f9ae --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ide Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.ide +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • net.sf.antcontrib.cpptasks.ide.CommentDef
    • net.sf.antcontrib.cpptasks.ide.DependencyDef
    • org.apache.tools.ant.types.EnumeratedAttribute +
    • org.apache.tools.ant.ProjectComponent
        +
      • org.apache.tools.ant.types.DataType +
      +
    +
+

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-use.html new file mode 100644 index 0000000..1430536 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ide/package-use.html @@ -0,0 +1,285 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.ide (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.ide

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.ide
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ide used by net.sf.antcontrib.cpptasks
ProjectDef + +
+          Requests the creation of an IDE project file.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ide used by net.sf.antcontrib.cpptasks.apple
ProjectDef + +
+          Requests the creation of an IDE project file.
ProjectWriter + +
+          Project writer interface.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ide used by net.sf.antcontrib.cpptasks.borland
ProjectDef + +
+          Requests the creation of an IDE project file.
ProjectWriter + +
+          Project writer interface.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ide used by net.sf.antcontrib.cpptasks.devstudio
ProjectDef + +
+          Requests the creation of an IDE project file.
ProjectWriter + +
+          Project writer interface.
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ide used by net.sf.antcontrib.cpptasks.ide
CommentDef + +
+          Defines a comment to place in the generated project files.
DependencyDef + +
+          Defines a dependency
ProjectDef + +
+          Requests the creation of an IDE project file.
ProjectWriter + +
+          Project writer interface.
ProjectWriterEnum + +
+          Enumeration of supported project file generators.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.html new file mode 100644 index 0000000..1e2f78b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.html @@ -0,0 +1,376 @@ + + + + + + + +IntelLinux32CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelLinux32CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class IntelLinux32CCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static IntelLinux32CCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addImpliedArgs, addIncludePath, addWarningSwitch, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelLinux32CCompiler getInstance()
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.html new file mode 100644 index 0000000..4cc0c70 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.html @@ -0,0 +1,310 @@ + + + + + + + +IntelLinux32Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelLinux32Linker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class IntelLinux32Linker
extends AbstractLdLinker
+ + +

+Adapter for the Intel (r) Linker for Linux (r) for IA-32 +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static IntelLinux32LinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelLinux32Linker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.html new file mode 100644 index 0000000..43e19ab --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.html @@ -0,0 +1,376 @@ + + + + + + + +IntelLinux64CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelLinux64CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class IntelLinux64CCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static IntelLinux64CCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addImpliedArgs, addIncludePath, addWarningSwitch, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelLinux64CCompiler getInstance()
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.html new file mode 100644 index 0000000..3b3eab0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.html @@ -0,0 +1,310 @@ + + + + + + + +IntelLinux64Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelLinux64Linker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class IntelLinux64Linker
extends AbstractLdLinker
+ + +

+Adapter for the Intel (r) linker for Linux for IA-64 +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static IntelLinux64LinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelLinux64Linker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelProcessor.html new file mode 100644 index 0000000..9655b5a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelProcessor.html @@ -0,0 +1,343 @@ + + + + + + + +IntelProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.intel.IntelProcessor
+
+
+
+
public class IntelProcessor
extends java.lang.Object
+ + +

+A add-in class for Intel (r) compilers and linkers +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+static voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+           
+static voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+static booleanisCaseSensitive() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+public static void getDefineSwitch(java.lang.StringBuffer buffer,
+                                   java.lang.String define,
+                                   java.lang.String value)
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+public static void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                     java.lang.String define)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.html new file mode 100644 index 0000000..d498d8e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.html @@ -0,0 +1,386 @@ + + + + + + + +IntelWin32CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelWin32CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
+                          extended by net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
+
public final class IntelWin32CCompiler
extends DevStudioCompatibleCCompiler
+ + +

+Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static IntelWin32CCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
addDebugSwitch, addImpliedArgs, addWarningSwitch, createPrecompileGeneratingConfig, createPrecompileUsingConfig, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelWin32CCompiler getInstance()
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.html new file mode 100644 index 0000000..d46e152 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.html @@ -0,0 +1,346 @@ + + + + + + + +IntelWin32Librarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelWin32Librarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian
+                  extended by net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class IntelWin32Librarian
extends DevStudioCompatibleLibrarian
+ + +

+Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected IntelWin32Librarian() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static IntelWin32LibrariangetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IntelWin32Librarian

+
+protected IntelWin32Librarian()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelWin32Librarian getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.html new file mode 100644 index 0000000..e88c459 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.html @@ -0,0 +1,310 @@ + + + + + + + +IntelWin32Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelWin32Linker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
+                  extended by net.sf.antcontrib.cpptasks.intel.IntelWin32Linker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class IntelWin32Linker
extends DevStudioCompatibleLinker
+ + +

+Adapter for the Intel (r) linker for 32-bit applications +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static IntelWin32LinkergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, addVersionFiles, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelWin32Linker getInstance()
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.html new file mode 100644 index 0000000..1587e1a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.html @@ -0,0 +1,383 @@ + + + + + + + +IntelWin64CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.intel +
+Class IntelWin64CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
+                  extended by net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
+                      extended by net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
+                          extended by net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, PrecompilingCompiler, Processor
+
+
+
+
public final class IntelWin64CCompiler
extends DevStudioCompatibleCCompiler
+ + +

+Adapter for the Intel C++ compiler for Itanium(TM) Applications +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+static IntelWin64CCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler
addDebugSwitch, addImpliedArgs, addWarningSwitch, createPrecompileGeneratingConfig, createPrecompileUsingConfig, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static IntelWin64CCompiler getInstance()
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32CCompiler.html new file mode 100644 index 0000000..1ec6655 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32CCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler

+
+ + + + + + + + + +
+Packages that use IntelLinux32CCompiler
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelLinux32CCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelLinux32CCompiler
+static IntelLinux32CCompilerIntelLinux32CCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32Linker.html new file mode 100644 index 0000000..2c822b8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux32Linker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker

+
+ + + + + + + + + +
+Packages that use IntelLinux32Linker
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelLinux32Linker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelLinux32Linker
+static IntelLinux32LinkerIntelLinux32Linker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64CCompiler.html new file mode 100644 index 0000000..fb3a975 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64CCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler

+
+ + + + + + + + + +
+Packages that use IntelLinux64CCompiler
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelLinux64CCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelLinux64CCompiler
+static IntelLinux64CCompilerIntelLinux64CCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64Linker.html new file mode 100644 index 0000000..4368d92 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelLinux64Linker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker

+
+ + + + + + + + + +
+Packages that use IntelLinux64Linker
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelLinux64Linker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelLinux64Linker
+static IntelLinux64LinkerIntelLinux64Linker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelProcessor.html new file mode 100644 index 0000000..4a28116 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelProcessor

+
+No usage of net.sf.antcontrib.cpptasks.intel.IntelProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32CCompiler.html new file mode 100644 index 0000000..7d5cd29 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32CCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler

+
+ + + + + + + + + +
+Packages that use IntelWin32CCompiler
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelWin32CCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelWin32CCompiler
+static IntelWin32CCompilerIntelWin32CCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Librarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Librarian.html new file mode 100644 index 0000000..1c0c090 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Librarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelWin32Librarian

+
+ + + + + + + + + +
+Packages that use IntelWin32Librarian
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelWin32Librarian in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelWin32Librarian
+static IntelWin32LibrarianIntelWin32Librarian.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Linker.html new file mode 100644 index 0000000..3b314a3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin32Linker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelWin32Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelWin32Linker

+
+ + + + + + + + + +
+Packages that use IntelWin32Linker
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelWin32Linker in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelWin32Linker
+static IntelWin32LinkerIntelWin32Linker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin64CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin64CCompiler.html new file mode 100644 index 0000000..93f4a08 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/class-use/IntelWin64CCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler

+
+ + + + + + + + + +
+Packages that use IntelWin64CCompiler
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + +
+Uses of IntelWin64CCompiler in net.sf.antcontrib.cpptasks.intel
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.intel that return IntelWin64CCompiler
+static IntelWin64CCompilerIntelWin64CCompiler.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-frame.html new file mode 100644 index 0000000..1a6ef8b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-frame.html @@ -0,0 +1,49 @@ + + + + + + + +net.sf.antcontrib.cpptasks.intel (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.intel + + + + +
+Classes  + +
+IntelLinux32CCompiler +
+IntelLinux32Linker +
+IntelLinux64CCompiler +
+IntelLinux64Linker +
+IntelProcessor +
+IntelWin32CCompiler +
+IntelWin32Librarian +
+IntelWin32Linker +
+IntelWin64CCompiler
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-summary.html new file mode 100644 index 0000000..82251e6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-summary.html @@ -0,0 +1,197 @@ + + + + + + + +net.sf.antcontrib.cpptasks.intel (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.intel +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
IntelLinux32CCompilerAdapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
IntelLinux32LinkerAdapter for the Intel (r) Linker for Linux (r) for IA-32
IntelLinux64CCompilerAdapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
IntelLinux64LinkerAdapter for the Intel (r) linker for Linux for IA-64
IntelProcessorA add-in class for Intel (r) compilers and linkers
IntelWin32CCompilerAdapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
IntelWin32LibrarianAdapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
IntelWin32LinkerAdapter for the Intel (r) linker for 32-bit applications
IntelWin64CCompilerAdapter for the Intel C++ compiler for Itanium(TM) Applications
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-tree.html new file mode 100644 index 0000000..48978e8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-tree.html @@ -0,0 +1,180 @@ + + + + + + + +net.sf.antcontrib.cpptasks.intel Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.intel +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-use.html new file mode 100644 index 0000000..a130435 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/intel/package-use.html @@ -0,0 +1,219 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.intel (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.intel

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.intel
net.sf.antcontrib.cpptasks.intel  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.intel used by net.sf.antcontrib.cpptasks.intel
IntelLinux32CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + + The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + gcc compiler.
IntelLinux32Linker + +
+          Adapter for the Intel (r) Linker for Linux (r) for IA-32
IntelLinux64CCompiler + +
+          Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + + The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + compiler.
IntelLinux64Linker + +
+          Adapter for the Intel (r) linker for Linux for IA-64
IntelWin32CCompiler + +
+          Adapter for the Intel (r) C++ compiler for 32-bit applications + + The Intel (r) C++ compiler for IA32 Windows mimics the command options for + the Microsoft (r) C++ compiler.
IntelWin32Librarian + +
+          Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + systems running Microsoft (r) operating systems
IntelWin32Linker + +
+          Adapter for the Intel (r) linker for 32-bit applications
IntelWin64CCompiler + +
+          Adapter for the Intel C++ compiler for Itanium(TM) Applications
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.html new file mode 100644 index 0000000..0780e54 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.html @@ -0,0 +1,782 @@ + + + + + + + +XpidlCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.mozilla +
+Class XpidlCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class XpidlCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Mozilla Xpidl Compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+protected  voidaddIncludes(java.lang.String baseDirPath, + java.io.File[] includeDirs, + java.util.Vector args, + java.util.Vector relativeArgs, + java.lang.StringBuffer includePathId) + +
+          Adds command line arguments for include paths.
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+          Add arguments for specified warning level.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .idl file into the corresponding .h and .xpt files.
+protected  ParsercreateParser(java.io.File source) + +
+          Gets dependency parser.
+protected  intgetArgumentCountPerInputFile() + +
+          Gets number of command line arguments per input file.
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Gets switch to define preprocessor macro.
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          Gets standard include paths.
+ java.lang.StringgetIdentifier() + +
+          Gets compiler identifier.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+          Gets include directory switch.
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+          Gets input file arguments.
+static XpidlCompilergetInstance() + +
+          Gets singleton instance of compiler.
+ LinkergetLinker(LinkType type) + +
+          Gets linker associated with this type.
+ intgetMaximumCommandLength() + +
+          Gets maximum length of command line.
+protected  intgetMaximumInputFilesPerCommand() + +
+          Gets maximum number of input files processed per command.
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+          Get total command line length due to the input file.
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+          Gets switch to undefine preprocessor macro.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
buildDefineArguments, createConfiguration, getCommand, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static XpidlCompiler getInstance()
+
+
Gets singleton instance of compiler. +

+

+ +
Returns:
XpidlCompiler singleton instance
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
Add arguments for debug, etc. +

+

+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command argument list
debug - boolean build for debug if true
multithreaded - boolean build for multithreading if true
exceptions - boolean enable exceptions if true
linkType - LinkType output and runtime type
rtti - Boolean enable run-time type identification if true
optimization - OptimizationEnum optimization
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
Add arguments for specified warning level. +

+

+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command line arguments
level - int warning level value
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
Change enviroment (deprecated). +

+

+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
Parameters:
newEnvironment - boolean use new environment.
env - Environment environment +
Returns:
Processor modified processor
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
Gets dependency parser. +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
Parameters:
source - source file +
Returns:
parser
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
Gets number of command line arguments per input file. +

+

+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+ +
Returns:
int number of command line arguments per input file.
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Gets output file names. +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class AbstractCompiler
+
+
+
Parameters:
inputFile - String input file name
versionInfo - version info, not used by this compiler. +
Returns:
String[] output file names
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
Gets input file arguments. +

+

+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
filename - String input file name.
index - int argument index, + 0 to getNumberOfArgumentsPerInputFile() -1 +
Returns:
String input file argument
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
Gets maximum length of command line. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+ +
Returns:
int maximum length of command line
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
Gets maximum number of input files processed per command. +

+

+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+ +
Returns:
int maximum number of input files processed per command.
+
+
+
+ +

+addIncludes

+
+protected void addIncludes(java.lang.String baseDirPath,
+                           java.io.File[] includeDirs,
+                           java.util.Vector args,
+                           java.util.Vector relativeArgs,
+                           java.lang.StringBuffer includePathId)
+
+
Adds command line arguments for include paths. +

+

+
Overrides:
addIncludes in class CommandLineCompiler
+
+
+
Parameters:
baseDirPath - String base directory
includeDirs - File[] include directories
args - Vector command line arguments
relativeArgs - Vector arguments for configuration identification
includePathId - StringBuffer buffer for configuration identification
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
Gets include directory switch. +

+

+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
Parameters:
includeDir - String include directory +
Returns:
String command switch to add specified directory to search path
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
Gets switch to define preprocessor macro. +

+

+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
value - String macro value, may be null.
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
Gets switch to undefine preprocessor macro. +

+

+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
Gets standard include paths. +

+

+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+ +
Returns:
File[] standard include paths
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Gets linker associated with this type. +

+

+
Parameters:
type - LinkType linker, returns ld. +
Returns:
Linker
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    java.lang.String[] args,
+                    java.lang.String[] endArgs,
+                    boolean relentless,
+                    CommandLineCompilerConfiguration config,
+                    ProgressMonitor monitor)
+
+
Compiles an .idl file into the corresponding .h and .xpt files. +

+

+
Overrides:
compile in class CommandLineCompiler
+
+
+
Parameters:
task - current cc task
outputDir - output directory
sourceFiles - source files
args - command line arguments that appear before input files
endArgs - command line arguments that appear after input files
relentless - if true, do not stop at first compilation error
config - compiler configuration
monitor - progress monitor
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
Get total command line length due to the input file. +

+

+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
inputFile - String input file +
Returns:
int characters added to command line for the input file.
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
Gets compiler identifier. +

+

+
Specified by:
getIdentifier in interface Processor
Overrides:
getIdentifier in class CommandLineCompiler
+
+
+ +
Returns:
String compiler identification string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/class-use/XpidlCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/class-use/XpidlCompiler.html new file mode 100644 index 0000000..67725d1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/class-use/XpidlCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler

+
+ + + + + + + + + +
+Packages that use XpidlCompiler
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
+  +

+ + + + + +
+Uses of XpidlCompiler in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla that return XpidlCompiler
+static XpidlCompilerXpidlCompiler.getInstance() + +
+          Gets singleton instance of compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-frame.html new file mode 100644 index 0000000..c807807 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.mozilla (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.mozilla + + + + +
+Classes  + +
+XpidlCompiler
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-summary.html new file mode 100644 index 0000000..83bec7f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-summary.html @@ -0,0 +1,170 @@ + + + + + + + +net.sf.antcontrib.cpptasks.mozilla (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.mozilla +

+Compiler adapter for Mozilla's XPCOM compiler. +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
XpidlCompilerAdapter for the Mozilla Xpidl Compiler.
+  + +

+

+Package net.sf.antcontrib.cpptasks.mozilla Description +

+ +

+Compiler adapter for Mozilla's XPCOM compiler. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-tree.html new file mode 100644 index 0000000..0e8d141 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-tree.html @@ -0,0 +1,158 @@ + + + + + + + +net.sf.antcontrib.cpptasks.mozilla Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.mozilla +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-use.html new file mode 100644 index 0000000..4860a86 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/mozilla/package-use.html @@ -0,0 +1,167 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.mozilla (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.mozilla

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.mozilla
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.mozilla used by net.sf.antcontrib.cpptasks.mozilla
XpidlCompiler + +
+          Adapter for the Mozilla Xpidl Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.html new file mode 100644 index 0000000..0050123 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.html @@ -0,0 +1,345 @@ + + + + + + + +OpenWatcomCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
+                  extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class OpenWatcomCCompiler
extends OpenWatcomCompiler
+ + +

+Adapter for the OpenWatcom C Compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ParsercreateParser(java.io.File source) + +
+          Create parser.
+static OpenWatcomCCompilergetInstance() + +
+          Get compiler.
+ LinkergetLinker(LinkType type) + +
+          Get linker.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
addImpliedArgs, addWarningSwitch, changeEnvironment, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getMaximumCommandLength, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static OpenWatcomCCompiler getInstance()
+
+
Get compiler. +

+

+ +
Returns:
OpenWatcomCCompiler compiler
+
+
+
+ +

+createParser

+
+public Parser createParser(java.io.File source)
+
+
Create parser. +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
Parameters:
source - File file to be parsed. +
Returns:
Parser parser
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Get linker. +

+

+
Parameters:
type - link type +
Returns:
linker
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.html new file mode 100644 index 0000000..8881846 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.html @@ -0,0 +1,311 @@ + + + + + + + +OpenWatcomCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomCLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker
+                  extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class OpenWatcomCLinker
extends OpenWatcomLinker
+ + +

+Adapter for the OpenWatcom linker. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static OpenWatcomCLinkergetInstance() + +
+          Get linker instance.
+ LinkergetLinker(LinkType type) + +
+          Get linker.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, addVersionFiles, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static OpenWatcomCLinker getInstance()
+
+
Get linker instance. +

+

+ +
Returns:
OpenWatcomCLinker linker
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Get linker. +

+

+
Parameters:
type - LinkType link type +
Returns:
Linker linker
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.html new file mode 100644 index 0000000..1fb09b8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.html @@ -0,0 +1,536 @@ + + + + + + + +OpenWatcomCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
Direct Known Subclasses:
OpenWatcomCCompiler, OpenWatcomFortranCompiler
+
+
+
+
public abstract class OpenWatcomCompiler
extends CommandLineCompiler
+ + +

+An abstract base class for the OpenWatcom C and Fortran compilers. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected OpenWatcomCompiler(java.lang.String command, + java.lang.String identifierArg, + java.lang.String[] sourceExtensions, + java.lang.String[] headerExtensions, + boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add implied arguments.
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+          Add warning switch.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment.
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Get define switch.
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          Get include path from environment.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+          Get include directory switch.
+ intgetMaximumCommandLength() + +
+          Get maximum command line length.
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+          Get undefine switch.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OpenWatcomCompiler

+
+protected OpenWatcomCompiler(java.lang.String command,
+                             java.lang.String identifierArg,
+                             java.lang.String[] sourceExtensions,
+                             java.lang.String[] headerExtensions,
+                             boolean newEnvironment,
+                             org.apache.tools.ant.types.Environment env)
+
+
Constructor. +

+

+
Parameters:
command - String command
identifierArg - String identifier
sourceExtensions - String[] source extension
headerExtensions - String[] header extension
newEnvironment - boolean use new enviroment
env - Environment environment
+
+ + + + + + + + +
+Method Detail
+ +

+addImpliedArgs

+
+protected final void addImpliedArgs(java.util.Vector args,
+                                    boolean debug,
+                                    boolean multithreaded,
+                                    boolean exceptions,
+                                    LinkType linkType,
+                                    java.lang.Boolean rtti,
+                                    OptimizationEnum optimization)
+
+
Add implied arguments. +

+

+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command line arguments
debug - boolean is debug
multithreaded - boolean multithreaderd
exceptions - boolean support exceptions
linkType - LinkType link type
rtti - Boolean run time type information
optimization - OptimizationEnum
+
+
+
+ +

+addWarningSwitch

+
+protected final void addWarningSwitch(java.util.Vector args,
+                                      int level)
+
+
Add warning switch. +

+

+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command line arguments
level - int warning level
+
+
+
+ +

+changeEnvironment

+
+public final Processor changeEnvironment(boolean newEnvironment,
+                                         org.apache.tools.ant.types.Environment env)
+
+
Change enviroment. +

+

+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
Parameters:
newEnvironment - boolean use new enviroment
env - Environment environment +
Returns:
Processor modified processor
+
+
+
+ +

+getDefineSwitch

+
+protected final void getDefineSwitch(java.lang.StringBuffer buffer,
+                                     java.lang.String define,
+                                     java.lang.String value)
+
+
Get define switch. +

+

+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer buffer
define - String preprocessor macro
value - String value, may be null.
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected final java.io.File[] getEnvironmentIncludePath()
+
+
Get include path from environment. +

+

+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+ +
Returns:
File[]
+
+
+
+ +

+getIncludeDirSwitch

+
+protected final java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
Get include directory switch. +

+

+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
Parameters:
includeDir - String include directory +
Returns:
String command line argument
+
+
+
+ +

+getMaximumCommandLength

+
+public final int getMaximumCommandLength()
+
+
Get maximum command line length. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+ +
Returns:
int maximum command line length
+
+
+
+ +

+getUndefineSwitch

+
+protected final void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                       java.lang.String define)
+
+
Get undefine switch. +

+

+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer argument destination
define - String preprocessor macro
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.html new file mode 100644 index 0000000..b25b654 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.html @@ -0,0 +1,345 @@ + + + + + + + +OpenWatcomFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomFortranCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
+                  extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class OpenWatcomFortranCompiler
extends OpenWatcomCompiler
+ + +

+Adapter for the OpenWatcom Fortran compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ParsercreateParser(java.io.File source) + +
+          Create dependency parser.
+static OpenWatcomFortranCompilergetInstance() + +
+          Get instance.
+ LinkergetLinker(LinkType type) + +
+          Get linker.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler
addImpliedArgs, addWarningSwitch, changeEnvironment, getDefineSwitch, getEnvironmentIncludePath, getIncludeDirSwitch, getMaximumCommandLength, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static OpenWatcomFortranCompiler getInstance()
+
+
Get instance. +

+

+ +
Returns:
OpenWatcomFortranCompiler compiler instance
+
+
+
+ +

+createParser

+
+public Parser createParser(java.io.File source)
+
+
Create dependency parser. +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
Parameters:
source - File source file +
Returns:
Parser parser
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Get linker. +

+

+
Parameters:
type - link type +
Returns:
linker
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.html new file mode 100644 index 0000000..ae8810d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.html @@ -0,0 +1,311 @@ + + + + + + + +OpenWatcomFortranLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomFortranLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker
+                  extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class OpenWatcomFortranLinker
extends OpenWatcomLinker
+ + +

+Adapter for the OpenWatcom Fortran linker. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + +
+Method Summary
+static OpenWatcomFortranLinkergetInstance() + +
+          Get instance.
+ LinkergetLinker(LinkType type) + +
+          Get linker.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker
addBase, addEntry, addFixed, addImpliedArgs, addIncremental, addMap, addStack, addVersionFiles, getCommandFileSwitch, getLibraryPath, getLibraryPatterns, getMaximumCommandLength, getOutputFileSwitch, isCaseSensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static OpenWatcomFortranLinker getInstance()
+
+
Get instance. +

+

+ +
Returns:
OpenWatcomFortranLinker linker
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Get linker. +

+

+
Parameters:
type - LinkType link type +
Returns:
Linker linker
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.html new file mode 100644 index 0000000..b31394f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.html @@ -0,0 +1,691 @@ + + + + + + + +OpenWatcomLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class OpenWatcomLibrarian
extends CommandLineLinker
+ + +

+Adapter for the OpenWatcom Librarian. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+          Add base address.
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+          Add alternative entry point.
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+          Add fixed parameter.
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+          Add implied arguments.
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+          Add incremental option.
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+          Add map option.
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+          Add stack size option.
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+          Get command file switch.
+static OpenWatcomLibrariangetInstance() + +
+          Singleton accessor.
+ java.io.File[]getLibraryPath() + +
+          Get library search path.
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for specified library names.
+ LinkergetLinker(LinkType type) + +
+          Get linker.
+ intgetMaximumCommandLength() + +
+          Gets maximum command line.
+ java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+          Create output file switch.
+ booleanisCaseSensitive() + +
+          Gets case-sensisitivity of processor.
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Builds a library.
+protected  java.lang.String[]prepareArguments(CCTask task, + java.lang.String outputDir, + java.lang.String outputName, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Prepares argument list for exec command.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static OpenWatcomLibrarian getInstance()
+
+
Singleton accessor. +

+

+ +
Returns:
OpenWatcomLibrarian librarian instance
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
Add base address. +

+

+
Specified by:
addBase in class CommandLineLinker
+
+
+
Parameters:
base - long base address
args - Vector command line arguments
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
Add alternative entry point. +

+

+
Specified by:
addEntry in class CommandLineLinker
+
+
+
Parameters:
entry - String entry point
args - Vector command line arguments
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
Add fixed parameter. +

+

+
Specified by:
addFixed in class CommandLineLinker
+
+
+
Parameters:
fixed - Boolean true if fixed
args - Vector command line arguments
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
Add implied arguments. +

+

+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
Parameters:
debug - boolean true if debugging
linkType - LinkType link type
args - Vector command line arguments
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
Add incremental option. +

+

+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
Parameters:
incremental - boolean true if incremental
args - Vector command line arguments
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
Add map option. +

+

+
Specified by:
addMap in class CommandLineLinker
+
+
+
Parameters:
map - boolean true to create map file
args - Vector command line argument
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
Add stack size option. +

+

+
Specified by:
addStack in class CommandLineLinker
+
+
+
Parameters:
stack - int stack size
args - Vector command line arguments
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
Get command file switch. +

+

+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
Parameters:
cmdFile - String command file +
Returns:
String command file switch
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Get library search path. +

+

+ +
Returns:
File[] library search path
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Get file selectors for specified library names. +

+

+
Parameters:
libnames - String[] library names
libType - LibraryTypeEnum library type enum +
Returns:
String[] file selection patterns
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Get linker. +

+

+
Parameters:
type - LinkType link type +
Returns:
Linker linker
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
Gets maximum command line. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+ +
Returns:
int maximum command line
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
Create output file switch. +

+

+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
Parameters:
outFile - String output file switch +
Returns:
String[] output file switch
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Gets case-sensisitivity of processor. +

+

+ +
Returns:
boolean true if case sensitive
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+
+
Builds a library. +

+

+
Overrides:
link in class CommandLineLinker
+
+
+
Parameters:
task - task
outputFile - generated library
sourceFiles - object files
config - linker configuration
+
+
+
+ +

+prepareArguments

+
+protected java.lang.String[] prepareArguments(CCTask task,
+                                              java.lang.String outputDir,
+                                              java.lang.String outputName,
+                                              java.lang.String[] sourceFiles,
+                                              CommandLineLinkerConfiguration config)
+
+
Prepares argument list for exec command. +

+

+
Overrides:
prepareArguments in class CommandLineLinker
+
+
+
Parameters:
task - task
outputDir - output directory
outputName - output file name
sourceFiles - object files
config - linker configuration +
Returns:
arguments for runTask
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.html new file mode 100644 index 0000000..2579bf2 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.html @@ -0,0 +1,676 @@ + + + + + + + +OpenWatcomLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
Direct Known Subclasses:
OpenWatcomCLinker, OpenWatcomFortranLinker
+
+
+
+
public abstract class OpenWatcomLinker
extends CommandLineLinker
+ + +

+Adapter for the OpenWatcom linker. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + +
+Constructor Summary
+protected OpenWatcomLinker(java.lang.String command, + java.lang.String outputSuffix) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+          Add specified base address to linker options.
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+          Adds non-default entry point.
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+          Adds fixed option.
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+          Adds other command line parameters.
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+          Add command line switch to force incremental linking.
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+          Add command line switch to force map generation.
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+          Add command line switch for stack reservation.
+ voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+          Get command file switch.
+ java.io.File[]getLibraryPath() + +
+          Get search path for libraries.
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for libraries.
+ intgetMaximumCommandLength() + +
+          Get maximum command line length.
+ java.lang.String[]getOutputFileSwitch(java.lang.String outFile) + +
+          Get output file switch.
+ booleanisCaseSensitive() + +
+          Gets file name sensitivity of processors.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Linker
getLinker
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+OpenWatcomLinker

+
+protected OpenWatcomLinker(java.lang.String command,
+                           java.lang.String outputSuffix)
+
+
Constructor. +

+

+
Parameters:
command - String command string (wcl386 or wfl386)
outputSuffix - String output suffix
+
+ + + + + + + + +
+Method Detail
+ +

+addBase

+
+protected final void addBase(long base,
+                             java.util.Vector args)
+
+
Add specified base address to linker options. +

+

+
Specified by:
addBase in class CommandLineLinker
+
+
+
Parameters:
base - long base address
args - Vector command options
+
+
+
+ +

+addEntry

+
+protected final void addEntry(java.lang.String entry,
+                              java.util.Vector args)
+
+
Adds non-default entry point. +

+

+
Specified by:
addEntry in class CommandLineLinker
+
+
+
Parameters:
entry - entry point name
args - command line parameters
+
+
+
+ +

+addFixed

+
+protected final void addFixed(java.lang.Boolean fixed,
+                              java.util.Vector args)
+
+
Adds fixed option. +

+

+
Specified by:
addFixed in class CommandLineLinker
+
+
+
Parameters:
fixed - if executable is fixed
args - command line parameters
+
+
+
+ +

+addImpliedArgs

+
+protected final void addImpliedArgs(boolean debug,
+                                    LinkType linkType,
+                                    java.util.Vector args)
+
+
Adds other command line parameters. +

+

+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
Parameters:
debug - boolean is debug
linkType - LinkType link type
args - Vector command line arguments
+
+
+
+ +

+addIncremental

+
+protected final void addIncremental(boolean incremental,
+                                    java.util.Vector args)
+
+
Add command line switch to force incremental linking. +

+

+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
Parameters:
incremental - boolean do incremental linking
args - Vector command line arguments
+
+
+
+ +

+addMap

+
+protected final void addMap(boolean map,
+                            java.util.Vector args)
+
+
Add command line switch to force map generation. +

+

+
Specified by:
addMap in class CommandLineLinker
+
+
+
Parameters:
map - boolean build map
args - Vector command line arguments
+
+
+
+ +

+addStack

+
+protected final void addStack(int stack,
+                              java.util.Vector args)
+
+
Add command line switch for stack reservation. +

+

+
Specified by:
addStack in class CommandLineLinker
+
+
+
Parameters:
stack - int stack size.
args - Vector command line arguments.
+
+
+
+ +

+addVersionFiles

+
+public final void addVersionFiles(VersionInfo versionInfo,
+                                  LinkType linkType,
+                                  java.io.File outputFile,
+                                  boolean isDebug,
+                                  java.io.File objDir,
+                                  TargetMatcher matcher)
+                           throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
Specified by:
addVersionFiles in interface Linker
Overrides:
addVersionFiles in class AbstractLinker
+
+
+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException - if unable to write version resource
+
+
+
+ +

+getCommandFileSwitch

+
+public final java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
Get command file switch. +

+

+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
Parameters:
commandFile - String command file name +
Returns:
String command line option
+
+
+
+ +

+getLibraryPath

+
+public final java.io.File[] getLibraryPath()
+
+
Get search path for libraries. +

+

+ +
Returns:
File[] library path
+
+
+
+ +

+getLibraryPatterns

+
+public final java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                                   LibraryTypeEnum libType)
+
+
Get file selectors for libraries. +

+

+
Parameters:
libnames - String[]
libType - LibraryTypeEnum +
Returns:
String[]
+
+
+
+ +

+getMaximumCommandLength

+
+public final int getMaximumCommandLength()
+
+
Get maximum command line length. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+ +
Returns:
int command line length
+
+
+
+ +

+getOutputFileSwitch

+
+public final java.lang.String[] getOutputFileSwitch(java.lang.String outFile)
+
+
Get output file switch. +

+

+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
Parameters:
outFile - Output file name +
Returns:
String[] command line switches
+
+
+
+ +

+isCaseSensitive

+
+public final boolean isCaseSensitive()
+
+
Gets file name sensitivity of processors. +

+

+ +
Returns:
boolean true if case sensitive.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.html new file mode 100644 index 0000000..6ebd385 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.html @@ -0,0 +1,385 @@ + + + + + + + +OpenWatcomProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.openwatcom +
+Class OpenWatcomProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor
+
+
+
+
public final class OpenWatcomProcessor
extends java.lang.Object
+ + +

+A add-in class for OpenWatcom processors. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+          Adds warning command line options.
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+          Gets command line option to read from an option file.
+static voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Creates a command line option to define a preprocessor macro.
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+          Create a command line option to add a directory to the include path.
+static java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for specified libraries.
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+          Builds command line options to specify the output file names.
+static voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+          Builds a command line option to undefine a preprocessor macro.
+static booleanisCaseSensitive() + +
+          Gets whether processor tratement of file names is case-sensitive.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
Adds warning command line options. +

+

+
Parameters:
args - Vector list of options
level - int value of WarningLevelEnum
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
Gets command line option to read from an option file. +

+

+
Parameters:
cmdFile - String file name for option file +
Returns:
String Command line option
+
+
+
+ +

+getDefineSwitch

+
+public static void getDefineSwitch(java.lang.StringBuffer buffer,
+                                   java.lang.String define,
+                                   java.lang.String value)
+
+
Creates a command line option to define a preprocessor macro. +

+

+
Parameters:
buffer - StringBuffer destination buffer
define - String parameter to define
value - String value, may be null
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
Create a command line option to add a directory to the include path. +

+

+
Parameters:
includeDir - String directory +
Returns:
String command line option
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
Builds command line options to specify the output file names. +

+

+
Parameters:
outPath - String path to output file +
Returns:
String[] command line options
+
+
+
+ +

+getLibraryPatterns

+
+public static java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                                    LibraryTypeEnum libType)
+
+
Get file selectors for specified libraries. +

+

+
Parameters:
libnames - library names
libType - library type +
Returns:
file selectors
+
+
+
+ +

+getUndefineSwitch

+
+public static void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                     java.lang.String define)
+
+
Builds a command line option to undefine a preprocessor macro. +

+

+
Parameters:
buffer - StringBuffer destination
define - String macro to be undefined
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
Gets whether processor tratement of file names is case-sensitive. +

+

+ +
Returns:
boolean true if case sensitive
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCCompiler.html new file mode 100644 index 0000000..f5e0599 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler

+
+ + + + + + + + + +
+Packages that use OpenWatcomCCompiler
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomCCompiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return OpenWatcomCCompiler
+static OpenWatcomCCompilerOpenWatcomCCompiler.getInstance() + +
+          Get compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCLinker.html new file mode 100644 index 0000000..75a14b9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker

+
+ + + + + + + + + +
+Packages that use OpenWatcomCLinker
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomCLinker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return OpenWatcomCLinker
+static OpenWatcomCLinkerOpenWatcomCLinker.getInstance() + +
+          Get linker instance.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCompiler.html new file mode 100644 index 0000000..25072c6 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomCompiler.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCompiler

+
+ + + + + + + + + +
+Packages that use OpenWatcomCompiler
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomCompiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + +
Subclasses of OpenWatcomCompiler in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
+ classOpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranCompiler.html new file mode 100644 index 0000000..c50f931 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler

+
+ + + + + + + + + +
+Packages that use OpenWatcomFortranCompiler
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomFortranCompiler in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return OpenWatcomFortranCompiler
+static OpenWatcomFortranCompilerOpenWatcomFortranCompiler.getInstance() + +
+          Get instance.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranLinker.html new file mode 100644 index 0000000..b11af89 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomFortranLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker

+
+ + + + + + + + + +
+Packages that use OpenWatcomFortranLinker
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomFortranLinker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return OpenWatcomFortranLinker
+static OpenWatcomFortranLinkerOpenWatcomFortranLinker.getInstance() + +
+          Get instance.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLibrarian.html new file mode 100644 index 0000000..488f05f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLibrarian.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLibrarian

+
+ + + + + + + + + +
+Packages that use OpenWatcomLibrarian
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomLibrarian in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return OpenWatcomLibrarian
+static OpenWatcomLibrarianOpenWatcomLibrarian.getInstance() + +
+          Singleton accessor.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLinker.html new file mode 100644 index 0000000..634139c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomLinker.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomLinker

+
+ + + + + + + + + +
+Packages that use OpenWatcomLinker
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + +
+Uses of OpenWatcomLinker in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + +
Subclasses of OpenWatcomLinker in net.sf.antcontrib.cpptasks.openwatcom
+ classOpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
+ classOpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomProcessor.html new file mode 100644 index 0000000..a3fd145 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/class-use/OpenWatcomProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor

+
+No usage of net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-frame.html new file mode 100644 index 0000000..c0201bb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-frame.html @@ -0,0 +1,47 @@ + + + + + + + +net.sf.antcontrib.cpptasks.openwatcom (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.openwatcom + + + + +
+Classes  + +
+OpenWatcomCCompiler +
+OpenWatcomCLinker +
+OpenWatcomCompiler +
+OpenWatcomFortranCompiler +
+OpenWatcomFortranLinker +
+OpenWatcomLibrarian +
+OpenWatcomLinker +
+OpenWatcomProcessor
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-summary.html new file mode 100644 index 0000000..ce65cfc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-summary.html @@ -0,0 +1,198 @@ + + + + + + + +net.sf.antcontrib.cpptasks.openwatcom (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.openwatcom +

+Adapters for OpenWatcom compilers and tools. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
OpenWatcomCCompilerAdapter for the OpenWatcom C Compiler.
OpenWatcomCLinkerAdapter for the OpenWatcom linker.
OpenWatcomCompilerAn abstract base class for the OpenWatcom C and Fortran compilers.
OpenWatcomFortranCompilerAdapter for the OpenWatcom Fortran compiler.
OpenWatcomFortranLinkerAdapter for the OpenWatcom Fortran linker.
OpenWatcomLibrarianAdapter for the OpenWatcom Librarian.
OpenWatcomLinkerAdapter for the OpenWatcom linker.
OpenWatcomProcessorA add-in class for OpenWatcom processors.
+  + +

+

+Package net.sf.antcontrib.cpptasks.openwatcom Description +

+ +

+Adapters for OpenWatcom compilers and tools. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-tree.html new file mode 100644 index 0000000..9d0abb8 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-tree.html @@ -0,0 +1,167 @@ + + + + + + + +net.sf.antcontrib.cpptasks.openwatcom Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.openwatcom +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-use.html new file mode 100644 index 0000000..b966f3f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/openwatcom/package-use.html @@ -0,0 +1,203 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.openwatcom (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.openwatcom

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.openwatcom
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.openwatcom used by net.sf.antcontrib.cpptasks.openwatcom
OpenWatcomCCompiler + +
+          Adapter for the OpenWatcom C Compiler.
OpenWatcomCLinker + +
+          Adapter for the OpenWatcom linker.
OpenWatcomCompiler + +
+          An abstract base class for the OpenWatcom C and Fortran compilers.
OpenWatcomFortranCompiler + +
+          Adapter for the OpenWatcom Fortran compiler.
OpenWatcomFortranLinker + +
+          Adapter for the OpenWatcom Fortran linker.
OpenWatcomLibrarian + +
+          Adapter for the OpenWatcom Librarian.
OpenWatcomLinker + +
+          Adapter for the OpenWatcom linker.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.html new file mode 100644 index 0000000..ffbfc89 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.html @@ -0,0 +1,569 @@ + + + + + + + +OS390CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os390 +
+Class OS390CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.os390.OS390CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class OS390CCompiler
extends CommandLineCCompiler
+ + +

+Adapter for the IBM (R) OS/390 (tm) C++ Compiler +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+protected  voidbuildDefineArguments(CompilerDef[] defs, + java.util.Vector args) + +
+          The buildDefineArguments implementation CommandLineCCompiler is not good + for us because os390 defines are give by -D definex instead of + /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not + have to implement the getDefineSwitch() and the getUndefineSwitch().
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static AbstractCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static AbstractCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+buildDefineArguments

+
+protected void buildDefineArguments(CompilerDef[] defs,
+                                    java.util.Vector args)
+
+
The buildDefineArguments implementation CommandLineCCompiler is not good + for us because os390 defines are give by -D definex instead of + /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not + have to implement the getDefineSwitch() and the getUndefineSwitch(). +

+

+
Overrides:
buildDefineArguments in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Linker.html new file mode 100644 index 0000000..a28d540 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Linker.html @@ -0,0 +1,780 @@ + + + + + + + +OS390Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os390 +
+Class OS390Linker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.os390.OS390Linker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class OS390Linker
extends CommandLineLinker
+ + +

+Adapter for the IBM (R) OS/390 (tm) Linker +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+static OS390LinkergetDataSetInstance() + +
+           
+static OS390LinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+protected  java.lang.String[]getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+protected  intrunCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getDataSetInstance

+
+public static OS390Linker getDataSetInstance()
+
+
+
+
+
+
+ +

+getInstance

+
+public static OS390Linker getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+protected java.lang.String[] addLibrarySets(CCTask task,
+                                            LibrarySet[] libsets,
+                                            java.util.Vector preargs,
+                                            java.util.Vector midargs,
+                                            java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class CommandLineLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(CCTask task,
+                                                 java.lang.String outputFile)
+
+
+
Overrides:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+runCommand

+
+protected int runCommand(CCTask task,
+                         java.io.File workingDir,
+                         java.lang.String[] cmdline)
+                  throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler +

+

+
Overrides:
runCommand in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Processor.html new file mode 100644 index 0000000..34df848 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/OS390Processor.html @@ -0,0 +1,303 @@ + + + + + + + +OS390Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os390 +
+Class OS390Processor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.os390.OS390Processor
+
+
+
+
public class OS390Processor
extends java.lang.Object
+ + +

+A add-in class for IBM (r) OS/390 compilers and linkers +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+           
+static booleanisCaseSensitive() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390CCompiler.html new file mode 100644 index 0000000..5bbe335 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390CCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os390.OS390CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os390.OS390CCompiler

+
+No usage of net.sf.antcontrib.cpptasks.os390.OS390CCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Linker.html new file mode 100644 index 0000000..43a1e45 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Linker.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os390.OS390Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os390.OS390Linker

+
+ + + + + + + + + +
+Packages that use OS390Linker
net.sf.antcontrib.cpptasks.os390  
+  +

+ + + + + +
+Uses of OS390Linker in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 that return OS390Linker
+static OS390LinkerOS390Linker.getDataSetInstance() + +
+           
+static OS390LinkerOS390Linker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Processor.html new file mode 100644 index 0000000..a7d8f85 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/class-use/OS390Processor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os390.OS390Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os390.OS390Processor

+
+No usage of net.sf.antcontrib.cpptasks.os390.OS390Processor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-frame.html new file mode 100644 index 0000000..d50bc07 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-frame.html @@ -0,0 +1,37 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os390 (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.os390 + + + + +
+Classes  + +
+OS390CCompiler +
+OS390Linker +
+OS390Processor
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-summary.html new file mode 100644 index 0000000..672d6e9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-summary.html @@ -0,0 +1,163 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os390 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.os390 +

+ + + + + + + + + + + + + + + + + +
+Class Summary
OS390CCompilerAdapter for the IBM (R) OS/390 (tm) C++ Compiler
OS390LinkerAdapter for the IBM (R) OS/390 (tm) Linker
OS390ProcessorA add-in class for IBM (r) OS/390 compilers and linkers
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-tree.html new file mode 100644 index 0000000..8d231ff --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os390 Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.os390 +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-use.html new file mode 100644 index 0000000..aa55565 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os390/package-use.html @@ -0,0 +1,167 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.os390 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.os390

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.os390
net.sf.antcontrib.cpptasks.os390  
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.os390 used by net.sf.antcontrib.cpptasks.os390
OS390Linker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccCompiler.html new file mode 100644 index 0000000..06f5f5f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccCompiler.html @@ -0,0 +1,537 @@ + + + + + + + +IccCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os400 +
+Class IccCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.os400.IccCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class IccCompiler
extends CommandLineCCompiler
+ + +

+Adapter for the IBM (R) OS/390 (tm) C++ Compiler +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static AbstractCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static AbstractCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccLinker.html new file mode 100644 index 0000000..bbc1138 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccLinker.html @@ -0,0 +1,780 @@ + + + + + + + +IccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os400 +
+Class IccLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.os400.IccLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class IccLinker
extends CommandLineLinker
+ + +

+Adapter for the IBM (R) OS/390 (tm) Linker +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+static IccLinkergetDataSetInstance() + +
+           
+static IccLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+protected  java.lang.String[]getOutputFileSwitch(CCTask task, + java.lang.String outputFile) + +
+           
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ voidlink(CCTask task, + java.io.File outputFile, + java.lang.String[] sourceFiles, + CommandLineLinkerConfiguration config) + +
+          Performs a link using a command line linker
+protected  intrunCommand(CCTask task, + java.io.File workingDir, + java.lang.String[] cmdline) + +
+          This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getStartupObject, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getDataSetInstance

+
+public static IccLinker getDataSetInstance()
+
+
+
+
+
+
+ +

+getInstance

+
+public static IccLinker getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+protected java.lang.String[] addLibrarySets(CCTask task,
+                                            LibrarySet[] libsets,
+                                            java.util.Vector preargs,
+                                            java.util.Vector midargs,
+                                            java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(CCTask task,
+                                                 java.lang.String outputFile)
+
+
+
Overrides:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+
+ +

+link

+
+public void link(CCTask task,
+                 java.io.File outputFile,
+                 java.lang.String[] sourceFiles,
+                 CommandLineLinkerConfiguration config)
+          throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
Performs a link using a command line linker +

+

+
Overrides:
link in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+runCommand

+
+protected int runCommand(CCTask task,
+                         java.io.File workingDir,
+                         java.lang.String[] cmdline)
+                  throws org.apache.tools.ant.BuildException
+
+
Description copied from class: CommandLineLinker
+
This method is exposed so test classes can overload + and test the arguments without actually spawning the + compiler +

+

+
Overrides:
runCommand in class CommandLineLinker
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class CommandLineLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccProcessor.html new file mode 100644 index 0000000..9df49b1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/IccProcessor.html @@ -0,0 +1,303 @@ + + + + + + + +IccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.os400 +
+Class IccProcessor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.os400.IccProcessor
+
+
+
+
public class IccProcessor
extends java.lang.Object
+ + +

+A add-in class for IBM (r) OS/390 compilers and linkers +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+           
+static booleanisCaseSensitive() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccCompiler.html new file mode 100644 index 0000000..de52755 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os400.IccCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os400.IccCompiler

+
+No usage of net.sf.antcontrib.cpptasks.os400.IccCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccLinker.html new file mode 100644 index 0000000..05a1cf7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccLinker.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os400.IccLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os400.IccLinker

+
+ + + + + + + + + +
+Packages that use IccLinker
net.sf.antcontrib.cpptasks.os400  
+  +

+ + + + + +
+Uses of IccLinker in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 that return IccLinker
+static IccLinkerIccLinker.getDataSetInstance() + +
+           
+static IccLinkerIccLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccProcessor.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccProcessor.html new file mode 100644 index 0000000..b2354d0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/class-use/IccProcessor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.os400.IccProcessor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.os400.IccProcessor

+
+No usage of net.sf.antcontrib.cpptasks.os400.IccProcessor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-frame.html new file mode 100644 index 0000000..b4311e9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-frame.html @@ -0,0 +1,37 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os400 (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.os400 + + + + +
+Classes  + +
+IccCompiler +
+IccLinker +
+IccProcessor
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-summary.html new file mode 100644 index 0000000..c7bd365 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-summary.html @@ -0,0 +1,163 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os400 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.os400 +

+ + + + + + + + + + + + + + + + + +
+Class Summary
IccCompilerAdapter for the IBM (R) OS/390 (tm) C++ Compiler
IccLinkerAdapter for the IBM (R) OS/390 (tm) Linker
IccProcessorA add-in class for IBM (r) OS/390 compilers and linkers
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-tree.html new file mode 100644 index 0000000..5b7d2d7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks.os400 Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.os400 +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-use.html new file mode 100644 index 0000000..52e4d89 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/os400/package-use.html @@ -0,0 +1,167 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.os400 (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.os400

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.os400
net.sf.antcontrib.cpptasks.os400  
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.os400 used by net.sf.antcontrib.cpptasks.os400
IccLinker + +
+          Adapter for the IBM (R) OS/390 (tm) Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/package-frame.html new file mode 100644 index 0000000..fdbffea --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/package-frame.html @@ -0,0 +1,116 @@ + + + + + + + +net.sf.antcontrib.cpptasks (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks + + + + +
+Interfaces  + +
+FileVisitor
+ + + + + + +
+Classes  + +
+AboutCCTask +
+ArchEnum +
+CCTask +
+CCTaskProgressMonitor +
+CompilerDef +
+CompilerEnum +
+CompilerParam +
+CPUEnum +
+CUtil +
+CUtil.StringArrayBuilder +
+DependencyInfo +
+DependencyTable +
+DistributerDef +
+DistributerMap +
+DistributerProtocolEnum +
+LinkerDef +
+LinkerEnum +
+LinkerParam +
+ObjectFileCollector +
+OptimizationEnum +
+OSFamilyEnum +
+OutputTypeEnum +
+PrecompileDef +
+PrecompileExceptDef +
+ProcessorDef +
+ProcessorEnumValue +
+ProcessorParam +
+RuntimeType +
+SourceHistory +
+SubsystemEnum +
+TargetDef +
+TargetHistory +
+TargetHistoryTable +
+TargetInfo +
+TargetMatcher +
+VersionInfo +
+WarningLevelEnum
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/package-summary.html new file mode 100644 index 0000000..8c0af94 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/package-summary.html @@ -0,0 +1,469 @@ + + + + + + + +net.sf.antcontrib.cpptasks (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks +

+C++ and other compiled languages build support for Ant. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
FileVisitorAn abstract class implemented to walk over the fileset members of a + ProcessorDef
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AboutCCTaskThe equivalent of a Help About + run "java -jar cpptasks.jar" to read
ArchEnumEnumeration of cpu architecture types.
CCTaskCompile and link task.
CCTaskProgressMonitor 
CompilerDefA compiler definition.
CompilerEnumEnumeration of supported compilers + + Supported compilers + + gcc (default) + GCC C++ compiler + + + g++ + GCC C++ compiler + + + c++ + GCC C++ compiler + + + g77 + GNU FORTRAN compiler + + + msvc + Microsoft Visual C++ + + + msvc8 + Microsoft Visual C++ 8 + + + bcc + Borland C++ Compiler + + + msrc + Microsoft Resource Compiler + + + brc + Borland Resource Compiler + + + df + Compaq Visual Fortran Compiler + + + midl + Microsoft MIDL Compiler + + + icl + Intel C++ compiler for Windows (IA-32) + + + ecl + Intel C++ compiler for Windows (IA-64) + + + icc + Intel C++ compiler for Linux (IA-32) + + + ecc + Intel C++ compiler for Linux (IA-64) + + + CC + Sun ONE C++ compiler + + + aCC + HP aC++ C++ Compiler + + + os390 + OS390 C Compiler + + + os400 + Icc Compiler + + + sunc89 + Sun C89 C Compiler + + + xlC + VisualAge C Compiler + + + cl6x + TI TMS320C6000 Optimizing Compiler + + + cl55 + TI TMS320C55x Optimizing C/C++ Compiler + + + armcpp + ARM 32-bit C++ compiler + + + armcc + ARM 32-bit C compiler + + + tcpp + ARM 16-bit C++ compiler + + + tcc + ARM 16-bit C compiler + + * + uic + Qt user interface compiler + + + moc + Qt meta-object compiler + + + xpidl + Mozilla xpidl compiler (creates .h and .xpt files). + + + wcl + OpenWatcom C/C++ compiler (experimental) + + + wfl + OpenWatcom FORTRAN compiler (experimental) + + + windres + GNU windres resource compiler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CompilerParamPlace class description here.
CPUEnumEnumeration of cpu types.
CUtilSome utilities used by the CC and Link tasks.
CUtil.StringArrayBuilderA class that splits a white-space, comma-separated list into a String + array.
DependencyInfo 
DependencyTable 
DistributerDefDistributed build information (Non-functional prototype).
DistributerMapLocal to remote filename mapping (Experimental).
DistributerProtocolEnumDistributer prococol names (experimental).
LinkerDefA linker definition.
LinkerEnumEnumeration of supported linkers
LinkerParamPlace class description here.
ObjectFileCollectorCollects object files for the link step.
OptimizationEnumEnumeration of optimization levels (experimental).
OSFamilyEnumEnumeration of cpu types.
OutputTypeEnumEnumeration of supported subsystems
PrecompileDefAn element that specifies a prototype file and rules for source files that + should not use precompiled headers
PrecompileExceptDefSpecifies files that should not be compiled using precompiled headers.
ProcessorDefAn abstract compiler/linker definition.
ProcessorEnumValueOne entry in the arrays used by the CompilerEnum and LinkerEnum classes.
ProcessorParamPlace class description here.
RuntimeTypeEnumerated attribute with the values "dynamic" and "static",
SourceHistoryThe history of a source file used to build a target
SubsystemEnumEnumeration of supported subsystems
TargetDefInformation on the execution platforms for the generated code.
TargetHistoryA description of a file built or to be built
TargetHistoryTableA history of the compiler and linker settings used to build the files in the + same directory as the history.
TargetInfoA description of a file built or to be built
TargetMatcherThis class matches each visited file with an appropriate compiler
VersionInfoVersion Information.
WarningLevelEnumEnumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+  + +

+

+Package net.sf.antcontrib.cpptasks Description +

+ +

+C++ and other compiled languages build support for Ant. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/package-tree.html new file mode 100644 index 0000000..55d5c9d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/package-tree.html @@ -0,0 +1,172 @@ + + + + + + + +net.sf.antcontrib.cpptasks Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/package-use.html new file mode 100644 index 0000000..6449465 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/package-use.html @@ -0,0 +1,1126 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.hp  
net.sf.antcontrib.cpptasks.ibm  
net.sf.antcontrib.cpptasks.ideIDE project file generation. 
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities. 
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + .html + http://ant.apache.org/manual/CoreTypes/patternset.html + http://ant.apache.org/manual/using.html#path + http://ant.apache.org/manual/CoreTasks/exec.html + about:blank + + + + + + + +
+ + + + + + + + + + +
+
+
+ + + diff --git a/src/test/java/net/sf/antcontrib/cpptasks/MockBuildListener.java b/src/test/java/net/sf/antcontrib/cpptasks/MockBuildListener.java new file mode 100644 index 0000000..e7bd999 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/MockBuildListener.java @@ -0,0 +1,172 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.util.Vector; + +import org.apache.tools.ant.BuildEvent; +import org.apache.tools.ant.BuildListener; +/** + * Captures build events + * + */ +public class MockBuildListener implements BuildListener { + private Vector buildFinishedEvents = new Vector(); + private Vector buildStartedEvents = new Vector(); + private Vector messageLoggedEvents = new Vector(); + private Vector targetFinishedEvents = new Vector(); + private Vector targetStartedEvents = new Vector(); + private Vector taskFinishedEvents = new Vector(); + private Vector taskStartedEvents = new Vector(); + /** + * Signals that the last target has finished. This event will still be + * fired if an error occurred during the build. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getException() + */ + public void buildFinished(BuildEvent event) { + buildFinishedEvents.addElement(event); + } + /** + * Signals that a build has started. This event is fired before any targets + * have started. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + */ + public void buildStarted(BuildEvent event) { + buildStartedEvents.addElement(event); + } + public Vector getBuildFinishedEvents() { + return new Vector(buildFinishedEvents); + } + /** + * Gets a list of buildStarted events + * + * @return list of build started events + */ + public Vector getBuildStartedEvents() { + return new Vector(buildStartedEvents); + } + /** + * Gets message logged events + * + * @return vector of "MessageLogged" events. + */ + public Vector getMessageLoggedEvents() { + return new Vector(messageLoggedEvents); + } + /** + * Gets target finished events + * + * @return vector of "TargetFinished" events. + */ + public Vector getTargetFinishedEvents() { + return new Vector(targetFinishedEvents); + } + /** + * Gets target started events + * + * @return vector of "TargetStarted" events. + */ + public Vector getTargetStartedEvents() { + return new Vector(targetStartedEvents); + } + /** + * Gets task finished events + * + * @return vector of "TaskFinished" events. + */ + public Vector getTaskFinishedEvents() { + return new Vector(taskFinishedEvents); + } + /** + * Gets task started events + * + * @return vector of "TaskStarted" events. + */ + public Vector getTaskStartedEvents() { + return new Vector(taskStartedEvents); + } + /** + * Signals a message logging event. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getMessage() + * @see BuildEvent#getPriority() + */ + public void messageLogged(BuildEvent event) { + messageLoggedEvents.addElement(event); + } + /** + * Signals that a target has finished. This event will still be fired if an + * error occurred during the build. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getException() + */ + public void targetFinished(BuildEvent event) { + targetFinishedEvents.addElement(event); + } + /** + * Signals that a target is starting. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getTarget() + */ + public void targetStarted(BuildEvent event) { + targetStartedEvents.addElement(event); + } + /** + * Signals that a task has finished. This event will still be fired if an + * error occurred during the build. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getException() + */ + public void taskFinished(BuildEvent event) { + taskFinishedEvents.addElement(event); + } + /** + * Signals that a task is starting. + * + * @param event + * An event with any relevant extra information. Must not be + * null. + * + * @see BuildEvent#getTask() + */ + public void taskStarted(BuildEvent event) { + taskStartedEvents.addElement(event); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/MockFileCollector.java b/src/test/java/net/sf/antcontrib/cpptasks/MockFileCollector.java new file mode 100644 index 0000000..d1768fd --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/MockFileCollector.java @@ -0,0 +1,90 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +/** + * Implementation of FileVisitor that collects visited files for later + * retrieval. + * + * @author Curt Arnold + * + */ +public final class MockFileCollector + implements FileVisitor { + + /** + * list of fileName parameter values. + */ + private final List fileNames = new ArrayList(); + + /** + * list of baseDir parameter values. + */ + private final List baseDirs = new ArrayList(); + + /** + * Constructor. + * + */ + public MockFileCollector() { + } + + /** + * Implementation of FileVisitor.visit. + * @param baseDir base directory + * @param fileName file name + */ + public void visit(final File baseDir, final String fileName) { + fileNames.add(fileName); + baseDirs.add(baseDir); + } + + /** + * Get value of fileName parameter for a specified index. + * + * @param index + * index + * @return value of failName parameter + */ + public String getFileName(final int index) { + return (String) fileNames.get(index); + } + + /** + * Get value of baseDir parameter for the specified index. + * + * @param index + * index + * @return value of baseDir parameter + */ + public File getBaseDir(final int index) { + return (File) baseDirs.get(index); + } + + /** + * Get count of calls to FileVisitor.visit. + * + * @return count of calls. + */ + public int size() { + return fileNames.size(); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestAllClasses.java b/src/test/java/net/sf/antcontrib/cpptasks/TestAllClasses.java new file mode 100644 index 0000000..e85fe27 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestAllClasses.java @@ -0,0 +1,63 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import junit.framework.TestSuite; +/** + * Test for abstract compiler class + * + * Override create to test concrete compiler implementions + */ +public class TestAllClasses extends TestSuite { + public static TestSuite suite() { + return new TestAllClasses("TestAllClasses"); + } + public TestAllClasses(String name) { + super(name); + addTestSuite(net.sf.antcontrib.cpptasks.TestCUtil.class); + addTestSuite(net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestCCTask.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestCompilerEnum.class); + addTestSuite(net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestDependencyTable.class); + addTestSuite(net.sf.antcontrib.cpptasks.types.TestDefineArgument.class); + addTestSuite(net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestLinkerDef.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestTargetInfo.class); + addTestSuite(net.sf.antcontrib.cpptasks.types.TestLibrarySet.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestCompilerDef.class); + addTestSuite(net.sf.antcontrib.cpptasks.parser.TestCParser.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestTargetHistoryTable.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestOutputTypeEnum.class); + addTestSuite(net.sf.antcontrib.cpptasks.compiler.TestLinkType.class); + addTestSuite(net.sf.antcontrib.cpptasks.TestLinkerEnum.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestGccLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.gcc.TestGccLinker.class); + addTestSuite(net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.hp.TestaCCCompiler.class); + addTestSuite(net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler.class); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java b/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java new file mode 100644 index 0000000..82faae2 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java @@ -0,0 +1,128 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.util.Hashtable; +import java.util.Vector; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; + +/** + * Tests for CCTask. + * + */ +public final class TestCCTask + extends TestCase { + /** + * Constructor. + * @param name test name + * + */ + public TestCCTask(final String name) { + super(name); + } + + /** + * Test that a target with no existing object file is + * returned by getTargetsToBuildByConfiguration. + */ + public void testGetTargetsToBuildByConfiguration1() { + CompilerConfiguration config1 = new CommandLineCompilerConfiguration( + (GccCCompiler) GccCCompiler.getInstance(), "dummy", + new File[0], new File[0], new File[0], "", new String[0], + new ProcessorParam[0], true, new String[0]); + TargetInfo target1 = new TargetInfo(config1, new File[] {new File( + "src/foo.bar")} + , null, new File("foo.obj"), true); + Hashtable targets = new Hashtable(); + targets.put(target1.getOutput(), target1); + Hashtable targetsByConfig = CCTask + .getTargetsToBuildByConfiguration(targets); + Vector targetsForConfig1 = (Vector) targetsByConfig.get(config1); + assertNotNull(targetsForConfig1); + assertEquals(1, targetsForConfig1.size()); + TargetInfo targetx = (TargetInfo) targetsForConfig1.elementAt(0); + assertSame(target1, targetx); + } + + /** + * Test that a target that is up to date is not returned by + * getTargetsToBuildByConfiguration. + * + */ + public void testGetTargetsToBuildByConfiguration2() { + CompilerConfiguration config1 = new CommandLineCompilerConfiguration( + (GccCCompiler) GccCCompiler.getInstance(), "dummy", + new File[0], new File[0], new File[0], "", new String[0], + new ProcessorParam[0], false, new String[0]); + // + // target doesn't need to be rebuilt + // + TargetInfo target1 = new TargetInfo(config1, new File[] {new File( + "src/foo.bar")} + , null, new File("foo.obj"), false); + Hashtable targets = new Hashtable(); + targets.put(target1.getOutput(), target1); + // + // no targets need to be built, return a zero-length hashtable + // + Hashtable targetsByConfig = CCTask + .getTargetsToBuildByConfiguration(targets); + assertEquals(0, targetsByConfig.size()); + } + + /** + * Tests that the default value of failonerror is true. + */ + public void testGetFailOnError() { + CCTask task = new CCTask(); + boolean failOnError = task.getFailonerror(); + assertEquals(true, failOnError); + } + + /** + * Tests that setting failonerror is effective. + */ + public void testSetFailOnError() { + CCTask task = new CCTask(); + task.setFailonerror(false); + boolean failOnError = task.getFailonerror(); + assertEquals(false, failOnError); + task.setFailonerror(true); + failOnError = task.getFailonerror(); + assertEquals(true, failOnError); + } + + /** + * Test checks for the presence of antlib.xml. + * @throws IOException if stream can't be closed. + * + */ + public void testAntlibXmlPresent() throws IOException { + InputStream stream = TestCCTask.class.getClassLoader() + .getResourceAsStream("net/sf/antcontrib/cpptasks/antlib.xml"); + if (stream != null) { + stream.close(); + } + assertNotNull("antlib.xml missing", stream); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestCUtil.java b/src/test/java/net/sf/antcontrib/cpptasks/TestCUtil.java new file mode 100644 index 0000000..42b86d3 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestCUtil.java @@ -0,0 +1,153 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.IOException; + +import junit.framework.TestCase; +/** + * Tests for CUtil class + */ +public class TestCUtil extends TestCase { + public TestCUtil(String name) { + super(name); + } + public void testGetPathFromEnvironment() { + File[] files = CUtil.getPathFromEnvironment("LIB", ";"); + assertNotNull(files); + } + public void testGetRelativePath1() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, new File( + "/foo/bar/baz")); + assertEquals("baz", rel); + } + public void testGetRelativePath2() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil + .getRelativePath(canonicalBase, new File("/foo/bar/")); + assertEquals(".", rel); + } + public void testGetRelativePath3() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, + new File("/foo/bar/a")); + assertEquals("a", rel); + } + public void testGetRelativePath4() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, new File("/foo/")); + assertEquals("..", rel); + } + public void testGetRelativePath5() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, new File("/a")); + String expected = ".." + File.separator + ".." + File.separator + "a"; + assertEquals(expected, rel); + } + public void testGetRelativePath6() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, new File( + "/foo/baz/bar")); + String expected = ".." + File.separator + "baz" + File.separator + + "bar"; + assertEquals(expected, rel); + } + public void testGetRelativePath7() throws IOException { + String canonicalBase = new File("/foo/bar/").getCanonicalPath(); + // + // skip the UNC test unless running on Windows + // + String osName = System.getProperty("os.name"); + if (osName.indexOf("Windows") >= 0) { + File uncFile = new File("\\\\fred\\foo.bar"); + String uncPath; + try { + uncPath = uncFile.getCanonicalPath(); + } catch (IOException ex) { + uncPath = uncFile.toString(); + } + String rel = CUtil.getRelativePath(canonicalBase, uncFile); + assertEquals(uncPath, rel); + } + } + public void testGetRelativePath8() throws IOException { + String canonicalBase = new File("/foo/bar/something").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, + new File("/foo/bar/something.extension")); + String expected = ".." + File.separator + "something.extension"; + assertEquals(expected, rel); + } + public void testGetRelativePath9() throws IOException { + String canonicalBase = new +File("/foo/bar/something").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, + new File("/foo/bar/somethingElse")); + String expected = ".." + File.separator + "somethingElse"; + assertEquals(expected, rel); + } + public void testGetRelativePath10() throws IOException { + String canonicalBase = new +File("/foo/bar/something").getCanonicalPath(); + String rel = CUtil.getRelativePath(canonicalBase, + new File("/foo/bar/something else")); + String expected = ".." + File.separator + "something else"; + assertEquals(expected, rel); + } + public void testParsePath1() { + File[] files = CUtil.parsePath("", ";"); + assertEquals(0, files.length); + } + public void testParsePath2() { + String workingDir = System.getProperty("user.dir"); + File[] files = CUtil.parsePath(workingDir, ";"); + assertEquals(1, files.length); + File workingDirFile = new File(workingDir); + assertEquals(workingDirFile, files[0]); + } + public void testParsePath3() { + String workingDir = System.getProperty("user.dir"); + File[] files = CUtil.parsePath(workingDir + ";", ";"); + assertEquals(1, files.length); + assertEquals(new File(workingDir), files[0]); + } + public void testParsePath4() { + String workingDir = System.getProperty("user.dir"); + String javaHome = System.getProperty("java.home"); + File[] files = CUtil.parsePath(workingDir + ";" + javaHome, ";"); + assertEquals(2, files.length); + assertEquals(new File(workingDir), files[0]); + assertEquals(new File(javaHome), files[1]); + } + public void testParsePath5() { + String workingDir = System.getProperty("user.dir"); + String javaHome = System.getProperty("java.home"); + File[] files = CUtil.parsePath(workingDir + ";" + javaHome + ";", ";"); + assertEquals(2, files.length); + assertEquals(new File(workingDir), files[0]); + assertEquals(new File(javaHome), files[1]); + } + + /** + * Test of xmlAttributeEncode. + * + * See patch 1267472 and bug 1032302. + */ + public void testXmlEncode() { + assertEquals("<"boo">", CUtil.xmlAttribEncode("<\"boo\">")); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerDef.java b/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerDef.java new file mode 100644 index 0000000..12e1967 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerDef.java @@ -0,0 +1,357 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.io.IOException; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.Compiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +import net.sf.antcontrib.cpptasks.types.CompilerArgument; +import net.sf.antcontrib.cpptasks.types.ConditionalPath; +import net.sf.antcontrib.cpptasks.types.DefineArgument; +import net.sf.antcontrib.cpptasks.types.DefineSet; +import net.sf.antcontrib.cpptasks.types.IncludePath; +import net.sf.antcontrib.cpptasks.types.SystemIncludePath; +import net.sf.antcontrib.cpptasks.types.UndefineArgument; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; + +/** + * Tests for CompilerDef. + */ +public final class TestCompilerDef + extends TestProcessorDef { + /** + * Constructor. + * + * @param name + * test name + */ + public TestCompilerDef(final String name) { + super(name); + } + + /** + * Creates a new processor. + * + * @return new processor + */ + protected ProcessorDef create() { + return new CompilerDef(); + } + + /** + * This method tests CompilerDef.getActiveDefines. + * + * A CompilerDef is created similar to what would be created for + * + * + * + * Then getActiveDefines is called for a project without and with the + * "debug" property defined. Return value from getActiveDefines should + * contain one member + */ + public void testGetActiveDefines() { + Project project = new org.apache.tools.ant.Project(); + CompilerDef def = new CompilerDef(); + def.setProject(project); + DefineSet defset = new DefineSet(); + DefineArgument arg1 = new DefineArgument(); + arg1.setName("DEBUG"); + arg1.setIf("debug"); + defset.addDefine(arg1); + DefineArgument arg2 = new DefineArgument(); + arg2.setName("NDEBUG"); + arg2.setUnless("debug"); + defset.addDefine(arg2); + def.addConfiguredDefineset(defset); + // + // Evaluate without "debug" set + // + UndefineArgument[] activeArgs = def.getActiveDefines(); + assertEquals(1, activeArgs.length); + assertEquals("NDEBUG", activeArgs[0].getName()); + // + // Set the "debug" property + // + project.setProperty("debug", ""); + activeArgs = def.getActiveDefines(); + assertEquals(1, activeArgs.length); + assertEquals("DEBUG", activeArgs[0].getName()); + } + + /** + * This method tests CompilerDef.getActiveIncludePath. + * + * A CompilerDef is created similar to what would be created for + * + * + * + * and is evaluate for a project without and without "debug" set + */ + public void testGetActiveIncludePaths() { + Project project = new org.apache.tools.ant.Project(); + CompilerDef def = new CompilerDef(); + def.setProject(project); + ConditionalPath path = def.createIncludePath(); + path.setLocation(new File("..")); + path.setIf("debug"); + // + // Evaluate without "debug" set + // + String[] includePaths = def.getActiveIncludePaths(); + assertEquals(0, includePaths.length); + // + // Set the "debug" property + // + project.setProperty("debug", ""); + includePaths = def.getActiveIncludePaths(); + assertEquals(1, includePaths.length); + } + + /** + * Tests that setting classname to the Gcc compiler is effective. + */ + public void testGetGcc() { + CompilerDef compilerDef = (CompilerDef) create(); + compilerDef.setClassname("net.sf.antcontrib.cpptasks.gcc.GccCCompiler"); + Compiler comp = (Compiler) compilerDef.getProcessor(); + assertNotNull(comp); + assertSame(GccCCompiler.getInstance(), comp); + } + + /** + * Tests that setting classname to the MSVC compiler is effective. + */ + public void testGetMSVC() { + CompilerDef compilerDef = (CompilerDef) create(); + compilerDef + .setClassname( + "net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler"); + Compiler comp = (Compiler) compilerDef.getProcessor(); + assertNotNull(comp); + assertSame(DevStudioCCompiler.getInstance(), comp); + } + + /** + * Tests that setting classname to an bogus class name results in a + * BuildException. + */ + public void testUnknownClass() { + CompilerDef compilerDef = (CompilerDef) create(); + try { + compilerDef + .setClassname("net.sf.antcontrib.cpptasks.bogus.BogusCompiler"); + } catch (BuildException ex) { + return; + } + fail("Exception not thrown"); + } + + /** + * Test that setting classname to a class that doesn't support Compiler + * throws a BuildException. + * + */ + public void testWrongType() { + CompilerDef compilerDef = (CompilerDef) create(); + try { + compilerDef + .setClassname("net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker"); + } catch (BuildException ex) { + return; + } + fail("Exception not thrown"); + } + + /** + * Gets the command line arguments that precede filenames. + * + * @param processor + * processor under test + * @return command line arguments + */ + protected String[] getPreArguments(final ProcessorDef processor) { + return ((CommandLineCompilerConfiguration) getConfiguration(processor)) + .getPreArguments(); + } + + /** + * Tests if a fileset enclosed in the base compiler definition is effective. + * + * @throws IOException + * if unable to create or delete a temporary file + */ + public void testExtendsFileSet() throws IOException { + super.testExtendsFileSet(File.createTempFile("cpptaskstest", ".cpp")); + } + + /** + * Tests if the rebuild attribute of the base compiler definition is + * effective. + * + */ + public void testExtendsRebuild() { + testExtendsRebuild(new CompilerDef()); + } + + /** + * Tests that compilerarg's contained in the base compiler definition are + * effective. + */ + public void testExtendsCompilerArgs() { + CompilerDef baseLinker = new CompilerDef(); + CompilerArgument linkerArg = new CompilerArgument(); + linkerArg.setValue("/base"); + baseLinker.addConfiguredCompilerArg(linkerArg); + CompilerDef extendedLinker = (CompilerDef) createExtendedProcessorDef( + baseLinker); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals(2, preArgs.length); + assertEquals("/base", preArgs[0]); + } + + /** + * Tests that defineset's contained in the base compiler definition are + * effective. + */ + public void testExtendsDefineSet() { + CompilerDef baseCompiler = new CompilerDef(); + DefineSet defSet = new DefineSet(); + DefineArgument define = new DefineArgument(); + define.setName("foo"); + define.setValue("bar"); + defSet.addDefine(define); + baseCompiler.addConfiguredDefineset(defSet); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals(2, preArgs.length); + assertEquals("-Dfoo=bar", preArgs[1]); + } + + /** + * Tests that includepath's contained in the base compiler definition are + * effective. + */ + public void testExtendsIncludePath() { + CompilerDef baseCompiler = new CompilerDef(); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + IncludePath path = baseCompiler.createIncludePath(); + path.setPath("/tmp"); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals(2, preArgs.length); + assertEquals("-I", preArgs[1].substring(0, 2)); + } + + /** + * Tests that sysincludepath's contained in the base compiler definition are + * effective. + */ + public void testExtendsSysIncludePath() { + CompilerDef baseCompiler = new CompilerDef(); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + SystemIncludePath path = baseCompiler.createSysIncludePath(); + path.setPath("/tmp"); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals(2, preArgs.length); + assertEquals("-I", preArgs[1].substring(0, 2)); + } + + /** + * Sets the name attribute. + * + * @param compiler + * compiler under test + * @param name + * compiler name + */ + private static void setCompilerName(final CompilerDef compiler, + final String name) { + CompilerEnum compilerName = new CompilerEnum(); + compilerName.setValue(name); + compiler.setName(compilerName); + } + + /** + * Tests that the extend attribute of the base compiler definition is + * effective. + */ + public void testExtendsExceptions() { + CompilerDef baseCompiler = new CompilerDef(); + baseCompiler.setExceptions(true); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + setCompilerName(extendedCompiler, "msvc"); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals("/EHsc", preArgs[2]); + } + + /** + * Tests that the multithread attribute of the base compiler definition is + * effective. + */ + public void testExtendsMultithreaded() { + CompilerDef baseCompiler = new CompilerDef(); + baseCompiler.setMultithreaded(false); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + setCompilerName(extendedCompiler, "msvc"); + CCTask cctask = new CCTask(); + LinkType linkType = new LinkType(); + linkType.setStaticRuntime(true); + CommandLineCompilerConfiguration config = (CommandLineCompilerConfiguration) + extendedCompiler + .createConfiguration(cctask, linkType, null, null, null); + String[] preArgs = config.getPreArguments(); + assertEquals("/ML", preArgs[3]); + } + + /** + * Tests that the name attribute in the base compiler is effective. + */ + public void testExtendsName() { + CompilerDef baseCompiler = new CompilerDef(); + setCompilerName(baseCompiler, "msvc"); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + extendedCompiler.setExceptions(true); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals("/EHsc", preArgs[2]); + } + + /** + * Tests that the classname attribute in the base compiler is effective. + */ + public void testExtendsClassname() { + CompilerDef baseCompiler = new CompilerDef(); + baseCompiler + .setClassname( + "net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler"); + CompilerDef extendedCompiler = (CompilerDef) createExtendedProcessorDef( + baseCompiler); + extendedCompiler.setExceptions(true); + String[] preArgs = getPreArguments(extendedCompiler); + assertEquals("/EHsc", preArgs[2]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerEnum.java b/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerEnum.java new file mode 100644 index 0000000..6fc72ba --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestCompilerEnum.java @@ -0,0 +1,51 @@ +/* + * + * Copyright 2002-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import junit.framework.TestCase; + +import org.apache.tools.ant.BuildException; +/** + * Tests for CompilerEnum. + */ +public class TestCompilerEnum extends TestCase { + /** + * Create instance of TestCompilerEnum. + * @param name test name. + */ + public TestCompilerEnum(final String name) { + super(name); + } + /** + * Test that "gcc" is recognized as a compiler enum. + */ + public void testCompilerEnum1() { + CompilerEnum compilerEnum = new CompilerEnum(); + compilerEnum.setValue("gcc"); + assertTrue(compilerEnum.getIndex() >= 0); + } + /** + * Test that "bogus" is not recognized as a compiler enum. + */ + public void testCompilerEnum2() { + CompilerEnum compilerEnum = new CompilerEnum(); + try { + compilerEnum.setValue("bogus"); + fail(); + } catch (BuildException ex) { + } + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestDependencyTable.java b/src/test/java/net/sf/antcontrib/cpptasks/TestDependencyTable.java new file mode 100644 index 0000000..0796353 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestDependencyTable.java @@ -0,0 +1,73 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.IOException; + +import javax.xml.parsers.ParserConfigurationException; + +import org.xml.sax.SAXException; +/** + * DependencyTable tests + * + * @author curta + */ +public class TestDependencyTable extends TestXMLConsumer { + /** + * Constructor + * + * @param testName + * test name + */ + public TestDependencyTable(String testName) { + super(testName); + } + /** + * Loads a dependency file from OpenSHORE (http://www.openshore.org) + * + * @throws IOException + */ + public void testLoadOpenshore() throws IOException, + ParserConfigurationException, SAXException { + String tmpDir = System.getProperty("java.io.tmpdir"); + try { + copyResourceToTmpDir("openshore/dependencies.xml", + "dependencies.xml"); + DependencyTable dependencies = new DependencyTable(new File(tmpDir)); + dependencies.load(); + } finally { + deleteTmpFile("dependencies.xml"); + } + } + /** + * Loads a dependency file from Xerces-C (http://xml.apache.org) + * + * @throws IOException + */ + public void testLoadXerces() throws IOException, + ParserConfigurationException, SAXException { + String tmpDir = System.getProperty("java.io.tmpdir"); + try { + copyResourceToTmpDir("xerces-c/dependencies.xml", + "dependencies.xml"); + DependencyTable dependencies = new DependencyTable(new File(tmpDir)); + dependencies.load(); + } finally { + deleteTmpFile("dependencies.xml"); + } + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerDef.java b/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerDef.java new file mode 100644 index 0000000..994b068 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerDef.java @@ -0,0 +1,374 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.io.IOException; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker; +import net.sf.antcontrib.cpptasks.gcc.GccLinker; +import net.sf.antcontrib.cpptasks.types.FlexLong; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LinkerArgument; +import net.sf.antcontrib.cpptasks.types.SystemLibrarySet; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.FlexInteger; +import org.apache.tools.ant.types.Reference; + +/** + * Tests for LinkerDef class. + */ +public final class TestLinkerDef + extends TestProcessorDef { + /** + * Constructor. + * + * @param name + * test name + */ + public TestLinkerDef(final String name) { + super(name); + } + + /** + * Creates a processor. + * + * @return new linker + */ + protected ProcessorDef create() { + return new LinkerDef(); + } + + /** + * Test if setting the classname attribute to the name of the GCC linker + * results in the singleton GCC linker. + */ + public void testGetGcc() { + LinkerDef linkerDef = (LinkerDef) create(); + linkerDef.setClassname("net.sf.antcontrib.cpptasks.gcc.GccLinker"); + Linker comp = (Linker) linkerDef.getProcessor(); + assertNotNull(comp); + assertSame(GccLinker.getInstance(), comp); + } + + /** + * Test if setting the classname attribute to the name of the MSVC linker + * results in the singleton MSVC linker. + */ + public void testGetMSVC() { + LinkerDef linkerDef = (LinkerDef) create(); + linkerDef + .setClassname("net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker"); + Linker comp = (Linker) linkerDef.getProcessor(); + assertNotNull(comp); + assertSame(DevStudioLinker.getInstance(), comp); + } + + /** + * Tests if setting the classname attribute to an bogus classname results in + * a BuildException. + * + */ + public void testUnknownClass() { + LinkerDef linkerDef = (LinkerDef) create(); + try { + linkerDef + .setClassname("net.sf.antcontrib.cpptasks.bogus.BogusLinker"); + } catch (BuildException ex) { + return; + } + fail("should have thrown exception"); + } + + /** + * Tests if setting the classname to the name of a class that doesn't + * support Linker throws a BuildException. + * + */ + public void testWrongType() { + LinkerDef linkerDef = (LinkerDef) create(); + try { + linkerDef.setClassname("net.sf.antcontrib.cpptasks.CCTask"); + } catch (ClassCastException ex) { + return; + } + fail("should have thrown exception"); + } + + /** + * Gets the command line arguments that appear before the filenames. + * + * @param processor processor under test + * @return command line arguments + */ + protected String[] getPreArguments(final ProcessorDef processor) { + return ((CommandLineLinkerConfiguration) getConfiguration(processor)) + .getPreArguments(); + } + + /** + * Sets the name attribute. + * + * @param linker + * linker defintion + * @param name + * linker name + */ + private static void setLinkerName(final LinkerDef linker, + final String name) { + LinkerEnum linkerName = new LinkerEnum(); + linkerName.setValue(name); + linker.setName(linkerName); + } + + /** + * Tests that linkerarg's that appear in the base linker are effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsLinkerArgs() { + LinkerDef baseLinker = new LinkerDef(); + LinkerArgument linkerArg = new LinkerArgument(); + linkerArg.setValue("/base"); + baseLinker.addConfiguredLinkerArg(linkerArg); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals(1, preArgs.length); + assertEquals("/base", preArgs[0]); + } + + /** + * Verify linkerarg's that appear in the base linker are effective when + * 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]); + } + + /** + * Tests that fileset's that appear in the base linker are effective when + * creating the command line for a linker that extends it. + * @throws IOException if unable to create or delete temporary file + */ + public void testExtendsFileSet() throws IOException { + super.testExtendsFileSet(File.createTempFile("cpptaskstest", ".o")); + } + + /** + * Tests that libset's that appear in the base linker are effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsLibSet() { + LinkerDef baseLinker = new LinkerDef(); + LibrarySet libset = new LibrarySet(); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + libset.setProject(baseLinker.getProject()); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("advapi32"); + libset.setLibs(libs); + baseLinker.addLibset(libset); + CommandLineLinkerConfiguration config = (CommandLineLinkerConfiguration) + getConfiguration(extendedLinker); + String[] libnames = config.getLibraryNames(); + assertEquals(1, libnames.length); + assertEquals("advapi32", libnames[0]); + } + + /** + * Tests that syslibset's that appear in the base linker are effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsSysLibSet() { + LinkerDef baseLinker = new LinkerDef(); + SystemLibrarySet libset = new SystemLibrarySet(); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + libset.setProject(baseLinker.getProject()); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("advapi32"); + libset.setLibs(libs); + baseLinker.addSyslibset(libset); + CommandLineLinkerConfiguration config = (CommandLineLinkerConfiguration) + getConfiguration(extendedLinker); + String[] libnames = config.getLibraryNames(); + assertEquals(1, libnames.length); + assertEquals("advapi32", libnames[0]); + } + + /** + * Tests that the base attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsBase() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setBase(new FlexLong("10000")); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + setLinkerName(extendedLinker, "msvc"); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/BASE:0x2710", preArgs[3]); + } + + /** + * Tests that the stack attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsStack() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setStack(new FlexInteger("10000")); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + setLinkerName(extendedLinker, "msvc"); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/STACK:0x2710", preArgs[3]); + } + + /** + * Tests that the entry attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsEntry() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setEntry("foo"); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("-e", preArgs[0]); + assertEquals("foo", preArgs[1]); + } + + /** + * Tests that the fixed attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsFixed() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setFixed(true); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + setLinkerName(extendedLinker, "msvc"); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/FIXED", preArgs[3]); + } + + /** + * Tests that the incremental attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsIncremental() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setIncremental(true); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + setLinkerName(extendedLinker, "msvc"); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:YES", preArgs[2]); + } + + /** + * Tests that the map attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsMap() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker.setMap(true); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + setLinkerName(extendedLinker, "msvc"); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/MAP", preArgs[3]); + } + + /** + * Tests that the rebuild attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsRebuild() { + testExtendsRebuild(new LinkerDef()); + } + + /** + * Tests that the name attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsName() { + LinkerDef baseLinker = new LinkerDef(); + setLinkerName(baseLinker, "msvc"); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + extendedLinker.setBase(new FlexLong("10000")); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/BASE:0x2710", preArgs[3]); + } + + /** + * Tests that the classname attribute in the base linker is effective when + * creating the command line for a linker that extends it. + */ + public void testExtendsClassname() { + LinkerDef baseLinker = new LinkerDef(); + baseLinker + .setClassname("net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker"); + LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef( + baseLinker); + extendedLinker.setBase(new FlexLong("10000")); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("/NOLOGO", preArgs[0]); + assertEquals("/SUBSYSTEM:WINDOWS", preArgs[1]); + assertEquals("/INCREMENTAL:NO", preArgs[2]); + assertEquals("/BASE:0x2710", preArgs[3]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerEnum.java b/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerEnum.java new file mode 100644 index 0000000..2726750 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestLinkerEnum.java @@ -0,0 +1,40 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import junit.framework.TestCase; +/** + * + * Tests for LinkerEnum + * + * @author CurtA + */ +public class TestLinkerEnum extends TestCase { + /** + * @param name test case name + */ + public TestLinkerEnum(String name) { + super(name); + } + /** + * Test checks that enumeration contains value g++ + * + * See patch [ 676276 ] Enhanced support for Mac OS X + */ + public void testContainsValueGpp() { + assertTrue(new LinkerEnum().containsValue("g++")); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.java b/src/test/java/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.java new file mode 100644 index 0000000..61bb2b7 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.java @@ -0,0 +1,39 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import junit.framework.TestCase; +/** + * @author CurtA + */ +public class TestOutputTypeEnum extends TestCase { + /** + * Default constructor + * + * @see junit.framework.TestCase#TestCase(String) + */ + public TestOutputTypeEnum(String name) { + super(name); + } + /** + * Test checks that output type enum contains "plugin" + * + * See patch [ 676276 ] Enhanced support for Mac OS X + */ + public void testContainsValuePlugin() { + assertTrue(new OutputTypeEnum().containsValue("plugin")); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestProcessorDef.java b/src/test/java/net/sf/antcontrib/cpptasks/TestProcessorDef.java new file mode 100644 index 0000000..c4e2905 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestProcessorDef.java @@ -0,0 +1,278 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.io.IOException; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.types.ConditionalFileSet; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.Reference; + +/** + * Tests for ProcessorDef. + */ +public abstract class TestProcessorDef + extends TestCase { + + /** + * Constructor. + * + * @param name + * test name + */ + public TestProcessorDef(final String name) { + super(name); + } + + /** + * Creates a new processor definition. + * + * @return created processor definition + */ + protected abstract ProcessorDef create(); + + /** + * Tests that isActive returns true when "if" references a set property. + */ + public final void testIsActive2() { + ProcessorDef arg = create(); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setProject(project); + arg.setIf("cond"); + assertTrue(arg.isActive()); + } + + /** + * Tests that isActive returns false when "if" references an unset property. + */ + public final void testIsActive3() { + ProcessorDef arg = create(); + arg.setProject(new Project()); + arg.setIf("cond"); + assertTrue(!arg.isActive()); + } + + /** + * Tests that evaluating isActive when "if" refernces a property with the + * value "false" throws an exception to warn of a suspicious value. + * + */ + public final void testIsActive4() { + ProcessorDef arg = create(); + Project project = new Project(); + project.setProperty("cond", "false"); + arg.setProject(project); + arg.setIf("cond"); + try { + boolean isActive = arg.isActive(); + } catch (BuildException ex) { + return; + } + fail("Should throw exception for suspicious value"); + } + + /** + * Tests that isActive returns false when "unless" references a set + * property. + */ + public final void testIsActive5() { + ProcessorDef arg = create(); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setProject(project); + arg.setUnless("cond"); + assertTrue(!arg.isActive()); + } + + /** + * Tests that isActive returns true when "unless" references an unset + * property. + */ + public final void testIsActive6() { + ProcessorDef arg = create(); + arg.setProject(new Project()); + arg.setUnless("cond"); + assertTrue(arg.isActive()); + } + + /** + * Tests that evaluating isActive when "unless" references a property with + * the value "false" throws an exception to warn of a suspicious value. + * + */ + public final void testIsActive7() { + ProcessorDef arg = create(); + Project project = new Project(); + project.setProperty("cond", "false"); + arg.setProject(project); + arg.setUnless("cond"); + try { + boolean isActive = arg.isActive(); + } catch (BuildException ex) { + return; + } + fail("Should throw exception for suspicious value"); + } + + /** + * Tests if a processor is active when both "if" and "unless" are specified + * and the associated properties are set. + * + */ + public final void testIsActive8() { + ProcessorDef arg = create(); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setProject(project); + arg.setIf("cond"); + arg.setUnless("cond"); + assertTrue(!arg.isActive()); + } + + /** + * Creates a processor initialized to be an extension of the base processor. + * + * @param baseProcessor + * base processor + * @return extending processor + */ + protected final ProcessorDef createExtendedProcessorDef( + final ProcessorDef baseProcessor) { + Project project = new Project(); + baseProcessor.setProject(project); + baseProcessor.setId("base"); + project.addReference("base", baseProcessor); + ProcessorDef extendedLinker = create(); + extendedLinker.setProject(project); + extendedLinker.setExtends(new Reference("base")); + return extendedLinker; + } + + /** + * Gets the processor configuration. + * + * @param extendedProcessor + * processor under test + * @return configuration + */ + protected final ProcessorConfiguration getConfiguration( + final ProcessorDef extendedProcessor) { + CCTask cctask = new CCTask(); + LinkType linkType = new LinkType(); + return extendedProcessor.createConfiguration(cctask, + linkType, + null, + null, + null); + } + + /** + * Gets command line arguments that precede filenames. + * + * @param processor + * processor under test + * @return array of command line parameters + */ + protected abstract String[] getPreArguments(final ProcessorDef processor); + + /** + * Tests that a fileset in the base processor is effective when evaluating + * the files included in an extending processor. + * + * @param tempFile + * temporary file + * @throws IOException + * if unable to delete file + */ + protected final void testExtendsFileSet(final File tempFile) throws + IOException { + ProcessorDef baseLinker = create(); + ConditionalFileSet fileSet = new ConditionalFileSet(); + ProcessorDef extendedLinker = createExtendedProcessorDef(baseLinker); + fileSet.setProject(baseLinker.getProject()); + fileSet.setDir(new File(tempFile.getParent())); + fileSet.setIncludes(tempFile.getName()); + baseLinker.addFileset(fileSet); + MockFileCollector collector = new MockFileCollector(); + extendedLinker.visitFiles(collector); + tempFile.delete(); + assertEquals(1, collector.size()); + } + + /** + * Tests that the if attribute in the base processor is effective when + * evaluating if an extending processor is active. + */ + public final void testExtendsIf() { + ProcessorDef baseLinker = create(); + baseLinker.setIf("bogus"); + ProcessorDef extendedLinker = createExtendedProcessorDef(baseLinker); + boolean isActive = extendedLinker.isActive(); + assertEquals(false, isActive); + baseLinker.getProject().setProperty("bogus", ""); + isActive = extendedLinker.isActive(); + assertEquals(true, isActive); + } + + /** + * Tests that the unless attribute in the base processor is effective when + * evaluating if an extending processor is active. + */ + public final void testExtendsUnless() { + ProcessorDef baseLinker = create(); + baseLinker.setUnless("bogus"); + ProcessorDef extendedLinker = createExtendedProcessorDef(baseLinker); + boolean isActive = extendedLinker.isActive(); + assertEquals(true, isActive); + baseLinker.getProject().setProperty("bogus", ""); + isActive = extendedLinker.isActive(); + assertEquals(false, isActive); + } + + /** + * Tests that the debug attribute in the base processor is effective when + * creating the command line for a processor that extends it. + */ + public final void testExtendsDebug() { + ProcessorDef baseLinker = create(); + baseLinker.setDebug(true); + ProcessorDef extendedLinker = createExtendedProcessorDef(baseLinker); + String[] preArgs = getPreArguments(extendedLinker); + assertEquals("-g", preArgs[preArgs.length - 1]); + } + + /** + * Tests that the rebuild attribute in the base processor is effective when + * creating the command line for a processor that extends it. + * + * @param baseProcessor + * processor under test + */ + protected final void testExtendsRebuild( + final ProcessorDef baseProcessor) { + baseProcessor.setRebuild(true); + ProcessorDef extendedLinker = createExtendedProcessorDef(baseProcessor); + ProcessorConfiguration config = getConfiguration(extendedLinker); + boolean rebuild = config.getRebuild(); + assertEquals(true, rebuild); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.java b/src/test/java/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.java new file mode 100644 index 0000000..b105eb6 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.java @@ -0,0 +1,141 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; + +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.VersionInfo; +/** + * Tests for TargetHistoryTable + * + * @author CurtA + */ +public class TestTargetHistoryTable extends TestXMLConsumer { + public static class MockProcessorConfiguration + implements + ProcessorConfiguration { + public MockProcessorConfiguration() { + } + public int bid(String fileName) { + return 100; + } + public String getIdentifier() { + return "Mock Configuration"; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + return new String[] { baseName }; + } + public ProcessorParam[] getParams() { + return new ProcessorParam[0]; + } + public boolean getRebuild() { + return false; + } + } + /** + * Constructor + * + * @param name + * test case name + * @see junit.framework.TestCase#TestCase(String) + */ + public TestTargetHistoryTable(String name) { + super(name); + } + /** + * Tests loading a stock history file + * + * @throws IOException + */ + public void testLoadOpenshore() throws IOException { + try { + copyResourceToTmpDir("openshore/history.xml", "history.xml"); + CCTask task = new CCTask(); + String tmpDir = System.getProperty("java.io.tmpdir"); + TargetHistoryTable history = new TargetHistoryTable(task, new File( + tmpDir)); + } finally { + deleteTmpFile("history.xml"); + } + } + /** + * Tests loading a stock history file + * + * @throws IOException + */ + public void testLoadXerces() throws IOException { + try { + copyResourceToTmpDir("xerces-c/history.xml", "history.xml"); + CCTask task = new CCTask(); + String tmpDir = System.getProperty("java.io.tmpdir"); + TargetHistoryTable history = new TargetHistoryTable(task, new File( + tmpDir)); + } finally { + deleteTmpFile("history.xml"); + } + } + /** + * Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix + * + * @throws IOException + */ + public void testUpdateTimeResolution() throws IOException { + File compiledFile = null; + try { + // + // delete any history file that might exist + // in the test output directory + String tempDir = System.getProperty("java.io.tmpdir"); + File historyFile = new File(tempDir, "history.xml"); + if (historyFile.exists()) { + historyFile.delete(); + } + TargetHistoryTable table = new TargetHistoryTable(null, new File( + tempDir)); + // + // create a dummy compiled unit + // + compiledFile = new File(tempDir, "dummy.o"); + FileOutputStream compiledStream = new FileOutputStream(compiledFile); + compiledStream.close(); + // + // lastModified times can be slightly less than + // task start time due to file system resolution. + // Mimic this by slightly incrementing the last modification time. + // + long startTime = compiledFile.lastModified() + 1; + // + // update the table + // + table.update(new MockProcessorConfiguration(), + new String[]{"dummy.o"}, null); + // + // commit. If "compiled" file was judged to be + // valid we should have a history file. + // + table.commit(); + assertTrue("History file was not created", historyFile.exists()); + assertTrue("History file was empty", historyFile.length() > 10); + } finally { + if (compiledFile != null && compiledFile.exists()) { + compiledFile.delete(); + } + } + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestTargetInfo.java b/src/test/java/net/sf/antcontrib/cpptasks/TestTargetInfo.java new file mode 100644 index 0000000..5851805 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestTargetInfo.java @@ -0,0 +1,134 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +import org.apache.tools.ant.BuildException; +import net.sf.antcontrib.cpptasks.VersionInfo; + + +/** + * A description of a file built or to be built + */ +public class TestTargetInfo extends TestCase { + private class DummyConfiguration implements CompilerConfiguration { + public int bid(String filename) { + return 1; + } + public void close() { + } + public void compile(CCTask task, File workingDir, String[] source, + boolean relentless, ProgressMonitor monitor) + throws BuildException { + throw new BuildException("Not implemented"); + } + public CompilerConfiguration[] createPrecompileConfigurations( + File file, String[] exceptFiles) { + return null; + } + public String getIdentifier() { + return "dummy"; + } + public String[] getIncludeDirectories() { + return new String[0]; + } + public String getIncludePathIdentifier() { + return "dummyIncludePath"; + } + public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo) { + return new String[0]; + } + public CompilerParam getParam(String name) { + return null; + } + public ProcessorParam[] getParams() { + return new ProcessorParam[0]; + } + public boolean getRebuild() { + return false; + } + public boolean isPrecompileGeneration() { + return true; + } + public DependencyInfo parseIncludes(CCTask task, File baseDir, File file) { + return null; + } + } + public TestTargetInfo(String name) { + super(name); + } + public void testConstructorNullConfig() { + try { + new TargetInfo(null, new File[]{new File("")}, null, new File(""), + false); + fail("Didn't throw exception"); + } catch (NullPointerException ex) { + } + } + public void testConstructorNullOutput() { + CompilerConfiguration config = new DummyConfiguration(); + try { + new TargetInfo(config, new File[]{new File("")}, null, null, false); + fail("Didn't throw exception"); + } catch (NullPointerException ex) { + } + } + public void testConstructorNullSource() { + CompilerConfiguration config = new DummyConfiguration(); + try { + new TargetInfo(config, null, null, new File(""), false); + fail("Didn't throw exception"); + } catch (NullPointerException ex) { + } + } + public void testGetRebuild() { + CompilerConfiguration config = new DummyConfiguration(); + TargetInfo targetInfo = new TargetInfo(config, new File[]{new File( + "FoO.BaR")}, null, new File("foo.o"), false); + assertEquals(false, targetInfo.getRebuild()); + targetInfo = new TargetInfo(config, new File[]{new File("FoO.BaR")}, + null, new File("foo.o"), true); + assertEquals(true, targetInfo.getRebuild()); + } + public void testGetSource() { + CompilerConfiguration config = new DummyConfiguration(); + TargetInfo targetInfo = new TargetInfo(config, new File[]{new File( + "FoO.BaR")}, null, new File("foo.o"), false); + String source = targetInfo.getSources()[0].getName(); + assertEquals(source, "FoO.BaR"); + } + public void testHasSameSource() { + CompilerConfiguration config = new DummyConfiguration(); + TargetInfo targetInfo = new TargetInfo(config, new File[]{new File( + "foo.bar")}, null, new File("foo.o"), false); + boolean hasSame = targetInfo.getSources()[0] + .equals(new File("foo.bar")); + assertTrue(hasSame); + hasSame = targetInfo.getSources()[0].equals(new File("boo.far")); + assertEquals(hasSame, false); + } + public void testMustRebuild() { + CompilerConfiguration config = new DummyConfiguration(); + TargetInfo targetInfo = new TargetInfo(config, new File[]{new File( + "FoO.BaR")}, null, new File("foo.o"), false); + assertEquals(false, targetInfo.getRebuild()); + targetInfo.mustRebuild(); + assertEquals(true, targetInfo.getRebuild()); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestXMLConsumer.java b/src/test/java/net/sf/antcontrib/cpptasks/TestXMLConsumer.java new file mode 100644 index 0000000..5e7b007 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/TestXMLConsumer.java @@ -0,0 +1,96 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; + +import junit.framework.TestCase; +/** + * Base class for tests on classes that consume or public XML documents. + * + * @author Curt Arnold + * + */ +public abstract class TestXMLConsumer extends TestCase { + /** + * copies a resource to a temporary directory. + * + * @param resourceName + * resouce name, such as "files/openshore/history.xml". + * @param tmpFile name for temporary file created in /tmp or similar. + */ + public static final void copyResourceToTmpDir(String resourceName, + String tmpFile) throws IOException { + String tmpDir = System.getProperty("java.io.tmpdir"); + // + // attempt to get resource from jar + // (should succeed unless testing in IDE) + InputStream src = null; + if (TestTargetHistoryTable.class.getClassLoader().getResource( + resourceName) != null) { + src = TestTargetHistoryTable.class.getClassLoader() + .getResourceAsStream(resourceName); + } + // + // if not found, try to find it relative to the current directory + // + if (src == null) { + src = new FileInputStream(resourceName); + } + assertNotNull("Could not locate resource " + resourceName, src); + try { + File destFile = new File(tmpDir, tmpFile); + FileOutputStream dest = new FileOutputStream(destFile); + try { + int bytesRead = 0; + byte[] buffer = new byte[4096]; + do { + bytesRead = src.read(buffer); + if (bytesRead > 0) { + dest.write(buffer, 0, bytesRead); + } + } while (bytesRead == buffer.length); + } finally { + dest.close(); + } + } finally { + src.close(); + } + } + /** + * Deletes a file, if it exists, from the user's temporary directory. + * + * @param tmpName + * file name, may not be null + */ + public static void deleteTmpFile(String tmpName) throws IOException { + String tmpDir = System.getProperty("java.io.tmpdir"); + File tmpFile = new File(tmpDir, tmpName); + if (tmpFile.exists()) { + tmpFile.delete(); + } + } + /** + * @param testName + */ + protected TestXMLConsumer(final String testName) { + super(testName); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.java new file mode 100644 index 0000000..ddafc5e --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.java @@ -0,0 +1,37 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +import net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler; +/** + * Borland C++ Compiler adapter tests + * + * Override create to test concrete compiler implementions + */ +public class TestBorlandCCompiler extends TestAbstractCompiler { + public TestBorlandCCompiler(String name) { + super(name); + } + protected AbstractProcessor create() { + return BorlandCCompiler.getInstance(); + } + protected String getObjectExtension() { + return ".obj"; + } + public void testGetIdentfier() { + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.java new file mode 100644 index 0000000..5a1e66b --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.java @@ -0,0 +1,85 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CompilerDef; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +/** + * Test for abstract compiler class + * + * Override create to test concrete compiler implementions + */ +public class TestAbstractCompiler extends TestAbstractProcessor { + private class DummyAbstractCompiler extends AbstractCompiler { + public DummyAbstractCompiler() { + super(new String[]{".cpp", ".c"}, + new String[]{".hpp", ".h", ".inl"}, ".o"); + } + public void compile(CCTask task, File[] srcfile, File[] outputfile, + CompilerConfiguration config) throws BuildException { + throw new BuildException("Not implemented"); + } + public CompilerConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] def1, CompilerDef def2, + net.sf.antcontrib.cpptasks.TargetDef targetPlatform, + VersionInfo versionInfo) { + return null; + } + public Parser createParser(File file) { + return new CParser(); + } + public String getIdentifier() { + return "dummy"; + } + public Linker getLinker(LinkType type) { + return null; + } + } + public TestAbstractCompiler(String name) { + super(name); + } + protected AbstractProcessor create() { + return new DummyAbstractCompiler(); + } + protected String getObjectExtension() { + return ".o"; + } + public void testCanParseTlb() { + AbstractCompiler compiler = (AbstractCompiler) create(); + assertEquals(false, compiler.canParse(new File("sample.tlb"))); + } + public void testGetOutputFileName1() { + AbstractProcessor compiler = create(); + String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.c", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.c", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("hello.c", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null); + assertEquals(0, output.length); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null); + assertEquals(0, output.length); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.java new file mode 100644 index 0000000..b444a0a --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.java @@ -0,0 +1,89 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerDef; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.VersionInfo; + +/** + * Test for abstract compiler class + * + * Override create to test concrete compiler implementions + */ +public class TestAbstractLinker extends TestAbstractProcessor { + private class DummyAbstractLinker extends AbstractLinker { + public DummyAbstractLinker() { + super(new String[]{".obj", ".lib"}, new String[]{".map", ".exp"}); + } + public LinkerConfiguration createConfiguration(final CCTask task, + final LinkType linkType, + final ProcessorDef[] def1, + final LinkerDef def2, + final TargetDef targetPlatform, + final VersionInfo versionInfo) { + return null; + } + public String getIdentifier() { + return "dummy"; + } + public File[] getLibraryPath() { + return new File[0]; + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return libnames; + } + public Linker getLinker(LinkType type) { + return null; + } + public String[] getOutputFileNames(String sourceFile, VersionInfo versionInfo) { + return new String[0]; + } + public String[][] getRuntimeLibraries(boolean debug, + boolean multithreaded, boolean staticLink) { + return new String[2][0]; + } + public boolean isCaseSensitive() { + return true; + } + } + public TestAbstractLinker(String name) { + super(name); + } + protected AbstractProcessor create() { + return new DummyAbstractLinker(); + } + public void testBid() { + AbstractProcessor compiler = create(); + int bid = compiler.bid("c:/foo\\bar\\hello.obj"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar/hello.lib"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar\\hello.map"); + assertEquals(0, bid); + bid = compiler.bid("c:/foo\\bar/hello.map"); + assertEquals(0, bid); + bid = compiler.bid("c:/foo\\bar/hello.c"); + assertEquals(1, bid); + bid = compiler.bid("c:/foo\\bar/hello.cpp"); + assertEquals(1, bid); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.java new file mode 100644 index 0000000..f2c04a3 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.VersionInfo; +/** + * Test for abstract compiler class + * + * Override create to test concrete compiler implementions + */ +public class TestAbstractProcessor extends TestCase { + private class DummyAbstractProcessor extends AbstractProcessor { + public DummyAbstractProcessor() { + super(new String[]{".cpp", ".c"}, + new String[]{".hpp", ".h", ".inl"}); + } + public ProcessorConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] defaultProvider, + ProcessorDef specificProvider, + net.sf.antcontrib.cpptasks.TargetDef targetPlatform, + VersionInfo versionInfo) { + return null; + } + public String getIdentifier() { + return "dummy"; + } + public Linker getLinker(LinkType type) { + return null; + } + public String[] getOutputFileNames(String sourceFile, VersionInfo versionInfo) { + return new String[0]; + } + public String[][] getRuntimeLibraries(boolean debug, + boolean multithreaded, boolean staticLink) { + return new String[2][0]; + } + } + public TestAbstractProcessor(String name) { + super(name); + } + protected AbstractProcessor create() { + return new DummyAbstractProcessor(); + } + public void testBid() { + AbstractProcessor compiler = create(); + int bid = compiler.bid("c:/foo\\bar\\hello.c"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar/hello.c"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar\\hello.h"); + assertEquals(1, bid); + bid = compiler.bid("c:/foo\\bar/hello.h"); + assertEquals(1, bid); + bid = compiler.bid("c:/foo\\bar/hello.pas"); + assertEquals(0, bid); + bid = compiler.bid("c:/foo\\bar/hello.java"); + assertEquals(0, bid); + } + public void testGetIdentfier() { + AbstractProcessor compiler = create(); + String id = compiler.getIdentifier(); + assertEquals("dummy", id); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.java new file mode 100644 index 0000000..a22fa0d --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.java @@ -0,0 +1,59 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +/** + */ +public class TestCommandLineCompilerConfiguration + extends + TestCompilerConfiguration { + private final CommandLineCompiler compiler; + private final String compilerId; + public TestCommandLineCompilerConfiguration(String name) { + super(name); + compiler = (GccCCompiler) GccCCompiler.getInstance(); + compilerId = compiler.getIdentifier(); + } + protected CompilerConfiguration create() { + return new CommandLineCompilerConfiguration(compiler, "dummy", + new File[0], new File[0], new File[0], "", + new String[]{"/Id:/gcc"}, new ProcessorParam[0], false, + new String[0]); + } + public void testConstructorNullCompiler() { + try { + new CommandLineCompilerConfiguration(null, "dummy", new File[0], + new File[0], new File[0], "", new String[0], + new ProcessorParam[0], false, new String[0]); + fail("Should throw exception for null compiler"); + } catch (NullPointerException ex) { + } + } + public void testGetIdentifier() { + CompilerConfiguration config = create(); + String id = config.getIdentifier(); + assertEquals("dummy", id); + } + public void testToString() { + CompilerConfiguration config = create(); + String toString = config.toString(); + assertEquals("dummy", toString); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.java new file mode 100644 index 0000000..a928ae4 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.java @@ -0,0 +1,68 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import junit.framework.TestCase; +/** + */ +public abstract class TestCompilerConfiguration extends TestCase { + public TestCompilerConfiguration(String name) { + super(name); + } + protected abstract CompilerConfiguration create(); + public String getObjectFileExtension() { + return ".o"; + } + public void testBid() { + CompilerConfiguration compiler = create(); + int bid = compiler.bid("c:/foo\\bar\\hello.c"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar/hello.c"); + assertEquals(100, bid); + bid = compiler.bid("c:/foo\\bar\\hello.h"); + assertEquals(1, bid); + bid = compiler.bid("c:/foo\\bar/hello.h"); + assertEquals(1, bid); + bid = compiler.bid("c:/foo\\bar/hello.pas"); + assertEquals(0, bid); + bid = compiler.bid("c:/foo\\bar/hello.java"); + assertEquals(0, bid); + } + public void testGetOutputFileName1() { + CompilerConfiguration compiler = create(); + String input = "c:/foo\\bar\\hello.c"; + // + // may cause IllegalStateException since + // setPlatformInfo has not been called + try { + String[] output = compiler.getOutputFileNames(input, null); + } catch (java.lang.IllegalStateException ex) { + } + } + public void testGetOutputFileName2() { + CompilerConfiguration compiler = create(); + String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.c", null); + assertEquals("hello" + getObjectFileExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.c", null); + assertEquals("hello" + getObjectFileExtension(), output[0]); + output = compiler.getOutputFileNames("hello.c", null); + assertEquals("hello" + getObjectFileExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null); + assertEquals(0, output.length); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null); + assertEquals(0, output.length); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestLinkType.java b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestLinkType.java new file mode 100644 index 0000000..a7e3a45 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/compiler/TestLinkType.java @@ -0,0 +1,59 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.OutputTypeEnum; +/** + * Tests for LinkType + * + * @author CurtA + */ +public class TestLinkType extends TestCase { + /** + * Constructor + * + * @param name + * test case name + */ + public TestLinkType(String name) { + super(name); + } + /** + * Tests if isPluginModule returns true when set to plugin output type + * + * See patch [ 676276 ] Enhanced support for Mac OS X + */ + public void testIsPluginFalse() { + LinkType type = new LinkType(); + OutputTypeEnum pluginType = new OutputTypeEnum(); + pluginType.setValue("executable"); + type.setOutputType(pluginType); + assertTrue(!type.isPluginModule()); + } + /** + * Tests if isPluginModule returns true when set to plugin output type + * + * See patch [ 676276 ] Enhanced support for Mac OS X + */ + public void testIsPluginTrue() { + LinkType type = new LinkType(); + OutputTypeEnum pluginType = new OutputTypeEnum(); + pluginType.setValue("plugin"); + type.setOutputType(pluginType); + assertTrue(type.isPluginModule()); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.java new file mode 100644 index 0000000..dccb986 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.util.Vector; + +import junit.framework.TestCase; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +/** + * Test Microsoft C/C++ compiler adapter + * + */ +public class TestDevStudio2005CCompiler extends TestCase { + public TestDevStudio2005CCompiler(String name) { + super(name); + } + public void testDebug() { + DevStudio2005CCompiler compiler = DevStudio2005CCompiler.getInstance(); + Vector args = new Vector(); + compiler.addDebugSwitch(args); + assertEquals(4, args.size()); + assertEquals("/Zi", args.elementAt(0)); + assertEquals("/Od", args.elementAt(1)); + assertEquals("/RTC1", args.elementAt(2)); + assertEquals("/D_DEBUG", args.elementAt(3)); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java new file mode 100644 index 0000000..eeeec14 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.util.Vector; + +import junit.framework.TestCase; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +/** + * Test Microsoft C/C++ compiler adapter + * + */ +public class TestDevStudioCCompiler extends TestCase { + public TestDevStudioCCompiler(String name) { + super(name); + } + public void testDebug() { + DevStudioCCompiler compiler = DevStudioCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addDebugSwitch(args); + assertEquals(4, args.size()); + assertEquals("/Zi", args.elementAt(0)); + assertEquals("/Od", args.elementAt(1)); + assertEquals("/GZ", args.elementAt(2)); + assertEquals("/D_DEBUG", args.elementAt(3)); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.java b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.java new file mode 100644 index 0000000..7fdaabe --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.java @@ -0,0 +1,44 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +import net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker; +import org.apache.tools.ant.taskdefs.condition.Os; +/** + * Test for Microsoft Developer Studio linker + * + * Override create to test concrete compiler implementions + */ +public class TestDevStudioLinker extends TestAbstractLinker { + public TestDevStudioLinker(String name) { + super(name); + } + protected AbstractProcessor create() { + return DevStudioLinker.getInstance(); + } + public void testGetIdentfier() { + if (!Os.isFamily("windows")) { + return; + } + AbstractProcessor compiler = create(); + String id = compiler.getIdentifier(); + boolean hasMSLinker = ((id.indexOf("Microsoft") >= 0) && (id + .indexOf("Linker") >= 0)) + || id.indexOf("link") >= 0; + assertTrue(hasMSLinker); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.java b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.java new file mode 100644 index 0000000..07f1339 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.java @@ -0,0 +1,60 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; + +import java.io.File; + + +/** + * Test for Microsoft Developer Studio linker + * + * Override create to test concrete compiler implementions + */ +public class TestInstalledDevStudioLinker extends TestDevStudioLinker +{ + public TestInstalledDevStudioLinker(String name) { + super(name); + } + + public void testGetLibraryPath() { + File[] libpath = DevStudioLinker.getInstance().getLibraryPath(); + // + // unless you tweak the library path + // it should have more thean three entries + assertTrue(libpath.length >= 2); + // + // check if these files can be found + // + String[] libnames = new String[] { "kernel32.lib", + "advapi32.lib", "msvcrt.lib", "mfc42.lib", "mfc70.lib" }; + boolean[] libfound = new boolean[libnames.length]; + for (int i = 0; i < libpath.length; i++) { + for (int j = 0; j < libnames.length; j++) { + File libfile = new File(libpath[i], libnames[j]); + if (libfile.exists()) { + libfound[j] = true; + } + } + } + assertTrue("kernel32 not found", libfound[0]); + assertTrue("advapi32 not found", libfound[1]); + assertTrue("msvcrt not found", libfound[2]); + if(!(libfound[3] || libfound[4])) { + fail("mfc42.lib or mfc70.lib not found"); + } + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.java b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.java new file mode 100644 index 0000000..0fc8449 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.java @@ -0,0 +1,79 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +import net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker; +/** + * Tests for classes that derive from AbstractArLibrarian + * + * @author CurtA + */ +public class TestAbstractArLibrarian extends TestAbstractLinker { + /** + * Constructor + * + * @param name + * test name + * @see junit.framework.TestCase#TestCase(String) + */ + public TestAbstractArLibrarian(String name) { + super(name); + } + /** + * Creates item under test @returns item under test + * + * @see net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor#create() + */ + protected AbstractProcessor create() { + return GccLibrarian.getInstance(); + } + /** + * Override of + * + * @see net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor#testBid() + */ + public void testBid() { + AbstractProcessor compiler = create(); + int bid = compiler.bid("c:/foo\\bar\\hello.o"); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, bid); + } + public void testGetIdentfier() { + AbstractProcessor processor = create(); + String id = processor.getIdentifier(); + assertTrue(id.indexOf("ar") >= 0); + } + /** + * Tests for library patterns + * + * See patch [ 676276 ] Enhanced support for Mac OS X + */ + public void testGetLibraryPatterns() { + String[] libnames = new String[]{"foo"}; + String[] patterns = ((AbstractArLibrarian) create()) + .getLibraryPatterns(libnames, null); + assertEquals(0, patterns.length); + } + /** + * Tests output file for ar library + * + * See bug [ 687732 ] Filenames for gcc static library does start with lib + */ + public void testOutputFileName() { + String[] outputFiles = GccLibrarian.getInstance().getOutputFileNames("x", null); + assertEquals("libx.a", outputFiles[0]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.java b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.java new file mode 100644 index 0000000..63996c5 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.java @@ -0,0 +1,247 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.OutputTypeEnum; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +/** + * Test ld linker adapter abstract base class + * + * Override create to test concrete compiler implementions + */ +public class TestAbstractLdLinker extends TestCase { + private final String realOSName; + public TestAbstractLdLinker(String name) { + super(name); + realOSName = System.getProperty("os.name"); + } + protected AbstractLdLinker getLinker() { + return GccLinker.getInstance(); + } + protected void tearDown() throws java.lang.Exception { + System.setProperty("os.name", realOSName); + } + /** + * Checks for proper arguments for plugin generation on Darwin + * + * See [ 676276 ] Enhanced support for Mac OS X + */ + public void testAddImpliedArgsDarwinPlugin() { + System.setProperty("os.name", "Mac OS X"); + AbstractLdLinker linker = getLinker(); + Vector args = new Vector(); + LinkType pluginType = new LinkType(); + OutputTypeEnum pluginOutType = new OutputTypeEnum(); + pluginOutType.setValue("plugin"); + pluginType.setOutputType(pluginOutType); + linker.addImpliedArgs(false, pluginType, args); + assertEquals(1, args.size()); + assertEquals("-bundle", args.elementAt(0)); + } + /** + * Checks for proper arguments for shared generation on Darwin + * + * See [ 676276 ] Enhanced support for Mac OS X + */ + public void testAddImpliedArgsDarwinShared() { + System.setProperty("os.name", "Mac OS X"); + AbstractLdLinker linker = getLinker(); + Vector args = new Vector(); + LinkType pluginType = new LinkType(); + OutputTypeEnum pluginOutType = new OutputTypeEnum(); + pluginOutType.setValue("shared"); + pluginType.setOutputType(pluginOutType); + linker.addImpliedArgs(false, pluginType, args); + assertEquals(2, args.size()); + assertEquals("-prebind", args.elementAt(0)); + assertEquals("-dynamiclib", args.elementAt(1)); + } + /** + * Checks for proper arguments for plugin generation on Darwin + * + * See [ 676276 ] Enhanced support for Mac OS X + */ + public void testAddImpliedArgsNonDarwinPlugin() { + System.setProperty("os.name", "VAX/VMS"); + AbstractLdLinker linker = getLinker(); + Vector args = new Vector(); + LinkType pluginType = new LinkType(); + OutputTypeEnum pluginOutType = new OutputTypeEnum(); + pluginOutType.setValue("plugin"); + pluginType.setOutputType(pluginOutType); + linker.addImpliedArgs(false, pluginType, args); + assertEquals(1, args.size()); + assertEquals("-shared", args.elementAt(0)); + } + /** + * Checks for proper arguments for shared generation on Darwin + * + * See [ 676276 ] Enhanced support for Mac OS X + */ + public void testAddImpliedArgsNonDarwinShared() { + System.setProperty("os.name", "VAX/VMS"); + AbstractLdLinker linker = getLinker(); + Vector args = new Vector(); + LinkType pluginType = new LinkType(); + OutputTypeEnum pluginOutType = new OutputTypeEnum(); + pluginOutType.setValue("shared"); + pluginType.setOutputType(pluginOutType); + linker.addImpliedArgs(false, pluginType, args); + assertEquals(1, args.size()); + assertEquals("-shared", args.elementAt(0)); + } + public void testAddLibrarySetDirSwitch() { + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setDir(new File("/foo")); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + String libdirSwitch = (String) endargs.elementAt(0); + assertEquals(libdirSwitch.substring(0, 2), "-L"); + // + // can't have space after -L or will break Mac OS X + // + assertTrue(!libdirSwitch.substring(2, 3).equals(" ")); + assertEquals(libdirSwitch.substring(libdirSwitch.length() - 3), "foo"); + } + public void testAddLibrarySetLibSwitch() { + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setDir(new File("/foo")); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + assertEquals("-lbart", (String) endargs.elementAt(1)); + assertEquals("-lcart", (String) endargs.elementAt(2)); + assertEquals("-ldart", (String) endargs.elementAt(3)); + assertEquals(endargs.size(), 4); + } + public void testAddLibrarySetLibFrameworkNonDarwin() { + System.setProperty("os.name", "VAX/VMS"); + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setDir(new File("/foo")); + LibraryTypeEnum libType = new LibraryTypeEnum(); + libType.setValue("framework"); + sets[0].setType(libType); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + assertEquals("-L", ((String) endargs.elementAt(0)).substring(0, 2)); + assertEquals("-Bdynamic", (String) endargs.elementAt(1)); + assertEquals("-lbart", (String) endargs.elementAt(2)); + assertEquals("-lcart", (String) endargs.elementAt(3)); + assertEquals("-ldart", (String) endargs.elementAt(4)); + assertEquals(endargs.size(), 5); + } + public void testAddLibrarySetLibFrameworkDarwin() { + System.setProperty("os.name", "Mac OS X"); + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setDir(new File("/foo")); + LibraryTypeEnum libType = new LibraryTypeEnum(); + libType.setValue("framework"); + sets[0].setType(libType); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + assertEquals("-F", ((String) endargs.elementAt(0)).substring(0, 2)); + assertEquals("-framework bart", (String) endargs.elementAt(1)); + assertEquals("-framework cart", (String) endargs.elementAt(2)); + assertEquals("-framework dart", (String) endargs.elementAt(3)); + assertEquals(endargs.size(), 4); + } + public void testAddLibraryStatic() { + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{ + new LibrarySet(), + new LibrarySet(), + new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart")); + sets[1].setProject(new org.apache.tools.ant.Project()); + sets[1].setLibs(new CUtil.StringArrayBuilder("cart")); + LibraryTypeEnum libType = new LibraryTypeEnum(); + libType.setValue("static"); + sets[1].setType(libType); + sets[2].setProject(new org.apache.tools.ant.Project()); + sets[2].setLibs(new CUtil.StringArrayBuilder("dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + assertEquals("-lbart", (String) endargs.elementAt(0)); + assertEquals("-Bstatic", (String) endargs.elementAt(1)); + assertEquals("-lcart", (String) endargs.elementAt(2)); + assertEquals("-Bdynamic", (String) endargs.elementAt(3)); + assertEquals("-ldart", (String) endargs.elementAt(4)); + assertEquals(endargs.size(), 5); + } + public void testLibReturnValue() { + AbstractLdLinker linker = getLinker(); + CCTask task = new CCTask(); + LibrarySet[] sets = new LibrarySet[]{new LibrarySet()}; + /* throws an Exception in setLibs otherwise */ + sets[0].setProject(new org.apache.tools.ant.Project()); + sets[0].setDir(new File("/foo")); + sets[0].setLibs(new CUtil.StringArrayBuilder("bart,cart,dart")); + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + String[] rc = linker.addLibrarySets(task, sets, preargs, midargs, + endargs); + assertEquals(3, rc.length); + assertEquals("bart", rc[0]); + assertEquals("cart", rc[1]); + assertEquals("dart", rc[2]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.java new file mode 100644 index 0000000..3abe409 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +/** + * Test gcc compiler adapter + * + */ +public class TestGccCCompiler extends TestGccCompatibleCCompiler { + public TestGccCCompiler(String name) { + super(name); + } + protected GccCompatibleCCompiler create() { + return GccCCompiler.getInstance(); + } + public void testBidObjectiveAssembly() { + GccCCompiler compiler = GccCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.s")); + } + public void testBidObjectiveC() { + GccCCompiler compiler = GccCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.m")); + } + public void testBidObjectiveCpp() { + GccCCompiler compiler = GccCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.mm")); + } + public void testBidPreprocessedCpp() { + GccCCompiler compiler = GccCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.ii")); + } + public void testCreateCParser1() { + Parser parser = GccCCompiler.getInstance().createParser( + new File("foo.c")); + assertTrue(parser instanceof CParser); + } + public void testCreateCParser2() { + Parser parser = GccCCompiler.getInstance().createParser( + new File("foo.")); + assertTrue(parser instanceof CParser); + } + public void testCreateCParser3() { + Parser parser = GccCCompiler.getInstance() + .createParser(new File("foo")); + assertTrue(parser instanceof CParser); + } + public void testCreateFortranParser1() { + Parser parser = GccCCompiler.getInstance().createParser( + new File("foo.f")); + assertTrue(parser instanceof FortranParser); + } + public void testCreateFortranParser2() { + Parser parser = GccCCompiler.getInstance().createParser( + new File("foo.FoR")); + assertTrue(parser instanceof FortranParser); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.java new file mode 100644 index 0000000..68fab2e --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.java @@ -0,0 +1,105 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.util.Vector; + +import junit.framework.TestCase; +/** + * Tests for gcc compatible compilers + * + * @author CurtA + */ +public abstract class TestGccCompatibleCCompiler extends TestCase { + /** + * Constructor + * + * @param name + * test case name + */ + public TestGccCompatibleCCompiler(String name) { + super(name); + } + /** + * Compiler creation method + * + * Must be overriden by extending classes + * + * @return GccCompatibleCCompiler + */ + protected abstract GccCompatibleCCompiler create(); + /** + * Tests command lines switches for warning = 0 + */ + public void testWarningLevel0() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 0); + assertEquals(1, args.size()); + assertEquals("-w", args.elementAt(0)); + } + /** + * Tests command lines switches for warning = 1 + */ + public void testWarningLevel1() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 1); + assertEquals(0, args.size()); + } + /** + * Tests command lines switches for warning = 2 + */ + public void testWarningLevel2() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 2); + assertEquals(0, args.size()); + } + /** + * Tests command lines switches for warning = 3 + */ + public void testWarningLevel3() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 3); + assertEquals(1, args.size()); + assertEquals("-Wall", args.elementAt(0)); + } + /** + * Tests command lines switches for warning = 4 + */ + public void testWarningLevel4() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 4); + assertEquals(2, args.size()); + assertEquals("-W", args.elementAt(0)); + assertEquals("-Wall", args.elementAt(1)); + } + /** + * Tests command lines switches for warning = 5 + */ + public void testWarningLevel5() { + GccCompatibleCCompiler compiler = create(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 5); + assertEquals(3, args.size()); + assertEquals("-Werror", args.elementAt(0)); + assertEquals("-W", args.elementAt(1)); + assertEquals("-Wall", args.elementAt(2)); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.java b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.java new file mode 100644 index 0000000..84e8d57 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.java @@ -0,0 +1,79 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.OutputTypeEnum; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * @author CurtA + */ +public class TestGccLinker extends TestCase { + private final String realOSName; + /** + * Constructor + * + * @param name test name + */ + public TestGccLinker(String name) { + super(name); + realOSName = System.getProperty("os.name"); + } + protected void tearDown() throws java.lang.Exception { + System.setProperty("os.name", realOSName); + } + public void testGetLinkerDarwinPlugin() { + System.setProperty("os.name", "Mac OS X"); + GccLinker linker = GccLinker.getInstance(); + OutputTypeEnum outputType = new OutputTypeEnum(); + outputType.setValue("plugin"); + LinkType linkType = new LinkType(); + linkType.setOutputType(outputType); + Linker pluginLinker = linker.getLinker(linkType); + assertEquals("libfoo.bundle", pluginLinker.getOutputFileNames("foo", null)[0]); + } + public void testGetLinkerDarwinShared() { + System.setProperty("os.name", "Mac OS X"); + GccLinker linker = GccLinker.getInstance(); + OutputTypeEnum outputType = new OutputTypeEnum(); + outputType.setValue("shared"); + LinkType linkType = new LinkType(); + linkType.setOutputType(outputType); + Linker sharedLinker = linker.getLinker(linkType); + assertEquals("libfoo.dylib", sharedLinker.getOutputFileNames("foo", null)[0]); + } + public void testGetLinkerNonDarwinPlugin() { + System.setProperty("os.name", "Microsoft Windows"); + GccLinker linker = GccLinker.getInstance(); + OutputTypeEnum outputType = new OutputTypeEnum(); + outputType.setValue("plugin"); + LinkType linkType = new LinkType(); + linkType.setOutputType(outputType); + Linker pluginLinker = linker.getLinker(linkType); + assertEquals("libfoo.so", pluginLinker.getOutputFileNames("foo", null)[0]); + } + public void testGetLinkerNonDarwinShared() { + System.setProperty("os.name", "Microsoft Windows"); + GccLinker linker = GccLinker.getInstance(); + OutputTypeEnum outputType = new OutputTypeEnum(); + outputType.setValue("shared"); + LinkType linkType = new LinkType(); + linkType.setOutputType(outputType); + Linker sharedLinker = linker.getLinker(linkType); + assertEquals("libfoo.so", sharedLinker.getOutputFileNames("foo", null)[0]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.java new file mode 100644 index 0000000..073463e --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.java @@ -0,0 +1,93 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.hp; +import java.util.Vector; + +import junit.framework.TestCase; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +/** + * Test HP aCC compiler adapter + * + */ +// TODO Since aCCCompiler extends GccCompatibleCCompiler, this test +// should probably extend TestGccCompatibleCCompiler. +public class TestaCCCompiler extends TestCase { + public TestaCCCompiler(String name) { + super(name); + } + public void testBidC() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.c")); + } + public void testBidCpp() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.C")); + } + public void testBidCpp2() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cc")); + } + public void testBidCpp3() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.CC")); + } + public void testBidCpp4() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cxx")); + } + public void testBidCpp5() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.CXX")); + } + public void testBidCpp6() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cpp")); + } + public void testBidCpp7() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.CPP")); + } + public void testBidCpp8() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.c++")); + } + public void testBidCpp9() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.C++")); + } + public void testBidPreprocessed() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.i")); + } + public void testBidAssembly() { + aCCCompiler compiler = aCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.s")); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.java new file mode 100644 index 0000000..62a513e --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.java @@ -0,0 +1,68 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ibm; +import java.util.Vector; + +import junit.framework.TestCase; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +/** + * Test IBM Visual Age compiler adapter + * + */ +// TODO Since VisualAgeCCompiler extends GccCompatibleCCompiler, this test +// should probably extend TestGccCompatibleCCompiler. +public class TestVisualAgeCCompiler extends TestCase { + public TestVisualAgeCCompiler(String name) { + super(name); + } + public void testBidC() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.c")); + } + public void testBidCpp() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.C")); + } + public void testBidCpp2() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cc")); + } + public void testBidCpp3() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cxx")); + } + public void testBidCpp4() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cpp")); + } + public void testBidPreprocessed() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.i")); + } + public void testBidAssembly() { + VisualAgeCCompiler compiler = VisualAgeCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.s")); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/package.html b/src/test/java/net/sf/antcontrib/cpptasks/package.html new file mode 100644 index 0000000..eba4e2c --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/package.html @@ -0,0 +1,28 @@ + + + + + + + +JUnit tests for the net.sf.antcontrib.cpptasks package. + + + + diff --git a/src/test/java/net/sf/antcontrib/cpptasks/parser/TestCParser.java b/src/test/java/net/sf/antcontrib/cpptasks/parser/TestCParser.java new file mode 100644 index 0000000..d5e9888 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/parser/TestCParser.java @@ -0,0 +1,199 @@ +/* + * + * Copyright 2002-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +import junit.framework.TestCase; + +import java.io.CharArrayReader; +import java.io.IOException; + +/** + * Tests for the CParser class. + */ +public final class TestCParser + extends TestCase { + /** + * Constructor. + * @param name String test name + */ + public TestCParser(final String name) { + super(name); + } + + /** + * Checks parsing of #include . + * @throws IOException test fails on IOException + */ + public void testImmediateImportBracket() throws IOException { + CharArrayReader reader = new CharArrayReader( + "#import nowhatever ".toCharArray()); + CParser parser = new CParser(); + parser.parse(reader); + String[] includes = parser.getIncludes(); + assertEquals(includes.length, 1); + assertEquals("foo.h", includes[0]); + } + + /** + * Checks parsing of #import "foo.h". + * @throws IOException test fails on IOException + */ + public void testImmediateImportQuote() throws IOException { + CharArrayReader reader = new CharArrayReader("#import \"foo.h\" " + .toCharArray()); + CParser parser = new CParser(); + parser.parse(reader); + String[] includes = parser.getIncludes(); + assertEquals(includes.length, 1); + assertEquals("foo.h", includes[0]); + } + + /** + * Checks parsing of #include . + * @throws IOException test fails on IOException + */ + public void testImmediateIncludeBracket() throws IOException { + CharArrayReader reader = new CharArrayReader("#include " + .toCharArray()); + CParser parser = new CParser(); + parser.parse(reader); + String[] includes = parser.getIncludes(); + assertEquals(includes.length, 1); + assertEquals("foo.h", includes[0]); + } + + /** + * Checks parsing of #include "foo.h". + * @throws IOException test fails on IOException. + */ + public void testImmediateIncludeQuote() throws IOException { + CharArrayReader reader = new CharArrayReader( + "#include \"foo.h\" ".toCharArray()); + CParser parser = new CParser(); + parser.parse(reader); + String[] includes = parser.getIncludes(); + assertEquals(includes.length, 1); + assertEquals("foo.h", includes[0]); + } + + /** + * Checks parsing of #import + + + + + + +JUnit tests for the net.sf.antcontrib.cpptasks.parser package. + + + diff --git a/src/test/java/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.java new file mode 100644 index 0000000..df08539 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.java @@ -0,0 +1,132 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.util.Vector; + +import junit.framework.TestCase; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +/** + * Test Sun Forte compiler adapter + * + */ +// TODO Since ForteCCCompiler extends GccCompatibleCCompiler, this test +// should probably extend TestGccCompatibleCCompiler. +public class TestForteCCCompiler extends TestCase { + public TestForteCCCompiler(String name) { + super(name); + } + public void testBidC() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.c")); + } + public void testBidCpp() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.C")); + } + public void testBidCpp2() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cc")); + } + public void testBidCpp3() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cxx")); + } + public void testBidCpp4() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.cpp")); + } + public void testBidCpp5() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.c++")); + } + public void testBidPreprocessed() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.i")); + } + public void testBidAssembly() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + assertEquals(AbstractProcessor.DEFAULT_PROCESS_BID, compiler + .bid("foo.s")); + } + /** + * Tests command line switches for warning = 0 + */ + public void testWarningLevel0() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 0); + assertEquals(1, args.size()); + assertEquals("-w", args.elementAt(0)); + } + /** + * Tests command line switches for warning = 1 + */ + public void testWarningLevel1() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 1); + assertEquals(0, args.size()); + } + /** + * Tests command line switches for warning = 2 + */ + public void testWarningLevel2() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 2); + assertEquals(0, args.size()); + } + /** + * Tests command line switches for warning = 3 + */ + public void testWarningLevel3() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 3); + assertEquals(1, args.size()); + assertEquals("+w", args.elementAt(0)); + } + /** + * Tests command line switches for warning = 4 + */ + public void testWarningLevel4() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 4); + assertEquals(1, args.size()); + assertEquals("+w2", args.elementAt(0)); + } + /** + * Tests command line switches for warning = 5 + */ + public void testWarningLevel5() { + ForteCCCompiler compiler = ForteCCCompiler.getInstance(); + Vector args = new Vector(); + compiler.addWarningSwitch(args, 5); + assertEquals(2, args.size()); + assertEquals("+w2", args.elementAt(0)); + assertEquals("-xwe", args.elementAt(1)); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.java b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.java new file mode 100644 index 0000000..6d97c12 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.java @@ -0,0 +1,74 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import net.sf.antcontrib.cpptasks.compiler.AbstractProcessor; +import net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler; + +/** + * Tests for Trolltech Meta Object Compiler. + * + */ +public class TestMetaObjectCompiler + extends TestAbstractCompiler { + /** + * Constructor. + * @param name test name + */ + public TestMetaObjectCompiler(final String name) { + super(name); + } + + /** + * Creates compiler for inherited tests. + * @return AbstractProcessor compiler + */ + protected AbstractProcessor create() { + return MetaObjectCompiler.getInstance(); + } + + /** + * Gets default output file extension. + * @return String output file extension + */ + protected String getObjectExtension() { + return ".moc"; + } + + /** + * Skip testGetIdentifier. + */ + public void testGetIdentfier() { + } + + /** + * Override inherited test. + */ + public void testGetOutputFileName1() { + AbstractProcessor compiler = MetaObjectCompiler.getInstance(); + String[] output = compiler.getOutputFileNames("c:/foo\\bar\\hello.cpp", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.cpp", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("hello.cpp", null); + assertEquals("hello" + getObjectExtension(), output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar\\hello.h", null); + assertEquals("moc_hello.cpp", output[0]); + output = compiler.getOutputFileNames("c:/foo\\bar/hello.h", null); + assertNull("moc_hello.cpp", output[0]); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.java b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.java new file mode 100644 index 0000000..371bdf1 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.java @@ -0,0 +1,58 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import java.io.CharArrayReader; +import java.io.IOException; +import junit.framework.TestCase; + +/** + * Tests for the MetaObjectParser class. + */ +public final class TestMetaObjectParser + extends TestCase { + /** + * Constructor. + * @param name String test name + */ + public TestMetaObjectParser(final String name) { + super(name); + } + + /** + * Test that the presence of Q_OBJECT causes hasQObject to return true. + * @throws IOException test fails on IOException + */ + public void testHasQObject1() throws IOException { + CharArrayReader reader = new CharArrayReader( + " Q_OBJECT ".toCharArray()); + boolean hasQObject = MetaObjectParser.hasQObject(reader); + assertTrue(hasQObject); + } + + /** + * Test that the lack of Q_OBJECT causes hasQObject to return false. + * @throws IOException test fails on IOException + */ + public void testHasQObject2() throws IOException { + CharArrayReader reader = new CharArrayReader( + " Q_OBJ ECT ".toCharArray()); + boolean hasQObject = MetaObjectParser.hasQObject(reader); + assertFalse(hasQObject); + } + +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/trolltech/package.html b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/package.html new file mode 100644 index 0000000..bbdaa89 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/trolltech/package.html @@ -0,0 +1,27 @@ + + + + + + + +Tests for Trolltech Qt uic and moc compilers. + + + diff --git a/src/test/java/net/sf/antcontrib/cpptasks/types/TestDefineArgument.java b/src/test/java/net/sf/antcontrib/cpptasks/types/TestDefineArgument.java new file mode 100644 index 0000000..e5b53ee --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/types/TestDefineArgument.java @@ -0,0 +1,124 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import junit.framework.TestCase; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +/** + * Tests for the DefineArgument class + */ +public class TestDefineArgument extends TestCase { + public TestDefineArgument(String name) { + super(name); + } + public void testIsActive1() { + DefineArgument arg = new DefineArgument(); + Project project = new Project(); + try { + boolean isActive = arg.isActive(project); + } catch (BuildException ex) { + return; + } + fail("isActive should throw exception if name is not set"); + } + public void testIsActive2() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setIf("cond"); + assertTrue(arg.isActive(project)); + } + public void testIsActive3() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + arg.setIf("cond"); + assertTrue(!arg.isActive(project)); + } + public void testIsActive4() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + project.setProperty("cond", "false"); + arg.setIf("cond"); + try { + boolean isActive = arg.isActive(project); + } catch (BuildException ex) { + return; + } + fail("Should throw exception for suspicious value"); + } + public void testIsActive5() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setUnless("cond"); + assertTrue(!arg.isActive(project)); + } + public void testIsActive6() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + arg.setUnless("cond"); + assertTrue(arg.isActive(project)); + } + public void testIsActive7() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + project.setProperty("cond", "false"); + arg.setUnless("cond"); + try { + boolean isActive = arg.isActive(project); + } catch (BuildException ex) { + return; + } + fail("Should throw exception for suspicious value"); + } + public void testIsActive8() { + DefineArgument arg = new DefineArgument(); + arg.setName("TEST"); + Project project = new Project(); + project.setProperty("cond", ""); + arg.setIf("cond"); + arg.setUnless("cond"); + assertTrue(!arg.isActive(project)); + } + public void testMerge() { + UndefineArgument[] base = new UndefineArgument[2]; + UndefineArgument[] specific = new UndefineArgument[2]; + base[0] = new DefineArgument(); + base[0].setName("foo"); + base[1] = new UndefineArgument(); + base[1].setName("hello"); + specific[0] = new DefineArgument(); + specific[0].setName("hello"); + specific[1] = new UndefineArgument(); + specific[1].setName("world"); + UndefineArgument[] merged = UndefineArgument.merge(base, specific); + assertEquals(3, merged.length); + assertEquals("foo", merged[0].getName()); + assertEquals(true, merged[0].isDefine()); + assertEquals("hello", merged[1].getName()); + assertEquals(true, merged[1].isDefine()); + assertEquals("world", merged[2].getName()); + assertEquals(false, merged[2].isDefine()); + } +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/types/TestLibrarySet.java b/src/test/java/net/sf/antcontrib/cpptasks/types/TestLibrarySet.java new file mode 100644 index 0000000..180f765 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/types/TestLibrarySet.java @@ -0,0 +1,337 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks.types; + +import java.io.File; +import java.io.IOException; + +import junit.framework.TestCase; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.MockBuildListener; +import net.sf.antcontrib.cpptasks.MockFileCollector; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; + +/** + * Tests for the LibrarySet class. + */ +public class TestLibrarySet + extends TestCase { + + /** + * Constructor. + * + * @param name + * test name + */ + public TestLibrarySet(final String name) { + super(name); + } + + /** + * Evaluate isActive when "if" specifies a property that is set. + */ + public final void testIsActive1() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + project.setProperty("windows", ""); + libset.setProject(project); + libset.setIf("windows"); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("kernel32"); + libset.setLibs(libs); + boolean isActive = libset.isActive(project); + assertTrue(isActive); + } + + /** + * Evaluate isActive when "if" specifies a property whose value suggests the + * user thinks the value is significant. + * + */ + public final void testIsActive2() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + // + // setting the value to false should throw + // exception to warn user that they are misusing if + // + project.setProperty("windows", "false"); + libset.setIf("windows"); + try { + boolean isActive = libset.isActive(project); + } catch (BuildException ex) { + return; + } + fail(); + } + + /** + * Evaluate isActive when "if" specifies a property that is not set. + */ + public final void testIsActive3() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + libset.setIf("windows"); + boolean isActive = libset.isActive(project); + assertTrue(!isActive); + } + + /** + * Evaluate isActive when "unless" specifies a property that is set. + * + */ + public final void testIsActive4() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + project.setProperty("windows", ""); + libset.setUnless("windows"); + boolean isActive = libset.isActive(project); + assertTrue(!isActive); + } + + /** + * Evaluate isActive when "unless" specifies a property whose value suggests + * the user thinks the value is significant. + * + */ + public final void testIsActive5() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + // + // setting the value to false should throw + // exception to warn user that they are misusing if + // + project.setProperty("windows", "false"); + libset.setUnless("windows"); + try { + boolean isActive = libset.isActive(project); + } catch (BuildException ex) { + return; + } + fail(); + } + + /** + * Evaluate isActive when "unless" specifies a property that is not set. + */ + public final void testIsActive6() { + LibrarySet libset = new LibrarySet(); + Project project = new Project(); + libset.setProject(project); + libset.setUnless("windows"); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("kernel32"); + libset.setLibs(libs); + boolean isActive = libset.isActive(project); + assertTrue(isActive); + } + + /** + * The libs parameter should not end with .lib, .so, .a etc New behavior is + * to warn if it ends in a suspicious extension. + */ + public final void testLibContainsDot() { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("mylib1.1"); + libset.setLibs(libs); + assertEquals(0, listener.getMessageLoggedEvents().size()); + } + + /** + * The libs parameter should not end with .lib, .so, .a (that is, + * should be kernel, not kernel.lib). Previously the libset would + * warn on configuration, now provides more feedback + * when library is not found. + */ + public final void testLibContainsDotLib() { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder( + "mylib1.lib"); + libset.setLibs(libs); + assertEquals(0, listener.getMessageLoggedEvents().size()); + } + + /** + * Use of a libset or syslibset without a libs attribute should log a + * warning message. + */ + public final void testLibNotSpecified() { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + boolean isActive = libset.isActive(p); + assertEquals(false, isActive); + assertEquals(1, listener.getMessageLoggedEvents().size()); + } + + /** + * this threw an exception prior to 2002-09-05 and started to throw one + * again 2002-11-19 up to 2002-12-11. + */ + public final void testShortLibName() { + LibrarySet libset = new LibrarySet(); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("li"); + libset.setProject(new Project()); + libset.setLibs(libs); + } + + /** + * The libs parameter should contain not a lib prefix (that is, + * pthread not libpthread). Previously the libset would + * warn on configuration, now provides more feedback + * when library is not found. + */ + public final void testStartsWithLib() { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder( + "libmylib1"); + libset.setLibs(libs); + assertEquals(0, listener.getMessageLoggedEvents().size()); + } + + /** + * This test creates two "fake" libraries in the temporary directory and + * check how many are visited. + * + * @param linker linker + * @param expected expected number of visited files + * @throws IOException + * if unable to write to temporary directory or delete temporary + * files + */ + public final void testVisitFiles(final Linker linker, + final int expected) + throws IOException { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + // + // create temporary files named cpptasksXXXXX.lib + // + File lib1 = File.createTempFile("cpptasks", ".lib"); + String lib1Name = lib1.getName(); + lib1Name = lib1Name.substring(0, lib1Name.indexOf(".lib")); + File lib2 = File.createTempFile("cpptasks", ".lib"); + File baseDir = lib1.getParentFile(); + + // set the dir attribute to the temporary directory + libset.setDir(baseDir); + // set libs to the file name without the suffix + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder(lib1Name); + libset.setLibs(libs); + + // + // collect all files visited + MockFileCollector collector = new MockFileCollector(); + libset.visitLibraries(p, linker, new File[0], collector); + + // + // get the canonical paths for the initial and visited libraries + String expectedCanonicalPath = lib1.getCanonicalPath(); + String actualCanonicalPath = null; + if (collector.size() == 1) { + actualCanonicalPath = new File(collector.getBaseDir(0), collector + .getFileName(0)).getCanonicalPath(); + } + // + // delete the temporary files + lib1.delete(); + lib2.delete(); + // was there only one match + assertEquals(expected, collector.size()); + if (expected == 1) { + // is its canonical path as expected + assertEquals(expectedCanonicalPath, actualCanonicalPath); + } + } + + /** + * Run testVisitFiles with the MSVC Linker + * expect one matching file. + * + * @throws IOException if unable to create or delete temporary file + */ + public final void testLinkerVisitFiles() throws IOException { + Linker linker = DevStudioLinker.getInstance(); + testVisitFiles(linker, 1); + } + + /** + * Run testVisitFiles with the MSVC Librarian + * expect one matching file. + * + * @throws IOException if unable to create or delete temporary file + */ + public final void testLibrarianVisitFiles() throws IOException { + Linker linker = DevStudioLibrarian.getInstance(); + testVisitFiles(linker, 0); + } + + + /** + * This test specifies a library pattern that should + * not match any available libraries and expects that + * a build exception will be raised. + * + * See bug 1380366 + */ + public final void testBadLibname() { + LibrarySet libset = new LibrarySet(); + Project p = new Project(); + MockBuildListener listener = new MockBuildListener(); + p.addBuildListener(listener); + libset.setProject(p); + // set libs to the file name without the suffix + CUtil.StringArrayBuilder libs = new CUtil.StringArrayBuilder("badlibname"); + libset.setLibs(libs); + + // + // collect all files visited + MockFileCollector collector = new MockFileCollector(); + try { + libset.visitLibraries(p, DevStudioLinker.getInstance(), new File[0], collector); + } catch(BuildException ex) { + return; + } +// +// code around line 320 in LibrarySet that would throw BuildException +// (and prevent reaching this line) is disabled since logic for identifying +// missing libraries does not work reliably on non-Windows platforms +// +// fail("visitLibraries should throw exception due to unsatisifed libname"); + } + +} diff --git a/src/test/java/net/sf/antcontrib/cpptasks/types/package.html b/src/test/java/net/sf/antcontrib/cpptasks/types/package.html new file mode 100644 index 0000000..e5efbc4 --- /dev/null +++ b/src/test/java/net/sf/antcontrib/cpptasks/types/package.html @@ -0,0 +1,28 @@ + + + + + + + +JUnit tests for the net.sf.antcontrib.cpptasks.types package. + + + + diff --git a/src/test/resources/openshore/dependencies.xml b/src/test/resources/openshore/dependencies.xml new file mode 100644 index 0000000..1644f84 --- /dev/null +++ b/src/test/resources/openshore/dependencies.xml @@ -0,0 +1,911 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/openshore/history.xml b/src/test/resources/openshore/history.xml new file mode 100644 index 0000000..19fe515 --- /dev/null +++ b/src/test/resources/openshore/history.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/xerces-c/dependencies.xml b/src/test/resources/xerces-c/dependencies.xml new file mode 100644 index 0000000..f8d7324 --- /dev/null +++ b/src/test/resources/xerces-c/dependencies.xml @@ -0,0 +1,3330 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/xerces-c/history.xml b/src/test/resources/xerces-c/history.xml new file mode 100644 index 0000000..2e8a3c0 --- /dev/null +++ b/src/test/resources/xerces-c/history.xml @@ -0,0 +1,636 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sun_checks.xml b/sun_checks.xml new file mode 100644 index 0000000..63ccf49 --- /dev/null +++ b/sun_checks.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks
ArchEnum + +
+          Enumeration of cpu architecture types.
CCTask + +
+          Compile and link task.
CompilerDef + +
+          A compiler definition.
CompilerEnum + +
+          Enumeration of supported compilers + + Supported compilers + + gcc (default) + GCC C++ compiler + + + g++ + GCC C++ compiler + + + c++ + GCC C++ compiler + + + g77 + GNU FORTRAN compiler + + + msvc + Microsoft Visual C++ + + + msvc8 + Microsoft Visual C++ 8 + + + bcc + Borland C++ Compiler + + + msrc + Microsoft Resource Compiler + + + brc + Borland Resource Compiler + + + df + Compaq Visual Fortran Compiler + + + midl + Microsoft MIDL Compiler + + + icl + Intel C++ compiler for Windows (IA-32) + + + ecl + Intel C++ compiler for Windows (IA-64) + + + icc + Intel C++ compiler for Linux (IA-32) + + + ecc + Intel C++ compiler for Linux (IA-64) + + + CC + Sun ONE C++ compiler + + + aCC + HP aC++ C++ Compiler + + + os390 + OS390 C Compiler + + + os400 + Icc Compiler + + + sunc89 + Sun C89 C Compiler + + + xlC + VisualAge C Compiler + + + cl6x + TI TMS320C6000 Optimizing Compiler + + + cl55 + TI TMS320C55x Optimizing C/C++ Compiler + + + armcpp + ARM 32-bit C++ compiler + + + armcc + ARM 32-bit C compiler + + + tcpp + ARM 16-bit C++ compiler + + + tcc + ARM 16-bit C compiler + + * + uic + Qt user interface compiler + + + moc + Qt meta-object compiler + + + xpidl + Mozilla xpidl compiler (creates .h and .xpt files). + + + wcl + OpenWatcom C/C++ compiler (experimental) + + + wfl + OpenWatcom FORTRAN compiler (experimental) + + + windres + GNU windres resource compiler + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CompilerParam + +
+          Place class description here.
CPUEnum + +
+          Enumeration of cpu types.
DependencyInfo + +
+           
DependencyTable.DependencyVisitor + +
+           
DistributerDef + +
+          Distributed build information (Non-functional prototype).
DistributerMap + +
+          Local to remote filename mapping (Experimental).
DistributerProtocolEnum + +
+          Distributer prococol names (experimental).
FileVisitor + +
+          An abstract class implemented to walk over the fileset members of a + ProcessorDef
LinkerDef + +
+          A linker definition.
LinkerEnum + +
+          Enumeration of supported linkers
LinkerParam + +
+          Place class description here.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
OSFamilyEnum + +
+          Enumeration of cpu types.
OutputTypeEnum + +
+          Enumeration of supported subsystems
PrecompileDef + +
+          An element that specifies a prototype file and rules for source files that + should not use precompiled headers
PrecompileExceptDef + +
+          Specifies files that should not be compiled using precompiled headers.
ProcessorDef + +
+          An abstract compiler/linker definition.
ProcessorEnumValue + +
+          One entry in the arrays used by the CompilerEnum and LinkerEnum classes.
ProcessorParam + +
+          Place class description here.
RuntimeType + +
+          Enumerated attribute with the values "dynamic" and "static",
SourceHistory + +
+          The history of a source file used to build a target
SubsystemEnum + +
+          Enumeration of supported subsystems
TargetDef + +
+          Information on the execution platforms for the generated code.
TargetHistory + +
+          A description of a file built or to be built
TargetHistoryTable + +
+          A history of the compiler and linker settings used to build the files in the + same directory as the history.
TargetInfo + +
+          A description of a file built or to be built
VersionInfo + +
+          Version Information.
WarningLevelEnum + +
+          Enumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror".
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.apple
CCTask + +
+          Compile and link task.
TargetInfo + +
+          A description of a file built or to be built
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.arm
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.borland
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
TargetInfo + +
+          A description of a file built or to be built
TargetMatcher + +
+          This class matches each visited file with an appropriate compiler
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.compaq
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.compiler
CCTask + +
+          Compile and link task.
CompilerDef + +
+          A compiler definition.
CompilerParam + +
+          Place class description here.
DependencyInfo + +
+           
LinkerDef + +
+          A linker definition.
LinkerParam + +
+          Place class description here.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
OutputTypeEnum + +
+          Enumeration of supported subsystems
ProcessorDef + +
+          An abstract compiler/linker definition.
ProcessorParam + +
+          Place class description here.
SubsystemEnum + +
+          Enumeration of supported subsystems
TargetDef + +
+          Information on the execution platforms for the generated code.
TargetInfo + +
+          A description of a file built or to be built
TargetMatcher + +
+          This class matches each visited file with an appropriate compiler
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.devstudio
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
TargetInfo + +
+          A description of a file built or to be built
TargetMatcher + +
+          This class matches each visited file with an appropriate compiler
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.gcc
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.gcc.cross
CCTask + +
+          Compile and link task.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.hp
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.ibm
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.ide
CCTask + +
+          Compile and link task.
TargetInfo + +
+          A description of a file built or to be built
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.mozilla
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.openwatcom
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
TargetMatcher + +
+          This class matches each visited file with an appropriate compiler
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.os390
CCTask + +
+          Compile and link task.
CompilerDef + +
+          A compiler definition.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.os400
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.platforms
TargetMatcher + +
+          This class matches each visited file with an appropriate compiler
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.sun
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.ti
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.trolltech
CCTask + +
+          Compile and link task.
OptimizationEnum + +
+          Enumeration of optimization levels (experimental).
VersionInfo + +
+          Version Information.
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks.types
CUtil.StringArrayBuilder + +
+          A class that splits a white-space, comma-separated list into a String + array.
FileVisitor + +
+          An abstract class implemented to walk over the fileset members of a + ProcessorDef
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParser.html new file mode 100644 index 0000000..815fc00 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParser.html @@ -0,0 +1,304 @@ + + + + + + + +AbstractParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class AbstractParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParser
+
+
+
Direct Known Subclasses:
BorlandCfgParser, CParser, FortranParser, MetaObjectParser
+
+
+
+
public abstract class AbstractParser
extends java.lang.Object
+ + +

+An abstract base class for simple parsers +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected AbstractParser() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  voidaddFilename(java.lang.String filename) + +
+           
+abstract  AbstractParserStategetNewLineState() + +
+           
+protected  voidparse(java.io.Reader reader) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractParser

+
+protected AbstractParser()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addFilename

+
+protected abstract void addFilename(java.lang.String filename)
+
+
+
+
+
+
+ +

+getNewLineState

+
+public abstract AbstractParserState getNewLineState()
+
+
+
+
+
+
+ +

+parse

+
+protected void parse(java.io.Reader reader)
+              throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParserState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParserState.html new file mode 100644 index 0000000..d89bc1d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/AbstractParserState.html @@ -0,0 +1,285 @@ + + + + + + + +AbstractParserState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class AbstractParserState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+
+
+
Direct Known Subclasses:
BranchState, CaseInsensitiveLetterState, ConsumeToSpaceOrNewLine, FilenameState, LetterState, PostE, QuoteBranchState, WhitespaceOrCaseInsensitiveLetterState, WhitespaceOrLetterState
+
+
+
+
public abstract class AbstractParserState
extends java.lang.Object
+ + +

+An base class for objects that represent the state of an AbstractParser. +

+ +

+

+
Author:
+
CurtArnold
+
See Also:
AbstractParser
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected AbstractParserState(AbstractParser parser) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+abstract  AbstractParserStateconsume(char ch) + +
+          Consume a character
+protected  AbstractParsergetParser() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractParserState

+
+protected AbstractParserState(AbstractParser parser)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public abstract AbstractParserState consume(char ch)
+
+
Consume a character +

+

+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+
+ +

+getParser

+
+protected AbstractParser getParser()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/BranchState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/BranchState.html new file mode 100644 index 0000000..1089a94 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/BranchState.html @@ -0,0 +1,292 @@ + + + + + + + +BranchState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class BranchState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.BranchState
+
+
+
+
public class BranchState
extends AbstractParserState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
BranchState(AbstractParser parser, + char[] branchChars, + AbstractParserState[] branchStates, + AbstractParserState noMatchState) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+protected  AbstractParserStategetNoMatchState() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BranchState

+
+public BranchState(AbstractParser parser,
+                   char[] branchChars,
+                   AbstractParserState[] branchStates,
+                   AbstractParserState noMatchState)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Specified by:
consume in class AbstractParserState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+
+ +

+getNoMatchState

+
+protected AbstractParserState getNoMatchState()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/CParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/CParser.html new file mode 100644 index 0000000..56a14d5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/CParser.html @@ -0,0 +1,334 @@ + + + + + + + +CParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class CParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParser
+      extended by net.sf.antcontrib.cpptasks.parser.CParser
+
+
+
All Implemented Interfaces:
Parser
+
+
+
+
public final class CParser
extends AbstractParser
implements Parser
+ + +

+A parser that extracts #include statements from a Reader. +

+ +

+

+
Author:
+
Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CParser() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFilename(java.lang.String include) + +
+           
+ java.lang.String[]getIncludes() + +
+           
+ AbstractParserStategetNewLineState() + +
+           
+ voidparse(java.io.Reader reader) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CParser

+
+public CParser()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addFilename

+
+public void addFilename(java.lang.String include)
+
+
+
Specified by:
addFilename in class AbstractParser
+
+
+
+
+
+
+ +

+getIncludes

+
+public java.lang.String[] getIncludes()
+
+
+
Specified by:
getIncludes in interface Parser
+
+
+
+
+
+
+ +

+getNewLineState

+
+public AbstractParserState getNewLineState()
+
+
+
Specified by:
getNewLineState in class AbstractParser
+
+
+
+
+
+
+ +

+parse

+
+public void parse(java.io.Reader reader)
+           throws java.io.IOException
+
+
+
Specified by:
parse in interface Parser
Overrides:
parse in class AbstractParser
+
+
+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.html new file mode 100644 index 0000000..e6a9cd9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.html @@ -0,0 +1,286 @@ + + + + + + + +CaseInsensitiveLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class CaseInsensitiveLetterState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState
+
+
+
+
public final class CaseInsensitiveLetterState
extends AbstractParserState
+ + +

+This parser state checks consumed characters against a specific character + (case insensitive). +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CaseInsensitiveLetterState

+
+public CaseInsensitiveLetterState(AbstractParser parser,
+                                  char matchLetter,
+                                  AbstractParserState nextStateArg,
+                                  AbstractParserState noMatchStateArg)
+
+
Constructor. +

+

+
Parameters:
parser - parser
matchLetter - letter to match
nextStateArg - next state if a match on the letter
noMatchStateArg - state if no match on letter
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Consumes a character and returns the next state for the parser. +

+

+
Specified by:
consume in class AbstractParserState
+
+
+
Parameters:
ch - next character +
Returns:
the configured nextState if ch is the expected character or the + configure noMatchState otherwise.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/FilenameState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/FilenameState.html new file mode 100644 index 0000000..6c1ffce --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/FilenameState.html @@ -0,0 +1,272 @@ + + + + + + + +FilenameState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class FilenameState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.FilenameState
+
+
+
Direct Known Subclasses:
CfgFilenameState
+
+
+
+
public class FilenameState
extends AbstractParserState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
FilenameState(AbstractParser parser, + char[] terminators) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FilenameState

+
+public FilenameState(AbstractParser parser,
+                     char[] terminators)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Specified by:
consume in class AbstractParserState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/FortranParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/FortranParser.html new file mode 100644 index 0000000..b256b9d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/FortranParser.html @@ -0,0 +1,346 @@ + + + + + + + +FortranParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class FortranParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParser
+      extended by net.sf.antcontrib.cpptasks.parser.FortranParser
+
+
+
All Implemented Interfaces:
Parser
+
+
+
+
public final class FortranParser
extends AbstractParser
implements Parser
+ + +

+A parser that extracts INCLUDE statements from a Reader. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FortranParser() + +
+          Default constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFilename(java.lang.String include) + +
+          Called by FilenameState at completion of file name production.
+ java.lang.String[]getIncludes() + +
+          Gets collection of include file names encountered in parse.
+ AbstractParserStategetNewLineState() + +
+          Get the state for the beginning of a new line.
+ voidparse(java.io.Reader reader) + +
+          Collects all included files from the content of the reader.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FortranParser

+
+public FortranParser()
+
+
Default constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+addFilename

+
+public void addFilename(java.lang.String include)
+
+
Called by FilenameState at completion of file name production. +

+

+
Specified by:
addFilename in class AbstractParser
+
+
+
Parameters:
include - include file name
+
+
+
+ +

+getIncludes

+
+public java.lang.String[] getIncludes()
+
+
Gets collection of include file names encountered in parse. +

+

+
Specified by:
getIncludes in interface Parser
+
+
+ +
Returns:
include file names
+
+
+
+ +

+getNewLineState

+
+public AbstractParserState getNewLineState()
+
+
Get the state for the beginning of a new line. +

+

+
Specified by:
getNewLineState in class AbstractParser
+
+
+ +
Returns:
start of line state
+
+
+
+ +

+parse

+
+public void parse(java.io.Reader reader)
+           throws java.io.IOException
+
+
Collects all included files from the content of the reader. +

+

+
Specified by:
parse in interface Parser
Overrides:
parse in class AbstractParser
+
+
+
Parameters:
reader - character reader containing a FORTRAN source module +
Throws: +
java.io.IOException - throw if I/O error during parse
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/LetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/LetterState.html new file mode 100644 index 0000000..87ab437 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/LetterState.html @@ -0,0 +1,285 @@ + + + + + + + +LetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class LetterState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.LetterState
+
+
+
+
public final class LetterState
extends AbstractParserState
+ + +

+This parser state checks consumed characters against a specific character. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LetterState

+
+public LetterState(AbstractParser parser,
+                   char matchLetter,
+                   AbstractParserState nextStateArg,
+                   AbstractParserState noMatchStateArg)
+
+
Constructor. +

+

+
Parameters:
parser - parser
matchLetter - letter to match
nextStateArg - next state if a match on the letter
noMatchStateArg - state if no match on letter
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Consumes a character and returns the next state for the parser. +

+

+
Specified by:
consume in class AbstractParserState
+
+
+
Parameters:
ch - next character +
Returns:
the configured nextState if ch is the expected character or the + configure noMatchState otherwise.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/Parser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/Parser.html new file mode 100644 index 0000000..6caf04a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/Parser.html @@ -0,0 +1,237 @@ + + + + + + + +Parser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Interface Parser

+
+
All Known Implementing Classes:
CParser, FortranParser, UserInterfaceParser
+
+
+
+
public interface Parser
+ + +

+A parser that extracts #include statements from a Reader. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getIncludes() + +
+           
+ voidparse(java.io.Reader reader) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+getIncludes

+
+java.lang.String[] getIncludes()
+
+
+
+
+
+
+ +

+parse

+
+void parse(java.io.Reader reader)
+           throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/PostE.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/PostE.html new file mode 100644 index 0000000..c6fe52c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/PostE.html @@ -0,0 +1,271 @@ + + + + + + + +PostE (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class PostE

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.PostE
+
+
+
+
public class PostE
extends AbstractParserState
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
PostE(CParser parser, + AbstractParserState bracket, + AbstractParserState quote) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consume a character
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PostE

+
+public PostE(CParser parser,
+             AbstractParserState bracket,
+             AbstractParserState quote)
+
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Description copied from class: AbstractParserState
+
Consume a character +

+

+
Specified by:
consume in class AbstractParserState
+
+
+ +
Returns:
new state, may be null to ignore the rest of the line
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.html new file mode 100644 index 0000000..c116a1f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.html @@ -0,0 +1,284 @@ + + + + + + + +WhitespaceOrCaseInsensitiveLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class WhitespaceOrCaseInsensitiveLetterState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState
+
+
+
+
public final class WhitespaceOrCaseInsensitiveLetterState
extends AbstractParserState
+ + +

+This parser state checks consumed characters against a specific character + (case insensitive) or whitespace. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WhitespaceOrCaseInsensitiveLetterState

+
+public WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser,
+                                              char matchLetter,
+                                              AbstractParserState nextStateArg)
+
+
Constructor. +

+

+
Parameters:
parser - parser
matchLetter - letter to match
nextStateArg - next state if a match on the letter
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Consumes a character and returns the next state for the parser. +

+

+
Specified by:
consume in class AbstractParserState
+
+
+
Parameters:
ch - next character +
Returns:
the configured nextState if ch is the expected character or the + configure noMatchState otherwise.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.html new file mode 100644 index 0000000..6b565cc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.html @@ -0,0 +1,284 @@ + + + + + + + +WhitespaceOrLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class WhitespaceOrLetterState

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParserState
+      extended by net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState
+
+
+
+
public final class WhitespaceOrLetterState
extends AbstractParserState
+ + +

+This parser state checks consumed characters against a specific character or + whitespace. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
WhitespaceOrLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
+  + + + + + + + + + + + +
+Method Summary
+ AbstractParserStateconsume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.parser.AbstractParserState
getParser
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WhitespaceOrLetterState

+
+public WhitespaceOrLetterState(AbstractParser parser,
+                               char matchLetter,
+                               AbstractParserState nextStateArg)
+
+
Constructor. +

+

+
Parameters:
parser - parser
matchLetter - letter to match
nextStateArg - next state if a match on the letter
+
+ + + + + + + + +
+Method Detail
+ +

+consume

+
+public AbstractParserState consume(char ch)
+
+
Consumes a character and returns the next state for the parser. +

+

+
Specified by:
consume in class AbstractParserState
+
+
+
Parameters:
ch - next character @returns the configured nextState if ch is the + expected character or the configure noMatchState otherwise. +
Returns:
next state
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParser.html new file mode 100644 index 0000000..218c214 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParser.html @@ -0,0 +1,353 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.AbstractParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.AbstractParser

+
+ + + + + + + + + + + + + + + + + +
+Packages that use AbstractParser
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of AbstractParser in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of AbstractParser in net.sf.antcontrib.cpptasks.borland
+ classBorlandCfgParser + +
+          A parser that paths from a borland cfg file
+  +

+ + + + + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.borland with parameters of type AbstractParser
CfgFilenameState(AbstractParser parser, + char[] terminators) + +
+           
ConsumeToSpaceOrNewLine(AbstractParser parser) + +
+           
QuoteBranchState(AbstractParser parser, + AbstractParserState quote, + AbstractParserState unquote) + +
+           
+  +

+ + + + + +
+Uses of AbstractParser in net.sf.antcontrib.cpptasks.parser
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractParser in net.sf.antcontrib.cpptasks.parser
+ classCParser + +
+          A parser that extracts #include statements from a Reader.
+ classFortranParser + +
+          A parser that extracts INCLUDE statements from a Reader.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.parser that return AbstractParser
+protected  AbstractParserAbstractParserState.getParser() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.parser with parameters of type AbstractParser
AbstractParserState(AbstractParser parser) + +
+           
BranchState(AbstractParser parser, + char[] branchChars, + AbstractParserState[] branchStates, + AbstractParserState noMatchState) + +
+           
CaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
FilenameState(AbstractParser parser, + char[] terminators) + +
+           
LetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
WhitespaceOrLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
+  +

+ + + + + +
+Uses of AbstractParser in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Subclasses of AbstractParser in net.sf.antcontrib.cpptasks.trolltech
+ classMetaObjectParser + +
+          Scans a source file for Q_OBJECT.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParserState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParserState.html new file mode 100644 index 0000000..87ebd48 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/AbstractParserState.html @@ -0,0 +1,531 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.AbstractParserState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.AbstractParserState

+
+ + + + + + + + + + + + + + + + + +
+Packages that use AbstractParserState
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of AbstractParserState in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractParserState in net.sf.antcontrib.cpptasks.borland
+ classCfgFilenameState + +
+           
+ classConsumeToSpaceOrNewLine + +
+           
+ classQuoteBranchState + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return AbstractParserState
+ AbstractParserStateQuoteBranchState.consume(char ch) + +
+           
+ AbstractParserStateConsumeToSpaceOrNewLine.consume(char ch) + +
+           
+ AbstractParserStateCfgFilenameState.consume(char ch) + +
+           
+ AbstractParserStateBorlandCfgParser.getNewLineState() + +
+           
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.borland with parameters of type AbstractParserState
QuoteBranchState(AbstractParser parser, + AbstractParserState quote, + AbstractParserState unquote) + +
+           
+  +

+ + + + + +
+Uses of AbstractParserState in net.sf.antcontrib.cpptasks.parser
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractParserState in net.sf.antcontrib.cpptasks.parser
+ classBranchState + +
+           
+ classCaseInsensitiveLetterState + +
+          This parser state checks consumed characters against a specific character + (case insensitive).
+ classFilenameState + +
+           
+ classLetterState + +
+          This parser state checks consumed characters against a specific character.
+ classPostE + +
+           
+ classWhitespaceOrCaseInsensitiveLetterState + +
+          This parser state checks consumed characters against a specific character + (case insensitive) or whitespace.
+ classWhitespaceOrLetterState + +
+          This parser state checks consumed characters against a specific character or + whitespace.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.parser that return AbstractParserState
+ AbstractParserStateWhitespaceOrLetterState.consume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ AbstractParserStateWhitespaceOrCaseInsensitiveLetterState.consume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ AbstractParserStatePostE.consume(char ch) + +
+           
+ AbstractParserStateLetterState.consume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ AbstractParserStateFilenameState.consume(char ch) + +
+           
+ AbstractParserStateCaseInsensitiveLetterState.consume(char ch) + +
+          Consumes a character and returns the next state for the parser.
+ AbstractParserStateBranchState.consume(char ch) + +
+           
+abstract  AbstractParserStateAbstractParserState.consume(char ch) + +
+          Consume a character
+ AbstractParserStateFortranParser.getNewLineState() + +
+          Get the state for the beginning of a new line.
+ AbstractParserStateCParser.getNewLineState() + +
+           
+abstract  AbstractParserStateAbstractParser.getNewLineState() + +
+           
+protected  AbstractParserStateBranchState.getNoMatchState() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.parser with parameters of type AbstractParserState
BranchState(AbstractParser parser, + char[] branchChars, + AbstractParserState[] branchStates, + AbstractParserState noMatchState) + +
+           
BranchState(AbstractParser parser, + char[] branchChars, + AbstractParserState[] branchStates, + AbstractParserState noMatchState) + +
+           
CaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
LetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg, + AbstractParserState noMatchStateArg) + +
+          Constructor.
PostE(CParser parser, + AbstractParserState bracket, + AbstractParserState quote) + +
+           
WhitespaceOrCaseInsensitiveLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
WhitespaceOrLetterState(AbstractParser parser, + char matchLetter, + AbstractParserState nextStateArg) + +
+          Constructor.
+  +

+ + + + + +
+Uses of AbstractParserState in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return AbstractParserState
+ AbstractParserStateMetaObjectParser.getNewLineState() + +
+          Gets new line state.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/BranchState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/BranchState.html new file mode 100644 index 0000000..b0c0adb --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/BranchState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.BranchState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.BranchState

+
+No usage of net.sf.antcontrib.cpptasks.parser.BranchState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CParser.html new file mode 100644 index 0000000..913c8c4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CParser.html @@ -0,0 +1,178 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.CParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.CParser

+
+ + + + + + + + + +
+Packages that use CParser
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files. 
+  +

+ + + + + +
+Uses of CParser in net.sf.antcontrib.cpptasks.parser
+  +

+ + + + + + + + +
Constructors in net.sf.antcontrib.cpptasks.parser with parameters of type CParser
PostE(CParser parser, + AbstractParserState bracket, + AbstractParserState quote) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CaseInsensitiveLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CaseInsensitiveLetterState.html new file mode 100644 index 0000000..ccda88c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/CaseInsensitiveLetterState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState

+
+No usage of net.sf.antcontrib.cpptasks.parser.CaseInsensitiveLetterState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FilenameState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FilenameState.html new file mode 100644 index 0000000..e7806e0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FilenameState.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.FilenameState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.FilenameState

+
+ + + + + + + + + +
+Packages that use FilenameState
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
+  +

+ + + + + +
+Uses of FilenameState in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of FilenameState in net.sf.antcontrib.cpptasks.borland
+ classCfgFilenameState + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FortranParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FortranParser.html new file mode 100644 index 0000000..dd876a1 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/FortranParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.FortranParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.FortranParser

+
+No usage of net.sf.antcontrib.cpptasks.parser.FortranParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/LetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/LetterState.html new file mode 100644 index 0000000..c3533b5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/LetterState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.LetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.LetterState

+
+No usage of net.sf.antcontrib.cpptasks.parser.LetterState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/Parser.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/Parser.html new file mode 100644 index 0000000..22c8207 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/Parser.html @@ -0,0 +1,524 @@ + + + + + + + +Uses of Interface net.sf.antcontrib.cpptasks.parser.Parser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
net.sf.antcontrib.cpptasks.parser.Parser

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Parser
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland that return Parser
+protected  ParserBorlandResourceCompiler.createParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler that return Parser
+protected  ParserPrecompilingCommandLineCCompiler.createParser(java.io.File source) + +
+           
+protected  ParserCommandLineFortranCompiler.createParser(java.io.File source) + +
+           
+protected  ParserCommandLineCCompiler.createParser(java.io.File source) + +
+           
+protected abstract  ParserAbstractCompiler.createParser(java.io.File sourceFile) + +
+           
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio that return Parser
+protected  ParserDevStudioResourceCompiler.createParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  ParserDevStudioMIDLCompiler.createParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc that return Parser
+protected  ParserWindresResourceCompiler.createParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler
+protected  ParserGccCCompiler.createParser(java.io.File source) + +
+          Create parser to determine dependencies.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross that return Parser
+protected  ParserGccCCompiler.createParser(java.io.File source) + +
+          Create parser to determine dependencies.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 that return Parser
+protected  ParserGccCCompiler.createParser(java.io.File source) + +
+          Create parser to determine dependencies.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.mozilla
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.mozilla that return Parser
+protected  ParserXpidlCompiler.createParser(java.io.File source) + +
+          Gets dependency parser.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom that return Parser
+ ParserOpenWatcomFortranCompiler.createParser(java.io.File source) + +
+          Create dependency parser.
+ ParserOpenWatcomCCompiler.createParser(java.io.File source) + +
+          Create parser.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.parser
+  +

+ + + + + + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.parser that implement Parser
+ classCParser + +
+          A parser that extracts #include statements from a Reader.
+ classFortranParser + +
+          A parser that extracts INCLUDE statements from a Reader.
+  +

+ + + + + +
+Uses of Parser in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Classes in net.sf.antcontrib.cpptasks.trolltech that implement Parser
+ classUserInterfaceParser + +
+          Dependency scanner for Trolltech Qt User Interface definition files.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return Parser
+protected  ParserUserInterfaceCompiler.createParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler.
+protected  ParserMetaObjectCompiler.createParser(java.io.File source) + +
+          Gets a parser to scan source file for dependencies.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/PostE.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/PostE.html new file mode 100644 index 0000000..d70affc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/PostE.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.PostE (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.PostE

+
+No usage of net.sf.antcontrib.cpptasks.parser.PostE +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrCaseInsensitiveLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrCaseInsensitiveLetterState.html new file mode 100644 index 0000000..474d68a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrCaseInsensitiveLetterState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState

+
+No usage of net.sf.antcontrib.cpptasks.parser.WhitespaceOrCaseInsensitiveLetterState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrLetterState.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrLetterState.html new file mode 100644 index 0000000..0c8a264 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/class-use/WhitespaceOrLetterState.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState

+
+No usage of net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html new file mode 100644 index 0000000..e39e3b4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html @@ -0,0 +1,64 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.parser + + + + +
+Interfaces  + +
+Parser
+ + + + + + +
+Classes  + +
+AbstractParser +
+AbstractParserState +
+BranchState +
+CaseInsensitiveLetterState +
+CParser +
+FilenameState +
+FortranParser +
+LetterState +
+PostE +
+WhitespaceOrCaseInsensitiveLetterState +
+WhitespaceOrLetterState
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html new file mode 100644 index 0000000..358df9a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html @@ -0,0 +1,229 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.parser +

+Provides minimal scanners to extract dependencies, +such as include statements, from source files. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
ParserA parser that extracts #include statements from a Reader.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractParserAn abstract base class for simple parsers
AbstractParserStateAn base class for objects that represent the state of an AbstractParser.
BranchState 
CaseInsensitiveLetterStateThis parser state checks consumed characters against a specific character + (case insensitive).
CParserA parser that extracts #include statements from a Reader.
FilenameState 
FortranParserA parser that extracts INCLUDE statements from a Reader.
LetterStateThis parser state checks consumed characters against a specific character.
PostE 
WhitespaceOrCaseInsensitiveLetterStateThis parser state checks consumed characters against a specific character + (case insensitive) or whitespace.
WhitespaceOrLetterStateThis parser state checks consumed characters against a specific character or + whitespace.
+  + +

+

+Package net.sf.antcontrib.cpptasks.parser Description +

+ +

+Provides minimal scanners to extract dependencies, +such as include statements, from source files. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html new file mode 100644 index 0000000..cdd9c1f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.parser +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • net.sf.antcontrib.cpptasks.parser.Parser
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-use.html new file mode 100644 index 0000000..fe1c587 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/parser/package-use.html @@ -0,0 +1,349 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.parser

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.parser
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler. 
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files. 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.borland
AbstractParser + +
+          An abstract base class for simple parsers
AbstractParserState + +
+          An base class for objects that represent the state of an AbstractParser.
FilenameState + +
+           
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.compiler
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.devstudio
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.gcc
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.mozilla
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.openwatcom
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.parser
AbstractParser + +
+          An abstract base class for simple parsers
AbstractParserState + +
+          An base class for objects that represent the state of an AbstractParser.
CParser + +
+          A parser that extracts #include statements from a Reader.
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.parser used by net.sf.antcontrib.cpptasks.trolltech
AbstractParser + +
+          An abstract base class for simple parsers
AbstractParserState + +
+          An base class for objects that represent the state of an AbstractParser.
Parser + +
+          A parser that extracts #include statements from a Reader.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.html new file mode 100644 index 0000000..8d7e996 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.html @@ -0,0 +1,296 @@ + + + + + + + +WindowsPlatform (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.platforms +
+Class WindowsPlatform

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.platforms.WindowsPlatform
+
+
+
+
public final class WindowsPlatform
extends java.lang.Object
+ + +

+Platform specific behavior for Microsoft Windows. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddVersionFiles(VersionInfo versionInfo, + LinkType linkType, + java.io.File outputFile, + boolean isDebug, + java.io.File objDir, + TargetMatcher matcher) + +
+          Adds source or object files to the bidded fileset to + support version information.
+static short[]parseVersion(java.lang.String version) + +
+          Parse version string into array of four short values.
+static voidwriteResource(java.io.Writer writer, + VersionInfo versionInfo, + java.io.File outputFile, + boolean isDebug, + LinkType linkType) + +
+          Writes windows resource.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addVersionFiles

+
+public static void addVersionFiles(VersionInfo versionInfo,
+                                   LinkType linkType,
+                                   java.io.File outputFile,
+                                   boolean isDebug,
+                                   java.io.File objDir,
+                                   TargetMatcher matcher)
+                            throws java.io.IOException
+
+
Adds source or object files to the bidded fileset to + support version information. +

+

+
Parameters:
versionInfo - version information
linkType - link type
isDebug - true if debug build
outputFile - name of generated executable
objDir - directory for generated files
matcher - bidded fileset +
Throws: +
java.io.IOException - if unable to write version resource
+
+
+
+ +

+parseVersion

+
+public static short[] parseVersion(java.lang.String version)
+
+
Parse version string into array of four short values. +

+

+
Parameters:
version - String version +
Returns:
short[] four element array
+
+
+
+ +

+writeResource

+
+public static void writeResource(java.io.Writer writer,
+                                 VersionInfo versionInfo,
+                                 java.io.File outputFile,
+                                 boolean isDebug,
+                                 LinkType linkType)
+                          throws java.io.IOException
+
+
Writes windows resource. +

+

+
Parameters:
writer - writer, may not be nul
versionInfo - version information
outputFile - executable file
isDebug - true if debug
linkType - link type +
Throws: +
java.io.IOException - if error writing resource file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/class-use/WindowsPlatform.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/class-use/WindowsPlatform.html new file mode 100644 index 0000000..d0b4372 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/class-use/WindowsPlatform.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.platforms.WindowsPlatform (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.platforms.WindowsPlatform

+
+No usage of net.sf.antcontrib.cpptasks.platforms.WindowsPlatform +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-frame.html new file mode 100644 index 0000000..5456c7b --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.platforms (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.platforms + + + + +
+Classes  + +
+WindowsPlatform
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-summary.html new file mode 100644 index 0000000..2cac04d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-summary.html @@ -0,0 +1,170 @@ + + + + + + + +net.sf.antcontrib.cpptasks.platforms (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.platforms +

+Platform specific utilities. +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
WindowsPlatformPlatform specific behavior for Microsoft Windows.
+  + +

+

+Package net.sf.antcontrib.cpptasks.platforms Description +

+ +

+Platform specific utilities. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-tree.html new file mode 100644 index 0000000..df1dd5f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-tree.html @@ -0,0 +1,150 @@ + + + + + + + +net.sf.antcontrib.cpptasks.platforms Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.platforms +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-use.html new file mode 100644 index 0000000..1c2f6b9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/platforms/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.platforms (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.platforms

+
+No usage of net.sf.antcontrib.cpptasks.platforms +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89CCompiler.html new file mode 100644 index 0000000..b092c20 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89CCompiler.html @@ -0,0 +1,537 @@ + + + + + + + +C89CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class C89CCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.sun.C89CCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class C89CCompiler
extends CommandLineCCompiler
+ + +

+Adapter for the Sun C89 C++ Compiler +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buf, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static AbstractCompilergetInstance() + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  intgetMaximumInputFilesPerCommand() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buf, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static AbstractCompiler getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buf,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buf,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Linker.html new file mode 100644 index 0000000..e3c3a3e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Linker.html @@ -0,0 +1,667 @@ + + + + + + + +C89Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class C89Linker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.sun.C89Linker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class C89Linker
extends CommandLineLinker
+ + +

+Adapter for the Sun C89 Linker +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+ java.lang.String[]addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+ java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+static C89LinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+ intgetMaximumCommandLength() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + VersionInfo versionInfo) + +
+          Output file name (no path components) corresponding to source file
+ java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static C89Linker getInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addLibrarySets

+
+public java.lang.String[] addLibrarySets(CCTask task,
+                                         LibrarySet[] libsets,
+                                         java.util.Vector preargs,
+                                         java.util.Vector midargs,
+                                         java.util.Vector endargs)
+
+
+
Overrides:
addLibrarySets in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             VersionInfo versionInfo)
+
+
Description copied from interface: Processor
+
Output file name (no path components) corresponding to source file +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class CommandLineLinker
+
+
+
Parameters:
baseName - input file +
Returns:
output file name or null if no output file or name not + determined by input file
+
+
+
+ +

+getOutputFileSwitch

+
+public java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Processor.html new file mode 100644 index 0000000..fea80a9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/C89Processor.html @@ -0,0 +1,368 @@ + + + + + + + +C89Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class C89Processor

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.sun.C89Processor
+
+
+
+
public class C89Processor
extends java.lang.Object
+ + +

+A add-in class for Sun C89 compilers and linkers +

+ +

+

+
Author:
+
Hiram Chirino (cojonudo14@hotmail.com)
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+static java.lang.StringgetCommandFileSwitch(java.lang.String cmdFile) + +
+           
+static voidgetDefineSwitch(java.lang.StringBuffer buf, + java.lang.String define, + java.lang.String value) + +
+           
+static java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+           
+static java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+static java.lang.String[]getOutputFileSwitch(java.lang.String outPath) + +
+           
+static voidgetUndefineSwitch(java.lang.StringBuffer buf, + java.lang.String define) + +
+           
+static booleanisCaseSensitive() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+addWarningSwitch

+
+public static void addWarningSwitch(java.util.Vector args,
+                                    int level)
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+public static java.lang.String getCommandFileSwitch(java.lang.String cmdFile)
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+public static void getDefineSwitch(java.lang.StringBuffer buf,
+                                   java.lang.String define,
+                                   java.lang.String value)
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+public static java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
+
+
+
+
+ +

+getLibraryPatterns

+
+public static java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                                    LibraryTypeEnum libType)
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+public static java.lang.String[] getOutputFileSwitch(java.lang.String outPath)
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+public static void getUndefineSwitch(java.lang.StringBuffer buf,
+                                     java.lang.String define)
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public static boolean isCaseSensitive()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.html new file mode 100644 index 0000000..44bdfad --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.html @@ -0,0 +1,431 @@ + + + + + + + +ForteCCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class ForteCCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
+                      extended by net.sf.antcontrib.cpptasks.sun.ForteCCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class ForteCCCompiler
extends GccCompatibleCCompiler
+ + +

+Adapter for the Sun (r) Forte (tm) C++ compiler +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+ voidaddWarningSwitch(java.util.Vector args, + int level) + +
+           
+ java.io.File[]getEnvironmentIncludePath() + +
+           
+static ForteCCCompilergetInstance() + +
+          Gets singleton instance of this class
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static ForteCCCompiler getInstance()
+
+
Gets singleton instance of this class +

+

+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(java.util.Vector args,
+                           boolean debug,
+                           boolean multithreaded,
+                           boolean exceptions,
+                           LinkType linkType,
+                           java.lang.Boolean rtti,
+                           OptimizationEnum optimization)
+
+
+
Overrides:
addImpliedArgs in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+public void addWarningSwitch(java.util.Vector args,
+                             int level)
+
+
+
Overrides:
addWarningSwitch in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+public java.io.File[] getEnvironmentIncludePath()
+
+
+
Overrides:
getEnvironmentIncludePath in class GccCompatibleCCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.html new file mode 100644 index 0000000..2145916 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.html @@ -0,0 +1,384 @@ + + + + + + + +ForteCCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class ForteCCLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
+                  extended by net.sf.antcontrib.cpptasks.sun.ForteCCLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public final class ForteCCLinker
extends AbstractLdLinker
+ + +

+Adapter for Sun (r) Forte(tm) C++ Linker +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+ voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+static ForteCCLinkergetInstance() + +
+           
+ java.io.File[]getLibraryPath() + +
+          Returns library path.
+ LinkergetLinker(LinkType type) + +
+          Gets the linker for the specified link type.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker
addBase, addEntry, addFixed, addLibraryPatterns, addLibrarySets, addMap, addStack, getCommandFileSwitch, getDynamicLibFlag, getEnvironmentIncludePath, getLibraryKey, getLibraryPatterns, getMaximumCommandLength, getOutputFileNames, getOutputFileSwitch, getStaticLibFlag, isCaseSensitive, isHPUX, prepareArguments
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileSwitch, getStartupObject, link, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static ForteCCLinker getInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+public void addImpliedArgs(boolean debug,
+                           LinkType linkType,
+                           java.util.Vector args)
+
+
+
Overrides:
addImpliedArgs in class AbstractLdLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+public void addIncremental(boolean incremental,
+                           java.util.Vector args)
+
+
+
Overrides:
addIncremental in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Returns library path. +

+

+
Specified by:
getLibraryPath in interface Linker
Overrides:
getLibraryPath in class AbstractLdLinker
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89CCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89CCompiler.html new file mode 100644 index 0000000..a640b7a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89CCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.C89CCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.C89CCompiler

+
+No usage of net.sf.antcontrib.cpptasks.sun.C89CCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Linker.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Linker.html new file mode 100644 index 0000000..aa52031 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Linker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.C89Linker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.C89Linker

+
+ + + + + + + + + +
+Packages that use C89Linker
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + +
+Uses of C89Linker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return C89Linker
+static C89LinkerC89Linker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Processor.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Processor.html new file mode 100644 index 0000000..3928cb4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/C89Processor.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.C89Processor (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.C89Processor

+
+No usage of net.sf.antcontrib.cpptasks.sun.C89Processor +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCCompiler.html new file mode 100644 index 0000000..382e7cf --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.ForteCCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.ForteCCCompiler

+
+ + + + + + + + + +
+Packages that use ForteCCCompiler
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + +
+Uses of ForteCCCompiler in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return ForteCCCompiler
+static ForteCCCompilerForteCCCompiler.getInstance() + +
+          Gets singleton instance of this class
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCLinker.html new file mode 100644 index 0000000..d1d7a9a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/class-use/ForteCCLinker.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.ForteCCLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.ForteCCLinker

+
+ + + + + + + + + +
+Packages that use ForteCCLinker
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + +
+Uses of ForteCCLinker in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun that return ForteCCLinker
+static ForteCCLinkerForteCCLinker.getInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html new file mode 100644 index 0000000..75982b9 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html @@ -0,0 +1,41 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.sun + + + + +
+Classes  + +
+C89CCompiler +
+C89Linker +
+C89Processor +
+ForteCCCompiler +
+ForteCCLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html new file mode 100644 index 0000000..db571b4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html @@ -0,0 +1,171 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.sun +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
C89CCompilerAdapter for the Sun C89 C++ Compiler
C89LinkerAdapter for the Sun C89 Linker
C89ProcessorA add-in class for Sun C89 compilers and linkers
ForteCCCompilerAdapter for the Sun (r) Forte (tm) C++ compiler
ForteCCLinkerAdapter for Sun (r) Forte(tm) C++ Linker
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html new file mode 100644 index 0000000..eddb1ba --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html @@ -0,0 +1,169 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.sun +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-use.html new file mode 100644 index 0000000..fc00161 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/sun/package-use.html @@ -0,0 +1,179 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.sun

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.sun
net.sf.antcontrib.cpptasks.sun  
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.sun used by net.sf.antcontrib.cpptasks.sun
C89Linker + +
+          Adapter for the Sun C89 Linker
ForteCCCompiler + +
+          Adapter for the Sun (r) Forte (tm) C++ compiler
ForteCCLinker + +
+          Adapter for Sun (r) Forte(tm) C++ Linker
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.html new file mode 100644 index 0000000..c492e4f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.html @@ -0,0 +1,510 @@ + + + + + + + +ClxxCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ti +
+Class ClxxCCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
+                  extended by net.sf.antcontrib.cpptasks.ti.ClxxCCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public class ClxxCCompiler
extends CommandLineCCompiler
+ + +

+Adapter for TI DSP compilers with cl** commands +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+           
+protected  voidaddWarningSwitch(java.util.Vector args, + int warnings) + +
+           
+static ClxxCCompilergetCl55Instance() + +
+           
+static ClxxCCompilergetCl6xInstance() + +
+           
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+           
+protected  java.io.File[]getEnvironmentIncludePath() + +
+           
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String source) + +
+           
+ LinkergetLinker(LinkType type) + +
+          Gets the linker that is associated with this processors
+ intgetMaximumCommandLength() + +
+           
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
createParser
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid, changeEnvironment
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCl55Instance

+
+public static ClxxCCompiler getCl55Instance()
+
+
+
+
+
+
+ +

+getCl6xInstance

+
+public static ClxxCCompiler getCl6xInstance()
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int warnings)
+
+
+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String source)
+
+
+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Description copied from interface: Processor
+
Gets the linker that is associated with this processors +

+

+
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.html new file mode 100644 index 0000000..40a225a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.html @@ -0,0 +1,628 @@ + + + + + + + +ClxxLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ti +
+Class ClxxLibrarian

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.ti.ClxxLibrarian
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class ClxxLibrarian
extends CommandLineLinker
+ + +

+Adapter for TI DSP librarian + * +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+static ClxxLibrariangetCl55Instance() + +
+           
+static ClxxLibrariangetCl6xInstance() + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+protected  intgetMaximumCommandLength() + +
+           
+protected  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCl55Instance

+
+public static final ClxxLibrarian getCl55Instance()
+
+
+
+
+
+
+ +

+getCl6xInstance

+
+public static final ClxxLibrarian getCl6xInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+protected int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLinker.html new file mode 100644 index 0000000..4356461 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/ClxxLinker.html @@ -0,0 +1,666 @@ + + + + + + + +ClxxLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ti +
+Class ClxxLinker

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractLinker
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
+              extended by net.sf.antcontrib.cpptasks.ti.ClxxLinker
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Linker, Processor
+
+
+
+
public class ClxxLinker
extends CommandLineLinker
+ + +

+Adapter for TI DSP linkers + * +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddBase(long base, + java.util.Vector args) + +
+           
+protected  voidaddEntry(java.lang.String entry, + java.util.Vector args) + +
+           
+protected  voidaddFixed(java.lang.Boolean fixed, + java.util.Vector args) + +
+           
+protected  voidaddImpliedArgs(boolean debug, + LinkType linkType, + java.util.Vector args) + +
+           
+protected  voidaddIncremental(boolean incremental, + java.util.Vector args) + +
+           
+protected  voidaddMap(boolean map, + java.util.Vector args) + +
+           
+protected  voidaddStack(int stack, + java.util.Vector args) + +
+           
+static ClxxLinkergetCl55DllInstance() + +
+           
+static ClxxLinkergetCl55Instance() + +
+           
+static ClxxLinkergetCl6xDllInstance() + +
+           
+static ClxxLinkergetCl6xInstance() + +
+           
+protected  java.lang.StringgetCommandFileSwitch(java.lang.String commandFile) + +
+           
+ java.io.File[]getLibraryPath() + +
+          returns the library path for the linker
+ java.lang.String[]getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Returns a set of filename patterns corresponding to library names.
+ LinkergetLinker(LinkType linkType) + +
+          Gets the linker for the specified link type.
+protected  intgetMaximumCommandLength() + +
+           
+protected  java.lang.String[]getOutputFileSwitch(java.lang.String outputFile) + +
+           
+ booleanisCaseSensitive() + +
+          Returns true if the linker is case-sensitive
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineLinker
addLibrarySets, createConfiguration, decorateLinkerOption, getCommand, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getCl55DllInstance

+
+public static ClxxLinker getCl55DllInstance()
+
+
+
+
+
+
+ +

+getCl55Instance

+
+public static ClxxLinker getCl55Instance()
+
+
+
+
+
+
+ +

+getCl6xDllInstance

+
+public static ClxxLinker getCl6xDllInstance()
+
+
+
+
+
+
+ +

+getCl6xInstance

+
+public static ClxxLinker getCl6xInstance()
+
+
+
+
+
+
+ +

+addBase

+
+protected void addBase(long base,
+                       java.util.Vector args)
+
+
+
Specified by:
addBase in class CommandLineLinker
+
+
+
+
+
+
+ +

+addFixed

+
+protected void addFixed(java.lang.Boolean fixed,
+                        java.util.Vector args)
+
+
+
Specified by:
addFixed in class CommandLineLinker
+
+
+
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(boolean debug,
+                              LinkType linkType,
+                              java.util.Vector args)
+
+
+
Specified by:
addImpliedArgs in class CommandLineLinker
+
+
+
+
+
+
+ +

+addIncremental

+
+protected void addIncremental(boolean incremental,
+                              java.util.Vector args)
+
+
+
Specified by:
addIncremental in class CommandLineLinker
+
+
+
+
+
+
+ +

+addMap

+
+protected void addMap(boolean map,
+                      java.util.Vector args)
+
+
+
Specified by:
addMap in class CommandLineLinker
+
+
+
+
+
+
+ +

+addStack

+
+protected void addStack(int stack,
+                        java.util.Vector args)
+
+
+
Specified by:
addStack in class CommandLineLinker
+
+
+
+
+
+
+ +

+addEntry

+
+protected void addEntry(java.lang.String entry,
+                        java.util.Vector args)
+
+
+
Specified by:
addEntry in class CommandLineLinker
+
+
+
+
+
+
+ +

+getCommandFileSwitch

+
+protected java.lang.String getCommandFileSwitch(java.lang.String commandFile)
+
+
+
Specified by:
getCommandFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+getLibraryPath

+
+public java.io.File[] getLibraryPath()
+
+
Description copied from interface: Linker
+
returns the library path for the linker +

+

+
+
+
+
+ +

+getLibraryPatterns

+
+public java.lang.String[] getLibraryPatterns(java.lang.String[] libnames,
+                                             LibraryTypeEnum libType)
+
+
Description copied from interface: Linker
+
Returns 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

+
+public Linker getLinker(LinkType linkType)
+
+
Description copied from interface: Linker
+
Gets the linker for the specified link type. +

+

+ +
Returns:
appropriate linker or null, will return this if this linker can + handle the specified link type
+
+
+
+ +

+getMaximumCommandLength

+
+protected int getMaximumCommandLength()
+
+
+
Specified by:
getMaximumCommandLength in class CommandLineLinker
+
+
+
+
+
+
+ +

+getOutputFileSwitch

+
+protected java.lang.String[] getOutputFileSwitch(java.lang.String outputFile)
+
+
+
Specified by:
getOutputFileSwitch in class CommandLineLinker
+
+
+
+
+
+
+ +

+isCaseSensitive

+
+public boolean isCaseSensitive()
+
+
Description copied from interface: Linker
+
Returns true if the linker is case-sensitive +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxCCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxCCompiler.html new file mode 100644 index 0000000..7d2721e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxCCompiler.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ti.ClxxCCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ti.ClxxCCompiler

+
+ + + + + + + + + +
+Packages that use ClxxCCompiler
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of ClxxCCompiler in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti that return ClxxCCompiler
+static ClxxCCompilerClxxCCompiler.getCl55Instance() + +
+           
+static ClxxCCompilerClxxCCompiler.getCl6xInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLibrarian.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLibrarian.html new file mode 100644 index 0000000..43d320a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLibrarian.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ti.ClxxLibrarian (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ti.ClxxLibrarian

+
+ + + + + + + + + +
+Packages that use ClxxLibrarian
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of ClxxLibrarian in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti that return ClxxLibrarian
+static ClxxLibrarianClxxLibrarian.getCl55Instance() + +
+           
+static ClxxLibrarianClxxLibrarian.getCl6xInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLinker.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLinker.html new file mode 100644 index 0000000..113b131 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/class-use/ClxxLinker.html @@ -0,0 +1,201 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ti.ClxxLinker (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ti.ClxxLinker

+
+ + + + + + + + + +
+Packages that use ClxxLinker
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + +
+Uses of ClxxLinker in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti that return ClxxLinker
+static ClxxLinkerClxxLinker.getCl55DllInstance() + +
+           
+static ClxxLinkerClxxLinker.getCl55Instance() + +
+           
+static ClxxLinkerClxxLinker.getCl6xDllInstance() + +
+           
+static ClxxLinkerClxxLinker.getCl6xInstance() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-frame.html new file mode 100644 index 0000000..5cd0982 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-frame.html @@ -0,0 +1,37 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ti (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.ti + + + + +
+Classes  + +
+ClxxCCompiler +
+ClxxLibrarian +
+ClxxLinker
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-summary.html new file mode 100644 index 0000000..9b0905e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-summary.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ti (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.ti +

+ + + + + + + + + + + + + + + + + +
+Class Summary
ClxxCCompilerAdapter for TI DSP compilers with cl** commands
ClxxLibrarianAdapter for TI DSP librarian + *
ClxxLinkerAdapter for TI DSP linkers + *
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-tree.html new file mode 100644 index 0000000..5dfe37a --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ti Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.ti +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-use.html new file mode 100644 index 0000000..287d001 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/ti/package-use.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.ti (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.ti

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.ti
net.sf.antcontrib.cpptasks.ti  
+  +

+ + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.ti used by net.sf.antcontrib.cpptasks.ti
ClxxCCompiler + +
+          Adapter for TI DSP compilers with cl** commands
ClxxLibrarian + +
+          Adapter for TI DSP librarian + *
ClxxLinker + +
+          Adapter for TI DSP linkers + *
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.html new file mode 100644 index 0000000..4c0eb9f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.html @@ -0,0 +1,705 @@ + + + + + + + +MetaObjectCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class MetaObjectCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class MetaObjectCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Trolltech Qt MOC Compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+          Add arguments for specified warning level.
+ intbid(java.lang.String inputFile) + +
+          Returns the bid of the processor for the file.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+protected  ParsercreateParser(java.io.File source) + +
+          Gets a parser to scan source file for dependencies.
+protected  intgetArgumentCountPerInputFile() + +
+          Gets number of command line arguments per input file.
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Gets switch to define preprocessor macro.
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          Gets standard include paths.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+          Gets include directory switch.
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+          Gets input file arguments.
+static MetaObjectCompilergetInstance() + +
+          Gets singleton instance of compiler.
+ LinkergetLinker(LinkType type) + +
+          Gets linker associated with this type.
+ intgetMaximumCommandLength() + +
+          Gets maximum length of command line.
+protected  intgetMaximumInputFilesPerCommand() + +
+          Gets maximum number of input files processed per command.
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+          Get total command line length due to the input file.
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+          Gets switch to undefine preprocessor macro.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static MetaObjectCompiler getInstance()
+
+
Gets singleton instance of compiler. +

+

+ +
Returns:
MetaObjectCompiler singleton instance
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
Add arguments for debug, etc. +

+

+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command argument list
debug - boolean build for debug if true
multithreaded - boolean build for multithreading if true
exceptions - boolean enable exceptions if true
linkType - LinkType output and runtime type
rtti - Boolean enable run-time type identification if true
optimization - OptimizationEnum optimization
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
Add arguments for specified warning level. +

+

+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command line arguments
level - int warning level value
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
Change enviroment (deprecated). +

+

+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
Parameters:
newEnvironment - boolean use new environment.
env - Environment environment +
Returns:
Processor modified processor
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
Gets a parser to scan source file for dependencies. +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
Parameters:
source - source file +
Returns:
parser
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
Gets number of command line arguments per input file. +

+

+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+ +
Returns:
int number of command line arguments per input file.
+
+
+
+ +

+bid

+
+public int bid(java.lang.String inputFile)
+
+
Returns the bid of the processor for the file. +

+

+
Specified by:
bid in interface Processor
Overrides:
bid in class AbstractProcessor
+
+
+
Parameters:
inputFile - filename of input file +
Returns:
bid for the file, 0 indicates no interest, 1 indicates that the + processor recognizes the file but doesn't process it (header + files, for example), 100 indicates strong interest
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Gets output file names. +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class AbstractCompiler
+
+
+
Parameters:
inputFile - String input file name
versionInfo - version info, not used by this compiler. +
Returns:
String[] output file names
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
Gets input file arguments. +

+

+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
filename - String input file name.
index - int argument index, + 0 to getNumberOfArgumentsPerInputFile() -1 +
Returns:
String input file argument
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
Gets maximum length of command line. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+ +
Returns:
int maximum length of command line
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
Gets maximum number of input files processed per command. +

+

+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+ +
Returns:
int maximum number of input files processed per command.
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
Gets include directory switch. +

+

+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
Parameters:
includeDir - String include directory +
Returns:
String command switch to add specified directory to search path
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
Gets switch to define preprocessor macro. +

+

+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
value - String macro value, may be null.
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
Gets switch to undefine preprocessor macro. +

+

+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
Gets standard include paths. +

+

+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+ +
Returns:
File[] standard include paths
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Gets linker associated with this type. +

+

+
Parameters:
type - LinkType linker, returns ld. +
Returns:
Linker
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
Get total command line length due to the input file. +

+

+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
inputFile - String input file +
Returns:
int characters added to command line for the input file.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.html new file mode 100644 index 0000000..b812566 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.html @@ -0,0 +1,329 @@ + + + + + + + +MetaObjectParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class MetaObjectParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.parser.AbstractParser
+      extended by net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser
+
+
+
+
public final class MetaObjectParser
extends AbstractParser
+ + +

+Scans a source file for Q_OBJECT. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddFilename(java.lang.String filename) + +
+          Adds a filename to the list of included files.
+ AbstractParserStategetNewLineState() + +
+          Gets new line state.
+static booleanhasQObject(java.io.Reader reader) + +
+          Determines if source file contains Q_OBJECT.
+ voidparse(java.io.Reader reader) + +
+          Parse input file.
+ voidsetQObject(boolean value) + +
+          Called FinalTState to set that Q_OBJECT was found.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+hasQObject

+
+public static boolean hasQObject(java.io.Reader reader)
+                          throws java.io.IOException
+
+
Determines if source file contains Q_OBJECT. +

+

+
Parameters:
reader - Reader source reader +
Returns:
boolean true if source contains Q_OBJECT +
Throws: +
java.io.IOException - if unable to read source file
+
+
+
+ +

+addFilename

+
+protected void addFilename(java.lang.String filename)
+
+
Adds a filename to the list of included files. +

+

+
Specified by:
addFilename in class AbstractParser
+
+
+
Parameters:
filename - filename to be added
+
+
+
+ +

+getNewLineState

+
+public AbstractParserState getNewLineState()
+
+
Gets new line state. +

+

+
Specified by:
getNewLineState in class AbstractParser
+
+
+ +
Returns:
AbstractParserState new line state.
+
+
+
+ +

+parse

+
+public void parse(java.io.Reader reader)
+           throws java.io.IOException
+
+
Parse input file. +

+

+
Overrides:
parse in class AbstractParser
+
+
+
Parameters:
reader - Reader source file +
Throws: +
java.io.IOException - if error reading source file
+
+
+
+ +

+setQObject

+
+public void setQObject(boolean value)
+
+
Called FinalTState to set that Q_OBJECT was found. +

+

+
Parameters:
value - boolean new value for hasQObject
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.html new file mode 100644 index 0000000..c0c8823 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.html @@ -0,0 +1,727 @@ + + + + + + + +UserInterfaceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class UserInterfaceCompiler

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
+      extended by net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
+          extended by net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
+              extended by net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, Compiler, Processor
+
+
+
+
public final class UserInterfaceCompiler
extends CommandLineCompiler
+ + +

+Adapter for the Trolltech Qt UIC Compiler. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidaddImpliedArgs(java.util.Vector args, + boolean debug, + boolean multithreaded, + boolean exceptions, + LinkType linkType, + java.lang.Boolean rtti, + OptimizationEnum optimization) + +
+          Add arguments for debug, etc.
+protected  voidaddWarningSwitch(java.util.Vector args, + int level) + +
+          Add arguments for specified warning level.
+ ProcessorchangeEnvironment(boolean newEnvironment, + org.apache.tools.ant.types.Environment env) + +
+          Change enviroment (deprecated).
+ voidcompile(CCTask task, + java.io.File outputDir, + java.lang.String[] sourceFiles, + java.lang.String[] args, + java.lang.String[] endArgs, + boolean relentless, + CommandLineCompilerConfiguration config, + ProgressMonitor monitor) + +
+          Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files.
+protected  ParsercreateParser(java.io.File source) + +
+          The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler.
+protected  intgetArgumentCountPerInputFile() + +
+          Gets number of command line arguments per input file.
+protected  voidgetDefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define, + java.lang.String value) + +
+          Gets switch to define preprocessor macro.
+protected  java.io.File[]getEnvironmentIncludePath() + +
+          Gets standard include paths.
+protected  java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir) + +
+          Gets include directory switch.
+protected  java.lang.StringgetInputFileArgument(java.io.File outputDir, + java.lang.String filename, + int index) + +
+          Gets input file arguments.
+static UserInterfaceCompilergetInstance() + +
+          Gets singleton instance of compiler.
+ LinkergetLinker(LinkType type) + +
+          Gets linker associated with this type.
+ intgetMaximumCommandLength() + +
+          Gets maximum length of command line.
+protected  intgetMaximumInputFilesPerCommand() + +
+          Gets maximum number of input files processed per command.
+ java.lang.String[]getOutputFileNames(java.lang.String inputFile, + VersionInfo versionInfo) + +
+          Gets output file names.
+protected  intgetTotalArgumentLengthForInputFile(java.io.File outputDir, + java.lang.String inputFile) + +
+          Get total command line length due to the input file.
+protected  voidgetUndefineSwitch(java.lang.StringBuffer buffer, + java.lang.String define) + +
+          Gets switch to undefine preprocessor macro.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, parseIncludes, resolveInclude
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface net.sf.antcontrib.cpptasks.compiler.Processor
bid
+  +

+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static UserInterfaceCompiler getInstance()
+
+
Gets singleton instance of compiler. +

+

+ +
Returns:
MetaObjectCompiler singleton instance
+
+
+
+ +

+addImpliedArgs

+
+protected void addImpliedArgs(java.util.Vector args,
+                              boolean debug,
+                              boolean multithreaded,
+                              boolean exceptions,
+                              LinkType linkType,
+                              java.lang.Boolean rtti,
+                              OptimizationEnum optimization)
+
+
Add arguments for debug, etc. +

+

+
Specified by:
addImpliedArgs in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command argument list
debug - boolean build for debug if true
multithreaded - boolean build for multithreading if true
exceptions - boolean enable exceptions if true
linkType - LinkType output and runtime type
rtti - Boolean enable run-time type identification if true
optimization - OptimizationEnum optimization
+
+
+
+ +

+addWarningSwitch

+
+protected void addWarningSwitch(java.util.Vector args,
+                                int level)
+
+
Add arguments for specified warning level. +

+

+
Specified by:
addWarningSwitch in class CommandLineCompiler
+
+
+
Parameters:
args - Vector command line arguments
level - int warning level value
+
+
+
+ +

+changeEnvironment

+
+public Processor changeEnvironment(boolean newEnvironment,
+                                   org.apache.tools.ant.types.Environment env)
+
+
Change enviroment (deprecated). +

+

+
Specified by:
changeEnvironment in interface Processor
Overrides:
changeEnvironment in class AbstractProcessor
+
+
+
Parameters:
newEnvironment - boolean use new environment.
env - Environment environment +
Returns:
Processor modified processor
+
+
+
+ +

+createParser

+
+protected Parser createParser(java.io.File source)
+
+
The include parser for C will work just fine, but we didn't want to + inherit from CommandLineCCompiler. +

+

+
Specified by:
createParser in class AbstractCompiler
+
+
+
Parameters:
source - source file to be parsed +
Returns:
parser
+
+
+
+ +

+getArgumentCountPerInputFile

+
+protected int getArgumentCountPerInputFile()
+
+
Gets number of command line arguments per input file. +

+

+
Overrides:
getArgumentCountPerInputFile in class CommandLineCompiler
+
+
+ +
Returns:
int number of command line arguments per input file.
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
+                                             VersionInfo versionInfo)
+
+
Gets output file names. +

+

+
Specified by:
getOutputFileNames in interface Processor
Overrides:
getOutputFileNames in class AbstractCompiler
+
+
+
Parameters:
inputFile - String input file name
versionInfo - version info, not used by this compiler. +
Returns:
String[] output file names
+
+
+
+ +

+getInputFileArgument

+
+protected java.lang.String getInputFileArgument(java.io.File outputDir,
+                                                java.lang.String filename,
+                                                int index)
+
+
Gets input file arguments. +

+

+
Overrides:
getInputFileArgument in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
filename - String input file name.
index - int argument index, + 0 to getNumberOfArgumentsPerInputFile() -1 +
Returns:
String input file argument
+
+
+
+ +

+getMaximumCommandLength

+
+public int getMaximumCommandLength()
+
+
Gets maximum length of command line. +

+

+
Specified by:
getMaximumCommandLength in class CommandLineCompiler
+
+
+ +
Returns:
int maximum length of command line
+
+
+
+ +

+getMaximumInputFilesPerCommand

+
+protected int getMaximumInputFilesPerCommand()
+
+
Gets maximum number of input files processed per command. +

+

+
Overrides:
getMaximumInputFilesPerCommand in class CommandLineCompiler
+
+
+ +
Returns:
int maximum number of input files processed per command.
+
+
+
+ +

+getIncludeDirSwitch

+
+protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
+
+
Gets include directory switch. +

+

+
Specified by:
getIncludeDirSwitch in class CommandLineCompiler
+
+
+
Parameters:
includeDir - String include directory +
Returns:
String command switch to add specified directory to search path
+
+
+
+ +

+getDefineSwitch

+
+protected void getDefineSwitch(java.lang.StringBuffer buffer,
+                               java.lang.String define,
+                               java.lang.String value)
+
+
Gets switch to define preprocessor macro. +

+

+
Specified by:
getDefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
value - String macro value, may be null.
+
+
+
+ +

+getUndefineSwitch

+
+protected void getUndefineSwitch(java.lang.StringBuffer buffer,
+                                 java.lang.String define)
+
+
Gets switch to undefine preprocessor macro. +

+

+
Specified by:
getUndefineSwitch in class CommandLineCompiler
+
+
+
Parameters:
buffer - StringBuffer command line argument
define - String macro name
+
+
+
+ +

+getEnvironmentIncludePath

+
+protected java.io.File[] getEnvironmentIncludePath()
+
+
Gets standard include paths. +

+

+
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler
+
+
+ +
Returns:
File[] standard include paths
+
+
+
+ +

+getLinker

+
+public Linker getLinker(LinkType type)
+
+
Gets linker associated with this type. +

+

+
Parameters:
type - LinkType linker, returns ld. +
Returns:
Linker
+
+
+
+ +

+compile

+
+public void compile(CCTask task,
+                    java.io.File outputDir,
+                    java.lang.String[] sourceFiles,
+                    java.lang.String[] args,
+                    java.lang.String[] endArgs,
+                    boolean relentless,
+                    CommandLineCompilerConfiguration config,
+                    ProgressMonitor monitor)
+
+
Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files. +

+

+
Overrides:
compile in class CommandLineCompiler
+
+
+
Parameters:
task - current cc task
outputDir - output directory
sourceFiles - source files
args - command line arguments that appear before input files
endArgs - command line arguments that appear after input files
relentless - if true, do not stop at first compilation error
config - compiler configuration
monitor - progress monitor
+
+
+
+ +

+getTotalArgumentLengthForInputFile

+
+protected int getTotalArgumentLengthForInputFile(java.io.File outputDir,
+                                                 java.lang.String inputFile)
+
+
Get total command line length due to the input file. +

+

+
Overrides:
getTotalArgumentLengthForInputFile in class CommandLineCompiler
+
+
+
Parameters:
outputDir - File output directory
inputFile - String input file +
Returns:
int characters added to command line for the input file.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.html new file mode 100644 index 0000000..5704eb7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.html @@ -0,0 +1,324 @@ + + + + + + + +UserInterfaceParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class UserInterfaceParser

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser
+
+
+
All Implemented Interfaces:
Parser
+
+
+
+
public final class UserInterfaceParser
extends java.lang.Object
implements Parser
+ + +

+Dependency scanner for Trolltech Qt User Interface definition files. + + .ui files are XML documents that may contain an include elements, + however the includes are just copied to the generated files and + and changes to the includes do not need to trigger rerunning uic. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
UserInterfaceParser() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFilename(java.lang.String include) + +
+          Adds filename to the list of included files.
+ java.lang.String[]getIncludes() + +
+          Gets included files.
+ voidparse(java.io.Reader reader) + +
+          Parses source file for dependencies.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UserInterfaceParser

+
+public UserInterfaceParser()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+addFilename

+
+public void addFilename(java.lang.String include)
+
+
Adds filename to the list of included files. +

+

+
+
+
+
Parameters:
include - String included file name
+
+
+
+ +

+getIncludes

+
+public java.lang.String[] getIncludes()
+
+
Gets included files. +

+

+
Specified by:
getIncludes in interface Parser
+
+
+ +
Returns:
String[] included files
+
+
+
+ +

+parse

+
+public void parse(java.io.Reader reader)
+           throws java.io.IOException
+
+
Parses source file for dependencies. +

+

+
Specified by:
parse in interface Parser
+
+
+
Parameters:
reader - Reader reader +
Throws: +
java.io.IOException - if error reading source file
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectCompiler.html new file mode 100644 index 0000000..4914bc5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler

+
+ + + + + + + + + +
+Packages that use MetaObjectCompiler
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of MetaObjectCompiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return MetaObjectCompiler
+static MetaObjectCompilerMetaObjectCompiler.getInstance() + +
+          Gets singleton instance of compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectParser.html new file mode 100644 index 0000000..f1ddfec --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/MetaObjectParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser

+
+No usage of net.sf.antcontrib.cpptasks.trolltech.MetaObjectParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceCompiler.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceCompiler.html new file mode 100644 index 0000000..f44236d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler

+
+ + + + + + + + + +
+Packages that use UserInterfaceCompiler
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + +
+Uses of UserInterfaceCompiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.trolltech that return UserInterfaceCompiler
+static UserInterfaceCompilerUserInterfaceCompiler.getInstance() + +
+          Gets singleton instance of compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceParser.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceParser.html new file mode 100644 index 0000000..11eee8f --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/UserInterfaceParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser

+
+No usage of net.sf.antcontrib.cpptasks.trolltech.UserInterfaceParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html new file mode 100644 index 0000000..084a6b4 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.trolltech + + + + +
+Classes  + +
+MetaObjectCompiler +
+MetaObjectParser +
+UserInterfaceCompiler +
+UserInterfaceParser
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html new file mode 100644 index 0000000..44c97cc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html @@ -0,0 +1,182 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.trolltech +

+Adapters for Trolltech Qt moc and uic compilers. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
MetaObjectCompilerAdapter for the Trolltech Qt MOC Compiler.
MetaObjectParserScans a source file for Q_OBJECT.
UserInterfaceCompilerAdapter for the Trolltech Qt UIC Compiler.
UserInterfaceParserDependency scanner for Trolltech Qt User Interface definition files.
+  + +

+

+Package net.sf.antcontrib.cpptasks.trolltech Description +

+ +

+Adapters for Trolltech Qt moc and uic compilers. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html new file mode 100644 index 0000000..fbff102 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.trolltech +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html new file mode 100644 index 0000000..0882ccc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html @@ -0,0 +1,173 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.trolltech

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.trolltech
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers. 
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.trolltech used by net.sf.antcontrib.cpptasks.trolltech
MetaObjectCompiler + +
+          Adapter for the Trolltech Qt MOC Compiler.
UserInterfaceCompiler + +
+          Adapter for the Trolltech Qt UIC Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.LocationEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.LocationEnum.html new file mode 100644 index 0000000..136198c --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.LocationEnum.html @@ -0,0 +1,288 @@ + + + + + + + +CommandLineArgument.LocationEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class CommandLineArgument.LocationEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.types.CommandLineArgument.LocationEnum
+
+
+
Enclosing class:
CommandLineArgument
+
+
+
+
public static class CommandLineArgument.LocationEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumerated attribute with the values "start", "mid" and "end", +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
CommandLineArgument.LocationEnum() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineArgument.LocationEnum

+
+public CommandLineArgument.LocationEnum()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.html new file mode 100644 index 0000000..f3b51be --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/CommandLineArgument.html @@ -0,0 +1,417 @@ + + + + + + + +CommandLineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class CommandLineArgument

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.CommandLineArgument
+
+
+
Direct Known Subclasses:
CompilerArgument, LinkerArgument
+
+
+
+
public class CommandLineArgument
extends java.lang.Object
+ + +

+An compiler/linker command line flag. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classCommandLineArgument.LocationEnum + +
+          Enumerated attribute with the values "start", "mid" and "end",
+  + + + + + + + + + + +
+Constructor Summary
CommandLineArgument() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetLocation() + +
+           
+ java.lang.StringgetValue() + +
+           
+ booleanisActive(org.apache.tools.ant.Project p) + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetLocation(CommandLineArgument.LocationEnum location) + +
+          Specifies relative location of argument on command line.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ voidsetValue(java.lang.String value) + +
+          Specifies the string that should appear on the command line.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CommandLineArgument

+
+public CommandLineArgument()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getLocation

+
+public int getLocation()
+
+
+
+
+
+
+ +

+getValue

+
+public java.lang.String getValue()
+
+
+
+
+
+
+ +

+isActive

+
+public boolean isActive(org.apache.tools.ant.Project p)
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
+
+
+
+ +

+setLocation

+
+public void setLocation(CommandLineArgument.LocationEnum location)
+
+
Specifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames. +

+

+
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setValue

+
+public void setValue(java.lang.String value)
+
+
Specifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/CompilerArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/CompilerArgument.html new file mode 100644 index 0000000..bce18be --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/CompilerArgument.html @@ -0,0 +1,286 @@ + + + + + + + +CompilerArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class CompilerArgument

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.CommandLineArgument
+      extended by net.sf.antcontrib.cpptasks.types.CompilerArgument
+
+
+
+
public class CompilerArgument
extends CommandLineArgument
+ + +

+A compiler command line argument. +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class net.sf.antcontrib.cpptasks.types.CommandLineArgument
CommandLineArgument.LocationEnum
+  + + + + + + + + + + + +
+Constructor Summary
CompilerArgument() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.CommandLineArgument
getLocation, getValue, isActive, setIf, setLocation, setUnless, setValue
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CompilerArgument

+
+public CompilerArgument()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.html new file mode 100644 index 0000000..2998dd0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.html @@ -0,0 +1,437 @@ + + + + + + + +ConditionalFileSet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class ConditionalFileSet

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by org.apache.tools.ant.types.AbstractFileSet
+              extended by org.apache.tools.ant.types.FileSet
+                  extended by net.sf.antcontrib.cpptasks.types.ConditionalFileSet
+
+
+
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
+
+
+
+
public class ConditionalFileSet
extends org.apache.tools.ant.types.FileSet
+ + +

+An Ant FileSet object augmented with if and unless conditions. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
ConditionalFileSet() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+protected  org.apache.tools.ant.types.AbstractFileSetgetRef(org.apache.tools.ant.Project p) + +
+          overrides FileSet's implementation which would throw an exception since + the referenced object isn't this type.
+ booleanisActive() + +
+          Returns true if the Path's if and unless conditions (if any) are + satisfied.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.FileSet
clone
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.AbstractFileSet
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDataTypeName, getDefaultexcludes, getDir, getDirectoryScanner, getSelectors, hasPatterns, hasSelectors, isFollowSymlinks, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setRefid, setupDirectoryScanner, toString
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ConditionalFileSet

+
+public ConditionalFileSet()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getRef

+
+protected org.apache.tools.ant.types.AbstractFileSet getRef(org.apache.tools.ant.Project p)
+
+
overrides FileSet's implementation which would throw an exception since + the referenced object isn't this type. +

+

+
Overrides:
getRef in class org.apache.tools.ant.types.AbstractFileSet
+
+
+
+
+
+
+ +

+isActive

+
+public boolean isActive()
+                 throws org.apache.tools.ant.BuildException
+
+
Returns true if the Path's if and unless conditions (if any) are + satisfied. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The fileset will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the fileset will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalPath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalPath.html new file mode 100644 index 0000000..2aae785 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/ConditionalPath.html @@ -0,0 +1,426 @@ + + + + + + + +ConditionalPath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class ConditionalPath

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by org.apache.tools.ant.types.Path
+              extended by net.sf.antcontrib.cpptasks.types.ConditionalPath
+
+
+
All Implemented Interfaces:
java.lang.Cloneable
+
+
+
Direct Known Subclasses:
IncludePath, SystemIncludePath
+
+
+
+
public class ConditionalPath
extends org.apache.tools.ant.types.Path
+ + +

+An Ant Path object augmented with if and unless conditionals +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.apache.tools.ant.types.Path
org.apache.tools.ant.types.Path.PathElement
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.Path
systemBootClasspath, systemClasspath
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + + + + +
+Constructor Summary
ConditionalPath(org.apache.tools.ant.Project project) + +
+           
ConditionalPath(org.apache.tools.ant.Project p, + java.lang.String path) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanisActive(org.apache.tools.ant.Project p) + +
+          Returns true if the Path's if and unless conditions (if any) are + satisfied.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.Path
add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, clone, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, dieOnCircularReference, list, setLocation, setPath, setRefid, size, toString, translateFile, translateFileSep, translatePath
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ConditionalPath

+
+public ConditionalPath(org.apache.tools.ant.Project project)
+
+
+
+ +

+ConditionalPath

+
+public ConditionalPath(org.apache.tools.ant.Project p,
+                       java.lang.String path)
+
+
+ + + + + + + + +
+Method Detail
+ +

+isActive

+
+public boolean isActive(org.apache.tools.ant.Project p)
+                 throws org.apache.tools.ant.BuildException
+
+
Returns true if the Path's if and unless conditions (if any) are + satisfied. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineArgument.html new file mode 100644 index 0000000..40f2991 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineArgument.html @@ -0,0 +1,296 @@ + + + + + + + +DefineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class DefineArgument

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.UndefineArgument
+      extended by net.sf.antcontrib.cpptasks.types.DefineArgument
+
+
+
+
public class DefineArgument
extends UndefineArgument
+ + +

+Preprocessor macro definition. +

+ +

+

+
Author:
+
Mark A Russell mark_russell@csg_systems.com +
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
DefineArgument() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ java.lang.StringgetValue() + +
+          Returns the value of the define
+ voidsetValue(java.lang.String value) + +
+          Set the value attribute
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.UndefineArgument
execute, getName, isActive, isDefine, merge, setIf, setName, setUnless
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefineArgument

+
+public DefineArgument()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public final java.lang.String getValue()
+
+
Returns the value of the define +

+

+
Overrides:
getValue in class UndefineArgument
+
+
+
+
+
+
+ +

+setValue

+
+public final void setValue(java.lang.String value)
+
+
Set the value attribute +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineSet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineSet.html new file mode 100644 index 0000000..dd41208 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/DefineSet.html @@ -0,0 +1,587 @@ + + + + + + + +DefineSet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class DefineSet

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.types.DefineSet
+
+
+
+
public class DefineSet
extends org.apache.tools.ant.types.DataType
+ + +

+Set of preprocessor macro defines and undefines. +

+ +

+

+
Author:
+
Mark A Russell mark_russell@csg_systems.com + , Adam Murdoch
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
DefineSet() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddDefine(DefineArgument arg) + +
+          Adds a define element.
+ voidaddUndefine(UndefineArgument arg) + +
+          Adds an undefine element.
+ voidexecute() + +
+           
+ UndefineArgument[]getDefines() + +
+          Returns the defines and undefines in this set.
+ booleanisActive() + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ voidsetDefine(CUtil.StringArrayBuilder defList) + +
+          A comma-separated list of preprocessor macros to define.
+ voidsetDescription(java.lang.String desc) + +
+          Sets a description of the current data type.
+ voidsetId(java.lang.String id) + +
+          Sets an id that can be used to reference this element.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetRefid(org.apache.tools.ant.types.Reference r) + +
+          Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.
+ voidsetUndefine(CUtil.StringArrayBuilder undefList) + +
+          A comma-separated list of preprocessor macros to undefine.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DefineSet

+
+public DefineSet()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addDefine

+
+public void addDefine(DefineArgument arg)
+               throws org.apache.tools.ant.BuildException
+
+
Adds a define element. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - if reference
+
+
+
+ +

+addUndefine

+
+public void addUndefine(UndefineArgument arg)
+                 throws org.apache.tools.ant.BuildException
+
+
Adds an undefine element. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - if reference
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getDefines

+
+public UndefineArgument[] getDefines()
+                              throws org.apache.tools.ant.BuildException
+
+
Returns the defines and undefines in this set. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+isActive

+
+public final boolean isActive()
+                       throws org.apache.tools.ant.BuildException
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - throws build exception if name is not set
+
+
+
+ +

+setDefine

+
+public void setDefine(CUtil.StringArrayBuilder defList)
+               throws org.apache.tools.ant.BuildException
+
+
A comma-separated list of preprocessor macros to define. Use nested + define elements to define macro values. +

+

+
Parameters:
defList - comma-separated list of preprocessor macros +
Throws: +
org.apache.tools.ant.BuildException - throw if defineset is a reference
+
+
+
+ +

+setDescription

+
+public void setDescription(java.lang.String desc)
+
+
Sets a description of the current data type. +

+

+
Overrides:
setDescription in class org.apache.tools.ant.types.DataType
+
+
+
+
+
+
+ +

+setId

+
+public void setId(java.lang.String id)
+
+
Sets an id that can be used to reference this element. +

+

+
Parameters:
id - id
+
+
+
+ +

+setIf

+
+public final void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setRefid

+
+public void setRefid(org.apache.tools.ant.types.Reference r)
+              throws org.apache.tools.ant.BuildException
+
+
Specifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "description". +

+

+
Overrides:
setRefid in class org.apache.tools.ant.types.DataType
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setUndefine

+
+public void setUndefine(CUtil.StringArrayBuilder undefList)
+                 throws org.apache.tools.ant.BuildException
+
+
A comma-separated list of preprocessor macros to undefine. +

+

+
Parameters:
undefList - comma-separated list of preprocessor macros +
Throws: +
org.apache.tools.ant.BuildException - throw if defineset is a reference
+
+
+
+ +

+setUnless

+
+public final void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/FlexLong.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/FlexLong.html new file mode 100644 index 0000000..a2718a5 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/FlexLong.html @@ -0,0 +1,291 @@ + + + + + + + +FlexLong (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class FlexLong

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.FlexLong
+
+
+
+
public class FlexLong
extends java.lang.Object
+ + +

+Helper class which can be used for Ant task attribute setter methods to + allow the build file to specify a long in either decimal, octal, or + hexadecimal format. + // FlexInteger author +

+ +

+

+
Author:
+
Erik Hatcher
+
See Also:
FlexInteger
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
FlexLong(java.lang.String value) + +
+          Constructor used by Ant's introspection mechanism for attribute + population
+  + + + + + + + + + + + + + + + +
+Method Summary
+ longlongValue() + +
+          Returns the decimal integer value
+ java.lang.StringtoString() + +
+          Overridden method to return the decimal value for display
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FlexLong

+
+public FlexLong(java.lang.String value)
+
+
Constructor used by Ant's introspection mechanism for attribute + population +

+

+ + + + + + + + +
+Method Detail
+ +

+longValue

+
+public long longValue()
+
+
Returns the decimal integer value +

+

+
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
Overridden method to return the decimal value for display +

+

+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/IncludePath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/IncludePath.html new file mode 100644 index 0000000..1f491c0 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/IncludePath.html @@ -0,0 +1,378 @@ + + + + + + + +IncludePath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class IncludePath

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by org.apache.tools.ant.types.Path
+              extended by net.sf.antcontrib.cpptasks.types.ConditionalPath
+                  extended by net.sf.antcontrib.cpptasks.types.IncludePath
+
+
+
All Implemented Interfaces:
java.lang.Cloneable
+
+
+
+
public class IncludePath
extends ConditionalPath
+ + +

+An include path. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.apache.tools.ant.types.Path
org.apache.tools.ant.types.Path.PathElement
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.Path
systemBootClasspath, systemClasspath
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + + + + +
+Constructor Summary
IncludePath(org.apache.tools.ant.Project project) + +
+           
IncludePath(org.apache.tools.ant.Project p, + java.lang.String path) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.ConditionalPath
isActive, setIf, setUnless
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.Path
add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, clone, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, dieOnCircularReference, list, setLocation, setPath, setRefid, size, toString, translateFile, translateFileSep, translatePath
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IncludePath

+
+public IncludePath(org.apache.tools.ant.Project project)
+
+
+
+ +

+IncludePath

+
+public IncludePath(org.apache.tools.ant.Project p,
+                   java.lang.String path)
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/LibrarySet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/LibrarySet.html new file mode 100644 index 0000000..9b614b7 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/LibrarySet.html @@ -0,0 +1,663 @@ + + + + + + + +LibrarySet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class LibrarySet

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.types.LibrarySet
+
+
+
Direct Known Subclasses:
SystemLibrarySet
+
+
+
+
public class LibrarySet
extends org.apache.tools.ant.types.DataType
+ + +

+A set of library names. Libraries can also be added to a link by specifying + them in a fileset. + + For most Unix-like compilers, libset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset. +

+ +

+

+
Author:
+
Mark A Russell mark_russell@csg_systems.com + , Adam Murdoch, Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
LibrarySet() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ java.lang.StringgetDataset() + +
+          Gets the dataset.
+ java.io.FilegetDir(org.apache.tools.ant.Project project) + +
+           
+protected  org.apache.tools.ant.types.FileSetgetFileSet() + +
+           
+ java.lang.String[]getLibs() + +
+           
+ LibraryTypeEnumgetType() + +
+          Gets preferred library type
+ booleanisActive(org.apache.tools.ant.Project p) + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ voidsetCaseSensitive(boolean isCaseSensitive) + +
+          Sets case sensitivity of the file system.
+ voidsetDataset(java.lang.String dataset) + +
+          Sets the dataset.
+ voidsetDir(java.io.File dir) + +
+          Library directory.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetLibs(CUtil.StringArrayBuilder libs) + +
+          Comma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a".
+ voidsetProject(org.apache.tools.ant.Project project) + +
+           
+ voidsetType(LibraryTypeEnum type) + +
+          Sets the preferred library type.
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ voidvisitLibraries(org.apache.tools.ant.Project project, + Linker linker, + java.io.File[] libpath, + FileVisitor visitor) + +
+           
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LibrarySet

+
+public LibrarySet()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getDataset

+
+public java.lang.String getDataset()
+
+
Gets the dataset. Used on OS390 if the libs are in a dataset. +

+

+ +
Returns:
Returns a String
+
+
+
+ +

+getDir

+
+public java.io.File getDir(org.apache.tools.ant.Project project)
+
+
+
+
+
+
+ +

+getFileSet

+
+protected org.apache.tools.ant.types.FileSet getFileSet()
+
+
+
+
+
+
+ +

+getLibs

+
+public java.lang.String[] getLibs()
+
+
+
+
+
+
+ +

+getType

+
+public LibraryTypeEnum getType()
+
+
Gets preferred library type +

+

+ +
Returns:
library type, may be null.
+
+
+
+ +

+isActive

+
+public boolean isActive(org.apache.tools.ant.Project p)
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+
+
+
+
+ +

+setCaseSensitive

+
+public void setCaseSensitive(boolean isCaseSensitive)
+
+
Sets case sensitivity of the file system. If not set, will default to + the linker's case sensitivity. +

+

+
Parameters:
isCaseSensitive - "true"|"on"|"yes" if file system is case sensitive, + "false"|"off"|"no" when not.
+
+
+
+ +

+setDataset

+
+public void setDataset(java.lang.String dataset)
+
+
Sets the dataset. Used on OS390 if the libs are in a dataset. +

+

+
Parameters:
dataset - The dataset to set
+
+
+
+ +

+setDir

+
+public void setDir(java.io.File dir)
+            throws org.apache.tools.ant.BuildException
+
+
Library directory. +

+

+
Parameters:
dir - library directory +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setIf

+
+public void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The library set will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setLibs

+
+public void setLibs(CUtil.StringArrayBuilder libs)
+             throws org.apache.tools.ant.BuildException
+
+
Comma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a". +

+

+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+setProject

+
+public void setProject(org.apache.tools.ant.Project project)
+
+
+
Overrides:
setProject in class org.apache.tools.ant.ProjectComponent
+
+
+
+
+
+
+ +

+setUnless

+
+public void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the library set will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+
+ +

+setType

+
+public void setType(LibraryTypeEnum type)
+
+
Sets the preferred library type. Supported values "shared", "static", and + "framework". "framework" is equivalent to "shared" on non-Darwin platforms. +

+

+
+
+
+
+ +

+visitLibraries

+
+public void visitLibraries(org.apache.tools.ant.Project project,
+                           Linker linker,
+                           java.io.File[] libpath,
+                           FileVisitor visitor)
+                    throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.html new file mode 100644 index 0000000..adcdc13 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.html @@ -0,0 +1,299 @@ + + + + + + + +LibraryTypeEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class LibraryTypeEnum

+
+java.lang.Object
+  extended by org.apache.tools.ant.types.EnumeratedAttribute
+      extended by net.sf.antcontrib.cpptasks.types.LibraryTypeEnum
+
+
+
+
public class LibraryTypeEnum
extends org.apache.tools.ant.types.EnumeratedAttribute
+ + +

+Enumeration of library types for LibrarySet +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute
value
+  + + + + + + + + + + +
+Constructor Summary
LibraryTypeEnum() + +
+          Constructor + + Set by default to "shared"
+  + + + + + + + + + + + +
+Method Summary
+ java.lang.String[]getValues() + +
+          Gets list of acceptable values
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute
containsValue, getIndex, getValue, indexOfValue, setValue, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LibraryTypeEnum

+
+public LibraryTypeEnum()
+
+
Constructor + + Set by default to "shared" +

+

+
See Also:
Object.Object()
+
+ + + + + + + + +
+Method Detail
+ +

+getValues

+
+public java.lang.String[] getValues()
+
+
Gets list of acceptable values +

+

+
Specified by:
getValues in class org.apache.tools.ant.types.EnumeratedAttribute
+
+
+
See Also:
EnumeratedAttribute.getValues()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/LinkerArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/LinkerArgument.html new file mode 100644 index 0000000..4b5f1bf --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/LinkerArgument.html @@ -0,0 +1,286 @@ + + + + + + + +LinkerArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class LinkerArgument

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.CommandLineArgument
+      extended by net.sf.antcontrib.cpptasks.types.LinkerArgument
+
+
+
+
public class LinkerArgument
extends CommandLineArgument
+ + +

+A linker command line argument. +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class net.sf.antcontrib.cpptasks.types.CommandLineArgument
CommandLineArgument.LocationEnum
+  + + + + + + + + + + + +
+Constructor Summary
LinkerArgument() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.CommandLineArgument
getLocation, getValue, isActive, setIf, setLocation, setUnless, setValue
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LinkerArgument

+
+public LinkerArgument()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemIncludePath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemIncludePath.html new file mode 100644 index 0000000..c261268 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemIncludePath.html @@ -0,0 +1,385 @@ + + + + + + + +SystemIncludePath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class SystemIncludePath

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by org.apache.tools.ant.types.Path
+              extended by net.sf.antcontrib.cpptasks.types.ConditionalPath
+                  extended by net.sf.antcontrib.cpptasks.types.SystemIncludePath
+
+
+
All Implemented Interfaces:
java.lang.Cloneable
+
+
+
+
public class SystemIncludePath
extends ConditionalPath
+ + +

+A system include path. + + Files located using a system include path will not participate in dependency + analysis. + + Standard include paths for a compiler should not be specified since these + should be determined from environment variables or configuration files by + the compiler adapter. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.apache.tools.ant.types.Path
org.apache.tools.ant.types.Path.PathElement
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.Path
systemBootClasspath, systemClasspath
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + + + + +
+Constructor Summary
SystemIncludePath(org.apache.tools.ant.Project project) + +
+           
SystemIncludePath(org.apache.tools.ant.Project p, + java.lang.String path) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.ConditionalPath
isActive, setIf, setUnless
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.Path
add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, clone, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, dieOnCircularReference, list, setLocation, setPath, setRefid, size, toString, translateFile, translateFileSep, translatePath
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
+ + + + + + + +
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SystemIncludePath

+
+public SystemIncludePath(org.apache.tools.ant.Project project)
+
+
+
+ +

+SystemIncludePath

+
+public SystemIncludePath(org.apache.tools.ant.Project p,
+                         java.lang.String path)
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.html new file mode 100644 index 0000000..e46f7f3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.html @@ -0,0 +1,325 @@ + + + + + + + +SystemLibrarySet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class SystemLibrarySet

+
+java.lang.Object
+  extended by org.apache.tools.ant.ProjectComponent
+      extended by org.apache.tools.ant.types.DataType
+          extended by net.sf.antcontrib.cpptasks.types.LibrarySet
+              extended by net.sf.antcontrib.cpptasks.types.SystemLibrarySet
+
+
+
+
public class SystemLibrarySet
extends LibrarySet
+ + +

+A set of system library names. Timestamp or location of system libraries are + not considered in dependency analysis. + + Libraries can also be added to a link by specifying them in a fileset. + + For most Unix-like compilers, syslibset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
+ + + + + + + +
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
+  + + + + + + + + + + +
+Constructor Summary
SystemLibrarySet() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.types.LibrarySet
getDataset, getDir, getFileSet, getLibs, getType, isActive, setCaseSensitive, setDataset, setDir, setIf, setLibs, setProject, setType, setUnless, visitLibraries
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes
+ + + + + + + +
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SystemLibrarySet

+
+public SystemLibrarySet()
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+
Overrides:
execute in class LibrarySet
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/UndefineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/UndefineArgument.html new file mode 100644 index 0000000..8b6711e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/UndefineArgument.html @@ -0,0 +1,476 @@ + + + + + + + +UndefineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class UndefineArgument

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.types.UndefineArgument
+
+
+
Direct Known Subclasses:
DefineArgument
+
+
+
+
public class UndefineArgument
extends java.lang.Object
+ + +

+Preprocessor macro undefinition. +

+ +

+

+
Author:
+
Mark A Russell mark_russell@csg_systems.com +
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
+ UndefineArgument() + +
+           
+protected UndefineArgument(boolean isDefine) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidexecute() + +
+           
+ java.lang.StringgetName() + +
+          Returns the name of the define
+ java.lang.StringgetValue() + +
+          Returns the value of the define
+ booleanisActive(org.apache.tools.ant.Project p) + +
+          Returns true if the define's if and unless conditions (if any) are + satisfied.
+ booleanisDefine() + +
+          Returns true if this is a define, false if an undefine.
+static UndefineArgument[]merge(UndefineArgument[] base, + UndefineArgument[] override) + +
+          This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list.
+ voidsetIf(java.lang.String propName) + +
+          Sets the property name for the 'if' condition.
+ voidsetName(java.lang.String name) + +
+          Set the name attribute
+ voidsetUnless(java.lang.String propName) + +
+          Set the property name for the 'unless' condition.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UndefineArgument

+
+public UndefineArgument()
+
+
+
+ +

+UndefineArgument

+
+protected UndefineArgument(boolean isDefine)
+
+
+ + + + + + + + +
+Method Detail
+ +

+merge

+
+public static UndefineArgument[] merge(UndefineArgument[] base,
+                                       UndefineArgument[] override)
+
+
This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list. + + Any define in the base list with a name that appears in the override + list is suppressed. All entries in the override list are preserved +

+

+
+
+
+
+ +

+execute

+
+public void execute()
+             throws org.apache.tools.ant.BuildException
+
+
+ +
Throws: +
org.apache.tools.ant.BuildException
+
+
+
+ +

+getName

+
+public final java.lang.String getName()
+
+
Returns the name of the define +

+

+
+
+
+
+ +

+getValue

+
+public java.lang.String getValue()
+
+
Returns the value of the define +

+

+
+
+
+
+ +

+isActive

+
+public final boolean isActive(org.apache.tools.ant.Project p)
+                       throws org.apache.tools.ant.BuildException
+
+
Returns true if the define's if and unless conditions (if any) are + satisfied. +

+

+ +
Throws: +
org.apache.tools.ant.BuildException - throws build exception if name is not set
+
+
+
+ +

+isDefine

+
+public final boolean isDefine()
+
+
Returns true if this is a define, false if an undefine. +

+

+
+
+
+
+ +

+setIf

+
+public final void setIf(java.lang.String propName)
+
+
Sets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated. +

+

+
Parameters:
propName - property name
+
+
+
+ +

+setName

+
+public final void setName(java.lang.String name)
+
+
Set the name attribute +

+

+
+
+
+
+ +

+setUnless

+
+public final void setUnless(java.lang.String propName)
+
+
Set the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated. +

+

+
Parameters:
propName - name of property
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.LocationEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.LocationEnum.html new file mode 100644 index 0000000..ecece3e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.LocationEnum.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.CommandLineArgument.LocationEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.CommandLineArgument.LocationEnum

+
+ + + + + + + + + +
+Packages that use CommandLineArgument.LocationEnum
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of CommandLineArgument.LocationEnum in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type CommandLineArgument.LocationEnum
+ voidCommandLineArgument.setLocation(CommandLineArgument.LocationEnum location) + +
+          Specifies relative location of argument on command line.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.html new file mode 100644 index 0000000..db5a9fe --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CommandLineArgument.html @@ -0,0 +1,231 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.CommandLineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.CommandLineArgument

+
+ + + + + + + + + + + + + +
+Packages that use CommandLineArgument
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of CommandLineArgument in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return CommandLineArgument
+ CommandLineArgument[]ProcessorDef.getActiveProcessorArgs() + +
+          Prepares list of processor arguments ( compilerarg, linkerarg ) that + are active for the current project settings.
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CommandLineArgument
+protected  voidProcessorDef.addConfiguredProcessorArg(CommandLineArgument arg) + +
+          Adds a or
+  +

+ + + + + +
+Uses of CommandLineArgument in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + + + + + +
Subclasses of CommandLineArgument in net.sf.antcontrib.cpptasks.types
+ classCompilerArgument + +
+          A compiler command line argument.
+ classLinkerArgument + +
+          A linker command line argument.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CompilerArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CompilerArgument.html new file mode 100644 index 0000000..e92f658 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/CompilerArgument.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.CompilerArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.CompilerArgument

+
+ + + + + + + + + +
+Packages that use CompilerArgument
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of CompilerArgument in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type CompilerArgument
+ voidCompilerDef.addConfiguredCompilerArg(CompilerArgument arg) + +
+          Adds a compiler command-line arg.
+ voidCCTask.addConfiguredCompilerArg(CompilerArgument arg) + +
+          Adds a compiler command-line arg.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalFileSet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalFileSet.html new file mode 100644 index 0000000..3550f29 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalFileSet.html @@ -0,0 +1,203 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.ConditionalFileSet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.ConditionalFileSet

+
+ + + + + + + + + +
+Packages that use ConditionalFileSet
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of ConditionalFileSet in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type ConditionalFileSet
+ voidProcessorDef.addFileset(ConditionalFileSet srcSet) + +
+          Adds a source file set.
+ voidPrecompileExceptDef.addFileset(ConditionalFileSet exceptSet) + +
+          Adds filesets that specify files that should not be processed using + precompiled headers.
+ voidCCTask.addFileset(ConditionalFileSet srcSet) + +
+          Adds a source file set.
+ voidPrecompileDef.appendExceptFileSet(ConditionalFileSet exceptSet) + +
+          Method used by PrecompileExceptDef to add exception set to + PrecompileDef.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalPath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalPath.html new file mode 100644 index 0000000..9e1b244 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/ConditionalPath.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.ConditionalPath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.ConditionalPath

+
+ + + + + + + + + +
+Packages that use ConditionalPath
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of ConditionalPath in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + + + + + +
Subclasses of ConditionalPath in net.sf.antcontrib.cpptasks.types
+ classIncludePath + +
+          An include path.
+ classSystemIncludePath + +
+          A system include path.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineArgument.html new file mode 100644 index 0000000..ff51656 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineArgument.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.DefineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.DefineArgument

+
+ + + + + + + + + +
+Packages that use DefineArgument
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of DefineArgument in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type DefineArgument
+ voidDefineSet.addDefine(DefineArgument arg) + +
+          Adds a define element.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineSet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineSet.html new file mode 100644 index 0000000..ba5206d --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/DefineSet.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.DefineSet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.DefineSet

+
+ + + + + + + + + +
+Packages that use DefineSet
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of DefineSet in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type DefineSet
+ voidCompilerDef.addConfiguredDefineset(DefineSet defs) + +
+          Adds a defineset.
+ voidCCTask.addConfiguredDefineset(DefineSet defs) + +
+          Adds a defineset.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/FlexLong.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/FlexLong.html new file mode 100644 index 0000000..70067dc --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/FlexLong.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.FlexLong (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.FlexLong

+
+ + + + + + + + + +
+Packages that use FlexLong
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of FlexLong in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type FlexLong
+ voidLinkerDef.setBase(FlexLong base) + +
+          Sets the base address.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/IncludePath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/IncludePath.html new file mode 100644 index 0000000..718c151 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/IncludePath.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.IncludePath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.IncludePath

+
+ + + + + + + + + +
+Packages that use IncludePath
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of IncludePath in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return IncludePath
+ IncludePathCompilerDef.createIncludePath() + +
+          Creates an include path.
+ IncludePathCCTask.createIncludePath() + +
+          Adds an include path.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibrarySet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibrarySet.html new file mode 100644 index 0000000..2a1ba18 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibrarySet.html @@ -0,0 +1,492 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.LibrarySet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.LibrarySet

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use LibrarySet
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return LibrarySet
+ LibrarySet[]LinkerDef.getActiveLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]LinkerDef.getActiveSystemLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+ LibrarySet[]LinkerDef.getActiveUserLibrarySets(LinkerDef[] defaultProviders, + int index) + +
+          Returns an array of active library sets for this linker definition.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LibrarySet
+ voidLinkerDef.addLibset(LibrarySet libset) + +
+          Adds a system library set.
+ voidCCTask.addLibset(LibrarySet libset) + +
+          Adds a library set.
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type LibrarySet
+protected  java.lang.String[]CommandLineLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type LibrarySet
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+ java.lang.String[]AbstractLdLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.gcc.cross
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross with parameters of type LibrarySet
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type LibrarySet
+ java.lang.String[]GppLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type LibrarySet
+protected  java.lang.String[]OS390Linker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type LibrarySet
+protected  java.lang.String[]IccLinker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type LibrarySet
+ java.lang.String[]C89Linker.addLibrarySets(CCTask task, + LibrarySet[] libsets, + java.util.Vector preargs, + java.util.Vector midargs, + java.util.Vector endargs) + +
+           
+  +

+ + + + + +
+Uses of LibrarySet in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Subclasses of LibrarySet in net.sf.antcontrib.cpptasks.types
+ classSystemLibrarySet + +
+          A set of system library names.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibraryTypeEnum.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibraryTypeEnum.html new file mode 100644 index 0000000..6bcc468 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LibraryTypeEnum.html @@ -0,0 +1,634 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.LibraryTypeEnum (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.LibraryTypeEnum

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use LibraryTypeEnum
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.arm
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.arm with parameters of type LibraryTypeEnum
+ java.lang.String[]ADSLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]ADSLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.borland with parameters of type LibraryTypeEnum
+static java.lang.String[]BorlandProcessor.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]BorlandLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]BorlandLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.compaq
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compaq with parameters of type LibraryTypeEnum
+ java.lang.String[]CompaqVisualFortranLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.compiler with parameters of type LibraryTypeEnum
+ java.lang.String[]Linker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libraryType) + +
+          Returns a set of filename patterns corresponding to library names.
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.devstudio with parameters of type LibraryTypeEnum
+ java.lang.String[]DevStudioCompatibleLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]DevStudioCompatibleLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc with parameters of type LibraryTypeEnum
+ java.lang.String[]AbstractLdLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]AbstractArLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 with parameters of type LibraryTypeEnum
+static java.lang.String[]GccProcessor.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.openwatcom
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.openwatcom with parameters of type LibraryTypeEnum
+static java.lang.String[]OpenWatcomProcessor.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for specified libraries.
+ java.lang.String[]OpenWatcomLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for libraries.
+ java.lang.String[]OpenWatcomLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+          Get file selectors for specified library names.
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.os390
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os390 with parameters of type LibraryTypeEnum
+ java.lang.String[]OS390Linker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.os400
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.os400 with parameters of type LibraryTypeEnum
+ java.lang.String[]IccLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.sun
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.sun with parameters of type LibraryTypeEnum
+static java.lang.String[]C89Processor.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]C89Linker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.ti
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.ti with parameters of type LibraryTypeEnum
+ java.lang.String[]ClxxLinker.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+ java.lang.String[]ClxxLibrarian.getLibraryPatterns(java.lang.String[] libnames, + LibraryTypeEnum libType) + +
+           
+  +

+ + + + + +
+Uses of LibraryTypeEnum in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types that return LibraryTypeEnum
+ LibraryTypeEnumLibrarySet.getType() + +
+          Gets preferred library type
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type LibraryTypeEnum
+ voidLibrarySet.setType(LibraryTypeEnum type) + +
+          Sets the preferred library type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LinkerArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LinkerArgument.html new file mode 100644 index 0000000..d8d4b11 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/LinkerArgument.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.LinkerArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.LinkerArgument

+
+ + + + + + + + + +
+Packages that use LinkerArgument
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of LinkerArgument in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type LinkerArgument
+ voidLinkerDef.addConfiguredLinkerArg(LinkerArgument arg) + +
+          Adds a linker command-line arg.
+ voidCCTask.addConfiguredLinkerArg(LinkerArgument arg) + +
+          Adds a linker command-line arg.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemIncludePath.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemIncludePath.html new file mode 100644 index 0000000..2733e56 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemIncludePath.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.SystemIncludePath (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.SystemIncludePath

+
+ + + + + + + + + +
+Packages that use SystemIncludePath
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of SystemIncludePath in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return SystemIncludePath
+ SystemIncludePathCompilerDef.createSysIncludePath() + +
+          Creates a system include path.
+ SystemIncludePathCCTask.createSysIncludePath() + +
+          Adds a system include path.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemLibrarySet.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemLibrarySet.html new file mode 100644 index 0000000..4b94a97 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/SystemLibrarySet.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.SystemLibrarySet (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.SystemLibrarySet

+
+ + + + + + + + + +
+Packages that use SystemLibrarySet
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
+  +

+ + + + + +
+Uses of SystemLibrarySet in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks with parameters of type SystemLibrarySet
+ voidLinkerDef.addSyslibset(SystemLibrarySet libset) + +
+          Adds a system library set.
+ voidCCTask.addSyslibset(SystemLibrarySet libset) + +
+          Adds a system library set.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/UndefineArgument.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/UndefineArgument.html new file mode 100644 index 0000000..a4be9dd --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/class-use/UndefineArgument.html @@ -0,0 +1,268 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.UndefineArgument (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.UndefineArgument

+
+ + + + + + + + + + + + + +
+Packages that use UndefineArgument
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + +
+Uses of UndefineArgument in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks that return UndefineArgument
+ UndefineArgument[]CompilerDef.getActiveDefines() + +
+           
+  +

+ + + + + +
+Uses of UndefineArgument in net.sf.antcontrib.cpptasks.types
+  +

+ + + + + + + + + +
Subclasses of UndefineArgument in net.sf.antcontrib.cpptasks.types
+ classDefineArgument + +
+          Preprocessor macro definition.
+  +

+ + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types that return UndefineArgument
+ UndefineArgument[]DefineSet.getDefines() + +
+          Returns the defines and undefines in this set.
+static UndefineArgument[]UndefineArgument.merge(UndefineArgument[] base, + UndefineArgument[] override) + +
+          This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in net.sf.antcontrib.cpptasks.types with parameters of type UndefineArgument
+ voidDefineSet.addUndefine(UndefineArgument arg) + +
+          Adds an undefine element.
+static UndefineArgument[]UndefineArgument.merge(UndefineArgument[] base, + UndefineArgument[] override) + +
+          This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list.
+static UndefineArgument[]UndefineArgument.merge(UndefineArgument[] base, + UndefineArgument[] override) + +
+          This method returns an array of UndefineArgument and DefineArgument's by + merging a base list with an override list.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/package-frame.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-frame.html new file mode 100644 index 0000000..3618570 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-frame.html @@ -0,0 +1,61 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.types + + + + +
+Classes  + +
+CommandLineArgument +
+CommandLineArgument.LocationEnum +
+CompilerArgument +
+ConditionalFileSet +
+ConditionalPath +
+DefineArgument +
+DefineSet +
+FlexLong +
+IncludePath +
+LibrarySet +
+LibraryTypeEnum +
+LinkerArgument +
+SystemIncludePath +
+SystemLibrarySet +
+UndefineArgument
+ + + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/package-summary.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-summary.html new file mode 100644 index 0000000..44f9c02 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-summary.html @@ -0,0 +1,213 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.types +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
CommandLineArgumentAn compiler/linker command line flag.
CommandLineArgument.LocationEnumEnumerated attribute with the values "start", "mid" and "end",
CompilerArgumentA compiler command line argument.
ConditionalFileSetAn Ant FileSet object augmented with if and unless conditions.
ConditionalPathAn Ant Path object augmented with if and unless conditionals
DefineArgumentPreprocessor macro definition.
DefineSetSet of preprocessor macro defines and undefines.
FlexLongHelper class which can be used for Ant task attribute setter methods to + allow the build file to specify a long in either decimal, octal, or + hexadecimal format.
IncludePathAn include path.
LibrarySetA set of library names.
LibraryTypeEnumEnumeration of library types for LibrarySet
LinkerArgumentA linker command line argument.
SystemIncludePathA system include path.
SystemLibrarySetA set of system library names.
UndefineArgumentPreprocessor macro undefinition.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/package-tree.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-tree.html new file mode 100644 index 0000000..7a3acc3 --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-tree.html @@ -0,0 +1,172 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/net/sf/antcontrib/cpptasks/types/package-use.html b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-use.html new file mode 100644 index 0000000..1b39e7e --- /dev/null +++ b/site/apidocs/net/sf/antcontrib/cpptasks/types/package-use.html @@ -0,0 +1,542 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.types

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.types
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant. 
net.sf.antcontrib.cpptasks.arm  
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools. 
net.sf.antcontrib.cpptasks.compaq  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools. 
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2  
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools. 
net.sf.antcontrib.cpptasks.os390  
net.sf.antcontrib.cpptasks.os400  
net.sf.antcontrib.cpptasks.sun  
net.sf.antcontrib.cpptasks.ti  
net.sf.antcontrib.cpptasks.types  
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks
CommandLineArgument + +
+          An compiler/linker command line flag.
CompilerArgument + +
+          A compiler command line argument.
ConditionalFileSet + +
+          An Ant FileSet object augmented with if and unless conditions.
DefineSet + +
+          Set of preprocessor macro defines and undefines.
FlexLong + +
+          Helper class which can be used for Ant task attribute setter methods to + allow the build file to specify a long in either decimal, octal, or + hexadecimal format.
IncludePath + +
+          An include path.
LibrarySet + +
+          A set of library names.
LinkerArgument + +
+          A linker command line argument.
SystemIncludePath + +
+          A system include path.
SystemLibrarySet + +
+          A set of system library names.
UndefineArgument + +
+          Preprocessor macro undefinition.
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.arm
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.borland
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.compaq
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.compiler
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.devstudio
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.gcc
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.openwatcom
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.os390
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.os400
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.sun
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.ti
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.types used by net.sf.antcontrib.cpptasks.types
CommandLineArgument + +
+          An compiler/linker command line flag.
CommandLineArgument.LocationEnum + +
+          Enumerated attribute with the values "start", "mid" and "end",
ConditionalPath + +
+          An Ant Path object augmented with if and unless conditionals
DefineArgument + +
+          Preprocessor macro definition.
LibrarySet + +
+          A set of library names.
LibraryTypeEnum + +
+          Enumeration of library types for LibrarySet
UndefineArgument + +
+          Preprocessor macro undefinition.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/options b/site/apidocs/options new file mode 100644 index 0000000..6a590c0 --- /dev/null +++ b/site/apidocs/options @@ -0,0 +1,17 @@ +-classpath '/Users/curta/ant-contrib/cpptasks-1.0b5/target/classes:/Users/curta/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar:/Users/curta/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar:/Users/curta/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar' + -protected +-sourcepath +'/Users/curta/ant-contrib/cpptasks-1.0b5/src/main/java' +-author +-bottom +'Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved.' +-charset +'ISO-8859-1' +-d +'/Users/curta/ant-contrib/cpptasks-1.0b5/target/site/apidocs' +-doctitle +'cpptasks 1.0b5 API' +-use +-version +-windowtitle +'cpptasks 1.0b5 API' \ No newline at end of file diff --git a/site/apidocs/overview-frame.html b/site/apidocs/overview-frame.html new file mode 100644 index 0000000..9bb2a9c --- /dev/null +++ b/site/apidocs/overview-frame.html @@ -0,0 +1,89 @@ + + + + + + + +Overview (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+net.sf.antcontrib.cpptasks +
+net.sf.antcontrib.cpptasks.apple +
+net.sf.antcontrib.cpptasks.arm +
+net.sf.antcontrib.cpptasks.borland +
+net.sf.antcontrib.cpptasks.compaq +
+net.sf.antcontrib.cpptasks.compiler +
+net.sf.antcontrib.cpptasks.devstudio +
+net.sf.antcontrib.cpptasks.gcc +
+net.sf.antcontrib.cpptasks.gcc.cross +
+net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +
+net.sf.antcontrib.cpptasks.hp +
+net.sf.antcontrib.cpptasks.ibm +
+net.sf.antcontrib.cpptasks.ide +
+net.sf.antcontrib.cpptasks.intel +
+net.sf.antcontrib.cpptasks.mozilla +
+net.sf.antcontrib.cpptasks.openwatcom +
+net.sf.antcontrib.cpptasks.os390 +
+net.sf.antcontrib.cpptasks.os400 +
+net.sf.antcontrib.cpptasks.parser +
+net.sf.antcontrib.cpptasks.platforms +
+net.sf.antcontrib.cpptasks.sun +
+net.sf.antcontrib.cpptasks.ti +
+net.sf.antcontrib.cpptasks.trolltech +
+net.sf.antcontrib.cpptasks.types +
+

+ +

+  + + diff --git a/site/apidocs/overview-summary.html b/site/apidocs/overview-summary.html new file mode 100644 index 0000000..e87b1c2 --- /dev/null +++ b/site/apidocs/overview-summary.html @@ -0,0 +1,247 @@ + + + + + + + +Overview (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +


+
+

+cpptasks 1.0b5 API +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages
net.sf.antcontrib.cpptasksC++ and other compiled languages build support for Ant.
net.sf.antcontrib.cpptasks.appleProject writer for Apple Xcode
net.sf.antcontrib.cpptasks.arm 
net.sf.antcontrib.cpptasks.borlandAdapter for Borland tools.
net.sf.antcontrib.cpptasks.compaq 
net.sf.antcontrib.cpptasks.compiler 
net.sf.antcontrib.cpptasks.devstudioAdapters for Microsoft tools.
net.sf.antcontrib.cpptasks.gcc 
net.sf.antcontrib.cpptasks.gcc.cross 
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 
net.sf.antcontrib.cpptasks.hp 
net.sf.antcontrib.cpptasks.ibm 
net.sf.antcontrib.cpptasks.ideIDE project file generation.
net.sf.antcontrib.cpptasks.intel 
net.sf.antcontrib.cpptasks.mozillaCompiler adapter for Mozilla's XPCOM compiler.
net.sf.antcontrib.cpptasks.openwatcomAdapters for OpenWatcom compilers and tools.
net.sf.antcontrib.cpptasks.os390 
net.sf.antcontrib.cpptasks.os400 
net.sf.antcontrib.cpptasks.parserProvides minimal scanners to extract dependencies, +such as include statements, from source files.
net.sf.antcontrib.cpptasks.platformsPlatform specific utilities.
net.sf.antcontrib.cpptasks.sun 
net.sf.antcontrib.cpptasks.ti 
net.sf.antcontrib.cpptasks.trolltechAdapters for Trolltech Qt moc and uic compilers.
net.sf.antcontrib.cpptasks.types 
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/overview-tree.html b/site/apidocs/overview-tree.html new file mode 100644 index 0000000..8035601 --- /dev/null +++ b/site/apidocs/overview-tree.html @@ -0,0 +1,245 @@ + + + + + + + +Class Hierarchy (cpptasks 1.0b5 API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
net.sf.antcontrib.cpptasks, net.sf.antcontrib.cpptasks.apple, net.sf.antcontrib.cpptasks.arm, net.sf.antcontrib.cpptasks.borland, net.sf.antcontrib.cpptasks.compaq, net.sf.antcontrib.cpptasks.compiler, net.sf.antcontrib.cpptasks.devstudio, net.sf.antcontrib.cpptasks.gcc, net.sf.antcontrib.cpptasks.gcc.cross, net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2, net.sf.antcontrib.cpptasks.hp, net.sf.antcontrib.cpptasks.ibm, net.sf.antcontrib.cpptasks.ide, net.sf.antcontrib.cpptasks.intel, net.sf.antcontrib.cpptasks.mozilla, net.sf.antcontrib.cpptasks.openwatcom, net.sf.antcontrib.cpptasks.os390, net.sf.antcontrib.cpptasks.os400, net.sf.antcontrib.cpptasks.parser, net.sf.antcontrib.cpptasks.platforms, net.sf.antcontrib.cpptasks.sun, net.sf.antcontrib.cpptasks.ti, net.sf.antcontrib.cpptasks.trolltech, net.sf.antcontrib.cpptasks.types
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/apidocs/package-list b/site/apidocs/package-list new file mode 100644 index 0000000..a5d5d52 --- /dev/null +++ b/site/apidocs/package-list @@ -0,0 +1,24 @@ +net.sf.antcontrib.cpptasks +net.sf.antcontrib.cpptasks.apple +net.sf.antcontrib.cpptasks.arm +net.sf.antcontrib.cpptasks.borland +net.sf.antcontrib.cpptasks.compaq +net.sf.antcontrib.cpptasks.compiler +net.sf.antcontrib.cpptasks.devstudio +net.sf.antcontrib.cpptasks.gcc +net.sf.antcontrib.cpptasks.gcc.cross +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +net.sf.antcontrib.cpptasks.hp +net.sf.antcontrib.cpptasks.ibm +net.sf.antcontrib.cpptasks.ide +net.sf.antcontrib.cpptasks.intel +net.sf.antcontrib.cpptasks.mozilla +net.sf.antcontrib.cpptasks.openwatcom +net.sf.antcontrib.cpptasks.os390 +net.sf.antcontrib.cpptasks.os400 +net.sf.antcontrib.cpptasks.parser +net.sf.antcontrib.cpptasks.platforms +net.sf.antcontrib.cpptasks.sun +net.sf.antcontrib.cpptasks.ti +net.sf.antcontrib.cpptasks.trolltech +net.sf.antcontrib.cpptasks.types diff --git a/site/apidocs/packages b/site/apidocs/packages new file mode 100644 index 0000000..6bcbce8 --- /dev/null +++ b/site/apidocs/packages @@ -0,0 +1,24 @@ +net.sf.antcontrib.cpptasks +net.sf.antcontrib.cpptasks.apple +net.sf.antcontrib.cpptasks.arm +net.sf.antcontrib.cpptasks.borland +net.sf.antcontrib.cpptasks.compaq +net.sf.antcontrib.cpptasks.compiler +net.sf.antcontrib.cpptasks.devstudio +net.sf.antcontrib.cpptasks.gcc +net.sf.antcontrib.cpptasks.gcc.cross +net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2 +net.sf.antcontrib.cpptasks.hp +net.sf.antcontrib.cpptasks.ibm +net.sf.antcontrib.cpptasks.ide +net.sf.antcontrib.cpptasks.intel +net.sf.antcontrib.cpptasks.mozilla +net.sf.antcontrib.cpptasks.openwatcom +net.sf.antcontrib.cpptasks.os390 +net.sf.antcontrib.cpptasks.os400 +net.sf.antcontrib.cpptasks.parser +net.sf.antcontrib.cpptasks.platforms +net.sf.antcontrib.cpptasks.sun +net.sf.antcontrib.cpptasks.ti +net.sf.antcontrib.cpptasks.trolltech +net.sf.antcontrib.cpptasks.types \ No newline at end of file diff --git a/site/apidocs/resources/inherit.gif b/site/apidocs/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/site/apidocs/resources/inherit.gif differ diff --git a/site/apidocs/stylesheet.css b/site/apidocs/stylesheet.css new file mode 100644 index 0000000..6d31fdb --- /dev/null +++ b/site/apidocs/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + diff --git a/site/changes-report.html b/site/changes-report.html new file mode 100644 index 0000000..bc2c395 --- /dev/null +++ b/site/changes-report.html @@ -0,0 +1,400 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - + + + + + + + +
+ +
+
+
+

+Changes Report

+

+Release History

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VersionDateDescription
1.0-beta5 +2008-04-03Improved IDE project generation, updated docs and packaging
1.0-beta4 +2006-05-19IDE project generation
1.0-beta3 +2004-04-28rtti and optimization switches, prototypes for versioninfo, target, distributer
1.0-beta2 +2004-02-27Switch of license to Apache License 2
1.0-beta1 +2002-08-17xdoc generated documentation and 17 compilers
1.0-alpha1 +2002-01-08Initial sourceforge release.
+
+
+

+Release 1.0-beta5 - 2008-04-03

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeChangesBy
?IDE project file generation. Fixes 980130 +. +
?history.xml not capturing mid and end arguments Fixes 1794857 +. +
?LinkerDef not properly capturing references Fixes 1794867 +. +
?Update documentation for antlib usage Fixes 1573193 +. +
?Modify warning levels for sunpro Fixes 1775873 +. +
?Modify CC, aCC and xlC to bid on .s files Fixes 1715475 +. +
?Add msvc8 compiler to avoid deprecation warning on /GZ Fixes 1690945 +. +
?Migrate to Maven 2 for build and documentation Fixes 1760649 +. +
?Fix linked issues with shared libraries on VisualAge Fixes 1716271 +. +
+

+Release 1.0-beta4 - 2006-05-19

+ + + + +
TypeChangesBy
+

+Release 1.0-beta3 - 2004-04-28

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeChangesBy
?Sample build file for CPPUNIT Fixes 937648 +. +
?Borland compilation repair Fixes 938336 +. +
?Problem with linker extension Fixes 823577 +. +
?Added type attribute to libset and syslibset so that dynamic or static could be chosen if both were available Fixes 814132 +. +
?Added rtti and optimization attributes to cc and compiler Fixes 940985 +. +
?Added versioninfo element (experimental) Fixes 941119 +. +
?Add target element for cross-compilation (experimental) Fixes 749942 +. +
?Add distributer element for distributed builds (experimental) Fixes 941128 +. +
+

+Release 1.0-beta2 - 2004-02-27

+ + + + +
TypeChangesBy
+

+Release 1.0-beta1 - 2002-08-17

+ + + + +
TypeChangesBy
+

+Release 1.0-alpha1 - 2002-01-08

+ + + + +
TypeChangesBy
+ +
+
+
+
+
+ + + diff --git a/site/css/maven-base.css b/site/css/maven-base.css new file mode 100644 index 0000000..fbd02a0 --- /dev/null +++ b/site/css/maven-base.css @@ -0,0 +1,145 @@ +body { + margin: 0px; + padding: 0px; +} +img { + border:none; +} +table { + padding:0px; + width: 100%; + margin-left: -2px; + margin-right: -2px; +} +acronym { + cursor: help; + border-bottom: 1px dotted #feb; +} +table.bodyTable th, table.bodyTable td { + padding: 2px 4px 2px 4px; + vertical-align: top; +} +div.clear{ + clear:both; + visibility: hidden; +} +div.clear hr{ + display: none; +} +#bannerLeft, #bannerRight { + font-size: xx-large; + font-weight: bold; +} +#bannerLeft img, #bannerRight img { + margin: 0px; +} +.xleft, #bannerLeft img { + float:left; + text-shadow: #7CFC00 1px 1px 1px; +} +.xright, #bannerRight { + float:right; + text-shadow: #7CFC00 1px 1px 1px; +} +#banner { + padding: 0px; +} +#banner img { + border: none; +} +#breadcrumbs { + padding: 3px 10px 3px 10px; +} +#leftColumn { + width: 170px; + float:left; + overflow: auto; +} +#bodyColumn { + margin-right: 1.5em; + margin-left: 197px; +} +#legend { + padding: 8px 0 8px 0; +} +#navcolumn { + padding: 8px 4px 0 8px; +} +#navcolumn h5 { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn ul { + margin: 0; + padding: 0; + font-size: small; +} +#navcolumn li { + list-style-type: none; + background-image: none; + background-repeat: no-repeat; + background-position: 0 0.4em; + padding-left: 16px; + list-style-position: outside; + line-height: 1.2em; + font-size: smaller; +} +#navcolumn li.expanded { + background-image: url(../images/expanded.gif); +} +#navcolumn li.collapsed { + background-image: url(../images/collapsed.gif); +} +#poweredBy { + text-align: center; +} +#navcolumn img { + margin-top: 10px; + margin-bottom: 3px; +} +#poweredBy img { + display:block; + margin: 20px 0 20px 17px; +} +#search img { + margin: 0px; + display: block; +} +#search #q, #search #btnG { + border: 1px solid #999; + margin-bottom:10px; +} +#search form { + margin: 0px; +} +#lastPublished { + font-size: x-small; +} +.navSection { + margin-bottom: 2px; + padding: 8px; +} +.navSectionHead { + font-weight: bold; + font-size: x-small; +} +.section { + padding: 4px; +} +#footer { + padding: 3px 10px 3px 10px; + font-size: x-small; +} +#breadcrumbs { + font-size: x-small; + margin: 0pt; +} +.source { + padding: 12px; + margin: 1em 7px 1em 7px; +} +.source pre { + margin: 0px; + padding: 0px; +} diff --git a/site/css/maven-theme.css b/site/css/maven-theme.css new file mode 100644 index 0000000..ec29c89 --- /dev/null +++ b/site/css/maven-theme.css @@ -0,0 +1,141 @@ +body { + padding: 0px 0px 10px 0px; +} +body, td, select, input, li{ + font-family: Verdana, Helvetica, Arial, sans-serif; + font-size: 13px; +} +code{ + font-family: Courier, monospace; + font-size: 13px; +} +a { + text-decoration: none; +} +a:link { + color:#36a; +} +a:visited { + color:#47a; +} +a:active, a:hover { + color:#69c; +} +#legend li.externalLink { + background: url(../images/external.png) left top no-repeat; + padding-left: 18px; +} +a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { + background: url(../images/external.png) right center no-repeat; + padding-right: 18px; +} +#legend li.newWindow { + background: url(../images/newwindow.png) left top no-repeat; + padding-left: 18px; +} +a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} +h2 { + padding: 4px 4px 4px 6px; + border: 1px solid #999; + color: #900; + background-color: #ddd; + font-weight:900; + font-size: x-large; +} +h3 { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + color: #900; + background-color: #eee; + font-weight: normal; + font-size: large; +} +h4 { + padding: 4px 4px 4px 6px; + border: 1px solid #bbb; + color: #900; + background-color: #fff; + font-weight: normal; + font-size: large; +} +h5 { + padding: 4px 4px 4px 6px; + color: #900; + font-size: normal; +} +p { + line-height: 1.3em; + font-size: small; +} +#breadcrumbs { + border-top: 1px solid #aaa; + border-bottom: 1px solid #aaa; + background-color: #ccc; +} +#leftColumn { + margin: 10px 0 0 5px; + border: 1px solid #999; + background-color: #eee; +} +#navcolumn h5 { + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; + color: #000; +} + +table.bodyTable th { + color: white; + background-color: #bbb; + text-align: left; + font-weight: bold; +} + +table.bodyTable th, table.bodyTable td { + font-size: 1em; +} + +table.bodyTable tr.a { + background-color: #ddd; +} + +table.bodyTable tr.b { + background-color: #eee; +} + +.source { + border: 1px solid #999; +} +dl { + padding: 4px 4px 4px 6px; + border: 1px solid #aaa; + background-color: #ffc; +} +dt { + color: #900; +} +#organizationLogo img, #projectLogo img, #projectLogo span{ + margin: 8px; +} +#banner { + border-bottom: 1px solid #fff; +} +.errormark, .warningmark, .donemark, .infomark { + background: url(../images/icon_error_sml.gif) no-repeat; +} + +.warningmark { + background-image: url(../images/icon_warning_sml.gif); +} + +.donemark { + background-image: url(../images/icon_success_sml.gif); +} + +.infomark { + background-image: url(../images/icon_info_sml.gif); +} + diff --git a/site/css/print.css b/site/css/print.css new file mode 100644 index 0000000..f09d546 --- /dev/null +++ b/site/css/print.css @@ -0,0 +1,7 @@ +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn { + display: none !important; +} +#bodyColumn, body.docs div.docs { + margin: 0 !important; + border: none !important +} diff --git a/site/css/site.css b/site/css/site.css new file mode 100644 index 0000000..e69de29 diff --git a/site/images/add.gif b/site/images/add.gif new file mode 100644 index 0000000..ac0bdcc Binary files /dev/null and b/site/images/add.gif differ diff --git a/site/images/collapsed.gif b/site/images/collapsed.gif new file mode 100644 index 0000000..6e71084 Binary files /dev/null and b/site/images/collapsed.gif differ diff --git a/site/images/expanded.gif b/site/images/expanded.gif new file mode 100644 index 0000000..0fef3d8 Binary files /dev/null and b/site/images/expanded.gif differ diff --git a/site/images/external.png b/site/images/external.png new file mode 100644 index 0000000..3f999fc Binary files /dev/null and b/site/images/external.png differ diff --git a/site/images/fix.gif b/site/images/fix.gif new file mode 100644 index 0000000..2585f13 Binary files /dev/null and b/site/images/fix.gif differ diff --git a/site/images/icon_error_sml.gif b/site/images/icon_error_sml.gif new file mode 100644 index 0000000..61132ef Binary files /dev/null and b/site/images/icon_error_sml.gif differ diff --git a/site/images/icon_help_sml.gif b/site/images/icon_help_sml.gif new file mode 100644 index 0000000..43bfd56 Binary files /dev/null and b/site/images/icon_help_sml.gif differ diff --git a/site/images/icon_info_sml.gif b/site/images/icon_info_sml.gif new file mode 100644 index 0000000..c6cb9ad Binary files /dev/null and b/site/images/icon_info_sml.gif differ diff --git a/site/images/icon_success_sml.gif b/site/images/icon_success_sml.gif new file mode 100644 index 0000000..52e85a4 Binary files /dev/null and b/site/images/icon_success_sml.gif differ diff --git a/site/images/icon_warning_sml.gif b/site/images/icon_warning_sml.gif new file mode 100644 index 0000000..873bbb5 Binary files /dev/null and b/site/images/icon_warning_sml.gif differ diff --git a/site/images/logos/build-by-maven-black.png b/site/images/logos/build-by-maven-black.png new file mode 100644 index 0000000..919fd0f Binary files /dev/null and b/site/images/logos/build-by-maven-black.png differ diff --git a/site/images/logos/build-by-maven-white.png b/site/images/logos/build-by-maven-white.png new file mode 100644 index 0000000..7d44c9c Binary files /dev/null and b/site/images/logos/build-by-maven-white.png differ diff --git a/site/images/logos/maven-feather.png b/site/images/logos/maven-feather.png new file mode 100644 index 0000000..b5ada83 Binary files /dev/null and b/site/images/logos/maven-feather.png differ diff --git a/site/images/newwindow.png b/site/images/newwindow.png new file mode 100644 index 0000000..6287f72 Binary files /dev/null and b/site/images/newwindow.png differ diff --git a/site/images/remove.gif b/site/images/remove.gif new file mode 100644 index 0000000..ad4b238 Binary files /dev/null and b/site/images/remove.gif differ diff --git a/site/images/rss.png b/site/images/rss.png new file mode 100644 index 0000000..d2b5af4 Binary files /dev/null and b/site/images/rss.png differ diff --git a/site/images/update.gif b/site/images/update.gif new file mode 100644 index 0000000..71ca225 Binary files /dev/null and b/site/images/update.gif differ diff --git a/site/index.html b/site/index.html new file mode 100644 index 0000000..f9a535b --- /dev/null +++ b/site/index.html @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - cpptasks for Apache Ant + + + + + + + +
+ +
+
+
+

cpptasks for Apache Ant

+

The cc task can compile various source languages and produce executables, shared libraries (aka DLL's) and static libraries. Compiler adaptors are currently available for C/C++, FORTRAN, MIDL and Windows Resource compilers.

+

The task can be used with Apache Ant 1.5 and later. This software is not a product of the Apache Software Foundation (ASF) and no endorsement by the ASF is implied.

+

To use: * Place cpptasks.jar into Ant's classpath by placing in Ant's lib directory, adding to CLASSPATH environment variable or using the -lib command line option.

+
  • Add type and task definitions in build file using either taskdef or antlib.
  • +
  • Add cc + element to some target in your build file.
  • +
  • Set path and environment variables to be able to run compiler from command line.
  • +
  • Build project.
  • +
+

Trivial Sample using taskdef (compatible with Ant 1.5 or later):

+
<project name="hello" default="compile">
+    <taskdef resource="cpptasks.tasks"/>
+    <target name="compile">
+        <mkdir dir="target/main/obj"/>
+        <cc outtype="executable" subsystem="console" outfile="target/hello" objdir="target/main/obj">
+           <fileset dir="src/main/c" includes="*.c"/>
+        </cc>
+    </target>
+</project>
+
+

Trivial Sample using antlib (compatible with Ant 1.6 or later):

+
<project name="hello" default="compile" xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks">
+    <target name="compile">
+        <mkdir dir="target/main/obj"/>
+        <cpptasks:cc outtype="executable" subsystem="console" outfile="target/hello" objdir="target/main/obj">
+           <fileset dir="src/main/c" includes="*.c"/>
+        </cpptasks:cc>
+    </target>
+</project>
+
+

More complex samples appear in src/samples.

+
+ +
+
+
+
+
+ + + diff --git a/site/integration.html b/site/integration.html new file mode 100644 index 0000000..2fba17e --- /dev/null +++ b/site/integration.html @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Continuous Integration + + + + + + + +
+ +
+
+
+

Overview

+This project uses Continuous Integration System.
+

Access

+

The following is a link to the continuous integration system used by the project.

+ +
+

Notifiers

+

No notifiers is defined. Please check back at a later date.

+
+ +
+
+
+
+
+ + + diff --git a/site/issue-tracking.html b/site/issue-tracking.html new file mode 100644 index 0000000..459e93c --- /dev/null +++ b/site/issue-tracking.html @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Issue Tracking + + + + + + + +
+ +
+
+
+

Overview

+

This project uses SourceForge Tracker to manage its issues.

+
+

Issue Tracking

+

Issues, bugs, and feature requests should be submitted to the following issue tracking system for this project.

+ +
+ +
+
+
+
+
+ + + diff --git a/site/license.html b/site/license.html new file mode 100644 index 0000000..2e933b0 --- /dev/null +++ b/site/license.html @@ -0,0 +1,426 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Project License + + + + + + + +
+ +
+
+
+

Overview

+

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

+
+

Project License

+

The Apache Software License, Version 2.0

+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/mail-lists.html b/site/mail-lists.html new file mode 100644 index 0000000..15115b8 --- /dev/null +++ b/site/mail-lists.html @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Project Mailing Lists + + + + + + + +
+ +
+
+
+

Project Mailing Lists

+

These are the mailing lists that have been established for this project. For each list, there is a subscribe, unsubscribe, and an archive link.

+ + + + + + + + + + + + + + + + + + +
NameSubscribeUnsubscribePostArchive
ant-contrib-cvsSubscribe +Unsubscribe +-sourceforge.net +
ant-contrib-developersSubscribe +Unsubscribe +Post +sourceforge.net +
+
+ +
+
+
+
+
+ + + diff --git a/site/project-info.html b/site/project-info.html new file mode 100644 index 0000000..e912f45 --- /dev/null +++ b/site/project-info.html @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Project Information + + + + + + + +
+ +
+
+
+

Project Information

+

This document provides an overview of the various documents and links that are part of this project's general information. All of this content is automatically generated by Maven + on behalf of the project.

+

Overview

+ + + + + + + + + + + + + + + + + + +
DocumentDescription
Project License +This is a link to the definitions of project licenses.
Mailing Lists +This document provides subscription and archive information for this project's mailing lists.
Continuous Integration +This is a link to the definitions of all continuous integration processes that builds and tests code on a frequent, regular basis.
Source Repository +This is a link to the online source repository that can be viewed via a web browser.
Issue Tracking +This is a link to the issue management system for this project. Issues (bugs, features, change requests) can be created and queried using this link.
+
+
+ +
+
+
+
+
+ + + diff --git a/site/project-reports.html b/site/project-reports.html new file mode 100644 index 0000000..f549a27 --- /dev/null +++ b/site/project-reports.html @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Generated Reports + + + + + + + +
+ +
+
+
+

Generated Reports

+

This document provides an overview of the various reports that are automatically generated by Maven + Each report is briefly described below.

+

Overview

+ + + + + + + + + + + + +
DocumentDescription
Changes Report +Changes Report on Releases of the Project.
JavaDocs +JavaDoc API documentation.
Test JavaDocs +Test JavaDoc API documentation.
+
+
+ +
+
+
+
+
+ + + diff --git a/site/source-repository.html b/site/source-repository.html new file mode 100644 index 0000000..a1434a4 --- /dev/null +++ b/site/source-repository.html @@ -0,0 +1,253 @@ + + + + + + + + + + + + + + + cpptasks: Compile tasks for Apache Ant - Source Repository + + + + + + + +
+ +
+
+
+

Overview

+This project uses Subversion + to manage its source code. Instructions on Subversion use can be found at http://svnbook.red-bean.com/ +.
+

Web Access

+

The following is a link to the online source repository.

+ +
+

Anonymous access

+

The source can be checked out anonymously from SVN with this command:

+
$ svn checkout https://ant-contrib.svn.sourceforge.net/svnroot/ant-contrib/cpptasks/trunk cpptasks
+
+
+

Developer access

+

Everyone can access the Subversion repository via HTTPS, but Committers must checkout the Subversion repository via HTTPS.

+
$ svn checkout https://ant-contrib.svn.sourceforge.net/svnroot/ant-contrib/cpptasks/trunk cpptasks
+
+

To commit changes to the repository, execute the following command to commit your changes (svn will prompt you for your password)

+
$ svn commit --username your-username -m "A message"
+
+
+

Access from behind a firewall

+

For those users who are stuck behind a corporate firewall which is blocking http access to the Subversion repository, you can try to access it via the developer connection:

+
$ svn checkout https://ant-contrib.svn.sourceforge.net/svnroot/ant-contrib/cpptasks/trunk cpptasks
+
+
+

Access through a proxy

+

The Subversion client can go through a proxy, if you configure it to do so. First, edit your "servers" configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)

+

There are comments in the file explaining what to do. If you don't have that file, get the latest Subversion client and run any command; this will cause the configuration directory and template files to be created.

+

Example : Edit the 'servers' file and add something like :

+
[global]
+http-proxy-host = your.proxy.name
+http-proxy-port = 3128
+
+
+
+ +
+
+
+
+
+ + + diff --git a/site/testapidocs/allclasses-frame.html b/site/testapidocs/allclasses-frame.html new file mode 100644 index 0000000..3a1ba3e --- /dev/null +++ b/site/testapidocs/allclasses-frame.html @@ -0,0 +1,111 @@ + + + + + + + +All Classes (cpptasks 1.0b5 Test API) + + + + + + + + + + +All Classes +
+ + + + + +
MockBuildListener +
+MockFileCollector +
+TestAbstractArLibrarian +
+TestAbstractCompiler +
+TestAbstractLdLinker +
+TestAbstractLinker +
+TestAbstractProcessor +
+TestaCCCompiler +
+TestAllClasses +
+TestBorlandCCompiler +
+TestCCTask +
+TestCommandLineCompilerConfiguration +
+TestCompilerConfiguration +
+TestCompilerDef +
+TestCompilerEnum +
+TestCParser +
+TestCUtil +
+TestDefineArgument +
+TestDependencyTable +
+TestDevStudio2005CCompiler +
+TestDevStudioCCompiler +
+TestDevStudioLinker +
+TestForteCCCompiler +
+TestFortranParser +
+TestGccCCompiler +
+TestGccCompatibleCCompiler +
+TestGccLinker +
+TestInstalledDevStudioLinker +
+TestLibrarySet +
+TestLinkerDef +
+TestLinkerEnum +
+TestLinkType +
+TestMetaObjectCompiler +
+TestMetaObjectParser +
+TestOutputTypeEnum +
+TestProcessorDef +
+TestTargetHistoryTable +
+TestTargetHistoryTable.MockProcessorConfiguration +
+TestTargetInfo +
+TestVisualAgeCCompiler +
+TestXMLConsumer +
+
+ + + diff --git a/site/testapidocs/allclasses-noframe.html b/site/testapidocs/allclasses-noframe.html new file mode 100644 index 0000000..7ed27dc --- /dev/null +++ b/site/testapidocs/allclasses-noframe.html @@ -0,0 +1,111 @@ + + + + + + + +All Classes (cpptasks 1.0b5 Test API) + + + + + + + + + + +All Classes +
+ + + + + +
MockBuildListener +
+MockFileCollector +
+TestAbstractArLibrarian +
+TestAbstractCompiler +
+TestAbstractLdLinker +
+TestAbstractLinker +
+TestAbstractProcessor +
+TestaCCCompiler +
+TestAllClasses +
+TestBorlandCCompiler +
+TestCCTask +
+TestCommandLineCompilerConfiguration +
+TestCompilerConfiguration +
+TestCompilerDef +
+TestCompilerEnum +
+TestCParser +
+TestCUtil +
+TestDefineArgument +
+TestDependencyTable +
+TestDevStudio2005CCompiler +
+TestDevStudioCCompiler +
+TestDevStudioLinker +
+TestForteCCCompiler +
+TestFortranParser +
+TestGccCCompiler +
+TestGccCompatibleCCompiler +
+TestGccLinker +
+TestInstalledDevStudioLinker +
+TestLibrarySet +
+TestLinkerDef +
+TestLinkerEnum +
+TestLinkType +
+TestMetaObjectCompiler +
+TestMetaObjectParser +
+TestOutputTypeEnum +
+TestProcessorDef +
+TestTargetHistoryTable +
+TestTargetHistoryTable.MockProcessorConfiguration +
+TestTargetInfo +
+TestVisualAgeCCompiler +
+TestXMLConsumer +
+
+ + + diff --git a/site/testapidocs/constant-values.html b/site/testapidocs/constant-values.html new file mode 100644 index 0000000..76b20a8 --- /dev/null +++ b/site/testapidocs/constant-values.html @@ -0,0 +1,143 @@ + + + + + + + +Constant Field Values (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/deprecated-list.html b/site/testapidocs/deprecated-list.html new file mode 100644 index 0000000..fbcaa79 --- /dev/null +++ b/site/testapidocs/deprecated-list.html @@ -0,0 +1,143 @@ + + + + + + + +Deprecated List (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/help-doc.html b/site/testapidocs/help-doc.html new file mode 100644 index 0000000..8e6822e --- /dev/null +++ b/site/testapidocs/help-doc.html @@ -0,0 +1,220 @@ + + + + + + + +API Help (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/index-all.html b/site/testapidocs/index-all.html new file mode 100644 index 0000000..30b67a8 --- /dev/null +++ b/site/testapidocs/index-all.html @@ -0,0 +1,1182 @@ + + + + + + + +Index (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +B C D G M N S T V
+

+B

+
+
bid(String) - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
buildFinished(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that the last target has finished. +
buildStarted(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that a build has started. +
+
+

+C

+
+
copyResourceToTmpDir(String, String) - +Static method in class net.sf.antcontrib.cpptasks.TestXMLConsumer +
copies a resource to a temporary directory. +
create() - +Method in class net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
Creates item under test @returns item under test +
create() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
create() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Compiler creation method + + Must be overriden by extending classes +
create() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Creates a new processor. +
create() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Creates a processor. +
create() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Creates a new processor definition. +
create() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +
Creates compiler for inherited tests. +
createExtendedProcessorDef(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Creates a processor initialized to be an extension of the base processor. +
+
+

+D

+
+
deleteTmpFile(String) - +Static method in class net.sf.antcontrib.cpptasks.TestXMLConsumer +
Deletes a file, if it exists, from the user's temporary directory. +
+
+

+G

+
+
getBaseDir(int) - +Method in class net.sf.antcontrib.cpptasks.MockFileCollector +
Get value of baseDir parameter for the specified index. +
getBuildFinishedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
  +
getBuildStartedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets a list of buildStarted events +
getConfiguration(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Gets the processor configuration. +
getFileName(int) - +Method in class net.sf.antcontrib.cpptasks.MockFileCollector +
Get value of fileName parameter for a specified index. +
getIdentifier() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
getLinker() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
getMessageLoggedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets message logged events +
getObjectExtension() - +Method in class net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler +
  +
getObjectExtension() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler +
  +
getObjectExtension() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +
Gets default output file extension. +
getObjectFileExtension() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
getOutputFileNames(String, VersionInfo) - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
getParams() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
getPreArguments(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Gets the command line arguments that precede filenames. +
getPreArguments(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Gets the command line arguments that appear before the filenames. +
getPreArguments(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Gets command line arguments that precede filenames. +
getRebuild() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
getTargetFinishedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets target finished events +
getTargetStartedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets target started events +
getTaskFinishedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets task finished events +
getTaskStartedEvents() - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Gets task started events +
+
+

+M

+
+
messageLogged(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals a message logging event. +
MockBuildListener - Class in net.sf.antcontrib.cpptasks
Captures build events
MockBuildListener() - +Constructor for class net.sf.antcontrib.cpptasks.MockBuildListener +
  +
MockFileCollector - Class in net.sf.antcontrib.cpptasks
Implementation of FileVisitor that collects visited files for later + retrieval.
MockFileCollector() - +Constructor for class net.sf.antcontrib.cpptasks.MockFileCollector +
Constructor. +
+
+

+N

+
+
net.sf.antcontrib.cpptasks - package net.sf.antcontrib.cpptasks
JUnit tests for the net.sf.antcontrib.cpptasks package.
net.sf.antcontrib.cpptasks.borland - package net.sf.antcontrib.cpptasks.borland
 
net.sf.antcontrib.cpptasks.compiler - package net.sf.antcontrib.cpptasks.compiler
 
net.sf.antcontrib.cpptasks.devstudio - package net.sf.antcontrib.cpptasks.devstudio
 
net.sf.antcontrib.cpptasks.gcc - package net.sf.antcontrib.cpptasks.gcc
 
net.sf.antcontrib.cpptasks.hp - package net.sf.antcontrib.cpptasks.hp
 
net.sf.antcontrib.cpptasks.ibm - package net.sf.antcontrib.cpptasks.ibm
 
net.sf.antcontrib.cpptasks.parser - package net.sf.antcontrib.cpptasks.parser
JUnit tests for the net.sf.antcontrib.cpptasks.parser package.
net.sf.antcontrib.cpptasks.sun - package net.sf.antcontrib.cpptasks.sun
 
net.sf.antcontrib.cpptasks.trolltech - package net.sf.antcontrib.cpptasks.trolltech
Tests for Trolltech Qt uic and moc compilers.
net.sf.antcontrib.cpptasks.types - package net.sf.antcontrib.cpptasks.types
JUnit tests for the net.sf.antcontrib.cpptasks.types package.
+
+

+S

+
+
size() - +Method in class net.sf.antcontrib.cpptasks.MockFileCollector +
Get count of calls to FileVisitor.visit. +
suite() - +Static method in class net.sf.antcontrib.cpptasks.TestAllClasses +
  +
+
+

+T

+
+
targetFinished(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that a target has finished. +
targetStarted(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that a target is starting. +
taskFinished(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that a task has finished. +
taskStarted(BuildEvent) - +Method in class net.sf.antcontrib.cpptasks.MockBuildListener +
Signals that a task is starting. +
tearDown() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
tearDown() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
  +
TestAbstractArLibrarian - Class in net.sf.antcontrib.cpptasks.gcc
Tests for classes that derive from AbstractArLibrarian
TestAbstractArLibrarian(String) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
Constructor +
TestAbstractCompiler - Class in net.sf.antcontrib.cpptasks.compiler
Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler +
  +
TestAbstractLdLinker - Class in net.sf.antcontrib.cpptasks.gcc
Test ld linker adapter abstract base class + + Override create to test concrete compiler implementions
TestAbstractLdLinker(String) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
TestAbstractLinker - Class in net.sf.antcontrib.cpptasks.compiler
Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractLinker(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker +
  +
TestAbstractProcessor - Class in net.sf.antcontrib.cpptasks.compiler
Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessor(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor +
  +
TestaCCCompiler - Class in net.sf.antcontrib.cpptasks.hp
Test HP aCC compiler adapter
TestaCCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testAddImpliedArgsDarwinPlugin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +
testAddImpliedArgsDarwinShared() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +
testAddImpliedArgsNonDarwinPlugin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +
testAddImpliedArgsNonDarwinShared() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +
testAddLibrarySetDirSwitch() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
testAddLibrarySetLibFrameworkDarwin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
testAddLibrarySetLibFrameworkNonDarwin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
testAddLibrarySetLibSwitch() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
testAddLibraryStatic() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
TestAllClasses - Class in net.sf.antcontrib.cpptasks
Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAllClasses(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestAllClasses +
  +
testAntlibXmlPresent() - +Method in class net.sf.antcontrib.cpptasks.TestCCTask +
Test checks for the presence of antlib.xml. +
testBadLibname() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
This test specifies a library pattern that should + not match any available libraries and expects that + a build exception will be raised. +
testBid() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker +
  +
testBid() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor +
  +
testBid() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
testBid() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
Override of +
testBidAssembly() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidAssembly() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidAssembly() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidC() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidC() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidC() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidCpp() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp2() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp2() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidCpp2() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp3() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp3() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidCpp3() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp4() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp4() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidCpp4() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp5() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp5() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidCpp6() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp7() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp8() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidCpp9() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidObjectiveAssembly() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testBidObjectiveC() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testBidObjectiveCpp() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testBidPreprocessed() - +Method in class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +
  +
testBidPreprocessed() - +Method in class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testBidPreprocessed() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
testBidPreprocessedCpp() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
TestBorlandCCompiler - Class in net.sf.antcontrib.cpptasks.borland
Borland C++ Compiler adapter tests + + Override create to test concrete compiler implementions
TestBorlandCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler +
  +
testCanParseTlb() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler +
  +
TestCCTask - Class in net.sf.antcontrib.cpptasks
Tests for CCTask.
TestCCTask(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestCCTask +
Constructor. +
TestCommandLineCompilerConfiguration - Class in net.sf.antcontrib.cpptasks.compiler
 
TestCommandLineCompilerConfiguration(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +
  +
TestCompilerConfiguration - Class in net.sf.antcontrib.cpptasks.compiler
 
TestCompilerConfiguration(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
TestCompilerDef - Class in net.sf.antcontrib.cpptasks
Tests for CompilerDef.
TestCompilerDef(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestCompilerDef +
Constructor. +
TestCompilerEnum - Class in net.sf.antcontrib.cpptasks
Tests for CompilerEnum.
TestCompilerEnum(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestCompilerEnum +
Create instance of TestCompilerEnum. +
testCompilerEnum1() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerEnum +
Test that "gcc" is recognized as a compiler enum. +
testCompilerEnum2() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerEnum +
Test that "bogus" is not recognized as a compiler enum. +
testConstructorNullCompiler() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +
  +
testConstructorNullConfig() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testConstructorNullOutput() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testConstructorNullSource() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testContainsValueGpp() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerEnum +
Test checks that enumeration contains value g++ + + See patch [ 676276 ] Enhanced support for Mac OS X +
testContainsValuePlugin() - +Method in class net.sf.antcontrib.cpptasks.TestOutputTypeEnum +
Test checks that output type enum contains "plugin" + + See patch [ 676276 ] Enhanced support for Mac OS X +
TestCParser - Class in net.sf.antcontrib.cpptasks.parser
Tests for the CParser class.
TestCParser(String) - +Constructor for class net.sf.antcontrib.cpptasks.parser.TestCParser +
Constructor. +
testCreateCParser1() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testCreateCParser2() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testCreateCParser3() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testCreateFortranParser1() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
testCreateFortranParser2() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
TestCUtil - Class in net.sf.antcontrib.cpptasks
Tests for CUtil class
TestCUtil(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testDebug() - +Method in class net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler +
  +
testDebug() - +Method in class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler +
  +
TestDefineArgument - Class in net.sf.antcontrib.cpptasks.types
Tests for the DefineArgument class
TestDefineArgument(String) - +Constructor for class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
TestDependencyTable - Class in net.sf.antcontrib.cpptasks
DependencyTable tests
TestDependencyTable(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestDependencyTable +
Constructor +
TestDevStudio2005CCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Test Microsoft C/C++ compiler adapter
TestDevStudio2005CCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler +
  +
TestDevStudioCCompiler - Class in net.sf.antcontrib.cpptasks.devstudio
Test Microsoft C/C++ compiler adapter
TestDevStudioCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler +
  +
TestDevStudioLinker - Class in net.sf.antcontrib.cpptasks.devstudio
Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
TestDevStudioLinker(String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker +
  +
testExtendsBase() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the base attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsClassname() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that the classname attribute in the base compiler is effective. +
testExtendsClassname() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the classname attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsCompilerArgs() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that compilerarg's contained in the base compiler definition are + effective. +
testExtendsDebug() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that the debug attribute in the base processor is effective when + creating the command line for a processor that extends it. +
testExtendsDefineSet() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that defineset's contained in the base compiler definition are + effective. +
testExtendsEntry() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the entry attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsExceptions() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that the extend attribute of the base compiler definition is + effective. +
testExtendsFileSet() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests if a fileset enclosed in the base compiler definition is effective. +
testExtendsFileSet() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that fileset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +
testExtendsFileSet(File) - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that a fileset in the base processor is effective when evaluating + the files included in an extending processor. +
testExtendsFixed() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the fixed attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsIf() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that the if attribute in the base processor is effective when + evaluating if an extending processor is active. +
testExtendsIncludePath() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that includepath's contained in the base compiler definition are + effective. +
testExtendsIncremental() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the incremental attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsLibSet() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that libset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +
testExtendsLinkerArgs() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it. +
testExtendsLinkerArgsViaReference() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Verify linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it, even if the + linker is brought in through a reference. +
testExtendsMap() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the map attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsMultithreaded() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that the multithread attribute of the base compiler definition is + effective. +
testExtendsName() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that the name attribute in the base compiler is effective. +
testExtendsName() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the name attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsRebuild() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests if the rebuild attribute of the base compiler definition is + effective. +
testExtendsRebuild() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the rebuild attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsRebuild(ProcessorDef) - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that the rebuild attribute in the base processor is effective when + creating the command line for a processor that extends it. +
testExtendsStack() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that the stack attribute in the base linker is effective when + creating the command line for a linker that extends it. +
testExtendsSysIncludePath() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that sysincludepath's contained in the base compiler definition are + effective. +
testExtendsSysLibSet() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests that syslibset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +
testExtendsUnless() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that the unless attribute in the base processor is effective when + evaluating if an extending processor is active. +
TestForteCCCompiler - Class in net.sf.antcontrib.cpptasks.sun
Test Sun Forte compiler adapter
TestForteCCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
  +
TestFortranParser - Class in net.sf.antcontrib.cpptasks.parser
Tests for the CParser class.
TestFortranParser(String) - +Constructor for class net.sf.antcontrib.cpptasks.parser.TestFortranParser +
Constructor. +
TestGccCCompiler - Class in net.sf.antcontrib.cpptasks.gcc
Test gcc compiler adapter
TestGccCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +
  +
TestGccCompatibleCCompiler - Class in net.sf.antcontrib.cpptasks.gcc
Tests for gcc compatible compilers
TestGccCompatibleCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Constructor +
TestGccLinker - Class in net.sf.antcontrib.cpptasks.gcc
 
TestGccLinker(String) - +Constructor for class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
Constructor +
testGetActiveDefines() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
This method tests CompilerDef.getActiveDefines. +
testGetActiveIncludePaths() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
This method tests CompilerDef.getActiveIncludePath. +
testGetFailOnError() - +Method in class net.sf.antcontrib.cpptasks.TestCCTask +
Tests that the default value of failonerror is true. +
testGetGcc() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that setting classname to the Gcc compiler is effective. +
testGetGcc() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Test if setting the classname attribute to the name of the GCC linker + results in the singleton GCC linker. +
testGetIdentfier() - +Method in class net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler +
  +
testGetIdentfier() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor +
  +
testGetIdentfier() - +Method in class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker +
  +
testGetIdentfier() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
  +
testGetIdentfier() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +
Skip testGetIdentifier. +
testGetIdentifier() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +
  +
testGetLibraryPath() - +Method in class net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker +
  +
testGetLibraryPatterns() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
Tests for library patterns + + See patch [ 676276 ] Enhanced support for Mac OS X +
testGetLinkerDarwinPlugin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
  +
testGetLinkerDarwinShared() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
  +
testGetLinkerNonDarwinPlugin() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
  +
testGetLinkerNonDarwinShared() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccLinker +
  +
testGetMSVC() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that setting classname to the MSVC compiler is effective. +
testGetMSVC() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Test if setting the classname attribute to the name of the MSVC linker + results in the singleton MSVC linker. +
testGetOutputFileName1() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler +
  +
testGetOutputFileName1() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
testGetOutputFileName1() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +
Override inherited test. +
testGetOutputFileName2() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration +
  +
testGetPathFromEnvironment() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRebuild() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testGetRelativePath1() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath10() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath2() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath3() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath4() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath5() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath6() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath7() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath8() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetRelativePath9() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testGetSource() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testGetTargetsToBuildByConfiguration1() - +Method in class net.sf.antcontrib.cpptasks.TestCCTask +
Test that a target with no existing object file is + returned by getTargetsToBuildByConfiguration. +
testGetTargetsToBuildByConfiguration2() - +Method in class net.sf.antcontrib.cpptasks.TestCCTask +
Test that a target that is up to date is not returned by + getTargetsToBuildByConfiguration. +
testHasQObject1() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser +
Test that the presence of Q_OBJECT causes hasQObject to return true. +
testHasQObject2() - +Method in class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser +
Test that the lack of Q_OBJECT causes hasQObject to return false. +
testHasSameSource() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testImmediateImportBracket() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include . +
testImmediateImportQuote() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #import "foo.h". +
testImmediateIncludeBracket() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include . +
testImmediateIncludeQuote() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include "foo.h". +
testINCLUDE() - +Method in class net.sf.antcontrib.cpptasks.parser.TestFortranParser +
Checks parsing of INCLUDE 'foo.inc'. +
testInClUdE() - +Method in class net.sf.antcontrib.cpptasks.parser.TestFortranParser +
Checks parsing of InClUdE 'foo.inc'. +
testIncompleteImmediateImportBracket() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #import testIncompleteImmediateImportQuote() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #import "foo.h. +
testIncompleteImmediateIncludeBracket() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include testIncompleteImmediateIncludeQuote() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include "foo.h. +
TestInstalledDevStudioLinker - Class in net.sf.antcontrib.cpptasks.devstudio
Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
TestInstalledDevStudioLinker(String) - +Constructor for class net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker +
  +
testIsActive1() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive1() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "if" specifies a property that is set. +
testIsActive2() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that isActive returns true when "if" references a set property. +
testIsActive2() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive2() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "if" specifies a property whose value suggests the + user thinks the value is significant. +
testIsActive3() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that isActive returns false when "if" references an unset property. +
testIsActive3() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive3() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "if" specifies a property that is not set. +
testIsActive4() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that evaluating isActive when "if" refernces a property with the + value "false" throws an exception to warn of a suspicious value. +
testIsActive4() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive4() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "unless" specifies a property that is set. +
testIsActive5() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that isActive returns false when "unless" references a set + property. +
testIsActive5() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive5() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "unless" specifies a property whose value suggests + the user thinks the value is significant. +
testIsActive6() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that isActive returns true when "unless" references an unset + property. +
testIsActive6() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive6() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Evaluate isActive when "unless" specifies a property that is not set. +
testIsActive7() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests that evaluating isActive when "unless" references a property with + the value "false" throws an exception to warn of a suspicious value. +
testIsActive7() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsActive8() - +Method in class net.sf.antcontrib.cpptasks.TestProcessorDef +
Tests if a processor is active when both "if" and "unless" are specified + and the associated properties are set. +
testIsActive8() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
testIsPluginFalse() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestLinkType +
Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X +
testIsPluginTrue() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestLinkType +
Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X +
testLeadingSpace() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing when line contains leading whitespace. +
testLeadingTab() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing when line contains a leading tab. +
testLibContainsDot() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
The libs parameter should not end with .lib, .so, .a etc New behavior is + to warn if it ends in a suspicious extension. +
testLibContainsDotLib() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
The libs parameter should not end with .lib, .so, .a (that is, + should be kernel, not kernel.lib). +
testLibNotSpecified() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Use of a libset or syslibset without a libs attribute should log a + warning message. +
testLibrarianVisitFiles() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Run testVisitFiles with the MSVC Librarian + expect one matching file. +
TestLibrarySet - Class in net.sf.antcontrib.cpptasks.types
Tests for the LibrarySet class.
TestLibrarySet(String) - +Constructor for class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Constructor. +
testLibReturnValue() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +
  +
TestLinkerDef - Class in net.sf.antcontrib.cpptasks
Tests for LinkerDef class.
TestLinkerDef(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestLinkerDef +
Constructor. +
TestLinkerEnum - Class in net.sf.antcontrib.cpptasks
Tests for LinkerEnum
TestLinkerEnum(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestLinkerEnum +
  +
testLinkerVisitFiles() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
Run testVisitFiles with the MSVC Linker + expect one matching file. +
TestLinkType - Class in net.sf.antcontrib.cpptasks.compiler
Tests for LinkType
TestLinkType(String) - +Constructor for class net.sf.antcontrib.cpptasks.compiler.TestLinkType +
Constructor +
testLoadOpenshore() - +Method in class net.sf.antcontrib.cpptasks.TestDependencyTable +
Loads a dependency file from OpenSHORE (http://www.openshore.org) +
testLoadOpenshore() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable +
Tests loading a stock history file +
testLoadXerces() - +Method in class net.sf.antcontrib.cpptasks.TestDependencyTable +
Loads a dependency file from Xerces-C (http://xml.apache.org) +
testLoadXerces() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable +
Tests loading a stock history file +
testMerge() - +Method in class net.sf.antcontrib.cpptasks.types.TestDefineArgument +
  +
TestMetaObjectCompiler - Class in net.sf.antcontrib.cpptasks.trolltech
Tests for Trolltech Meta Object Compiler.
TestMetaObjectCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +
Constructor. +
TestMetaObjectParser - Class in net.sf.antcontrib.cpptasks.trolltech
Tests for the MetaObjectParser class.
TestMetaObjectParser(String) - +Constructor for class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser +
Constructor. +
testMultipleInClUdE() - +Method in class net.sf.antcontrib.cpptasks.parser.TestFortranParser +
Checks parsing of InClUdE 'foo.inc'. +
testMustRebuild() - +Method in class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testNoQuoteOrBracket() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of #include foo.h. +
testNotFirstWhitespace() - +Method in class net.sf.antcontrib.cpptasks.parser.TestCParser +
Checks parsing of //#include "foo.h". +
testOutputFileName() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +
Tests output file for ar library + + See bug [ 687732 ] Filenames for gcc static library does start with lib +
TestOutputTypeEnum - Class in net.sf.antcontrib.cpptasks
 
TestOutputTypeEnum(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestOutputTypeEnum +
Default constructor +
testParsePath1() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testParsePath2() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testParsePath3() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testParsePath4() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
testParsePath5() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
  +
TestProcessorDef - Class in net.sf.antcontrib.cpptasks
Tests for ProcessorDef.
TestProcessorDef(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestProcessorDef +
Constructor. +
testSetFailOnError() - +Method in class net.sf.antcontrib.cpptasks.TestCCTask +
Tests that setting failonerror is effective. +
testShortLibName() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
this threw an exception prior to 2002-09-05 and started to throw one + again 2002-11-19 up to 2002-12-11. +
testStartsWithLib() - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
The libs parameter should contain not a lib prefix (that is, + pthread not libpthread). +
TestTargetHistoryTable - Class in net.sf.antcontrib.cpptasks
Tests for TargetHistoryTable
TestTargetHistoryTable(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestTargetHistoryTable +
Constructor +
TestTargetHistoryTable.MockProcessorConfiguration - Class in net.sf.antcontrib.cpptasks
 
TestTargetHistoryTable.MockProcessorConfiguration() - +Constructor for class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +
  +
TestTargetInfo - Class in net.sf.antcontrib.cpptasks
A description of a file built or to be built
TestTargetInfo(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestTargetInfo +
  +
testToString() - +Method in class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +
  +
testUnknownClass() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Tests that setting classname to an bogus class name results in a + BuildException. +
testUnknownClass() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests if setting the classname attribute to an bogus classname results in + a BuildException. +
testUpdateTimeResolution() - +Method in class net.sf.antcontrib.cpptasks.TestTargetHistoryTable +
Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix +
testVisitFiles(Linker, int) - +Method in class net.sf.antcontrib.cpptasks.types.TestLibrarySet +
This test creates two "fake" libraries in the temporary directory and + check how many are visited. +
TestVisualAgeCCompiler - Class in net.sf.antcontrib.cpptasks.ibm
Test IBM Visual Age compiler adapter
TestVisualAgeCCompiler(String) - +Constructor for class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +
  +
testWarningLevel0() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 0 +
testWarningLevel0() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 0 +
testWarningLevel1() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 1 +
testWarningLevel1() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 1 +
testWarningLevel2() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 2 +
testWarningLevel2() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 2 +
testWarningLevel3() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 3 +
testWarningLevel3() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 3 +
testWarningLevel4() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 4 +
testWarningLevel4() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 4 +
testWarningLevel5() - +Method in class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler +
Tests command lines switches for warning = 5 +
testWarningLevel5() - +Method in class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +
Tests command line switches for warning = 5 +
testWrongType() - +Method in class net.sf.antcontrib.cpptasks.TestCompilerDef +
Test that setting classname to a class that doesn't support Compiler + throws a BuildException. +
testWrongType() - +Method in class net.sf.antcontrib.cpptasks.TestLinkerDef +
Tests if setting the classname to the name of a class that doesn't + support Linker throws a BuildException. +
TestXMLConsumer - Class in net.sf.antcontrib.cpptasks
Base class for tests on classes that consume or public XML documents.
TestXMLConsumer(String) - +Constructor for class net.sf.antcontrib.cpptasks.TestXMLConsumer +
  +
testXmlEncode() - +Method in class net.sf.antcontrib.cpptasks.TestCUtil +
Test of xmlAttributeEncode. +
+
+

+V

+
+
visit(File, String) - +Method in class net.sf.antcontrib.cpptasks.MockFileCollector +
Implementation of FileVisitor.visit. +
+
+B C D G M N S T V + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/index.html b/site/testapidocs/index.html new file mode 100644 index 0000000..22cd0f5 --- /dev/null +++ b/site/testapidocs/index.html @@ -0,0 +1,40 @@ + + + + + + + +cpptasks 1.0b5 Test API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/MockBuildListener.html b/site/testapidocs/net/sf/antcontrib/cpptasks/MockBuildListener.html new file mode 100644 index 0000000..4172843 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/MockBuildListener.html @@ -0,0 +1,590 @@ + + + + + + + +MockBuildListener (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class MockBuildListener

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.MockBuildListener
+
+
+
All Implemented Interfaces:
java.util.EventListener, org.apache.tools.ant.BuildListener
+
+
+
+
public class MockBuildListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener
+ + +

+Captures build events +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
MockBuildListener() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidbuildFinished(org.apache.tools.ant.BuildEvent event) + +
+          Signals that the last target has finished.
+ voidbuildStarted(org.apache.tools.ant.BuildEvent event) + +
+          Signals that a build has started.
+ java.util.VectorgetBuildFinishedEvents() + +
+           
+ java.util.VectorgetBuildStartedEvents() + +
+          Gets a list of buildStarted events
+ java.util.VectorgetMessageLoggedEvents() + +
+          Gets message logged events
+ java.util.VectorgetTargetFinishedEvents() + +
+          Gets target finished events
+ java.util.VectorgetTargetStartedEvents() + +
+          Gets target started events
+ java.util.VectorgetTaskFinishedEvents() + +
+          Gets task finished events
+ java.util.VectorgetTaskStartedEvents() + +
+          Gets task started events
+ voidmessageLogged(org.apache.tools.ant.BuildEvent event) + +
+          Signals a message logging event.
+ voidtargetFinished(org.apache.tools.ant.BuildEvent event) + +
+          Signals that a target has finished.
+ voidtargetStarted(org.apache.tools.ant.BuildEvent event) + +
+          Signals that a target is starting.
+ voidtaskFinished(org.apache.tools.ant.BuildEvent event) + +
+          Signals that a task has finished.
+ voidtaskStarted(org.apache.tools.ant.BuildEvent event) + +
+          Signals that a task is starting.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MockBuildListener

+
+public MockBuildListener()
+
+
+ + + + + + + + +
+Method Detail
+ +

+buildFinished

+
+public void buildFinished(org.apache.tools.ant.BuildEvent event)
+
+
Signals that the last target has finished. This event will still be + fired if an error occurred during the build. +

+

+
Specified by:
buildFinished in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getException()
+
+
+
+ +

+buildStarted

+
+public void buildStarted(org.apache.tools.ant.BuildEvent event)
+
+
Signals that a build has started. This event is fired before any targets + have started. +

+

+
Specified by:
buildStarted in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
+
+
+
+ +

+getBuildFinishedEvents

+
+public java.util.Vector getBuildFinishedEvents()
+
+
+
+
+
+
+
+
+
+ +

+getBuildStartedEvents

+
+public java.util.Vector getBuildStartedEvents()
+
+
Gets a list of buildStarted events +

+

+
+
+
+ +
Returns:
list of build started events
+
+
+
+ +

+getMessageLoggedEvents

+
+public java.util.Vector getMessageLoggedEvents()
+
+
Gets message logged events +

+

+
+
+
+ +
Returns:
vector of "MessageLogged" events.
+
+
+
+ +

+getTargetFinishedEvents

+
+public java.util.Vector getTargetFinishedEvents()
+
+
Gets target finished events +

+

+
+
+
+ +
Returns:
vector of "TargetFinished" events.
+
+
+
+ +

+getTargetStartedEvents

+
+public java.util.Vector getTargetStartedEvents()
+
+
Gets target started events +

+

+
+
+
+ +
Returns:
vector of "TargetStarted" events.
+
+
+
+ +

+getTaskFinishedEvents

+
+public java.util.Vector getTaskFinishedEvents()
+
+
Gets task finished events +

+

+
+
+
+ +
Returns:
vector of "TaskFinished" events.
+
+
+
+ +

+getTaskStartedEvents

+
+public java.util.Vector getTaskStartedEvents()
+
+
Gets task started events +

+

+
+
+
+ +
Returns:
vector of "TaskStarted" events.
+
+
+
+ +

+messageLogged

+
+public void messageLogged(org.apache.tools.ant.BuildEvent event)
+
+
Signals a message logging event. +

+

+
Specified by:
messageLogged in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getMessage(), +BuildEvent.getPriority()
+
+
+
+ +

+targetFinished

+
+public void targetFinished(org.apache.tools.ant.BuildEvent event)
+
+
Signals that a target has finished. This event will still be fired if an + error occurred during the build. +

+

+
Specified by:
targetFinished in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getException()
+
+
+
+ +

+targetStarted

+
+public void targetStarted(org.apache.tools.ant.BuildEvent event)
+
+
Signals that a target is starting. +

+

+
Specified by:
targetStarted in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getTarget()
+
+
+
+ +

+taskFinished

+
+public void taskFinished(org.apache.tools.ant.BuildEvent event)
+
+
Signals that a task has finished. This event will still be fired if an + error occurred during the build. +

+

+
Specified by:
taskFinished in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getException()
+
+
+
+ +

+taskStarted

+
+public void taskStarted(org.apache.tools.ant.BuildEvent event)
+
+
Signals that a task is starting. +

+

+
Specified by:
taskStarted in interface org.apache.tools.ant.BuildListener
+
+
+
Parameters:
event - An event with any relevant extra information. Must not be + null.
See Also:
BuildEvent.getTask()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/MockFileCollector.html b/site/testapidocs/net/sf/antcontrib/cpptasks/MockFileCollector.html new file mode 100644 index 0000000..4bae570 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/MockFileCollector.html @@ -0,0 +1,346 @@ + + + + + + + +MockFileCollector (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class MockFileCollector

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.MockFileCollector
+
+
+
All Implemented Interfaces:
net.sf.antcontrib.cpptasks.FileVisitor
+
+
+
+
public final class MockFileCollector
extends java.lang.Object
implements net.sf.antcontrib.cpptasks.FileVisitor
+ + +

+Implementation of FileVisitor that collects visited files for later + retrieval. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MockFileCollector() + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ java.io.FilegetBaseDir(int index) + +
+          Get value of baseDir parameter for the specified index.
+ java.lang.StringgetFileName(int index) + +
+          Get value of fileName parameter for a specified index.
+ intsize() + +
+          Get count of calls to FileVisitor.visit.
+ voidvisit(java.io.File baseDir, + java.lang.String fileName) + +
+          Implementation of FileVisitor.visit.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MockFileCollector

+
+public MockFileCollector()
+
+
Constructor. +

+

+ + + + + + + + +
+Method Detail
+ +

+visit

+
+public void visit(java.io.File baseDir,
+                  java.lang.String fileName)
+
+
Implementation of FileVisitor.visit. +

+

+
Specified by:
visit in interface net.sf.antcontrib.cpptasks.FileVisitor
+
+
+
Parameters:
baseDir - base directory
fileName - file name
+
+
+
+ +

+getFileName

+
+public java.lang.String getFileName(int index)
+
+
Get value of fileName parameter for a specified index. +

+

+
+
+
+
Parameters:
index - index +
Returns:
value of failName parameter
+
+
+
+ +

+getBaseDir

+
+public java.io.File getBaseDir(int index)
+
+
Get value of baseDir parameter for the specified index. +

+

+
+
+
+
Parameters:
index - index +
Returns:
value of baseDir parameter
+
+
+
+ +

+size

+
+public int size()
+
+
Get count of calls to FileVisitor.visit. +

+

+
+
+
+ +
Returns:
count of calls.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestAllClasses.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestAllClasses.html new file mode 100644 index 0000000..7fc79bc --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestAllClasses.html @@ -0,0 +1,269 @@ + + + + + + + +TestAllClasses (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestAllClasses

+
+java.lang.Object
+  extended by junit.framework.TestSuite
+      extended by net.sf.antcontrib.cpptasks.TestAllClasses
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestAllClasses
extends junit.framework.TestSuite
+ + +

+Test for abstract compiler class + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAllClasses(java.lang.String name) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static junit.framework.TestSuitesuite() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAllClasses

+
+public TestAllClasses(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+suite

+
+public static junit.framework.TestSuite suite()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestCCTask.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCCTask.html new file mode 100644 index 0000000..d9c4e6a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCCTask.html @@ -0,0 +1,374 @@ + + + + + + + +TestCCTask (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestCCTask

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestCCTask
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestCCTask
extends junit.framework.TestCase
+ + +

+Tests for CCTask. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCCTask(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestAntlibXmlPresent() + +
+          Test checks for the presence of antlib.xml.
+ voidtestGetFailOnError() + +
+          Tests that the default value of failonerror is true.
+ voidtestGetTargetsToBuildByConfiguration1() + +
+          Test that a target with no existing object file is + returned by getTargetsToBuildByConfiguration.
+ voidtestGetTargetsToBuildByConfiguration2() + +
+          Test that a target that is up to date is not returned by + getTargetsToBuildByConfiguration.
+ voidtestSetFailOnError() + +
+          Tests that setting failonerror is effective.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCCTask

+
+public TestCCTask(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+testGetTargetsToBuildByConfiguration1

+
+public void testGetTargetsToBuildByConfiguration1()
+
+
Test that a target with no existing object file is + returned by getTargetsToBuildByConfiguration. +

+

+
+
+
+
+ +

+testGetTargetsToBuildByConfiguration2

+
+public void testGetTargetsToBuildByConfiguration2()
+
+
Test that a target that is up to date is not returned by + getTargetsToBuildByConfiguration. +

+

+
+
+
+
+ +

+testGetFailOnError

+
+public void testGetFailOnError()
+
+
Tests that the default value of failonerror is true. +

+

+
+
+
+
+ +

+testSetFailOnError

+
+public void testSetFailOnError()
+
+
Tests that setting failonerror is effective. +

+

+
+
+
+
+ +

+testAntlibXmlPresent

+
+public void testAntlibXmlPresent()
+                          throws java.io.IOException
+
+
Test checks for the presence of antlib.xml. +

+

+ +
Throws: +
java.io.IOException - if stream can't be closed.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestCUtil.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCUtil.html new file mode 100644 index 0000000..b1d1ab5 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCUtil.html @@ -0,0 +1,615 @@ + + + + + + + +TestCUtil (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestCUtil

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestCUtil
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestCUtil
extends junit.framework.TestCase
+ + +

+Tests for CUtil class +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCUtil(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestGetPathFromEnvironment() + +
+           
+ voidtestGetRelativePath1() + +
+           
+ voidtestGetRelativePath10() + +
+           
+ voidtestGetRelativePath2() + +
+           
+ voidtestGetRelativePath3() + +
+           
+ voidtestGetRelativePath4() + +
+           
+ voidtestGetRelativePath5() + +
+           
+ voidtestGetRelativePath6() + +
+           
+ voidtestGetRelativePath7() + +
+           
+ voidtestGetRelativePath8() + +
+           
+ voidtestGetRelativePath9() + +
+           
+ voidtestParsePath1() + +
+           
+ voidtestParsePath2() + +
+           
+ voidtestParsePath3() + +
+           
+ voidtestParsePath4() + +
+           
+ voidtestParsePath5() + +
+           
+ voidtestXmlEncode() + +
+          Test of xmlAttributeEncode.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCUtil

+
+public TestCUtil(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testGetPathFromEnvironment

+
+public void testGetPathFromEnvironment()
+
+
+
+
+
+
+ +

+testGetRelativePath1

+
+public void testGetRelativePath1()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath2

+
+public void testGetRelativePath2()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath3

+
+public void testGetRelativePath3()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath4

+
+public void testGetRelativePath4()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath5

+
+public void testGetRelativePath5()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath6

+
+public void testGetRelativePath6()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath7

+
+public void testGetRelativePath7()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath8

+
+public void testGetRelativePath8()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath9

+
+public void testGetRelativePath9()
+                          throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testGetRelativePath10

+
+public void testGetRelativePath10()
+                           throws java.io.IOException
+
+
+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testParsePath1

+
+public void testParsePath1()
+
+
+
+
+
+
+ +

+testParsePath2

+
+public void testParsePath2()
+
+
+
+
+
+
+ +

+testParsePath3

+
+public void testParsePath3()
+
+
+
+
+
+
+ +

+testParsePath4

+
+public void testParsePath4()
+
+
+
+
+
+
+ +

+testParsePath5

+
+public void testParsePath5()
+
+
+
+
+
+
+ +

+testXmlEncode

+
+public void testXmlEncode()
+
+
Test of xmlAttributeEncode. + + See patch 1267472 and bug 1032302. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerDef.html new file mode 100644 index 0000000..917a51b --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerDef.html @@ -0,0 +1,694 @@ + + + + + + + +TestCompilerDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestCompilerDef

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestProcessorDef
+              extended by net.sf.antcontrib.cpptasks.TestCompilerDef
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestCompilerDef
extends TestProcessorDef
+ + +

+Tests for CompilerDef. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCompilerDef(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.ProcessorDefcreate() + +
+          Creates a new processor.
+protected  java.lang.String[]getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor) + +
+          Gets the command line arguments that precede filenames.
+ voidtestExtendsClassname() + +
+          Tests that the classname attribute in the base compiler is effective.
+ voidtestExtendsCompilerArgs() + +
+          Tests that compilerarg's contained in the base compiler definition are + effective.
+ voidtestExtendsDefineSet() + +
+          Tests that defineset's contained in the base compiler definition are + effective.
+ voidtestExtendsExceptions() + +
+          Tests that the extend attribute of the base compiler definition is + effective.
+ voidtestExtendsFileSet() + +
+          Tests if a fileset enclosed in the base compiler definition is effective.
+ voidtestExtendsIncludePath() + +
+          Tests that includepath's contained in the base compiler definition are + effective.
+ voidtestExtendsMultithreaded() + +
+          Tests that the multithread attribute of the base compiler definition is + effective.
+ voidtestExtendsName() + +
+          Tests that the name attribute in the base compiler is effective.
+ voidtestExtendsRebuild() + +
+          Tests if the rebuild attribute of the base compiler definition is + effective.
+ voidtestExtendsSysIncludePath() + +
+          Tests that sysincludepath's contained in the base compiler definition are + effective.
+ voidtestGetActiveDefines() + +
+          This method tests CompilerDef.getActiveDefines.
+ voidtestGetActiveIncludePaths() + +
+          This method tests CompilerDef.getActiveIncludePath.
+ voidtestGetGcc() + +
+          Tests that setting classname to the Gcc compiler is effective.
+ voidtestGetMSVC() + +
+          Tests that setting classname to the MSVC compiler is effective.
+ voidtestUnknownClass() + +
+          Tests that setting classname to an bogus class name results in a + BuildException.
+ voidtestWrongType() + +
+          Test that setting classname to a class that doesn't support Compiler + throws a BuildException.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.TestProcessorDef
createExtendedProcessorDef, getConfiguration, testExtendsDebug, testExtendsFileSet, testExtendsIf, testExtendsRebuild, testExtendsUnless, testIsActive2, testIsActive3, testIsActive4, testIsActive5, testIsActive6, testIsActive7, testIsActive8
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCompilerDef

+
+public TestCompilerDef(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.ProcessorDef create()
+
+
Creates a new processor. +

+

+
Specified by:
create in class TestProcessorDef
+
+
+ +
Returns:
new processor
+
+
+
+ +

+testGetActiveDefines

+
+public void testGetActiveDefines()
+
+
This method tests CompilerDef.getActiveDefines. + + A CompilerDef is created similar to what would be created for + + + + Then getActiveDefines is called for a project without and with the + "debug" property defined. Return value from getActiveDefines should + contain one member +

+

+
+
+
+
+ +

+testGetActiveIncludePaths

+
+public void testGetActiveIncludePaths()
+
+
This method tests CompilerDef.getActiveIncludePath. + + A CompilerDef is created similar to what would be created for + + + + and is evaluate for a project without and without "debug" set +

+

+
+
+
+
+ +

+testGetGcc

+
+public void testGetGcc()
+
+
Tests that setting classname to the Gcc compiler is effective. +

+

+
+
+
+
+ +

+testGetMSVC

+
+public void testGetMSVC()
+
+
Tests that setting classname to the MSVC compiler is effective. +

+

+
+
+
+
+ +

+testUnknownClass

+
+public void testUnknownClass()
+
+
Tests that setting classname to an bogus class name results in a + BuildException. +

+

+
+
+
+
+ +

+testWrongType

+
+public void testWrongType()
+
+
Test that setting classname to a class that doesn't support Compiler + throws a BuildException. +

+

+
+
+
+
+ +

+getPreArguments

+
+protected java.lang.String[] getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
+
+
Gets the command line arguments that precede filenames. +

+

+
Specified by:
getPreArguments in class TestProcessorDef
+
+
+
Parameters:
processor - processor under test +
Returns:
command line arguments
+
+
+
+ +

+testExtendsFileSet

+
+public void testExtendsFileSet()
+                        throws java.io.IOException
+
+
Tests if a fileset enclosed in the base compiler definition is effective. +

+

+ +
Throws: +
java.io.IOException - if unable to create or delete a temporary file
+
+
+
+ +

+testExtendsRebuild

+
+public void testExtendsRebuild()
+
+
Tests if the rebuild attribute of the base compiler definition is + effective. +

+

+
+
+
+
+ +

+testExtendsCompilerArgs

+
+public void testExtendsCompilerArgs()
+
+
Tests that compilerarg's contained in the base compiler definition are + effective. +

+

+
+
+
+
+ +

+testExtendsDefineSet

+
+public void testExtendsDefineSet()
+
+
Tests that defineset's contained in the base compiler definition are + effective. +

+

+
+
+
+
+ +

+testExtendsIncludePath

+
+public void testExtendsIncludePath()
+
+
Tests that includepath's contained in the base compiler definition are + effective. +

+

+
+
+
+
+ +

+testExtendsSysIncludePath

+
+public void testExtendsSysIncludePath()
+
+
Tests that sysincludepath's contained in the base compiler definition are + effective. +

+

+
+
+
+
+ +

+testExtendsExceptions

+
+public void testExtendsExceptions()
+
+
Tests that the extend attribute of the base compiler definition is + effective. +

+

+
+
+
+
+ +

+testExtendsMultithreaded

+
+public void testExtendsMultithreaded()
+
+
Tests that the multithread attribute of the base compiler definition is + effective. +

+

+
+
+
+
+ +

+testExtendsName

+
+public void testExtendsName()
+
+
Tests that the name attribute in the base compiler is effective. +

+

+
+
+
+
+ +

+testExtendsClassname

+
+public void testExtendsClassname()
+
+
Tests that the classname attribute in the base compiler is effective. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerEnum.html new file mode 100644 index 0000000..8f744d1 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestCompilerEnum.html @@ -0,0 +1,304 @@ + + + + + + + +TestCompilerEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestCompilerEnum

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestCompilerEnum
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestCompilerEnum
extends junit.framework.TestCase
+ + +

+Tests for CompilerEnum. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCompilerEnum(java.lang.String name) + +
+          Create instance of TestCompilerEnum.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestCompilerEnum1() + +
+          Test that "gcc" is recognized as a compiler enum.
+ voidtestCompilerEnum2() + +
+          Test that "bogus" is not recognized as a compiler enum.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCompilerEnum

+
+public TestCompilerEnum(java.lang.String name)
+
+
Create instance of TestCompilerEnum. +

+

+
Parameters:
name - test name.
+
+ + + + + + + + +
+Method Detail
+ +

+testCompilerEnum1

+
+public void testCompilerEnum1()
+
+
Test that "gcc" is recognized as a compiler enum. +

+

+
+
+
+
+ +

+testCompilerEnum2

+
+public void testCompilerEnum2()
+
+
Test that "bogus" is not recognized as a compiler enum. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestDependencyTable.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestDependencyTable.html new file mode 100644 index 0000000..d58667a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestDependencyTable.html @@ -0,0 +1,332 @@ + + + + + + + +TestDependencyTable (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestDependencyTable

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestXMLConsumer
+              extended by net.sf.antcontrib.cpptasks.TestDependencyTable
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestDependencyTable
extends TestXMLConsumer
+ + +

+DependencyTable tests +

+ +

+

+
Author:
+
curta
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestDependencyTable(java.lang.String testName) + +
+          Constructor
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestLoadOpenshore() + +
+          Loads a dependency file from OpenSHORE (http://www.openshore.org)
+ voidtestLoadXerces() + +
+          Loads a dependency file from Xerces-C (http://xml.apache.org)
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.TestXMLConsumer
copyResourceToTmpDir, deleteTmpFile
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestDependencyTable

+
+public TestDependencyTable(java.lang.String testName)
+
+
Constructor +

+

+
Parameters:
testName - test name
+
+ + + + + + + + +
+Method Detail
+ +

+testLoadOpenshore

+
+public void testLoadOpenshore()
+                       throws java.io.IOException,
+                              javax.xml.parsers.ParserConfigurationException,
+                              org.xml.sax.SAXException
+
+
Loads a dependency file from OpenSHORE (http://www.openshore.org) +

+

+ +
Throws: +
java.io.IOException +
javax.xml.parsers.ParserConfigurationException +
org.xml.sax.SAXException
+
+
+
+ +

+testLoadXerces

+
+public void testLoadXerces()
+                    throws java.io.IOException,
+                           javax.xml.parsers.ParserConfigurationException,
+                           org.xml.sax.SAXException
+
+
Loads a dependency file from Xerces-C (http://xml.apache.org) +

+

+ +
Throws: +
java.io.IOException +
javax.xml.parsers.ParserConfigurationException +
org.xml.sax.SAXException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerDef.html new file mode 100644 index 0000000..8bd06fb --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerDef.html @@ -0,0 +1,741 @@ + + + + + + + +TestLinkerDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestLinkerDef

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestProcessorDef
+              extended by net.sf.antcontrib.cpptasks.TestLinkerDef
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestLinkerDef
extends TestProcessorDef
+ + +

+Tests for LinkerDef class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestLinkerDef(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.ProcessorDefcreate() + +
+          Creates a processor.
+protected  java.lang.String[]getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor) + +
+          Gets the command line arguments that appear before the filenames.
+ voidtestExtendsBase() + +
+          Tests that the base attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsClassname() + +
+          Tests that the classname attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsEntry() + +
+          Tests that the entry attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsFileSet() + +
+          Tests that fileset's that appear in the base linker are effective when + creating the command line for a linker that extends it.
+ voidtestExtendsFixed() + +
+          Tests that the fixed attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsIncremental() + +
+          Tests that the incremental attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsLibSet() + +
+          Tests that libset's that appear in the base linker are effective when + creating the command line for a linker that extends it.
+ voidtestExtendsLinkerArgs() + +
+          Tests that linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it.
+ voidtestExtendsLinkerArgsViaReference() + +
+          Verify linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it, even if the + linker is brought in through a reference.
+ voidtestExtendsMap() + +
+          Tests that the map attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsName() + +
+          Tests that the name attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsRebuild() + +
+          Tests that the rebuild attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsStack() + +
+          Tests that the stack attribute in the base linker is effective when + creating the command line for a linker that extends it.
+ voidtestExtendsSysLibSet() + +
+          Tests that syslibset's that appear in the base linker are effective when + creating the command line for a linker that extends it.
+ voidtestGetGcc() + +
+          Test if setting the classname attribute to the name of the GCC linker + results in the singleton GCC linker.
+ voidtestGetMSVC() + +
+          Test if setting the classname attribute to the name of the MSVC linker + results in the singleton MSVC linker.
+ voidtestUnknownClass() + +
+          Tests if setting the classname attribute to an bogus classname results in + a BuildException.
+ voidtestWrongType() + +
+          Tests if setting the classname to the name of a class that doesn't + support Linker throws a BuildException.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.TestProcessorDef
createExtendedProcessorDef, getConfiguration, testExtendsDebug, testExtendsFileSet, testExtendsIf, testExtendsRebuild, testExtendsUnless, testIsActive2, testIsActive3, testIsActive4, testIsActive5, testIsActive6, testIsActive7, testIsActive8
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestLinkerDef

+
+public TestLinkerDef(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.ProcessorDef create()
+
+
Creates a processor. +

+

+
Specified by:
create in class TestProcessorDef
+
+
+ +
Returns:
new linker
+
+
+
+ +

+testGetGcc

+
+public void testGetGcc()
+
+
Test if setting the classname attribute to the name of the GCC linker + results in the singleton GCC linker. +

+

+
+
+
+
+ +

+testGetMSVC

+
+public void testGetMSVC()
+
+
Test if setting the classname attribute to the name of the MSVC linker + results in the singleton MSVC linker. +

+

+
+
+
+
+ +

+testUnknownClass

+
+public void testUnknownClass()
+
+
Tests if setting the classname attribute to an bogus classname results in + a BuildException. +

+

+
+
+
+
+ +

+testWrongType

+
+public void testWrongType()
+
+
Tests if setting the classname to the name of a class that doesn't + support Linker throws a BuildException. +

+

+
+
+
+
+ +

+getPreArguments

+
+protected java.lang.String[] getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
+
+
Gets the command line arguments that appear before the filenames. +

+

+
Specified by:
getPreArguments in class TestProcessorDef
+
+
+
Parameters:
processor - processor under test +
Returns:
command line arguments
+
+
+
+ +

+testExtendsLinkerArgs

+
+public void testExtendsLinkerArgs()
+
+
Tests that linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsLinkerArgsViaReference

+
+public void testExtendsLinkerArgsViaReference()
+
+
Verify linkerarg's that appear in the base linker are effective when + creating the command line for a linker that extends it, even if the + linker is brought in through a reference. +

+

+
+
+
+
+ +

+testExtendsFileSet

+
+public void testExtendsFileSet()
+                        throws java.io.IOException
+
+
Tests that fileset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +

+

+ +
Throws: +
java.io.IOException - if unable to create or delete temporary file
+
+
+
+ +

+testExtendsLibSet

+
+public void testExtendsLibSet()
+
+
Tests that libset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsSysLibSet

+
+public void testExtendsSysLibSet()
+
+
Tests that syslibset's that appear in the base linker are effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsBase

+
+public void testExtendsBase()
+
+
Tests that the base attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsStack

+
+public void testExtendsStack()
+
+
Tests that the stack attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsEntry

+
+public void testExtendsEntry()
+
+
Tests that the entry attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsFixed

+
+public void testExtendsFixed()
+
+
Tests that the fixed attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsIncremental

+
+public void testExtendsIncremental()
+
+
Tests that the incremental attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsMap

+
+public void testExtendsMap()
+
+
Tests that the map attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsRebuild

+
+public void testExtendsRebuild()
+
+
Tests that the rebuild attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsName

+
+public void testExtendsName()
+
+
Tests that the name attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+
+ +

+testExtendsClassname

+
+public void testExtendsClassname()
+
+
Tests that the classname attribute in the base linker is effective when + creating the command line for a linker that extends it. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerEnum.html new file mode 100644 index 0000000..0705b2f --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestLinkerEnum.html @@ -0,0 +1,289 @@ + + + + + + + +TestLinkerEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestLinkerEnum

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestLinkerEnum
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestLinkerEnum
extends junit.framework.TestCase
+ + +

+Tests for LinkerEnum +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestLinkerEnum(java.lang.String name) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidtestContainsValueGpp() + +
+          Test checks that enumeration contains value g++ + + See patch [ 676276 ] Enhanced support for Mac OS X
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestLinkerEnum

+
+public TestLinkerEnum(java.lang.String name)
+
+
+
Parameters:
name - test case name
+
+ + + + + + + + +
+Method Detail
+ +

+testContainsValueGpp

+
+public void testContainsValueGpp()
+
+
Test checks that enumeration contains value g++ + + See patch [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.html new file mode 100644 index 0000000..606b8f2 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestOutputTypeEnum.html @@ -0,0 +1,287 @@ + + + + + + + +TestOutputTypeEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestOutputTypeEnum

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestOutputTypeEnum
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestOutputTypeEnum
extends junit.framework.TestCase
+ + +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestOutputTypeEnum(java.lang.String name) + +
+          Default constructor
+  + + + + + + + + + + + +
+Method Summary
+ voidtestContainsValuePlugin() + +
+          Test checks that output type enum contains "plugin" + + See patch [ 676276 ] Enhanced support for Mac OS X
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestOutputTypeEnum

+
+public TestOutputTypeEnum(java.lang.String name)
+
+
Default constructor +

+

+
See Also:
TestCase.TestCase(String)
+
+ + + + + + + + +
+Method Detail
+ +

+testContainsValuePlugin

+
+public void testContainsValuePlugin()
+
+
Test checks that output type enum contains "plugin" + + See patch [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html new file mode 100644 index 0000000..35344d9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestProcessorDef.html @@ -0,0 +1,628 @@ + + + + + + + +TestProcessorDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestProcessorDef

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestProcessorDef
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestCompilerDef, TestLinkerDef
+
+
+
+
public abstract class TestProcessorDef
extends junit.framework.TestCase
+ + +

+Tests for ProcessorDef. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestProcessorDef(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  net.sf.antcontrib.cpptasks.ProcessorDefcreate() + +
+          Creates a new processor definition.
+protected  net.sf.antcontrib.cpptasks.ProcessorDefcreateExtendedProcessorDef(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor) + +
+          Creates a processor initialized to be an extension of the base processor.
+protected  net.sf.antcontrib.cpptasks.compiler.ProcessorConfigurationgetConfiguration(net.sf.antcontrib.cpptasks.ProcessorDef extendedProcessor) + +
+          Gets the processor configuration.
+protected abstract  java.lang.String[]getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor) + +
+          Gets command line arguments that precede filenames.
+ voidtestExtendsDebug() + +
+          Tests that the debug attribute in the base processor is effective when + creating the command line for a processor that extends it.
+protected  voidtestExtendsFileSet(java.io.File tempFile) + +
+          Tests that a fileset in the base processor is effective when evaluating + the files included in an extending processor.
+ voidtestExtendsIf() + +
+          Tests that the if attribute in the base processor is effective when + evaluating if an extending processor is active.
+protected  voidtestExtendsRebuild(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor) + +
+          Tests that the rebuild attribute in the base processor is effective when + creating the command line for a processor that extends it.
+ voidtestExtendsUnless() + +
+          Tests that the unless attribute in the base processor is effective when + evaluating if an extending processor is active.
+ voidtestIsActive2() + +
+          Tests that isActive returns true when "if" references a set property.
+ voidtestIsActive3() + +
+          Tests that isActive returns false when "if" references an unset property.
+ voidtestIsActive4() + +
+          Tests that evaluating isActive when "if" refernces a property with the + value "false" throws an exception to warn of a suspicious value.
+ voidtestIsActive5() + +
+          Tests that isActive returns false when "unless" references a set + property.
+ voidtestIsActive6() + +
+          Tests that isActive returns true when "unless" references an unset + property.
+ voidtestIsActive7() + +
+          Tests that evaluating isActive when "unless" references a property with + the value "false" throws an exception to warn of a suspicious value.
+ voidtestIsActive8() + +
+          Tests if a processor is active when both "if" and "unless" are specified + and the associated properties are set.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestProcessorDef

+
+public TestProcessorDef(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected abstract net.sf.antcontrib.cpptasks.ProcessorDef create()
+
+
Creates a new processor definition. +

+

+ +
Returns:
created processor definition
+
+
+
+ +

+testIsActive2

+
+public final void testIsActive2()
+
+
Tests that isActive returns true when "if" references a set property. +

+

+
+
+
+
+ +

+testIsActive3

+
+public final void testIsActive3()
+
+
Tests that isActive returns false when "if" references an unset property. +

+

+
+
+
+
+ +

+testIsActive4

+
+public final void testIsActive4()
+
+
Tests that evaluating isActive when "if" refernces a property with the + value "false" throws an exception to warn of a suspicious value. +

+

+
+
+
+
+ +

+testIsActive5

+
+public final void testIsActive5()
+
+
Tests that isActive returns false when "unless" references a set + property. +

+

+
+
+
+
+ +

+testIsActive6

+
+public final void testIsActive6()
+
+
Tests that isActive returns true when "unless" references an unset + property. +

+

+
+
+
+
+ +

+testIsActive7

+
+public final void testIsActive7()
+
+
Tests that evaluating isActive when "unless" references a property with + the value "false" throws an exception to warn of a suspicious value. +

+

+
+
+
+
+ +

+testIsActive8

+
+public final void testIsActive8()
+
+
Tests if a processor is active when both "if" and "unless" are specified + and the associated properties are set. +

+

+
+
+
+
+ +

+createExtendedProcessorDef

+
+protected final net.sf.antcontrib.cpptasks.ProcessorDef createExtendedProcessorDef(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor)
+
+
Creates a processor initialized to be an extension of the base processor. +

+

+
Parameters:
baseProcessor - base processor +
Returns:
extending processor
+
+
+
+ +

+getConfiguration

+
+protected final net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration getConfiguration(net.sf.antcontrib.cpptasks.ProcessorDef extendedProcessor)
+
+
Gets the processor configuration. +

+

+
Parameters:
extendedProcessor - processor under test +
Returns:
configuration
+
+
+
+ +

+getPreArguments

+
+protected abstract java.lang.String[] getPreArguments(net.sf.antcontrib.cpptasks.ProcessorDef processor)
+
+
Gets command line arguments that precede filenames. +

+

+
Parameters:
processor - processor under test +
Returns:
array of command line parameters
+
+
+
+ +

+testExtendsFileSet

+
+protected final void testExtendsFileSet(java.io.File tempFile)
+                                 throws java.io.IOException
+
+
Tests that a fileset in the base processor is effective when evaluating + the files included in an extending processor. +

+

+
Parameters:
tempFile - temporary file +
Throws: +
java.io.IOException - if unable to delete file
+
+
+
+ +

+testExtendsIf

+
+public final void testExtendsIf()
+
+
Tests that the if attribute in the base processor is effective when + evaluating if an extending processor is active. +

+

+
+
+
+
+ +

+testExtendsUnless

+
+public final void testExtendsUnless()
+
+
Tests that the unless attribute in the base processor is effective when + evaluating if an extending processor is active. +

+

+
+
+
+
+ +

+testExtendsDebug

+
+public final void testExtendsDebug()
+
+
Tests that the debug attribute in the base processor is effective when + creating the command line for a processor that extends it. +

+

+
+
+
+
+ +

+testExtendsRebuild

+
+protected final void testExtendsRebuild(net.sf.antcontrib.cpptasks.ProcessorDef baseProcessor)
+
+
Tests that the rebuild attribute in the base processor is effective when + creating the command line for a processor that extends it. +

+

+
Parameters:
baseProcessor - processor under test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.MockProcessorConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.MockProcessorConfiguration.html new file mode 100644 index 0000000..6b93287 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.MockProcessorConfiguration.html @@ -0,0 +1,349 @@ + + + + + + + +TestTargetHistoryTable.MockProcessorConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestTargetHistoryTable.MockProcessorConfiguration

+
+java.lang.Object
+  extended by net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration
+
+
+
All Implemented Interfaces:
net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
Enclosing class:
TestTargetHistoryTable
+
+
+
+
public static class TestTargetHistoryTable.MockProcessorConfiguration
extends java.lang.Object
implements net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestTargetHistoryTable.MockProcessorConfiguration() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intbid(java.lang.String fileName) + +
+           
+ java.lang.StringgetIdentifier() + +
+           
+ java.lang.String[]getOutputFileNames(java.lang.String baseName, + net.sf.antcontrib.cpptasks.VersionInfo versionInfo) + +
+           
+ net.sf.antcontrib.cpptasks.ProcessorParam[]getParams() + +
+           
+ booleangetRebuild() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestTargetHistoryTable.MockProcessorConfiguration

+
+public TestTargetHistoryTable.MockProcessorConfiguration()
+
+
+ + + + + + + + +
+Method Detail
+ +

+bid

+
+public int bid(java.lang.String fileName)
+
+
+
Specified by:
bid in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
+
+
+
+ +

+getIdentifier

+
+public java.lang.String getIdentifier()
+
+
+
Specified by:
getIdentifier in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
+
+
+
+ +

+getOutputFileNames

+
+public java.lang.String[] getOutputFileNames(java.lang.String baseName,
+                                             net.sf.antcontrib.cpptasks.VersionInfo versionInfo)
+
+
+
Specified by:
getOutputFileNames in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
+
+
+
+ +

+getParams

+
+public net.sf.antcontrib.cpptasks.ProcessorParam[] getParams()
+
+
+
Specified by:
getParams in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
+
+
+
+ +

+getRebuild

+
+public boolean getRebuild()
+
+
+
Specified by:
getRebuild in interface net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.html new file mode 100644 index 0000000..43f04ea --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetHistoryTable.html @@ -0,0 +1,365 @@ + + + + + + + +TestTargetHistoryTable (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestTargetHistoryTable

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestXMLConsumer
+              extended by net.sf.antcontrib.cpptasks.TestTargetHistoryTable
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestTargetHistoryTable
extends TestXMLConsumer
+ + +

+Tests for TargetHistoryTable +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classTestTargetHistoryTable.MockProcessorConfiguration + +
+           
+  + + + + + + + + + + +
+Constructor Summary
TestTargetHistoryTable(java.lang.String name) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestLoadOpenshore() + +
+          Tests loading a stock history file
+ voidtestLoadXerces() + +
+          Tests loading a stock history file
+ voidtestUpdateTimeResolution() + +
+          Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.TestXMLConsumer
copyResourceToTmpDir, deleteTmpFile
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestTargetHistoryTable

+
+public TestTargetHistoryTable(java.lang.String name)
+
+
Constructor +

+

+
Parameters:
name - test case name
See Also:
TestCase.TestCase(String)
+
+ + + + + + + + +
+Method Detail
+ +

+testLoadOpenshore

+
+public void testLoadOpenshore()
+                       throws java.io.IOException
+
+
Tests loading a stock history file +

+

+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testLoadXerces

+
+public void testLoadXerces()
+                    throws java.io.IOException
+
+
Tests loading a stock history file +

+

+ +
Throws: +
java.io.IOException
+
+
+
+ +

+testUpdateTimeResolution

+
+public void testUpdateTimeResolution()
+                              throws java.io.IOException
+
+
Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix +

+

+ +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetInfo.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetInfo.html new file mode 100644 index 0000000..0875ad5 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestTargetInfo.html @@ -0,0 +1,391 @@ + + + + + + + +TestTargetInfo (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestTargetInfo

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestTargetInfo
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestTargetInfo
extends junit.framework.TestCase
+ + +

+A description of a file built or to be built +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestTargetInfo(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestConstructorNullConfig() + +
+           
+ voidtestConstructorNullOutput() + +
+           
+ voidtestConstructorNullSource() + +
+           
+ voidtestGetRebuild() + +
+           
+ voidtestGetSource() + +
+           
+ voidtestHasSameSource() + +
+           
+ voidtestMustRebuild() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestTargetInfo

+
+public TestTargetInfo(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testConstructorNullConfig

+
+public void testConstructorNullConfig()
+
+
+
+
+
+
+ +

+testConstructorNullOutput

+
+public void testConstructorNullOutput()
+
+
+
+
+
+
+ +

+testConstructorNullSource

+
+public void testConstructorNullSource()
+
+
+
+
+
+
+ +

+testGetRebuild

+
+public void testGetRebuild()
+
+
+
+
+
+
+ +

+testGetSource

+
+public void testGetSource()
+
+
+
+
+
+
+ +

+testHasSameSource

+
+public void testHasSameSource()
+
+
+
+
+
+
+ +

+testMustRebuild

+
+public void testMustRebuild()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/TestXMLConsumer.html b/site/testapidocs/net/sf/antcontrib/cpptasks/TestXMLConsumer.html new file mode 100644 index 0000000..8b9801b --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/TestXMLConsumer.html @@ -0,0 +1,319 @@ + + + + + + + +TestXMLConsumer (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks +
+Class TestXMLConsumer

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.TestXMLConsumer
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestDependencyTable, TestTargetHistoryTable
+
+
+
+
public abstract class TestXMLConsumer
extends junit.framework.TestCase
+ + +

+Base class for tests on classes that consume or public XML documents. +

+ +

+

+
Author:
+
Curt Arnold
+
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected TestXMLConsumer(java.lang.String testName) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static voidcopyResourceToTmpDir(java.lang.String resourceName, + java.lang.String tmpFile) + +
+          copies a resource to a temporary directory.
+static voiddeleteTmpFile(java.lang.String tmpName) + +
+          Deletes a file, if it exists, from the user's temporary directory.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestXMLConsumer

+
+protected TestXMLConsumer(java.lang.String testName)
+
+
+
Parameters:
testName -
+
+ + + + + + + + +
+Method Detail
+ +

+copyResourceToTmpDir

+
+public static final void copyResourceToTmpDir(java.lang.String resourceName,
+                                              java.lang.String tmpFile)
+                                       throws java.io.IOException
+
+
copies a resource to a temporary directory. +

+

+
Parameters:
resourceName - resouce name, such as "files/openshore/history.xml".
tmpFile - name for temporary file created in /tmp or similar. +
Throws: +
java.io.IOException
+
+
+
+ +

+deleteTmpFile

+
+public static void deleteTmpFile(java.lang.String tmpName)
+                          throws java.io.IOException
+
+
Deletes a file, if it exists, from the user's temporary directory. +

+

+
Parameters:
tmpName - file name, may not be null +
Throws: +
java.io.IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.html new file mode 100644 index 0000000..a713ec1 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/TestBorlandCCompiler.html @@ -0,0 +1,346 @@ + + + + + + + +TestBorlandCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.borland +
+Class TestBorlandCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler
+                  extended by net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestBorlandCCompiler
extends TestAbstractCompiler
+ + +

+Borland C++ Compiler adapter tests + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestBorlandCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+           
+protected  java.lang.StringgetObjectExtension() + +
+           
+ voidtestGetIdentfier() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler
testCanParseTlb, testGetOutputFileName1
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
testBid
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestBorlandCCompiler

+
+public TestBorlandCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
+
Overrides:
create in class TestAbstractCompiler
+
+
+
+
+
+
+ +

+getObjectExtension

+
+protected java.lang.String getObjectExtension()
+
+
+
Overrides:
getObjectExtension in class TestAbstractCompiler
+
+
+
+
+
+
+ +

+testGetIdentfier

+
+public void testGetIdentfier()
+
+
+
Overrides:
testGetIdentfier in class TestAbstractProcessor
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/class-use/TestBorlandCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/class-use/TestBorlandCCompiler.html new file mode 100644 index 0000000..10c05bb --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/class-use/TestBorlandCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.borland.TestBorlandCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html new file mode 100644 index 0000000..4acd041 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.borland + + + + +
+Classes  + +
+TestBorlandCCompiler
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html new file mode 100644 index 0000000..7679cbd --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-summary.html @@ -0,0 +1,157 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.borland +

+ + + + + + + + + +
+Class Summary
TestBorlandCCompilerBorland C++ Compiler adapter tests + + Override create to test concrete compiler implementions
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html new file mode 100644 index 0000000..d87f8ca --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-tree.html @@ -0,0 +1,159 @@ + + + + + + + +net.sf.antcontrib.cpptasks.borland Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.borland +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-use.html new file mode 100644 index 0000000..6b5034e --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/borland/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.borland (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.borland

+
+No usage of net.sf.antcontrib.cpptasks.borland +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockBuildListener.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockBuildListener.html new file mode 100644 index 0000000..bb96199 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockBuildListener.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.MockBuildListener (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.MockBuildListener

+
+No usage of net.sf.antcontrib.cpptasks.MockBuildListener +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockFileCollector.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockFileCollector.html new file mode 100644 index 0000000..1cf63e2 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/MockFileCollector.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.MockFileCollector (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.MockFileCollector

+
+No usage of net.sf.antcontrib.cpptasks.MockFileCollector +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestAllClasses.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestAllClasses.html new file mode 100644 index 0000000..5935a41 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestAllClasses.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestAllClasses (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestAllClasses

+
+No usage of net.sf.antcontrib.cpptasks.TestAllClasses +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCCTask.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCCTask.html new file mode 100644 index 0000000..a153240 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCCTask.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestCCTask (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestCCTask

+
+No usage of net.sf.antcontrib.cpptasks.TestCCTask +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCUtil.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCUtil.html new file mode 100644 index 0000000..7003101 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCUtil.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestCUtil (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestCUtil

+
+No usage of net.sf.antcontrib.cpptasks.TestCUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerDef.html new file mode 100644 index 0000000..1d4f1af --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerDef.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestCompilerDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestCompilerDef

+
+No usage of net.sf.antcontrib.cpptasks.TestCompilerDef +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerEnum.html new file mode 100644 index 0000000..b58fa65 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestCompilerEnum.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestCompilerEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestCompilerEnum

+
+No usage of net.sf.antcontrib.cpptasks.TestCompilerEnum +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestDependencyTable.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestDependencyTable.html new file mode 100644 index 0000000..77c434c --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestDependencyTable.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestDependencyTable (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestDependencyTable

+
+No usage of net.sf.antcontrib.cpptasks.TestDependencyTable +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerDef.html new file mode 100644 index 0000000..022bce9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerDef.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestLinkerDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestLinkerDef

+
+No usage of net.sf.antcontrib.cpptasks.TestLinkerDef +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerEnum.html new file mode 100644 index 0000000..bff318e --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestLinkerEnum.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestLinkerEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestLinkerEnum

+
+No usage of net.sf.antcontrib.cpptasks.TestLinkerEnum +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestOutputTypeEnum.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestOutputTypeEnum.html new file mode 100644 index 0000000..800901a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestOutputTypeEnum.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestOutputTypeEnum (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestOutputTypeEnum

+
+No usage of net.sf.antcontrib.cpptasks.TestOutputTypeEnum +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestProcessorDef.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestProcessorDef.html new file mode 100644 index 0000000..d856741 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestProcessorDef.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestProcessorDef (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestProcessorDef

+
+ + + + + + + + + +
+Packages that use TestProcessorDef
net.sf.antcontrib.cpptasksJUnit tests for the net.sf.antcontrib.cpptasks package. 
+  +

+ + + + + +
+Uses of TestProcessorDef in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Subclasses of TestProcessorDef in net.sf.antcontrib.cpptasks
+ classTestCompilerDef + +
+          Tests for CompilerDef.
+ classTestLinkerDef + +
+          Tests for LinkerDef class.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.MockProcessorConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.MockProcessorConfiguration.html new file mode 100644 index 0000000..d5e1347 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.MockProcessorConfiguration.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration

+
+No usage of net.sf.antcontrib.cpptasks.TestTargetHistoryTable.MockProcessorConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.html new file mode 100644 index 0000000..970f754 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetHistoryTable.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestTargetHistoryTable (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestTargetHistoryTable

+
+No usage of net.sf.antcontrib.cpptasks.TestTargetHistoryTable +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetInfo.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetInfo.html new file mode 100644 index 0000000..7f97506 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestTargetInfo.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestTargetInfo (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestTargetInfo

+
+No usage of net.sf.antcontrib.cpptasks.TestTargetInfo +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestXMLConsumer.html b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestXMLConsumer.html new file mode 100644 index 0000000..6ef5770 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/class-use/TestXMLConsumer.html @@ -0,0 +1,185 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.TestXMLConsumer (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.TestXMLConsumer

+
+ + + + + + + + + +
+Packages that use TestXMLConsumer
net.sf.antcontrib.cpptasksJUnit tests for the net.sf.antcontrib.cpptasks package. 
+  +

+ + + + + +
+Uses of TestXMLConsumer in net.sf.antcontrib.cpptasks
+  +

+ + + + + + + + + + + + + +
Subclasses of TestXMLConsumer in net.sf.antcontrib.cpptasks
+ classTestDependencyTable + +
+          DependencyTable tests
+ classTestTargetHistoryTable + +
+          Tests for TargetHistoryTable
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.html new file mode 100644 index 0000000..e27e9a1 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractCompiler.html @@ -0,0 +1,352 @@ + + + + + + + +TestAbstractCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestAbstractCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestBorlandCCompiler, TestMetaObjectCompiler
+
+
+
+
public class TestAbstractCompiler
extends TestAbstractProcessor
+ + +

+Test for abstract compiler class + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAbstractCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+           
+protected  java.lang.StringgetObjectExtension() + +
+           
+ voidtestCanParseTlb() + +
+           
+ voidtestGetOutputFileName1() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
testBid, testGetIdentfier
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAbstractCompiler

+
+public TestAbstractCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
+
Overrides:
create in class TestAbstractProcessor
+
+
+
+
+
+
+ +

+getObjectExtension

+
+protected java.lang.String getObjectExtension()
+
+
+
+
+
+
+ +

+testCanParseTlb

+
+public void testCanParseTlb()
+
+
+
+
+
+
+ +

+testGetOutputFileName1

+
+public void testGetOutputFileName1()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.html new file mode 100644 index 0000000..10f0e34 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractLinker.html @@ -0,0 +1,317 @@ + + + + + + + +TestAbstractLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestAbstractLinker

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestAbstractArLibrarian, TestDevStudioLinker
+
+
+
+
public class TestAbstractLinker
extends TestAbstractProcessor
+ + +

+Test for abstract compiler class + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAbstractLinker(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+           
+ voidtestBid() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
testGetIdentfier
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAbstractLinker

+
+public TestAbstractLinker(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
+
Overrides:
create in class TestAbstractProcessor
+
+
+
+
+
+
+ +

+testBid

+
+public void testBid()
+
+
+
Overrides:
testBid in class TestAbstractProcessor
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.html new file mode 100644 index 0000000..94aa009 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestAbstractProcessor.html @@ -0,0 +1,320 @@ + + + + + + + +TestAbstractProcessor (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestAbstractProcessor

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestAbstractCompiler, TestAbstractLinker
+
+
+
+
public class TestAbstractProcessor
extends junit.framework.TestCase
+ + +

+Test for abstract compiler class + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAbstractProcessor(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+           
+ voidtestBid() + +
+           
+ voidtestGetIdentfier() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAbstractProcessor

+
+public TestAbstractProcessor(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
+
+
+
+
+ +

+testBid

+
+public void testBid()
+
+
+
+
+
+
+ +

+testGetIdentfier

+
+public void testGetIdentfier()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.html new file mode 100644 index 0000000..296b6a4 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCommandLineCompilerConfiguration.html @@ -0,0 +1,343 @@ + + + + + + + +TestCommandLineCompilerConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestCommandLineCompilerConfiguration

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration
+              extended by net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestCommandLineCompilerConfiguration
extends TestCompilerConfiguration
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCommandLineCompilerConfiguration(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.CompilerConfigurationcreate() + +
+           
+ voidtestConstructorNullCompiler() + +
+           
+ voidtestGetIdentifier() + +
+           
+ voidtestToString() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration
getObjectFileExtension, testBid, testGetOutputFileName1, testGetOutputFileName2
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCommandLineCompilerConfiguration

+
+public TestCommandLineCompilerConfiguration(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration create()
+
+
+
Specified by:
create in class TestCompilerConfiguration
+
+
+
+
+
+
+ +

+testConstructorNullCompiler

+
+public void testConstructorNullCompiler()
+
+
+
+
+
+
+ +

+testGetIdentifier

+
+public void testGetIdentifier()
+
+
+
+
+
+
+ +

+testToString

+
+public void testToString()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.html new file mode 100644 index 0000000..61377c9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestCompilerConfiguration.html @@ -0,0 +1,352 @@ + + + + + + + +TestCompilerConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestCompilerConfiguration

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestCommandLineCompilerConfiguration
+
+
+
+
public abstract class TestCompilerConfiguration
extends junit.framework.TestCase
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCompilerConfiguration(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  net.sf.antcontrib.cpptasks.compiler.CompilerConfigurationcreate() + +
+           
+ java.lang.StringgetObjectFileExtension() + +
+           
+ voidtestBid() + +
+           
+ voidtestGetOutputFileName1() + +
+           
+ voidtestGetOutputFileName2() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCompilerConfiguration

+
+public TestCompilerConfiguration(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected abstract net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration create()
+
+
+
+
+
+
+ +

+getObjectFileExtension

+
+public java.lang.String getObjectFileExtension()
+
+
+
+
+
+
+ +

+testBid

+
+public void testBid()
+
+
+
+
+
+
+ +

+testGetOutputFileName1

+
+public void testGetOutputFileName1()
+
+
+
+
+
+
+ +

+testGetOutputFileName2

+
+public void testGetOutputFileName2()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestLinkType.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestLinkType.html new file mode 100644 index 0000000..52018fd --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/TestLinkType.html @@ -0,0 +1,316 @@ + + + + + + + +TestLinkType (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.compiler +
+Class TestLinkType

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestLinkType
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestLinkType
extends junit.framework.TestCase
+ + +

+Tests for LinkType +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestLinkType(java.lang.String name) + +
+          Constructor
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestIsPluginFalse() + +
+          Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X
+ voidtestIsPluginTrue() + +
+          Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestLinkType

+
+public TestLinkType(java.lang.String name)
+
+
Constructor +

+

+
Parameters:
name - test case name
+
+ + + + + + + + +
+Method Detail
+ +

+testIsPluginFalse

+
+public void testIsPluginFalse()
+
+
Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testIsPluginTrue

+
+public void testIsPluginTrue()
+
+
Tests if isPluginModule returns true when set to plugin output type + + See patch [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractCompiler.html new file mode 100644 index 0000000..f234407 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractCompiler.html @@ -0,0 +1,208 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler

+
+ + + + + + + + + + + + + +
+Packages that use TestAbstractCompiler
net.sf.antcontrib.cpptasks.borland  
net.sf.antcontrib.cpptasks.trolltechTests for Trolltech Qt uic and moc compilers. 
+  +

+ + + + + +
+Uses of TestAbstractCompiler in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of TestAbstractCompiler in net.sf.antcontrib.cpptasks.borland
+ classTestBorlandCCompiler + +
+          Borland C++ Compiler adapter tests + + Override create to test concrete compiler implementions
+  +

+ + + + + +
+Uses of TestAbstractCompiler in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Subclasses of TestAbstractCompiler in net.sf.antcontrib.cpptasks.trolltech
+ classTestMetaObjectCompiler + +
+          Tests for Trolltech Meta Object Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractLinker.html new file mode 100644 index 0000000..bd80a2c --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractLinker.html @@ -0,0 +1,218 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker

+
+ + + + + + + + + + + + + +
+Packages that use TestAbstractLinker
net.sf.antcontrib.cpptasks.devstudio  
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of TestAbstractLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Subclasses of TestAbstractLinker in net.sf.antcontrib.cpptasks.devstudio
+ classTestDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+ classTestInstalledDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+  +

+ + + + + +
+Uses of TestAbstractLinker in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Subclasses of TestAbstractLinker in net.sf.antcontrib.cpptasks.gcc
+ classTestAbstractArLibrarian + +
+          Tests for classes that derive from AbstractArLibrarian
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractProcessor.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractProcessor.html new file mode 100644 index 0000000..efe47d0 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestAbstractProcessor.html @@ -0,0 +1,319 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use TestAbstractProcessor
net.sf.antcontrib.cpptasks.borland  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudio  
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.trolltechTests for Trolltech Qt uic and moc compilers. 
+  +

+ + + + + +
+Uses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.borland
+  +

+ + + + + + + + + +
Subclasses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.borland
+ classTestBorlandCCompiler + +
+          Borland C++ Compiler adapter tests + + Override create to test concrete compiler implementions
+  +

+ + + + + +
+Uses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + + + + + +
Subclasses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.compiler
+ classTestAbstractCompiler + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+ classTestAbstractLinker + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+  +

+ + + + + +
+Uses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + + + + + +
Subclasses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.devstudio
+ classTestDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+ classTestInstalledDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+  +

+ + + + + +
+Uses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Subclasses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.gcc
+ classTestAbstractArLibrarian + +
+          Tests for classes that derive from AbstractArLibrarian
+  +

+ + + + + +
+Uses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.trolltech
+  +

+ + + + + + + + + +
Subclasses of TestAbstractProcessor in net.sf.antcontrib.cpptasks.trolltech
+ classTestMetaObjectCompiler + +
+          Tests for Trolltech Meta Object Compiler.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCommandLineCompilerConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCommandLineCompilerConfiguration.html new file mode 100644 index 0000000..19eb567 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCommandLineCompilerConfiguration.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration

+
+No usage of net.sf.antcontrib.cpptasks.compiler.TestCommandLineCompilerConfiguration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCompilerConfiguration.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCompilerConfiguration.html new file mode 100644 index 0000000..1e8f3c9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestCompilerConfiguration.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestCompilerConfiguration

+
+ + + + + + + + + +
+Packages that use TestCompilerConfiguration
net.sf.antcontrib.cpptasks.compiler  
+  +

+ + + + + +
+Uses of TestCompilerConfiguration in net.sf.antcontrib.cpptasks.compiler
+  +

+ + + + + + + + + +
Subclasses of TestCompilerConfiguration in net.sf.antcontrib.cpptasks.compiler
+ classTestCommandLineCompilerConfiguration + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestLinkType.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestLinkType.html new file mode 100644 index 0000000..de5affc --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/class-use/TestLinkType.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.compiler.TestLinkType (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.compiler.TestLinkType

+
+No usage of net.sf.antcontrib.cpptasks.compiler.TestLinkType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html new file mode 100644 index 0000000..67fa2af --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-frame.html @@ -0,0 +1,43 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.compiler + + + + +
+Classes  + +
+TestAbstractCompiler +
+TestAbstractLinker +
+TestAbstractProcessor +
+TestCommandLineCompilerConfiguration +
+TestCompilerConfiguration +
+TestLinkType
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html new file mode 100644 index 0000000..7153904 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-summary.html @@ -0,0 +1,181 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.compiler +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
TestAbstractCompilerTest for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractLinkerTest for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessorTest for abstract compiler class + + Override create to test concrete compiler implementions
TestCommandLineCompilerConfiguration 
TestCompilerConfiguration 
TestLinkTypeTests for LinkType
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html new file mode 100644 index 0000000..7ac750e --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-tree.html @@ -0,0 +1,159 @@ + + + + + + + +net.sf.antcontrib.cpptasks.compiler Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.compiler +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html new file mode 100644 index 0000000..ecf4e2d --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/compiler/package-use.html @@ -0,0 +1,291 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.compiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.compiler

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.compiler
net.sf.antcontrib.cpptasks.borland  
net.sf.antcontrib.cpptasks.compiler  
net.sf.antcontrib.cpptasks.devstudio  
net.sf.antcontrib.cpptasks.gcc  
net.sf.antcontrib.cpptasks.trolltechTests for Trolltech Qt uic and moc compilers. 
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.borland
TestAbstractCompiler + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessor + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.compiler
TestAbstractProcessor + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
TestCompilerConfiguration + +
+           
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.devstudio
TestAbstractLinker + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessor + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.gcc
TestAbstractLinker + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessor + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.compiler used by net.sf.antcontrib.cpptasks.trolltech
TestAbstractCompiler + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
TestAbstractProcessor + +
+          Test for abstract compiler class + + Override create to test concrete compiler implementions
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.html new file mode 100644 index 0000000..cd1c383 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudio2005CCompiler.html @@ -0,0 +1,277 @@ + + + + + + + +TestDevStudio2005CCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class TestDevStudio2005CCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestDevStudio2005CCompiler
extends junit.framework.TestCase
+ + +

+Test Microsoft C/C++ compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestDevStudio2005CCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidtestDebug() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestDevStudio2005CCompiler

+
+public TestDevStudio2005CCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testDebug

+
+public void testDebug()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.html new file mode 100644 index 0000000..2058c5f --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioCCompiler.html @@ -0,0 +1,277 @@ + + + + + + + +TestDevStudioCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class TestDevStudioCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestDevStudioCCompiler
extends junit.framework.TestCase
+ + +

+Test Microsoft C/C++ compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestDevStudioCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidtestDebug() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestDevStudioCCompiler

+
+public TestDevStudioCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testDebug

+
+public void testDebug()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.html new file mode 100644 index 0000000..a82c485 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestDevStudioLinker.html @@ -0,0 +1,318 @@ + + + + + + + +TestDevStudioLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class TestDevStudioLinker

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
+                  extended by net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestInstalledDevStudioLinker
+
+
+
+
public class TestDevStudioLinker
extends TestAbstractLinker
+ + +

+Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestDevStudioLinker(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+           
+ voidtestGetIdentfier() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
testBid
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestDevStudioLinker

+
+public TestDevStudioLinker(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
+
Overrides:
create in class TestAbstractLinker
+
+
+
+
+
+
+ +

+testGetIdentfier

+
+public void testGetIdentfier()
+
+
+
Overrides:
testGetIdentfier in class TestAbstractProcessor
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.html new file mode 100644 index 0000000..1b837c1 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/TestInstalledDevStudioLinker.html @@ -0,0 +1,300 @@ + + + + + + + +TestInstalledDevStudioLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.devstudio +
+Class TestInstalledDevStudioLinker

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
+                  extended by net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker
+                      extended by net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestInstalledDevStudioLinker
extends TestDevStudioLinker
+ + +

+Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestInstalledDevStudioLinker(java.lang.String name) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidtestGetLibraryPath() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker
create, testGetIdentfier
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
testBid
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestInstalledDevStudioLinker

+
+public TestInstalledDevStudioLinker(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testGetLibraryPath

+
+public void testGetLibraryPath()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudio2005CCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudio2005CCompiler.html new file mode 100644 index 0000000..bc96050 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudio2005CCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.TestDevStudio2005CCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioCCompiler.html new file mode 100644 index 0000000..1bc3ab6 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.TestDevStudioCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioLinker.html new file mode 100644 index 0000000..ba7cfaa --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestDevStudioLinker.html @@ -0,0 +1,179 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.TestDevStudioLinker

+
+ + + + + + + + + +
+Packages that use TestDevStudioLinker
net.sf.antcontrib.cpptasks.devstudio  
+  +

+ + + + + +
+Uses of TestDevStudioLinker in net.sf.antcontrib.cpptasks.devstudio
+  +

+ + + + + + + + + +
Subclasses of TestDevStudioLinker in net.sf.antcontrib.cpptasks.devstudio
+ classTestInstalledDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestInstalledDevStudioLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestInstalledDevStudioLinker.html new file mode 100644 index 0000000..5f5af1f --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/class-use/TestInstalledDevStudioLinker.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker

+
+No usage of net.sf.antcontrib.cpptasks.devstudio.TestInstalledDevStudioLinker +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html new file mode 100644 index 0000000..0fae7dd --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.devstudio + + + + +
+Classes  + +
+TestDevStudio2005CCompiler +
+TestDevStudioCCompiler +
+TestDevStudioLinker +
+TestInstalledDevStudioLinker
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html new file mode 100644 index 0000000..ab821fc --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-summary.html @@ -0,0 +1,171 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.devstudio +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
TestDevStudio2005CCompilerTest Microsoft C/C++ compiler adapter
TestDevStudioCCompilerTest Microsoft C/C++ compiler adapter
TestDevStudioLinkerTest for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
TestInstalledDevStudioLinkerTest for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html new file mode 100644 index 0000000..3723353 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +net.sf.antcontrib.cpptasks.devstudio Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.devstudio +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html new file mode 100644 index 0000000..3dfa1c9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/devstudio/package-use.html @@ -0,0 +1,169 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.devstudio (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.devstudio

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.devstudio
net.sf.antcontrib.cpptasks.devstudio  
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.devstudio used by net.sf.antcontrib.cpptasks.devstudio
TestDevStudioLinker + +
+          Test for Microsoft Developer Studio linker + + Override create to test concrete compiler implementions
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.html new file mode 100644 index 0000000..007f9ee --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractArLibrarian.html @@ -0,0 +1,388 @@ + + + + + + + +TestAbstractArLibrarian (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class TestAbstractArLibrarian

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractLinker
+                  extended by net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestAbstractArLibrarian
extends TestAbstractLinker
+ + +

+Tests for classes that derive from AbstractArLibrarian +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAbstractArLibrarian(java.lang.String name) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+          Creates item under test @returns item under test
+ voidtestBid() + +
+          Override of
+ voidtestGetIdentfier() + +
+           
+ voidtestGetLibraryPatterns() + +
+          Tests for library patterns + + See patch [ 676276 ] Enhanced support for Mac OS X
+ voidtestOutputFileName() + +
+          Tests output file for ar library + + See bug [ 687732 ] Filenames for gcc static library does start with lib
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAbstractArLibrarian

+
+public TestAbstractArLibrarian(java.lang.String name)
+
+
Constructor +

+

+
Parameters:
name - test name
See Also:
TestCase.TestCase(String)
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
Creates item under test @returns item under test +

+

+
Overrides:
create in class TestAbstractLinker
+
+
+
See Also:
TestAbstractProcessor.create()
+
+
+
+ +

+testBid

+
+public void testBid()
+
+
Override of +

+

+
Overrides:
testBid in class TestAbstractLinker
+
+
+
See Also:
TestAbstractProcessor.testBid()
+
+
+
+ +

+testGetIdentfier

+
+public void testGetIdentfier()
+
+
+
Overrides:
testGetIdentfier in class TestAbstractProcessor
+
+
+
+
+
+
+ +

+testGetLibraryPatterns

+
+public void testGetLibraryPatterns()
+
+
Tests for library patterns + + See patch [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testOutputFileName

+
+public void testOutputFileName()
+
+
Tests output file for ar library + + See bug [ 687732 ] Filenames for gcc static library does start with lib +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.html new file mode 100644 index 0000000..9d5ae22 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestAbstractLdLinker.html @@ -0,0 +1,518 @@ + + + + + + + +TestAbstractLdLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class TestAbstractLdLinker

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestAbstractLdLinker
extends junit.framework.TestCase
+ + +

+Test ld linker adapter abstract base class + + Override create to test concrete compiler implementions +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestAbstractLdLinker(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.gcc.AbstractLdLinkergetLinker() + +
+           
+protected  voidtearDown() + +
+           
+ voidtestAddImpliedArgsDarwinPlugin() + +
+          Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X
+ voidtestAddImpliedArgsDarwinShared() + +
+          Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X
+ voidtestAddImpliedArgsNonDarwinPlugin() + +
+          Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X
+ voidtestAddImpliedArgsNonDarwinShared() + +
+          Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X
+ voidtestAddLibrarySetDirSwitch() + +
+           
+ voidtestAddLibrarySetLibFrameworkDarwin() + +
+           
+ voidtestAddLibrarySetLibFrameworkNonDarwin() + +
+           
+ voidtestAddLibrarySetLibSwitch() + +
+           
+ voidtestAddLibraryStatic() + +
+           
+ voidtestLibReturnValue() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestAbstractLdLinker

+
+public TestAbstractLdLinker(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getLinker

+
+protected net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker getLinker()
+
+
+
+
+
+
+ +

+tearDown

+
+protected void tearDown()
+                 throws java.lang.Exception
+
+
+
Overrides:
tearDown in class junit.framework.TestCase
+
+
+ +
Throws: +
java.lang.Exception
+
+
+
+ +

+testAddImpliedArgsDarwinPlugin

+
+public void testAddImpliedArgsDarwinPlugin()
+
+
Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testAddImpliedArgsDarwinShared

+
+public void testAddImpliedArgsDarwinShared()
+
+
Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testAddImpliedArgsNonDarwinPlugin

+
+public void testAddImpliedArgsNonDarwinPlugin()
+
+
Checks for proper arguments for plugin generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testAddImpliedArgsNonDarwinShared

+
+public void testAddImpliedArgsNonDarwinShared()
+
+
Checks for proper arguments for shared generation on Darwin + + See [ 676276 ] Enhanced support for Mac OS X +

+

+
+
+
+
+ +

+testAddLibrarySetDirSwitch

+
+public void testAddLibrarySetDirSwitch()
+
+
+
+
+
+
+ +

+testAddLibrarySetLibSwitch

+
+public void testAddLibrarySetLibSwitch()
+
+
+
+
+
+
+ +

+testAddLibrarySetLibFrameworkNonDarwin

+
+public void testAddLibrarySetLibFrameworkNonDarwin()
+
+
+
+
+
+
+ +

+testAddLibrarySetLibFrameworkDarwin

+
+public void testAddLibrarySetLibFrameworkDarwin()
+
+
+
+
+
+
+ +

+testAddLibraryStatic

+
+public void testAddLibraryStatic()
+
+
+
+
+
+
+ +

+testLibReturnValue

+
+public void testLibReturnValue()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.html new file mode 100644 index 0000000..c2f8b8f --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCCompiler.html @@ -0,0 +1,469 @@ + + + + + + + +TestGccCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class TestGccCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler
+              extended by net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestGccCCompiler
extends TestGccCompatibleCCompiler
+ + +

+Test gcc compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestGccCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompilercreate() + +
+          Compiler creation method + + Must be overriden by extending classes
+ voidtestBidObjectiveAssembly() + +
+           
+ voidtestBidObjectiveC() + +
+           
+ voidtestBidObjectiveCpp() + +
+           
+ voidtestBidPreprocessedCpp() + +
+           
+ voidtestCreateCParser1() + +
+           
+ voidtestCreateCParser2() + +
+           
+ voidtestCreateCParser3() + +
+           
+ voidtestCreateFortranParser1() + +
+           
+ voidtestCreateFortranParser2() + +
+           
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler
testWarningLevel0, testWarningLevel1, testWarningLevel2, testWarningLevel3, testWarningLevel4, testWarningLevel5
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestGccCCompiler

+
+public TestGccCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler create()
+
+
Description copied from class: TestGccCompatibleCCompiler
+
Compiler creation method + + Must be overriden by extending classes +

+

+
Specified by:
create in class TestGccCompatibleCCompiler
+
+
+ +
Returns:
GccCompatibleCCompiler
+
+
+
+ +

+testBidObjectiveAssembly

+
+public void testBidObjectiveAssembly()
+
+
+
+
+
+
+ +

+testBidObjectiveC

+
+public void testBidObjectiveC()
+
+
+
+
+
+
+ +

+testBidObjectiveCpp

+
+public void testBidObjectiveCpp()
+
+
+
+
+
+
+ +

+testBidPreprocessedCpp

+
+public void testBidPreprocessedCpp()
+
+
+
+
+
+
+ +

+testCreateCParser1

+
+public void testCreateCParser1()
+
+
+
+
+
+
+ +

+testCreateCParser2

+
+public void testCreateCParser2()
+
+
+
+
+
+
+ +

+testCreateCParser3

+
+public void testCreateCParser3()
+
+
+
+
+
+
+ +

+testCreateFortranParser1

+
+public void testCreateFortranParser1()
+
+
+
+
+
+
+ +

+testCreateFortranParser2

+
+public void testCreateFortranParser2()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.html new file mode 100644 index 0000000..cde3ef4 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccCompatibleCCompiler.html @@ -0,0 +1,421 @@ + + + + + + + +TestGccCompatibleCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class TestGccCompatibleCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
Direct Known Subclasses:
TestGccCCompiler
+
+
+
+
public abstract class TestGccCompatibleCCompiler
extends junit.framework.TestCase
+ + +

+Tests for gcc compatible compilers +

+ +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestGccCompatibleCCompiler(java.lang.String name) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompilercreate() + +
+          Compiler creation method + + Must be overriden by extending classes
+ voidtestWarningLevel0() + +
+          Tests command lines switches for warning = 0
+ voidtestWarningLevel1() + +
+          Tests command lines switches for warning = 1
+ voidtestWarningLevel2() + +
+          Tests command lines switches for warning = 2
+ voidtestWarningLevel3() + +
+          Tests command lines switches for warning = 3
+ voidtestWarningLevel4() + +
+          Tests command lines switches for warning = 4
+ voidtestWarningLevel5() + +
+          Tests command lines switches for warning = 5
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestGccCompatibleCCompiler

+
+public TestGccCompatibleCCompiler(java.lang.String name)
+
+
Constructor +

+

+
Parameters:
name - test case name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected abstract net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler create()
+
+
Compiler creation method + + Must be overriden by extending classes +

+

+ +
Returns:
GccCompatibleCCompiler
+
+
+
+ +

+testWarningLevel0

+
+public void testWarningLevel0()
+
+
Tests command lines switches for warning = 0 +

+

+
+
+
+
+ +

+testWarningLevel1

+
+public void testWarningLevel1()
+
+
Tests command lines switches for warning = 1 +

+

+
+
+
+
+ +

+testWarningLevel2

+
+public void testWarningLevel2()
+
+
Tests command lines switches for warning = 2 +

+

+
+
+
+
+ +

+testWarningLevel3

+
+public void testWarningLevel3()
+
+
Tests command lines switches for warning = 3 +

+

+
+
+
+
+ +

+testWarningLevel4

+
+public void testWarningLevel4()
+
+
Tests command lines switches for warning = 4 +

+

+
+
+
+
+ +

+testWarningLevel5

+
+public void testWarningLevel5()
+
+
Tests command lines switches for warning = 5 +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.html new file mode 100644 index 0000000..14eea0a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/TestGccLinker.html @@ -0,0 +1,363 @@ + + + + + + + +TestGccLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.gcc +
+Class TestGccLinker

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.gcc.TestGccLinker
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestGccLinker
extends junit.framework.TestCase
+ + +

+

+
Author:
+
CurtA
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
TestGccLinker(java.lang.String name) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidtearDown() + +
+           
+ voidtestGetLinkerDarwinPlugin() + +
+           
+ voidtestGetLinkerDarwinShared() + +
+           
+ voidtestGetLinkerNonDarwinPlugin() + +
+           
+ voidtestGetLinkerNonDarwinShared() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestGccLinker

+
+public TestGccLinker(java.lang.String name)
+
+
Constructor +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+tearDown

+
+protected void tearDown()
+                 throws java.lang.Exception
+
+
+
Overrides:
tearDown in class junit.framework.TestCase
+
+
+ +
Throws: +
java.lang.Exception
+
+
+
+ +

+testGetLinkerDarwinPlugin

+
+public void testGetLinkerDarwinPlugin()
+
+
+
+
+
+
+ +

+testGetLinkerDarwinShared

+
+public void testGetLinkerDarwinShared()
+
+
+
+
+
+
+ +

+testGetLinkerNonDarwinPlugin

+
+public void testGetLinkerNonDarwinPlugin()
+
+
+
+
+
+
+ +

+testGetLinkerNonDarwinShared

+
+public void testGetLinkerNonDarwinShared()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractArLibrarian.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractArLibrarian.html new file mode 100644 index 0000000..d4f3ee6 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractArLibrarian.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian

+
+No usage of net.sf.antcontrib.cpptasks.gcc.TestAbstractArLibrarian +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractLdLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractLdLinker.html new file mode 100644 index 0000000..fb38888 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestAbstractLdLinker.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker

+
+No usage of net.sf.antcontrib.cpptasks.gcc.TestAbstractLdLinker +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCCompiler.html new file mode 100644 index 0000000..dcf3fc5 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.gcc.TestGccCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCompatibleCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCompatibleCCompiler.html new file mode 100644 index 0000000..1c716fb --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccCompatibleCCompiler.html @@ -0,0 +1,177 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.TestGccCompatibleCCompiler

+
+ + + + + + + + + +
+Packages that use TestGccCompatibleCCompiler
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + +
+Uses of TestGccCompatibleCCompiler in net.sf.antcontrib.cpptasks.gcc
+  +

+ + + + + + + + + +
Subclasses of TestGccCompatibleCCompiler in net.sf.antcontrib.cpptasks.gcc
+ classTestGccCCompiler + +
+          Test gcc compiler adapter
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccLinker.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccLinker.html new file mode 100644 index 0000000..0e7147d --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/class-use/TestGccLinker.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.gcc.TestGccLinker (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.gcc.TestGccLinker

+
+No usage of net.sf.antcontrib.cpptasks.gcc.TestGccLinker +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html new file mode 100644 index 0000000..04738ea --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-frame.html @@ -0,0 +1,41 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.gcc + + + + +
+Classes  + +
+TestAbstractArLibrarian +
+TestAbstractLdLinker +
+TestGccCCompiler +
+TestGccCompatibleCCompiler +
+TestGccLinker
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html new file mode 100644 index 0000000..47090cb --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-summary.html @@ -0,0 +1,173 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.gcc +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
TestAbstractArLibrarianTests for classes that derive from AbstractArLibrarian
TestAbstractLdLinkerTest ld linker adapter abstract base class + + Override create to test concrete compiler implementions
TestGccCCompilerTest gcc compiler adapter
TestGccCompatibleCCompilerTests for gcc compatible compilers
TestGccLinker 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html new file mode 100644 index 0000000..4be6483 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +net.sf.antcontrib.cpptasks.gcc Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.gcc +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html new file mode 100644 index 0000000..bdd49dd --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/gcc/package-use.html @@ -0,0 +1,167 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.gcc (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.gcc

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks.gcc
net.sf.antcontrib.cpptasks.gcc  
+  +

+ + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks.gcc used by net.sf.antcontrib.cpptasks.gcc
TestGccCompatibleCCompiler + +
+          Tests for gcc compatible compilers
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.html new file mode 100644 index 0000000..6001789 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/TestaCCCompiler.html @@ -0,0 +1,486 @@ + + + + + + + +TestaCCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.hp +
+Class TestaCCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.hp.TestaCCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestaCCCompiler
extends junit.framework.TestCase
+ + +

+Test HP aCC compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestaCCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestBidAssembly() + +
+           
+ voidtestBidC() + +
+           
+ voidtestBidCpp() + +
+           
+ voidtestBidCpp2() + +
+           
+ voidtestBidCpp3() + +
+           
+ voidtestBidCpp4() + +
+           
+ voidtestBidCpp5() + +
+           
+ voidtestBidCpp6() + +
+           
+ voidtestBidCpp7() + +
+           
+ voidtestBidCpp8() + +
+           
+ voidtestBidCpp9() + +
+           
+ voidtestBidPreprocessed() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestaCCCompiler

+
+public TestaCCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testBidC

+
+public void testBidC()
+
+
+
+
+
+
+ +

+testBidCpp

+
+public void testBidCpp()
+
+
+
+
+
+
+ +

+testBidCpp2

+
+public void testBidCpp2()
+
+
+
+
+
+
+ +

+testBidCpp3

+
+public void testBidCpp3()
+
+
+
+
+
+
+ +

+testBidCpp4

+
+public void testBidCpp4()
+
+
+
+
+
+
+ +

+testBidCpp5

+
+public void testBidCpp5()
+
+
+
+
+
+
+ +

+testBidCpp6

+
+public void testBidCpp6()
+
+
+
+
+
+
+ +

+testBidCpp7

+
+public void testBidCpp7()
+
+
+
+
+
+
+ +

+testBidCpp8

+
+public void testBidCpp8()
+
+
+
+
+
+
+ +

+testBidCpp9

+
+public void testBidCpp9()
+
+
+
+
+
+
+ +

+testBidPreprocessed

+
+public void testBidPreprocessed()
+
+
+
+
+
+
+ +

+testBidAssembly

+
+public void testBidAssembly()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/class-use/TestaCCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/class-use/TestaCCCompiler.html new file mode 100644 index 0000000..bceb9d2 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/class-use/TestaCCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.hp.TestaCCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.hp.TestaCCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.hp.TestaCCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html new file mode 100644 index 0000000..41f80cf --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.hp + + + + +
+Classes  + +
+TestaCCCompiler
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html new file mode 100644 index 0000000..ce41dc2 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-summary.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.hp +

+ + + + + + + + + +
+Class Summary
TestaCCCompilerTest HP aCC compiler adapter
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html new file mode 100644 index 0000000..d14637b --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.hp Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.hp +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • junit.framework.Assert
        +
      • junit.framework.TestCase (implements junit.framework.Test) + +
      +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-use.html new file mode 100644 index 0000000..4464533 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/hp/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.hp (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.hp

+
+No usage of net.sf.antcontrib.cpptasks.hp +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.html new file mode 100644 index 0000000..a82c966 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/TestVisualAgeCCompiler.html @@ -0,0 +1,391 @@ + + + + + + + +TestVisualAgeCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.ibm +
+Class TestVisualAgeCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestVisualAgeCCompiler
extends junit.framework.TestCase
+ + +

+Test IBM Visual Age compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestVisualAgeCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestBidAssembly() + +
+           
+ voidtestBidC() + +
+           
+ voidtestBidCpp() + +
+           
+ voidtestBidCpp2() + +
+           
+ voidtestBidCpp3() + +
+           
+ voidtestBidCpp4() + +
+           
+ voidtestBidPreprocessed() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestVisualAgeCCompiler

+
+public TestVisualAgeCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testBidC

+
+public void testBidC()
+
+
+
+
+
+
+ +

+testBidCpp

+
+public void testBidCpp()
+
+
+
+
+
+
+ +

+testBidCpp2

+
+public void testBidCpp2()
+
+
+
+
+
+
+ +

+testBidCpp3

+
+public void testBidCpp3()
+
+
+
+
+
+
+ +

+testBidCpp4

+
+public void testBidCpp4()
+
+
+
+
+
+
+ +

+testBidPreprocessed

+
+public void testBidPreprocessed()
+
+
+
+
+
+
+ +

+testBidAssembly

+
+public void testBidAssembly()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/class-use/TestVisualAgeCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/class-use/TestVisualAgeCCompiler.html new file mode 100644 index 0000000..b595fb6 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/class-use/TestVisualAgeCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.ibm.TestVisualAgeCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html new file mode 100644 index 0000000..291035a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.ibm + + + + +
+Classes  + +
+TestVisualAgeCCompiler
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html new file mode 100644 index 0000000..0f53801 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-summary.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.ibm +

+ + + + + + + + + +
+Class Summary
TestVisualAgeCCompilerTest IBM Visual Age compiler adapter
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html new file mode 100644 index 0000000..38ec6f3 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.ibm Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.ibm +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • junit.framework.Assert
        +
      • junit.framework.TestCase (implements junit.framework.Test) + +
      +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html new file mode 100644 index 0000000..5892ab1 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/ibm/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.ibm (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.ibm

+
+No usage of net.sf.antcontrib.cpptasks.ibm +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/package-frame.html new file mode 100644 index 0000000..3f4398b --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/package-frame.html @@ -0,0 +1,63 @@ + + + + + + + +net.sf.antcontrib.cpptasks (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks + + + + +
+Classes  + +
+MockBuildListener +
+MockFileCollector +
+TestAllClasses +
+TestCCTask +
+TestCompilerDef +
+TestCompilerEnum +
+TestCUtil +
+TestDependencyTable +
+TestLinkerDef +
+TestLinkerEnum +
+TestOutputTypeEnum +
+TestProcessorDef +
+TestTargetHistoryTable +
+TestTargetHistoryTable.MockProcessorConfiguration +
+TestTargetInfo +
+TestXMLConsumer
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/package-summary.html new file mode 100644 index 0000000..dd98872 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/package-summary.html @@ -0,0 +1,233 @@ + + + + + + + +net.sf.antcontrib.cpptasks (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks +

+JUnit tests for the net.sf.antcontrib.cpptasks package. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
MockBuildListenerCaptures build events
MockFileCollectorImplementation of FileVisitor that collects visited files for later + retrieval.
TestAllClassesTest for abstract compiler class + + Override create to test concrete compiler implementions
TestCCTaskTests for CCTask.
TestCompilerDefTests for CompilerDef.
TestCompilerEnumTests for CompilerEnum.
TestCUtilTests for CUtil class
TestDependencyTableDependencyTable tests
TestLinkerDefTests for LinkerDef class.
TestLinkerEnumTests for LinkerEnum
TestOutputTypeEnum 
TestProcessorDefTests for ProcessorDef.
TestTargetHistoryTableTests for TargetHistoryTable
TestTargetHistoryTable.MockProcessorConfiguration 
TestTargetInfoA description of a file built or to be built
TestXMLConsumerBase class for tests on classes that consume or public XML documents.
+  + +

+

+Package net.sf.antcontrib.cpptasks Description +

+ +

+JUnit tests for the net.sf.antcontrib.cpptasks package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/package-tree.html new file mode 100644 index 0000000..d236901 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +net.sf.antcontrib.cpptasks Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/package-use.html new file mode 100644 index 0000000..8c4f1d6 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/package-use.html @@ -0,0 +1,173 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks

+
+ + + + + + + + + +
+Packages that use net.sf.antcontrib.cpptasks
net.sf.antcontrib.cpptasksJUnit tests for the net.sf.antcontrib.cpptasks package. 
+  +

+ + + + + + + + + + + +
+Classes in net.sf.antcontrib.cpptasks used by net.sf.antcontrib.cpptasks
TestProcessorDef + +
+          Tests for ProcessorDef.
TestXMLConsumer + +
+          Base class for tests on classes that consume or public XML documents.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestCParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestCParser.html new file mode 100644 index 0000000..1106c4c --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestCParser.html @@ -0,0 +1,550 @@ + + + + + + + +TestCParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class TestCParser

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.parser.TestCParser
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestCParser
extends junit.framework.TestCase
+ + +

+Tests for the CParser class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestCParser(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestImmediateImportBracket() + +
+          Checks parsing of #include .
+ voidtestImmediateImportQuote() + +
+          Checks parsing of #import "foo.h".
+ voidtestImmediateIncludeBracket() + +
+          Checks parsing of #include .
+ voidtestImmediateIncludeQuote() + +
+          Checks parsing of #include "foo.h".
+ voidtestIncompleteImmediateImportBracket() + +
+          Checks parsing of #import +
+ voidtestIncompleteImmediateImportQuote() + +
+          Checks parsing of #import "foo.h.
+ voidtestIncompleteImmediateIncludeBracket() + +
+          Checks parsing of #include +
+ voidtestIncompleteImmediateIncludeQuote() + +
+          Checks parsing of #include "foo.h.
+ voidtestLeadingSpace() + +
+          Checks parsing when line contains leading whitespace.
+ voidtestLeadingTab() + +
+          Checks parsing when line contains a leading tab.
+ voidtestNoQuoteOrBracket() + +
+          Checks parsing of #include foo.h.
+ voidtestNotFirstWhitespace() + +
+          Checks parsing of //#include "foo.h".
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestCParser

+
+public TestCParser(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - String test name
+
+ + + + + + + + +
+Method Detail
+ +

+testImmediateImportBracket

+
+public void testImmediateImportBracket()
+                                throws java.io.IOException
+
+
Checks parsing of #include . +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testImmediateImportQuote

+
+public void testImmediateImportQuote()
+                              throws java.io.IOException
+
+
Checks parsing of #import "foo.h". +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testImmediateIncludeBracket

+
+public void testImmediateIncludeBracket()
+                                 throws java.io.IOException
+
+
Checks parsing of #include . +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testImmediateIncludeQuote

+
+public void testImmediateIncludeQuote()
+                               throws java.io.IOException
+
+
Checks parsing of #include "foo.h". +

+

+ +
Throws: +
java.io.IOException - test fails on IOException.
+
+
+
+ +

+testIncompleteImmediateImportBracket

+
+public void testIncompleteImmediateImportBracket()
+                                          throws java.io.IOException
+
+
Checks parsing of #import +
+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testIncompleteImmediateImportQuote

+
+public void testIncompleteImmediateImportQuote()
+                                        throws java.io.IOException
+
+
Checks parsing of #import "foo.h. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testIncompleteImmediateIncludeBracket

+
+public void testIncompleteImmediateIncludeBracket()
+                                           throws java.io.IOException
+
+
Checks parsing of #include +
+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testIncompleteImmediateIncludeQuote

+
+public void testIncompleteImmediateIncludeQuote()
+                                         throws java.io.IOException
+
+
Checks parsing of #include "foo.h. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testNoQuoteOrBracket

+
+public void testNoQuoteOrBracket()
+                          throws java.io.IOException
+
+
Checks parsing of #include foo.h. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testNotFirstWhitespace

+
+public void testNotFirstWhitespace()
+                            throws java.io.IOException
+
+
Checks parsing of //#include "foo.h". +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testLeadingSpace

+
+public void testLeadingSpace()
+                      throws java.io.IOException
+
+
Checks parsing when line contains leading whitespace. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException.
+
+
+
+ +

+testLeadingTab

+
+public void testLeadingTab()
+                    throws java.io.IOException
+
+
Checks parsing when line contains a leading tab. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestFortranParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestFortranParser.html new file mode 100644 index 0000000..22135a5 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/TestFortranParser.html @@ -0,0 +1,334 @@ + + + + + + + +TestFortranParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.parser +
+Class TestFortranParser

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.parser.TestFortranParser
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestFortranParser
extends junit.framework.TestCase
+ + +

+Tests for the CParser class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestFortranParser(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestInClUdE() + +
+          Checks parsing of InClUdE 'foo.inc'.
+ voidtestINCLUDE() + +
+          Checks parsing of INCLUDE 'foo.inc'.
+ voidtestMultipleInClUdE() + +
+          Checks parsing of InClUdE 'foo.inc'.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestFortranParser

+
+public TestFortranParser(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - String test name
+
+ + + + + + + + +
+Method Detail
+ +

+testINCLUDE

+
+public void testINCLUDE()
+                 throws java.io.IOException
+
+
Checks parsing of INCLUDE 'foo.inc'. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testInClUdE

+
+public void testInClUdE()
+                 throws java.io.IOException
+
+
Checks parsing of InClUdE 'foo.inc'. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testMultipleInClUdE

+
+public void testMultipleInClUdE()
+                         throws java.io.IOException
+
+
Checks parsing of InClUdE 'foo.inc'. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestCParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestCParser.html new file mode 100644 index 0000000..b38e6ef --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestCParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.TestCParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.TestCParser

+
+No usage of net.sf.antcontrib.cpptasks.parser.TestCParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestFortranParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestFortranParser.html new file mode 100644 index 0000000..02e8ba3 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/class-use/TestFortranParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.parser.TestFortranParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.parser.TestFortranParser

+
+No usage of net.sf.antcontrib.cpptasks.parser.TestFortranParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html new file mode 100644 index 0000000..565614a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.parser + + + + +
+Classes  + +
+TestCParser +
+TestFortranParser
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html new file mode 100644 index 0000000..13b2301 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-summary.html @@ -0,0 +1,174 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.parser +

+JUnit tests for the net.sf.antcontrib.cpptasks.parser package. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Class Summary
TestCParserTests for the CParser class.
TestFortranParserTests for the CParser class.
+  + +

+

+Package net.sf.antcontrib.cpptasks.parser Description +

+ +

+JUnit tests for the net.sf.antcontrib.cpptasks.parser package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html new file mode 100644 index 0000000..5fcbc76 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.parser Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.parser +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • junit.framework.Assert
        +
      • junit.framework.TestCase (implements junit.framework.Test) + +
      +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-use.html new file mode 100644 index 0000000..9bb2579 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/parser/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.parser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.parser

+
+No usage of net.sf.antcontrib.cpptasks.parser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.html new file mode 100644 index 0000000..7b6a4a9 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/TestForteCCCompiler.html @@ -0,0 +1,536 @@ + + + + + + + +TestForteCCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.sun +
+Class TestForteCCCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestForteCCCompiler
extends junit.framework.TestCase
+ + +

+Test Sun Forte compiler adapter +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestForteCCCompiler(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestBidAssembly() + +
+           
+ voidtestBidC() + +
+           
+ voidtestBidCpp() + +
+           
+ voidtestBidCpp2() + +
+           
+ voidtestBidCpp3() + +
+           
+ voidtestBidCpp4() + +
+           
+ voidtestBidCpp5() + +
+           
+ voidtestBidPreprocessed() + +
+           
+ voidtestWarningLevel0() + +
+          Tests command line switches for warning = 0
+ voidtestWarningLevel1() + +
+          Tests command line switches for warning = 1
+ voidtestWarningLevel2() + +
+          Tests command line switches for warning = 2
+ voidtestWarningLevel3() + +
+          Tests command line switches for warning = 3
+ voidtestWarningLevel4() + +
+          Tests command line switches for warning = 4
+ voidtestWarningLevel5() + +
+          Tests command line switches for warning = 5
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestForteCCCompiler

+
+public TestForteCCCompiler(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testBidC

+
+public void testBidC()
+
+
+
+
+
+
+ +

+testBidCpp

+
+public void testBidCpp()
+
+
+
+
+
+
+ +

+testBidCpp2

+
+public void testBidCpp2()
+
+
+
+
+
+
+ +

+testBidCpp3

+
+public void testBidCpp3()
+
+
+
+
+
+
+ +

+testBidCpp4

+
+public void testBidCpp4()
+
+
+
+
+
+
+ +

+testBidCpp5

+
+public void testBidCpp5()
+
+
+
+
+
+
+ +

+testBidPreprocessed

+
+public void testBidPreprocessed()
+
+
+
+
+
+
+ +

+testBidAssembly

+
+public void testBidAssembly()
+
+
+
+
+
+
+ +

+testWarningLevel0

+
+public void testWarningLevel0()
+
+
Tests command line switches for warning = 0 +

+

+
+
+
+
+ +

+testWarningLevel1

+
+public void testWarningLevel1()
+
+
Tests command line switches for warning = 1 +

+

+
+
+
+
+ +

+testWarningLevel2

+
+public void testWarningLevel2()
+
+
Tests command line switches for warning = 2 +

+

+
+
+
+
+ +

+testWarningLevel3

+
+public void testWarningLevel3()
+
+
Tests command line switches for warning = 3 +

+

+
+
+
+
+ +

+testWarningLevel4

+
+public void testWarningLevel4()
+
+
Tests command line switches for warning = 4 +

+

+
+
+
+
+ +

+testWarningLevel5

+
+public void testWarningLevel5()
+
+
Tests command line switches for warning = 5 +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/class-use/TestForteCCCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/class-use/TestForteCCCompiler.html new file mode 100644 index 0000000..4e055f4 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/class-use/TestForteCCCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler

+
+No usage of net.sf.antcontrib.cpptasks.sun.TestForteCCCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html new file mode 100644 index 0000000..2daab04 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-frame.html @@ -0,0 +1,33 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.sun + + + + +
+Classes  + +
+TestForteCCCompiler
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html new file mode 100644 index 0000000..91c651d --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-summary.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.sun +

+ + + + + + + + + +
+Class Summary
TestForteCCCompilerTest Sun Forte compiler adapter
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html new file mode 100644 index 0000000..2d9aa22 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.sun Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.sun +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • junit.framework.Assert
        +
      • junit.framework.TestCase (implements junit.framework.Test) + +
      +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-use.html new file mode 100644 index 0000000..26ec893 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/sun/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.sun (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.sun

+
+No usage of net.sf.antcontrib.cpptasks.sun +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.html new file mode 100644 index 0000000..c524796 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectCompiler.html @@ -0,0 +1,380 @@ + + + + + + + +TestMetaObjectCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class TestMetaObjectCompiler

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
+              extended by net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler
+                  extended by net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestMetaObjectCompiler
extends TestAbstractCompiler
+ + +

+Tests for Trolltech Meta Object Compiler. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestMetaObjectCompiler(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  net.sf.antcontrib.cpptasks.compiler.AbstractProcessorcreate() + +
+          Creates compiler for inherited tests.
+protected  java.lang.StringgetObjectExtension() + +
+          Gets default output file extension.
+ voidtestGetIdentfier() + +
+          Skip testGetIdentifier.
+ voidtestGetOutputFileName1() + +
+          Override inherited test.
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractCompiler
testCanParseTlb
+ + + + + + + +
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.TestAbstractProcessor
testBid
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestMetaObjectCompiler

+
+public TestMetaObjectCompiler(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+create

+
+protected net.sf.antcontrib.cpptasks.compiler.AbstractProcessor create()
+
+
Creates compiler for inherited tests. +

+

+
Overrides:
create in class TestAbstractCompiler
+
+
+ +
Returns:
AbstractProcessor compiler
+
+
+
+ +

+getObjectExtension

+
+protected java.lang.String getObjectExtension()
+
+
Gets default output file extension. +

+

+
Overrides:
getObjectExtension in class TestAbstractCompiler
+
+
+ +
Returns:
String output file extension
+
+
+
+ +

+testGetIdentfier

+
+public void testGetIdentfier()
+
+
Skip testGetIdentifier. +

+

+
Overrides:
testGetIdentfier in class TestAbstractProcessor
+
+
+
+
+
+
+ +

+testGetOutputFileName1

+
+public void testGetOutputFileName1()
+
+
Override inherited test. +

+

+
Overrides:
testGetOutputFileName1 in class TestAbstractCompiler
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.html new file mode 100644 index 0000000..fdc27cc --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/TestMetaObjectParser.html @@ -0,0 +1,310 @@ + + + + + + + +TestMetaObjectParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.trolltech +
+Class TestMetaObjectParser

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public final class TestMetaObjectParser
extends junit.framework.TestCase
+ + +

+Tests for the MetaObjectParser class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestMetaObjectParser(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestHasQObject1() + +
+          Test that the presence of Q_OBJECT causes hasQObject to return true.
+ voidtestHasQObject2() + +
+          Test that the lack of Q_OBJECT causes hasQObject to return false.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestMetaObjectParser

+
+public TestMetaObjectParser(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - String test name
+
+ + + + + + + + +
+Method Detail
+ +

+testHasQObject1

+
+public void testHasQObject1()
+                     throws java.io.IOException
+
+
Test that the presence of Q_OBJECT causes hasQObject to return true. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+
+ +

+testHasQObject2

+
+public void testHasQObject2()
+                     throws java.io.IOException
+
+
Test that the lack of Q_OBJECT causes hasQObject to return false. +

+

+ +
Throws: +
java.io.IOException - test fails on IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectCompiler.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectCompiler.html new file mode 100644 index 0000000..e9d9b5a --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectCompiler.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler

+
+No usage of net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectCompiler +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectParser.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectParser.html new file mode 100644 index 0000000..21f9481 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/class-use/TestMetaObjectParser.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser

+
+No usage of net.sf.antcontrib.cpptasks.trolltech.TestMetaObjectParser +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html new file mode 100644 index 0000000..a807476 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.trolltech + + + + +
+Classes  + +
+TestMetaObjectCompiler +
+TestMetaObjectParser
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html new file mode 100644 index 0000000..29ab83d --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-summary.html @@ -0,0 +1,174 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.trolltech +

+Tests for Trolltech Qt uic and moc compilers. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Class Summary
TestMetaObjectCompilerTests for Trolltech Meta Object Compiler.
TestMetaObjectParserTests for the MetaObjectParser class.
+  + +

+

+Package net.sf.antcontrib.cpptasks.trolltech Description +

+ +

+Tests for Trolltech Qt uic and moc compilers. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html new file mode 100644 index 0000000..b4ef4ae --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-tree.html @@ -0,0 +1,159 @@ + + + + + + + +net.sf.antcontrib.cpptasks.trolltech Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.trolltech +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html new file mode 100644 index 0000000..0f241a2 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/trolltech/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.trolltech (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.trolltech

+
+No usage of net.sf.antcontrib.cpptasks.trolltech +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestDefineArgument.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestDefineArgument.html new file mode 100644 index 0000000..6cbefc0 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestDefineArgument.html @@ -0,0 +1,429 @@ + + + + + + + +TestDefineArgument (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class TestDefineArgument

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.types.TestDefineArgument
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestDefineArgument
extends junit.framework.TestCase
+ + +

+Tests for the DefineArgument class +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestDefineArgument(java.lang.String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestIsActive1() + +
+           
+ voidtestIsActive2() + +
+           
+ voidtestIsActive3() + +
+           
+ voidtestIsActive4() + +
+           
+ voidtestIsActive5() + +
+           
+ voidtestIsActive6() + +
+           
+ voidtestIsActive7() + +
+           
+ voidtestIsActive8() + +
+           
+ voidtestMerge() + +
+           
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestDefineArgument

+
+public TestDefineArgument(java.lang.String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+testIsActive1

+
+public void testIsActive1()
+
+
+
+
+
+
+ +

+testIsActive2

+
+public void testIsActive2()
+
+
+
+
+
+
+ +

+testIsActive3

+
+public void testIsActive3()
+
+
+
+
+
+
+ +

+testIsActive4

+
+public void testIsActive4()
+
+
+
+
+
+
+ +

+testIsActive5

+
+public void testIsActive5()
+
+
+
+
+
+
+ +

+testIsActive6

+
+public void testIsActive6()
+
+
+
+
+
+
+ +

+testIsActive7

+
+public void testIsActive7()
+
+
+
+
+
+
+ +

+testIsActive8

+
+public void testIsActive8()
+
+
+
+
+
+
+ +

+testMerge

+
+public void testMerge()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestLibrarySet.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestLibrarySet.html new file mode 100644 index 0000000..6e483dc --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/TestLibrarySet.html @@ -0,0 +1,619 @@ + + + + + + + +TestLibrarySet (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +net.sf.antcontrib.cpptasks.types +
+Class TestLibrarySet

+
+java.lang.Object
+  extended by junit.framework.Assert
+      extended by junit.framework.TestCase
+          extended by net.sf.antcontrib.cpptasks.types.TestLibrarySet
+
+
+
All Implemented Interfaces:
junit.framework.Test
+
+
+
+
public class TestLibrarySet
extends junit.framework.TestCase
+ + +

+Tests for the LibrarySet class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestLibrarySet(java.lang.String name) + +
+          Constructor.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestBadLibname() + +
+          This test specifies a library pattern that should + not match any available libraries and expects that + a build exception will be raised.
+ voidtestIsActive1() + +
+          Evaluate isActive when "if" specifies a property that is set.
+ voidtestIsActive2() + +
+          Evaluate isActive when "if" specifies a property whose value suggests the + user thinks the value is significant.
+ voidtestIsActive3() + +
+          Evaluate isActive when "if" specifies a property that is not set.
+ voidtestIsActive4() + +
+          Evaluate isActive when "unless" specifies a property that is set.
+ voidtestIsActive5() + +
+          Evaluate isActive when "unless" specifies a property whose value suggests + the user thinks the value is significant.
+ voidtestIsActive6() + +
+          Evaluate isActive when "unless" specifies a property that is not set.
+ voidtestLibContainsDot() + +
+          The libs parameter should not end with .lib, .so, .a etc New behavior is + to warn if it ends in a suspicious extension.
+ voidtestLibContainsDotLib() + +
+          The libs parameter should not end with .lib, .so, .a (that is, + should be kernel, not kernel.lib).
+ voidtestLibNotSpecified() + +
+          Use of a libset or syslibset without a libs attribute should log a + warning message.
+ voidtestLibrarianVisitFiles() + +
+          Run testVisitFiles with the MSVC Librarian + expect one matching file.
+ voidtestLinkerVisitFiles() + +
+          Run testVisitFiles with the MSVC Linker + expect one matching file.
+ voidtestShortLibName() + +
+          this threw an exception prior to 2002-09-05 and started to throw one + again 2002-11-19 up to 2002-12-11.
+ voidtestStartsWithLib() + +
+          The libs parameter should contain not a lib prefix (that is, + pthread not libpthread).
+ voidtestVisitFiles(net.sf.antcontrib.cpptasks.compiler.Linker linker, + int expected) + +
+          This test creates two "fake" libraries in the temporary directory and + check how many are visited.
+ + + + + + + +
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
+ + + + + + + +
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestLibrarySet

+
+public TestLibrarySet(java.lang.String name)
+
+
Constructor. +

+

+
Parameters:
name - test name
+
+ + + + + + + + +
+Method Detail
+ +

+testIsActive1

+
+public final void testIsActive1()
+
+
Evaluate isActive when "if" specifies a property that is set. +

+

+
+
+
+
+ +

+testIsActive2

+
+public final void testIsActive2()
+
+
Evaluate isActive when "if" specifies a property whose value suggests the + user thinks the value is significant. +

+

+
+
+
+
+ +

+testIsActive3

+
+public final void testIsActive3()
+
+
Evaluate isActive when "if" specifies a property that is not set. +

+

+
+
+
+
+ +

+testIsActive4

+
+public final void testIsActive4()
+
+
Evaluate isActive when "unless" specifies a property that is set. +

+

+
+
+
+
+ +

+testIsActive5

+
+public final void testIsActive5()
+
+
Evaluate isActive when "unless" specifies a property whose value suggests + the user thinks the value is significant. +

+

+
+
+
+
+ +

+testIsActive6

+
+public final void testIsActive6()
+
+
Evaluate isActive when "unless" specifies a property that is not set. +

+

+
+
+
+
+ +

+testLibContainsDot

+
+public final void testLibContainsDot()
+
+
The libs parameter should not end with .lib, .so, .a etc New behavior is + to warn if it ends in a suspicious extension. +

+

+
+
+
+
+ +

+testLibContainsDotLib

+
+public final void testLibContainsDotLib()
+
+
The libs parameter should not end with .lib, .so, .a (that is, + should be kernel, not kernel.lib). Previously the libset would + warn on configuration, now provides more feedback + when library is not found. +

+

+
+
+
+
+ +

+testLibNotSpecified

+
+public final void testLibNotSpecified()
+
+
Use of a libset or syslibset without a libs attribute should log a + warning message. +

+

+
+
+
+
+ +

+testShortLibName

+
+public final void testShortLibName()
+
+
this threw an exception prior to 2002-09-05 and started to throw one + again 2002-11-19 up to 2002-12-11. +

+

+
+
+
+
+ +

+testStartsWithLib

+
+public final void testStartsWithLib()
+
+
The libs parameter should contain not a lib prefix (that is, + pthread not libpthread). Previously the libset would + warn on configuration, now provides more feedback + when library is not found. +

+

+
+
+
+
+ +

+testVisitFiles

+
+public final void testVisitFiles(net.sf.antcontrib.cpptasks.compiler.Linker linker,
+                                 int expected)
+                          throws java.io.IOException
+
+
This test creates two "fake" libraries in the temporary directory and + check how many are visited. +

+

+
Parameters:
linker - linker
expected - expected number of visited files +
Throws: +
java.io.IOException - if unable to write to temporary directory or delete temporary + files
+
+
+
+ +

+testLinkerVisitFiles

+
+public final void testLinkerVisitFiles()
+                                throws java.io.IOException
+
+
Run testVisitFiles with the MSVC Linker + expect one matching file. +

+

+ +
Throws: +
java.io.IOException - if unable to create or delete temporary file
+
+
+
+ +

+testLibrarianVisitFiles

+
+public final void testLibrarianVisitFiles()
+                                   throws java.io.IOException
+
+
Run testVisitFiles with the MSVC Librarian + expect one matching file. +

+

+ +
Throws: +
java.io.IOException - if unable to create or delete temporary file
+
+
+
+ +

+testBadLibname

+
+public final void testBadLibname()
+
+
This test specifies a library pattern that should + not match any available libraries and expects that + a build exception will be raised. + + See bug 1380366 +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestDefineArgument.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestDefineArgument.html new file mode 100644 index 0000000..44d8b7b --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestDefineArgument.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.TestDefineArgument (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.TestDefineArgument

+
+No usage of net.sf.antcontrib.cpptasks.types.TestDefineArgument +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestLibrarySet.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestLibrarySet.html new file mode 100644 index 0000000..6b533d4 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/class-use/TestLibrarySet.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Class net.sf.antcontrib.cpptasks.types.TestLibrarySet (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
net.sf.antcontrib.cpptasks.types.TestLibrarySet

+
+No usage of net.sf.antcontrib.cpptasks.types.TestLibrarySet +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-frame.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-frame.html new file mode 100644 index 0000000..8a0bb72 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 Test API) + + + + + + + + + + + +net.sf.antcontrib.cpptasks.types + + + + +
+Classes  + +
+TestDefineArgument +
+TestLibrarySet
+ + + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-summary.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-summary.html new file mode 100644 index 0000000..b84e831 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-summary.html @@ -0,0 +1,174 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package net.sf.antcontrib.cpptasks.types +

+JUnit tests for the net.sf.antcontrib.cpptasks.types package. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Class Summary
TestDefineArgumentTests for the DefineArgument class
TestLibrarySetTests for the LibrarySet class.
+  + +

+

+Package net.sf.antcontrib.cpptasks.types Description +

+ +

+JUnit tests for the net.sf.antcontrib.cpptasks.types package. +

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-tree.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-tree.html new file mode 100644 index 0000000..ece5188 --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +net.sf.antcontrib.cpptasks.types Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package net.sf.antcontrib.cpptasks.types +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • junit.framework.Assert
        +
      • junit.framework.TestCase (implements junit.framework.Test) + +
      +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-use.html b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-use.html new file mode 100644 index 0000000..25edcaf --- /dev/null +++ b/site/testapidocs/net/sf/antcontrib/cpptasks/types/package-use.html @@ -0,0 +1,141 @@ + + + + + + + +Uses of Package net.sf.antcontrib.cpptasks.types (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
net.sf.antcontrib.cpptasks.types

+
+No usage of net.sf.antcontrib.cpptasks.types +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/options b/site/testapidocs/options new file mode 100644 index 0000000..abc6080 --- /dev/null +++ b/site/testapidocs/options @@ -0,0 +1,17 @@ +-classpath '/Users/curta/ant-contrib/cpptasks-1.0b5/target/classes:/Users/curta/ant-contrib/cpptasks-1.0b5/target/test-classes:/Users/curta/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/curta/.m2/repository/xerces/xercesImpl/2.8.1/xercesImpl-2.8.1.jar:/Users/curta/.m2/repository/xml-apis/xml-apis/1.3.03/xml-apis-1.3.03.jar:/Users/curta/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar' + -protected +-sourcepath +'/Users/curta/ant-contrib/cpptasks-1.0b5/src/test/java' +-author +-bottom +'Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved.' +-charset +'ISO-8859-1' +-d +'/Users/curta/ant-contrib/cpptasks-1.0b5/target/site/testapidocs' +-doctitle +'cpptasks 1.0b5 Test API' +-use +-version +-windowtitle +'cpptasks 1.0b5 Test API' \ No newline at end of file diff --git a/site/testapidocs/overview-frame.html b/site/testapidocs/overview-frame.html new file mode 100644 index 0000000..87d8d82 --- /dev/null +++ b/site/testapidocs/overview-frame.html @@ -0,0 +1,63 @@ + + + + + + + +Overview (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+net.sf.antcontrib.cpptasks +
+net.sf.antcontrib.cpptasks.borland +
+net.sf.antcontrib.cpptasks.compiler +
+net.sf.antcontrib.cpptasks.devstudio +
+net.sf.antcontrib.cpptasks.gcc +
+net.sf.antcontrib.cpptasks.hp +
+net.sf.antcontrib.cpptasks.ibm +
+net.sf.antcontrib.cpptasks.parser +
+net.sf.antcontrib.cpptasks.sun +
+net.sf.antcontrib.cpptasks.trolltech +
+net.sf.antcontrib.cpptasks.types +
+

+ +

+  + + diff --git a/site/testapidocs/overview-summary.html b/site/testapidocs/overview-summary.html new file mode 100644 index 0000000..e0a7404 --- /dev/null +++ b/site/testapidocs/overview-summary.html @@ -0,0 +1,194 @@ + + + + + + + +Overview (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +


+
+

+cpptasks 1.0b5 Test API +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages
net.sf.antcontrib.cpptasksJUnit tests for the net.sf.antcontrib.cpptasks package.
net.sf.antcontrib.cpptasks.borland 
net.sf.antcontrib.cpptasks.compiler 
net.sf.antcontrib.cpptasks.devstudio 
net.sf.antcontrib.cpptasks.gcc 
net.sf.antcontrib.cpptasks.hp 
net.sf.antcontrib.cpptasks.ibm 
net.sf.antcontrib.cpptasks.parserJUnit tests for the net.sf.antcontrib.cpptasks.parser package.
net.sf.antcontrib.cpptasks.sun 
net.sf.antcontrib.cpptasks.trolltechTests for Trolltech Qt uic and moc compilers.
net.sf.antcontrib.cpptasks.typesJUnit tests for the net.sf.antcontrib.cpptasks.types package.
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/overview-tree.html b/site/testapidocs/overview-tree.html new file mode 100644 index 0000000..a43ee3f --- /dev/null +++ b/site/testapidocs/overview-tree.html @@ -0,0 +1,176 @@ + + + + + + + +Class Hierarchy (cpptasks 1.0b5 Test API) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
net.sf.antcontrib.cpptasks, net.sf.antcontrib.cpptasks.borland, net.sf.antcontrib.cpptasks.compiler, net.sf.antcontrib.cpptasks.devstudio, net.sf.antcontrib.cpptasks.gcc, net.sf.antcontrib.cpptasks.hp, net.sf.antcontrib.cpptasks.ibm, net.sf.antcontrib.cpptasks.parser, net.sf.antcontrib.cpptasks.sun, net.sf.antcontrib.cpptasks.trolltech, net.sf.antcontrib.cpptasks.types
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved. + + diff --git a/site/testapidocs/package-list b/site/testapidocs/package-list new file mode 100644 index 0000000..dc4dc0f --- /dev/null +++ b/site/testapidocs/package-list @@ -0,0 +1,11 @@ +net.sf.antcontrib.cpptasks +net.sf.antcontrib.cpptasks.borland +net.sf.antcontrib.cpptasks.compiler +net.sf.antcontrib.cpptasks.devstudio +net.sf.antcontrib.cpptasks.gcc +net.sf.antcontrib.cpptasks.hp +net.sf.antcontrib.cpptasks.ibm +net.sf.antcontrib.cpptasks.parser +net.sf.antcontrib.cpptasks.sun +net.sf.antcontrib.cpptasks.trolltech +net.sf.antcontrib.cpptasks.types diff --git a/site/testapidocs/packages b/site/testapidocs/packages new file mode 100644 index 0000000..37d86c6 --- /dev/null +++ b/site/testapidocs/packages @@ -0,0 +1,11 @@ +net.sf.antcontrib.cpptasks.borland +net.sf.antcontrib.cpptasks.compiler +net.sf.antcontrib.cpptasks.devstudio +net.sf.antcontrib.cpptasks.gcc +net.sf.antcontrib.cpptasks.hp +net.sf.antcontrib.cpptasks.ibm +net.sf.antcontrib.cpptasks +net.sf.antcontrib.cpptasks.parser +net.sf.antcontrib.cpptasks.sun +net.sf.antcontrib.cpptasks.trolltech +net.sf.antcontrib.cpptasks.types \ No newline at end of file diff --git a/site/testapidocs/resources/inherit.gif b/site/testapidocs/resources/inherit.gif new file mode 100644 index 0000000..c814867 Binary files /dev/null and b/site/testapidocs/resources/inherit.gif differ diff --git a/site/testapidocs/stylesheet.css b/site/testapidocs/stylesheet.css new file mode 100644 index 0000000..6d31fdb --- /dev/null +++ b/site/testapidocs/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */ +.TableRowColor { background: #FFFFFF } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF;} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} + diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml new file mode 100644 index 0000000..f57609f --- /dev/null +++ b/src/assembly/bin.xml @@ -0,0 +1,38 @@ + + + bin + + zip + tar.gz + + cpptasks-${project.version} + true + + + + *.xml + INSTALL + KEYS + LICENSE + NOTICE + src/** + + + + diff --git a/src/changes/changes.xml b/src/changes/changes.xml new file mode 100644 index 0000000..4782965 --- /dev/null +++ b/src/changes/changes.xml @@ -0,0 +1,60 @@ + + + + cpptasks: Compile tasks for Apache Ant + + + + + IDE project file generation. + history.xml not capturing mid and end arguments + LinkerDef not properly capturing references + Update documentation for antlib usage + Modify warning levels for sunpro + Modify CC, aCC and xlC to bid on .s files + Add msvc8 compiler to avoid deprecation warning on /GZ + Migrate to Maven 2 for build and documentation + Fix linked issues with shared libraries on VisualAge + + + + + + + Sample build file for CPPUNIT + Borland compilation repair + Problem with linker extension + Added type attribute to libset and syslibset so that dynamic or static could be chosen if both were available + Added rtti and optimization attributes to cc and compiler + Added versioninfo element (experimental) + Add target element for cross-compilation (experimental) + Add distributer element for distributed builds (experimental) + + + + + + + + + + + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/AboutCCTask.java b/src/main/java/net/sf/antcontrib/cpptasks/AboutCCTask.java new file mode 100644 index 0000000..4f17111 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/AboutCCTask.java @@ -0,0 +1,49 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +/** + * The equivalent of a Help About + * run "java -jar cpptasks.jar" to read + * + * @author Curt Arnold + */ +public class AboutCCTask { + /** + * display identification message and exit + * + * @param args ignored + */ + public static void main(String args[]) { + System.out.println("CCTask: Compile and link task for Apache Ant 1.5 or later\n"); + System.out.println("Copyright (c) 2002-2004, The Ant-Contrib project.\n"); + System.out.println("http://sf.net/projects/ant-contrib\n"); + System.out.println("Licensed under the Apache Software License 2.0"); + System.out.println("available at http://www.apache.org/licenses/LICENSE-2.0\n"); + System.out.println("This software is not a product of the"); + System.out.println("of the Apache Software Foundation and no"); + System.out.println("endorsement or promotion is implied.\n"); + System.out.println("THIS SOFTWARE IS PROVIDED 'AS-IS', See"); + System.out.println("http://www.apache.org/LICENSE for additional"); + System.out.println("disclaimers.\n"); + System.out.println("To use:"); + System.out.println("\tPlace cpptasks.jar into lib directory of Ant 1.5 or later."); + System.out.println("\tAdd and"); + System.out.println("\t\t to build.xml"); + System.out.println("Add , ; and elements."); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ArchEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/ArchEnum.java new file mode 100644 index 0000000..0f36405 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ArchEnum.java @@ -0,0 +1,72 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumeration of cpu architecture types. + * + * @author Curt Arnold + * + */ +public final class ArchEnum + extends EnumeratedAttribute { + /** + * Constructor. + * + * Set by default to "pentium3" + * + * @see java.lang.Object#Object() + */ + public ArchEnum() { + setValue("pentium3"); + } + + /** + * Gets list of acceptable values. + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + /** + * Class initializer. + */ + return new String[] { + "i386", + "i486", + "i586", + "i686", + "pentium", + "pentium-mmx", + "pentiumpro", + "pentium2", + "pentium3", + "pentium4", + "k6", + "k6-2", + "k6-3", + "athlon", + "athlon-tbird", + "athlon-4", + "athlon-xp", + "athlon-mp", + "winchip-c6", + "winchip2", + "c3"}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java new file mode 100644 index 0000000..2e6adab --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CCTask.java @@ -0,0 +1,1440 @@ +/* + * + * Copyright 2001-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Hashtable; +import java.util.*; + +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.ide.ProjectDef; +import net.sf.antcontrib.cpptasks.types.CompilerArgument; +import net.sf.antcontrib.cpptasks.types.ConditionalFileSet; +import net.sf.antcontrib.cpptasks.types.DefineSet; +import net.sf.antcontrib.cpptasks.types.IncludePath; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LinkerArgument; +import net.sf.antcontrib.cpptasks.types.SystemIncludePath; +import net.sf.antcontrib.cpptasks.types.SystemLibrarySet; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.Task; +import org.apache.tools.ant.types.Environment; +/** + * Compile and link task. + * + *

+ * This task can compile various source languages and produce executables, + * shared libraries (aka DLL's) and static libraries. Compiler adaptors are + * currently available for several C/C++ compilers, FORTRAN, MIDL and Windows + * Resource files. + *

+ * + *

+ * Copyright (c) 2001-2008, The Ant-Contrib project. + *

+ * + *

+ * Licensed under the Apache Software License 2.0, + * http://www.apache.org/licenses/LICENSE-2.0. + *

+ * + *

+ * For use with Apache Ant 1.5 or later. This software is not a product of the + * of the Apache Software Foundation and no endorsement is implied. + *

+ * + *

+ * THIS SOFTWARE IS PROVIDED 'AS-IS', See + * http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers. + *

+ * + * To use: + *
    + *
  1. + * Place cpptasks.jar into Ant's classpath by placing it in Ant's lib + * directory, adding it to the CLASSPATH environment variable or by using the + * -lib command line option. + *
  2. + *
  3. + * Add type and task definitions to the build file: + *
      + *
    • + * Ant 1.6 or later: + *
        + *
      • Add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to + * <project> element. + *
      • + *
      • + * Add <cpptasks:cc/>, <cpptasks:compiler/> and + * <cpptasks:linker/> elements to the project. + *
      • + *
      + *
    • + *
    • + * Ant 1.5 or later: + *
        + *
      • Add <taskdef resource="cpptasks.tasks"/> and + * <typedef resource="cpptasks.types"/> to body of <project> + * element. + *
      • + *
      • + * Add <cc/>, <compiler/> and <linker/> elements to the + * project. + *
      • + *
      + *
    • + *
    + *
  4. + *
  5. + * Set the path and environment variables to be able to run compiler from + * command line. + *
  6. + *
  7. + * Build the project. + *
  8. + *
+ * + * @author Adam Murdoch + * @author Curt Arnold + */ +public class CCTask extends Task { + private static class SystemLibraryCollector implements FileVisitor { + private Hashtable libraries; + private Linker linker; + public SystemLibraryCollector(Linker linker, Hashtable libraries) { + this.linker = linker; + this.libraries = libraries; + } + public void visit(File basedir, String filename) { + if (linker.bid(filename) > 0) { + File libfile = new File(basedir, filename); + String key = linker.getLibraryKey(libfile); + libraries.put(key, libfile); + } + } + } + + private static class ProjectFileCollector implements FileVisitor { + private final List files; + /** + * Creates a new ProjectFileCollector. + * @param files vector for collected files. + */ + public ProjectFileCollector(List files) { + this.files = files; + } + /** + * Called for each file to be considered for collection. + * @param parentDir parent directory + * @param filename filename within directory + */ + public void visit(File parentDir, String filename) { + files.add(new File(parentDir, filename)); + } + } + + private static final ProcessorConfiguration[] EMPTY_CONFIG_ARRAY = new ProcessorConfiguration[0]; + /** + * Builds a Hashtable to targets needing to be rebuilt keyed by compiler + * configuration + */ + public static Hashtable getTargetsToBuildByConfiguration(Hashtable targets) { + Hashtable targetsByConfig = new Hashtable(); + Enumeration targetEnum = targets.elements(); + while (targetEnum.hasMoreElements()) { + TargetInfo target = (TargetInfo) targetEnum.nextElement(); + if (target.getRebuild()) { + Vector targetsForSameConfig = (Vector) targetsByConfig + .get(target.getConfiguration()); + if (targetsForSameConfig != null) { + targetsForSameConfig.addElement(target); + } else { + targetsForSameConfig = new Vector(); + targetsForSameConfig.addElement(target); + targetsByConfig.put(target.getConfiguration(), + targetsForSameConfig); + } + } + } + return targetsByConfig; + } + /** The compiler definitions. */ + private Vector _compilers = new Vector(); + /** The output file type. */ + // private LinkType _linkType = LinkType.EXECUTABLE; + /** The library sets. */ + private Vector _libsets = new Vector(); + /** The linker definitions. */ + private Vector _linkers = new Vector(); + /** The object directory. */ + private File _objDir; + /** The output file. */ + private File _outfile; + /** The linker definitions. */ + private final Vector targetPlatforms = new Vector(); + /** The distributer definitions. */ + private Vector distributers = new Vector(); + private final Vector versionInfos = new Vector(); + private final Vector projects = new Vector(); + private boolean projectsOnly = false; + + + /** + * If true, stop build on compile failure. + */ + protected boolean failOnError = true; + + /** + * Content that appears in and also in are maintained by a + * captive CompilerDef instance + */ + private final CompilerDef compilerDef = new CompilerDef(); + /** The OS390 dataset to build to object to */ + private String dataset; + /** + * + * Depth of dependency checking + * + * Values < 0 indicate full dependency checking Values >= 0 indicate + * partial dependency checking and for superficial compilation checks. Will + * throw BuildException before attempting link + */ + private int dependencyDepth = -1; + /** + * Content that appears in and also in are maintained by a + * captive CompilerDef instance + */ + private final LinkerDef linkerDef = new LinkerDef(); + /** + * contains the subsystem, output type and + * + */ + private final LinkType linkType = new LinkType(); + /** + * The property name which will be set with the physical filename of the + * file that is generated by the linker + */ + private String outputFileProperty; + /** + * if relentless = true, compilations should attempt to compile as many + * files as possible before throwing a BuildException + */ + private boolean relentless; + public CCTask() { + } + /** + * Adds a compiler definition or reference. + * + * @param compiler + * compiler + * @throws NullPointerException + * if compiler is null + */ + public void addConfiguredCompiler(CompilerDef compiler) { + if (compiler == null) { + throw new NullPointerException("compiler"); + } + compiler.setProject(getProject()); + _compilers.addElement(compiler); + } + /** + * Adds a compiler command-line arg. Argument will be inherited by all + * nested compiler elements that do not have inherit="false". + * + */ + public void addConfiguredCompilerArg(CompilerArgument arg) { + compilerDef.addConfiguredCompilerArg(arg); + } + /** + * Adds a defineset. Will be inherited by all compiler elements that do not + * have inherit="false". + * + * @param defs + * Define set + */ + public void addConfiguredDefineset(DefineSet defs) { + compilerDef.addConfiguredDefineset(defs); + } + /** + * Adds a linker definition. The first linker that is not disqualified by + * its "if" and "unless" attributes will perform the link. If no child + * linker element is active, the linker implied by the cc elements name or + * classname attribute will be used. + * + * @param linker + * linker + * @throws NullPointerException + * if linker is null + */ + public void addConfiguredLinker(LinkerDef linker) { + if (linker == null) { + throw new NullPointerException("linker"); + } + linker.setProject(getProject()); + _linkers.addElement(linker); + } + /** + * Adds a linker command-line arg. Argument will be inherited by all nested + * linker elements that do not have inherit="false". + */ + public void addConfiguredLinkerArg(LinkerArgument arg) { + linkerDef.addConfiguredLinkerArg(arg); + } + /** + * Add an environment variable to the launched process. + */ + public void addEnv(Environment.Variable var) { + compilerDef.addEnv(var); + linkerDef.addEnv(var); + } + /** + * Adds a source file set. + * + * Files in these filesets will be auctioned to the available compiler + * configurations, with the default compiler implied by the cc element + * bidding last. If no compiler is interested in the file, it will be + * passed to the linker. + * + * To have a file be processed by a particular compiler configuration, add + * a fileset to the corresponding compiler element. + */ + public void addFileset(ConditionalFileSet srcSet) { + compilerDef.addFileset(srcSet); + } + /** + * Adds a library set. + * + * Library sets will be inherited by all linker elements that do not have + * inherit="false". + * + * @param libset + * library set + * @throws NullPointerException + * if libset is null. + */ + public void addLibset(LibrarySet libset) { + if (libset == null) { + throw new NullPointerException("libset"); + } + linkerDef.addLibset(libset); + } + /** + * Adds a system library set. Timestamps and locations of system library + * sets are not used in dependency analysis. + * + * Essential libraries (such as C Runtime libraries) should not be + * specified since the task will attempt to identify the correct libraries + * based on the multithread, debug and runtime attributes. + * + * System library sets will be inherited by all linker elements that do not + * have inherit="false". + * + * @param libset + * library set + * @throws NullPointerException + * if libset is null. + */ + public void addSyslibset(SystemLibrarySet libset) { + if (libset == null) { + throw new NullPointerException("libset"); + } + linkerDef.addSyslibset(libset); + } + /** + * Specifies the generation of IDE project file. Experimental. + * @param projectDef project file generation specification + */ + public void addProject(final ProjectDef projectDef) { + if (projectDef == null) { + throw new NullPointerException("projectDef"); + } + projects.addElement(projectDef); + } + public void setProjectsOnly(final boolean value) { + projectsOnly = value; + } + /** + * Checks all targets that are not forced to be rebuilt or are missing + * object files to be checked for modified include files + * + * @return total number of targets to be rebuilt + * + */ + protected int checkForChangedIncludeFiles(Hashtable targets) { + int potentialTargets = 0; + int definiteTargets = 0; + Enumeration targetEnum = targets.elements(); + while (targetEnum.hasMoreElements()) { + TargetInfo target = (TargetInfo) targetEnum.nextElement(); + if (!target.getRebuild()) { + potentialTargets++; + } else { + definiteTargets++; + } + } + // + // If there were remaining targets that + // might be out of date + // + if (potentialTargets > 0) { + log("Starting dependency analysis for " + + Integer.toString(potentialTargets) + " files."); + DependencyTable dependencyTable = new DependencyTable(_objDir); + try { + dependencyTable.load(); + } catch (Exception ex) { + log("Problem reading dependencies.xml: " + ex.toString()); + } + targetEnum = targets.elements(); + while (targetEnum.hasMoreElements()) { + TargetInfo target = (TargetInfo) targetEnum.nextElement(); + if (!target.getRebuild()) { + if (dependencyTable.needsRebuild(this, target, + dependencyDepth)) { + target.mustRebuild(); + } + } + } + dependencyTable.commit(this); + } + // + // count files being rebuilt now + // + int currentTargets = 0; + targetEnum = targets.elements(); + while (targetEnum.hasMoreElements()) { + TargetInfo target = (TargetInfo) targetEnum.nextElement(); + if (target.getRebuild()) { + currentTargets++; + } + } + if (potentialTargets > 0) { + log(Integer.toString(potentialTargets - currentTargets + + definiteTargets) + + " files are up to date."); + log(Integer.toString(currentTargets - definiteTargets) + + " files to be recompiled from dependency analysis."); + } + log(Integer.toString(currentTargets) + " total files to be compiled."); + return currentTargets; + } + protected LinkerConfiguration collectExplicitObjectFiles( + Vector objectFiles, Vector sysObjectFiles, VersionInfo versionInfo) { + // + // find the first eligible linker + // + // + ProcessorConfiguration linkerConfig = null; + LinkerDef selectedLinkerDef = null; + Linker selectedLinker = null; + Hashtable sysLibraries = new Hashtable(); + TargetDef targetPlatform = getTargetPlatform(); + FileVisitor objCollector = null; + FileVisitor sysLibraryCollector = null; + for (int i = 0; i < _linkers.size(); i++) { + LinkerDef currentLinkerDef = (LinkerDef) _linkers.elementAt(i); + if (currentLinkerDef.isActive()) { + selectedLinkerDef = currentLinkerDef; + selectedLinker = currentLinkerDef.getProcessor().getLinker( + linkType); + // + // skip the linker if it doesn't know how to + // produce the specified link type + if (selectedLinker != null) { + linkerConfig = currentLinkerDef.createConfiguration(this, + linkType, linkerDef, targetPlatform, versionInfo); + if (linkerConfig != null) { + // + // create collectors for object files + // and system libraries + objCollector = new ObjectFileCollector(selectedLinker, + objectFiles); + sysLibraryCollector = new SystemLibraryCollector( + selectedLinker, sysLibraries); + // + // if the has embedded 's + // (such as linker specific libraries) + // add them as object files. + // + if (currentLinkerDef.hasFileSets()) { + currentLinkerDef.visitFiles(objCollector); + } + // + // user libraries are just a specialized form + // of an object fileset + selectedLinkerDef.visitUserLibraries(selectedLinker, + objCollector); + } + break; + } + } + } + if (linkerConfig == null) { + linkerConfig = linkerDef.createConfiguration(this, linkType, null, targetPlatform, versionInfo); + selectedLinker = (Linker) linkerDef.getProcessor().getLinker( + linkType); + objCollector = new ObjectFileCollector(selectedLinker, objectFiles); + sysLibraryCollector = new SystemLibraryCollector(selectedLinker, + sysLibraries); + } + // + // unless there was a element that + // explicitly did not inherit files from + // containing element + if (selectedLinkerDef == null || selectedLinkerDef.getInherit()) { + linkerDef.visitUserLibraries(selectedLinker, objCollector); + linkerDef.visitSystemLibraries(selectedLinker, sysLibraryCollector); + } + // + // if there was a in a nested + // evaluate it last so it takes priority over + // identically named libs from element + // + if (selectedLinkerDef != null) { + // + // add any system libraries to the hashtable + // done in reverse order so the earliest + // on the classpath takes priority + selectedLinkerDef.visitSystemLibraries(selectedLinker, + sysLibraryCollector); + } + // + // copy over any system libraries to the + // object files vector + // + Enumeration sysLibEnum = sysLibraries.elements(); + while (sysLibEnum.hasMoreElements()) { + sysObjectFiles.addElement(sysLibEnum.nextElement()); + } + return (LinkerConfiguration) linkerConfig; + } + /** + * Adds an include path. + * + * Include paths will be inherited by nested compiler elements that do not + * have inherit="false". + */ + public IncludePath createIncludePath() { + return compilerDef.createIncludePath(); + } + /** + * Specifies precompilation prototype file and exclusions. Inherited by all + * compilers that do not have inherit="false". + * + */ + public PrecompileDef createPrecompile() throws BuildException { + return compilerDef.createPrecompile(); + } + /** + * Adds a system include path. Locations and timestamps of files located + * using the system include paths are not used in dependency analysis. + * + * + * Standard include locations should not be specified. The compiler + * adapters should recognized the settings from the appropriate environment + * variables or configuration files. + * + * System include paths will be inherited by nested compiler elements that + * do not have inherit="false". + */ + public SystemIncludePath createSysIncludePath() { + return compilerDef.createSysIncludePath(); + } + /** + * Executes the task. Compiles the given files. + * + * @throws BuildException + * if someting goes wrong with the build + */ + public void execute() throws BuildException { + // + // if link type allowed objdir to be defaulted + // provide it from outfile + if (_objDir == null) { + if(_outfile != null) { + _objDir = new File(_outfile.getParent()); + } else { + _objDir = new File("."); + } + } + + // + // if the object directory does not exist + // + if (!_objDir.exists()) { + throw new BuildException("Object directory does not exist"); + } + TargetHistoryTable objHistory = new TargetHistoryTable(this, _objDir); + + // + // get the first active version info + // + VersionInfo versionInfo = null; + Enumeration versionEnum = versionInfos.elements(); + while (versionEnum.hasMoreElements()) { + versionInfo = (VersionInfo) versionEnum.nextElement(); + versionInfo = versionInfo.merge(); + if (versionInfo.isActive()) { + break; + } else { + versionInfo = null; + } + } + + + // + // determine the eventual linker configuration + // (may be null) and collect any explicit + // object files or libraries + Vector objectFiles = new Vector(); + Vector sysObjectFiles = new Vector(); + LinkerConfiguration linkerConfig = collectExplicitObjectFiles( + objectFiles, sysObjectFiles, versionInfo); + + + // + // Assemble hashtable of all files + // that we know how to compile (keyed by output file name) + // + Hashtable targets = getTargets(linkerConfig, objectFiles, versionInfo, _outfile); + TargetInfo linkTarget = null; + // + // if output file is not specified, + // then skip link step + // + if (_outfile != null) { + linkTarget = getLinkTarget(linkerConfig, objectFiles, + sysObjectFiles, targets, versionInfo); + } + + if (projects.size() > 0) { + ArrayList files = new ArrayList(); + ProjectFileCollector matcher = new ProjectFileCollector(files); + for (int i = 0; i < _compilers.size(); i++) { + CompilerDef currentCompilerDef = (CompilerDef) _compilers + .elementAt(i); + if (currentCompilerDef.isActive()) { + if (currentCompilerDef.hasFileSets()) { + currentCompilerDef.visitFiles(matcher); + } + } + } + compilerDef.visitFiles(matcher); + + + Enumeration iter = projects.elements(); + while (iter.hasMoreElements()) { + ProjectDef projectDef = (ProjectDef) iter.nextElement(); + if (projectDef.isActive()) { + projectDef.execute(this, files, targets, linkTarget); + } + } + } + if (projectsOnly) return; + + + + // + // mark targets that don't have a history record or + // whose source last modification time is not + // the same as the history to be rebuilt + // + objHistory.markForRebuild(targets); + CCTaskProgressMonitor monitor = new CCTaskProgressMonitor(objHistory, versionInfo); + // + // check for changed include files + // + int rebuildCount = checkForChangedIncludeFiles(targets); + if (rebuildCount > 0) { + BuildException compileException = null; + // + // compile all targets with getRebuild() == true + // + Hashtable targetsByConfig = getTargetsToBuildByConfiguration(targets); + // + // build array containing Vectors with precompiled generation + // steps going first + // + Vector[] targetVectors = new Vector[targetsByConfig.size()]; + int index = 0; + Enumeration targetVectorEnum = targetsByConfig.elements(); + while (targetVectorEnum.hasMoreElements()) { + Vector targetsForConfig = (Vector) targetVectorEnum + .nextElement(); + // + // get the configuration from the first entry + // + CompilerConfiguration config = (CompilerConfiguration) ((TargetInfo) targetsForConfig + .elementAt(0)).getConfiguration(); + if (config.isPrecompileGeneration()) { + targetVectors[index++] = targetsForConfig; + } + } + targetVectorEnum = targetsByConfig.elements(); + while (targetVectorEnum.hasMoreElements()) { + Vector targetsForConfig = (Vector) targetVectorEnum + .nextElement(); + for (int i = 0; i < targetVectors.length; i++) { + if (targetVectors[i] == targetsForConfig) { + break; + } + if (targetVectors[i] == null) { + targetVectors[i] = targetsForConfig; + break; + } + } + } + for (int i = 0; i < targetVectors.length; i++) { + // + // get the targets for this configuration + // + Vector targetsForConfig = targetVectors[i]; + // + // get the configuration from the first entry + // + CompilerConfiguration config = (CompilerConfiguration) ((TargetInfo) targetsForConfig + .elementAt(0)).getConfiguration(); + // + // prepare the list of source files + // + String[] sourceFiles = new String[targetsForConfig.size()]; + Enumeration targetsEnum = targetsForConfig.elements(); + index = 0; + while (targetsEnum.hasMoreElements()) { + TargetInfo targetInfo = ((TargetInfo) targetsEnum + .nextElement()); + sourceFiles[index++] = targetInfo.getSources()[0] + .toString(); + } + try { + config.compile(this, _objDir, sourceFiles, relentless, + monitor); + } catch (BuildException ex) { + if (compileException == null) { + compileException = ex; + } + if (!relentless) + break; + } + } + // + // save the details of the object file compilation + // settings to disk for dependency analysis + // + try { + objHistory.commit(); + } catch (IOException ex) { + this.log("Error writing history.xml: " + ex.toString()); + } + // + // if we threw a compile exception and + // didn't throw it at the time because + // we were relentless then + // save the history and + // throw the exception + // + if (compileException != null) { + if (failOnError) { + throw compileException; + } else { + log(compileException.getMessage(), Project.MSG_ERR); + return; + } + } + } + // + // if the dependency tree was not fully + // evaluated, then throw an exception + // since we really didn't do what we + // should have done + // + // + if (dependencyDepth >= 0) { + throw new BuildException( + "All files at depth " + + Integer.toString(dependencyDepth) + + " from changes successfully compiled.\n" + + "Remove or change dependencyDepth to -1 to perform full compilation."); + } + // + // if no link target then + // commit the history for the object files + // and leave the task + if (linkTarget != null) { + // + // get the history for the link target (may be the same + // as the object history) + TargetHistoryTable linkHistory = getLinkHistory(objHistory); + // + // see if it needs to be rebuilt + // + linkHistory.markForRebuild(linkTarget); + // + // if it needs to be rebuilt, rebuild it + // + File output = linkTarget.getOutput(); + if (linkTarget.getRebuild()) { + log("Starting link"); + LinkerConfiguration linkConfig = (LinkerConfiguration) linkTarget + .getConfiguration(); + if (failOnError) { + linkConfig.link(this, linkTarget); + } else { + try { + linkConfig.link(this, linkTarget); + } catch(BuildException ex) { + log(ex.getMessage(), Project.MSG_ERR); + return; + } + } + if (outputFileProperty != null) + getProject().setProperty(outputFileProperty, + output.getAbsolutePath()); + linkHistory.update(linkTarget); + try { + linkHistory.commit(); + } catch (IOException ex) { + log("Error writing link history.xml: " + ex.toString()); + } + } else { + if (outputFileProperty != null) + getProject().setProperty(outputFileProperty, + output.getAbsolutePath()); + } + } + } + /** + * Gets the dataset. + * + * @return Returns a String + */ + public String getDataset() { + return dataset; + } + protected TargetHistoryTable getLinkHistory(TargetHistoryTable objHistory) { + File outputFileDir = new File(_outfile.getParent()); + // + // if the output file is being produced in the link + // directory, then we can use the same history file + // + if (_objDir.equals(outputFileDir)) { + return objHistory; + } + return new TargetHistoryTable(this, outputFileDir); + } + protected TargetInfo getLinkTarget(LinkerConfiguration linkerConfig, + Vector objectFiles, Vector sysObjectFiles, + Hashtable compileTargets, VersionInfo versionInfo) { + // + // walk the compile phase targets and + // add those sources that have already been + // assigned to the linker or + // our output files the linker knows how to consume + // files the linker knows how to consume + // + Enumeration compileTargetsEnum = compileTargets.elements(); + while (compileTargetsEnum.hasMoreElements()) { + TargetInfo compileTarget = (TargetInfo) compileTargetsEnum + .nextElement(); + // + // output of compile tasks + // + int bid = linkerConfig.bid(compileTarget.getOutput().toString()); + if (bid > 0) { + objectFiles.addElement(compileTarget.getOutput()); + } + } + File[] objectFileArray = new File[objectFiles.size()]; + objectFiles.copyInto(objectFileArray); + File[] sysObjectFileArray = new File[sysObjectFiles.size()]; + sysObjectFiles.copyInto(sysObjectFileArray); + String baseName = _outfile.getName(); + String[] fullNames = linkerConfig.getOutputFileNames(baseName, versionInfo); + File outputFile = new File(_outfile.getParent(), fullNames[0]); + return new TargetInfo(linkerConfig, objectFileArray, + sysObjectFileArray, outputFile, linkerConfig.getRebuild()); + } + public File getObjdir() { + return _objDir; + } + public File getOutfile() { + return _outfile; + } + + public TargetDef getTargetPlatform() { + return null; + } + /** + * This method collects a Hashtable, keyed by output file name, of + * TargetInfo's for every source file that is specified in the filesets of + * the and nested elements. The TargetInfo's contain the + * appropriate compiler configurations for their possible compilation + * + */ + private Hashtable getTargets(LinkerConfiguration linkerConfig, + Vector objectFiles, VersionInfo versionInfo, File outputFile) { + Hashtable targets = new Hashtable(1000); + TargetDef targetPlatform = getTargetPlatform(); + // + // find active (specialized) compilers + // + Vector biddingProcessors = new Vector(_compilers.size()); + for (int i = 0; i < _compilers.size(); i++) { + CompilerDef currentCompilerDef = (CompilerDef) _compilers + .elementAt(i); + if (currentCompilerDef.isActive()) { + ProcessorConfiguration config = currentCompilerDef + .createConfiguration(this, linkType, compilerDef, + targetPlatform, versionInfo); + // + // see if this processor had a precompile child element + // + PrecompileDef precompileDef = currentCompilerDef + .getActivePrecompile(compilerDef); + ProcessorConfiguration[] localConfigs = new ProcessorConfiguration[]{config}; + // + // if it does then + // + if (precompileDef != null) { + File prototype = precompileDef.getPrototype(); + // + // will throw exceptions if prototype doesn't exist, etc + // + if (!prototype.exists()) { + throw new BuildException("prototype (" + + prototype.toString() + ") does not exist."); + } + if (prototype.isDirectory()) { + throw new BuildException("prototype (" + + prototype.toString() + ") is a directory."); + } + String[] exceptFiles = precompileDef.getExceptFiles(); + // + // create a precompile building and precompile using + // variants of the configuration + // or return null if compiler doesn't support + // precompilation + CompilerConfiguration[] configs = ((CompilerConfiguration) config) + .createPrecompileConfigurations(prototype, + exceptFiles); + if (configs != null && configs.length == 2) { + // + // visit the precompiled file to add it into the + // targets list (just like any other file if + // compiler doesn't support precompilation) + TargetMatcher matcher = new TargetMatcher(this, + _objDir, + new ProcessorConfiguration[]{configs[0]}, + linkerConfig, objectFiles, targets, versionInfo); + + matcher.visit(new File(prototype.getParent()), + prototype.getName()); + // + // only the configuration that uses the + // precompiled header gets added to the bidding list + biddingProcessors.addElement(configs[1]); + localConfigs = new ProcessorConfiguration[2]; + localConfigs[0] = configs[1]; + localConfigs[1] = config; + } + } + // + // if the compiler has a fileset + // then allow it to add its files + // to the set of potential targets + if (currentCompilerDef.hasFileSets()) { + TargetMatcher matcher = new TargetMatcher(this, _objDir, + localConfigs, linkerConfig, objectFiles, targets, + versionInfo); + currentCompilerDef.visitFiles(matcher); + } + biddingProcessors.addElement(config); + } + } + // + // add fallback compiler at the end + // + ProcessorConfiguration config = compilerDef.createConfiguration(this, + linkType, null, targetPlatform, versionInfo); + biddingProcessors.addElement(config); + ProcessorConfiguration[] bidders = new ProcessorConfiguration[biddingProcessors + .size()]; + biddingProcessors.copyInto(bidders); + // + // bid out the 's in the cctask + // + TargetMatcher matcher = new TargetMatcher(this, _objDir, bidders, + linkerConfig, objectFiles, targets, versionInfo); + compilerDef.visitFiles(matcher); + + if (outputFile != null && versionInfo != null) { + boolean isDebug = linkerConfig.isDebug(); + try { + linkerConfig.getLinker().addVersionFiles(versionInfo, linkType, + outputFile, + isDebug, + _objDir, matcher); + } catch(IOException ex) { + throw new BuildException(ex); + } + } + return targets; + } + /** + * Sets the default compiler adapter. Use the "name" attribute when the + * compiler is a supported compiler. + * + * @param classname + * fully qualified classname which implements CompilerAdapter + */ + public void setClassname(String classname) { + compilerDef.setClassname(classname); + linkerDef.setClassname(classname); + } + /** + * Sets the dataset for OS/390 builds. + * + * @param dataset + * The dataset to set + */ + public void setDataset(String dataset) { + this.dataset = dataset; + } + /** + * Enables or disables generation of debug info. + */ + public void setDebug(boolean debug) { + compilerDef.setDebug(debug); + linkerDef.setDebug(debug); + } + + /** + * Gets debug state. + * @return true if building for debugging + */ + public boolean getDebug() { + return compilerDef.getDebug(null, 0); + } + + /** + * Deprecated. + * + * Controls the depth of the dependency evaluation. Used to do a quick + * check of changes before a full build. + * + * Any negative value which will perform full dependency checking. Positive + * values will truncate dependency checking. A value of 0 will cause only + * those files that changed to be recompiled, a value of 1 which cause + * files that changed or that explicitly include a file that changed to be + * recompiled. + * + * Any non-negative value will cause a BuildException to be thrown before + * attempting a link or completing the task. + * + */ + public void setDependencyDepth(int depth) { + dependencyDepth = depth; + } + /** + * Enables generation of exception handling code + */ + public void setExceptions(boolean exceptions) { + compilerDef.setExceptions(exceptions); + } + /** + * Enables run-time type information. + */ + public void setRtti(boolean rtti) { + compilerDef.setRtti(rtti); + } + // public LinkType getLinkType() { + // return linkType; + // } + /** + * Enables or disables incremental linking. + * + * @param incremental + * new state + */ + public void setIncremental(boolean incremental) { + linkerDef.setIncremental(incremental); + } + /** + * Set use of libtool. + * + * If set to true, the "libtool " will be prepended to the command line for + * compatible processors + * + * @param libtool + * If true, use libtool. + */ + public void setLibtool(boolean libtool) { + compilerDef.setLibtool(libtool); + linkerDef.setLibtool(libtool); + } + /** + * Sets the output file type. Supported values "executable", "shared", and + * "static". Deprecated, specify outtype instead. + * + * @deprecated + */ + public void setLink(OutputTypeEnum outputType) { + linkType.setOutputType(outputType); + } + /** + * Enables or disables generation of multithreaded code + * + * @param multi + * If true, generated code may be multithreaded. + */ + public void setMultithreaded(boolean multi) { + compilerDef.setMultithreaded(multi); + } + // + // keep near duplicate comment at CompilerDef.setName in sync + // + /** + * Sets type of the default compiler and linker. + * + * Supported compilers + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler (creates .h, .cpp and moc_*.cpp files).
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+ * + */ + public void setName(CompilerEnum name) { + compilerDef.setName(name); + Processor compiler = compilerDef.getProcessor(); + Linker linker = compiler.getLinker(linkType); + linkerDef.setProcessor(linker); + } + /** + * Do not propagate old environment when new environment variables are + * specified. + */ + public void setNewenvironment(boolean newenv) { + compilerDef.setNewenvironment(newenv); + linkerDef.setNewenvironment(newenv); + } + /** + * Sets the destination directory for object files. + * + * Generally this should be a property expression that evaluates to + * distinct debug and release object file directories. + * + * @param dir + * object directory + */ + public void setObjdir(File dir) { + if (dir == null) { + throw new NullPointerException("dir"); + } + _objDir = dir; + } + /** + * Sets the output file name. If not specified, the task will only compile + * files and not attempt to link. If an extension is not specified, the + * task may use a system appropriate extension and prefix, for example, + * outfile="example" may result in "libexample.so" being created. + * + * @param outfile + * output file name + */ + public void setOutfile(File outfile) { + // + // if file name was empty, skip link step + // + if (outfile == null || outfile.toString().length() > 0) { + _outfile = outfile; + } + } + /** + * Specifies the name of a property to set with the physical filename that + * is produced by the linker + */ + public void setOutputFileProperty(String outputFileProperty) { + this.outputFileProperty = outputFileProperty; + } + /** + * Sets the output file type. Supported values "executable", "shared", and + * "static". + */ + public void setOuttype(OutputTypeEnum outputType) { + linkType.setOutputType(outputType); + } + + /** + * Gets output type. + * @return output type + */ + public String getOuttype() { + return linkType.getOutputType(); + } + + /** + * Sets the project. + */ + public void setProject(Project project) { + super.setProject(project); + compilerDef.setProject(project); + linkerDef.setProject(project); + } + /** + * If set to true, all files will be rebuilt. + * + * @param rebuildAll If true, all files will be rebuilt. If false, up to + * date files will not be rebuilt. + */ + public void setRebuild(boolean rebuildAll) { + compilerDef.setRebuild(rebuildAll); + linkerDef.setRebuild(rebuildAll); + } + /** + * If set to true, compilation errors will not stop the task until all + * files have been attempted. + * + * @param relentless + * If true, don't stop on the first compilation error + * + */ + public void setRelentless(boolean relentless) { + this.relentless = relentless; + } + /** + * Sets the type of runtime library, possible values "dynamic", "static". + */ + public void setRuntime(RuntimeType rtlType) { + linkType.setStaticRuntime((rtlType.getIndex() == 1)); + } + /** + * Sets the nature of the subsystem under which that the program will + * execute. + * + * Supported subsystems + * + * + * + * + * + * + * + * + * + * + * + * + *
guiGraphical User Interface
consoleCommand Line Console
otherOther
+ * + * @param subsystem + * subsystem + * @throws NullPointerException + * if subsystem is null + */ + public void setSubsystem(SubsystemEnum subsystem) { + if (subsystem == null) { + throw new NullPointerException("subsystem"); + } + linkType.setSubsystem(subsystem); + } + + /** + * Gets subsystem name. + * @return Subsystem name + */ + public String getSubsystem() { + return linkType.getSubsystem(); + } + + /** + * Enumerated attribute with the values "none", "severe", "default", + * "production", "diagnostic", and "aserror". + */ + public void setWarnings(WarningLevelEnum level) { + compilerDef.setWarnings(level); + } + + /** + * Indicates whether the build will continue + * even if there are compilation errors; defaults to true. + * @param fail if true halt the build on failure + */ + public void setFailonerror(boolean fail) { + failOnError = fail; + } + + /** + * Gets the failonerror flag. + * @return the failonerror flag + */ + public boolean getFailonerror() { + return failOnError; + } + /** + * Adds a target definition or reference (Non-functional prototype). + * + * @param target + * target + * @throws NullPointerException + * if compiler is null + */ + public void addConfiguredTarget(TargetDef target) { + if (target == null) { + throw new NullPointerException("target"); + } + target.setProject(getProject()); + targetPlatforms.addElement(target); + } + /** + * Adds a distributer definition or reference (Non-functional prototype). + * + * @param distributer + * distributer + * @throws NullPointerException + * if compiler is null + */ + public void addConfiguredDistributer(DistributerDef distributer) { + if (distributer == null) { + throw new NullPointerException("distributer"); + } + distributer.setProject(getProject()); + distributers.addElement(distributer); + } + /** + * Sets optimization. + * @param optimization + */ + public void setOptimize(OptimizationEnum optimization) { + compilerDef.setOptimize(optimization); + } + + /** + * Adds desriptive version information to be included in the + * generated file. The first active version info block will + * be used. + */ + public void addConfiguredVersioninfo(VersionInfo newVersionInfo) { + newVersionInfo.setProject(this.getProject()); + versionInfos.addElement(newVersionInfo); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.java b/src/main/java/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.java new file mode 100644 index 0000000..317d6c3 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CCTaskProgressMonitor.java @@ -0,0 +1,58 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.IOException; + +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +public class CCTaskProgressMonitor implements ProgressMonitor { + private ProcessorConfiguration config; + private TargetHistoryTable history; + private VersionInfo versionInfo; + private long lastCommit = -1; + public CCTaskProgressMonitor(TargetHistoryTable history, VersionInfo versionInfo) { + this.history = history; + this.versionInfo = versionInfo; + } + public void finish(ProcessorConfiguration config, boolean normal) { + long current = System.currentTimeMillis(); + if ((current - lastCommit) > 120000) { + try { + history.commit(); + lastCommit = System.currentTimeMillis(); + } catch (IOException ex) { + } + } + } + public void progress(String[] sources) { + history.update(config, sources, versionInfo); + long current = System.currentTimeMillis(); + if ((current - lastCommit) > 120000) { + try { + history.commit(); + lastCommit = current; + } catch (IOException ex) { + } + } + } + public void start(ProcessorConfiguration config) { + if (lastCommit < 0) { + lastCommit = System.currentTimeMillis(); + } + this.config = config; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CPUEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/CPUEnum.java new file mode 100644 index 0000000..512ef37 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CPUEnum.java @@ -0,0 +1,71 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumeration of cpu types. + * + * @author Curt Arnold + * + */ +public final class CPUEnum + extends EnumeratedAttribute { + + /** + * Constructor. + * + * Set by default to "pentium3" + * + * @see java.lang.Object#Object() + */ + public CPUEnum() { + setValue("pentium3"); + } + + /** + * Gets list of acceptable values. + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[] { + "i386", + "i486", + "i586", + "i686", + "pentium", + "pentium-mmx", + "pentiumpro", + "pentium2", + "pentium3", + "pentium4", + "k6", + "k6-2", + "k6-3", + "athlon", + "athlon-tbird", + "athlon-4", + "athlon-xp", + "athlon-mp", + "winchip-c6", + "winchip2", + "c3" }; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CUtil.java b/src/main/java/net/sf/antcontrib/cpptasks/CUtil.java new file mode 100644 index 0000000..482593e --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CUtil.java @@ -0,0 +1,523 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Hashtable; +import java.util.StringTokenizer; +import java.util.Vector; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.taskdefs.Execute; +import org.apache.tools.ant.taskdefs.LogStreamHandler; +import org.apache.tools.ant.types.Commandline; +import org.apache.tools.ant.types.Environment; +import org.apache.tools.ant.util.StringUtils; + +/** + * Some utilities used by the CC and Link tasks. + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public class CUtil { + /** + * A class that splits a white-space, comma-separated list into a String + * array. Used for task attributes. + */ + public static final class StringArrayBuilder { + private String[] _value; + public StringArrayBuilder(String value) { + // Split the defines up + StringTokenizer tokens = new StringTokenizer(value, ", "); + Vector vallist = new Vector(); + while (tokens.hasMoreTokens()) { + String val = tokens.nextToken().trim(); + if (val.length() == 0) { + continue; + } + vallist.addElement(val); + } + _value = new String[vallist.size()]; + vallist.copyInto(_value); + } + public String[] getValue() { + return _value; + } + } + /** + * Adds the elements of the array to the given vector + */ + public static void addAll(Vector dest, Object[] src) { + if (src == null) { + return; + } + for (int i = 0; i < src.length; i++) { + dest.addElement(src[i]); + } + } + /** + * Checks a array of names for non existent or non directory entries and + * nulls them out. + * + * @return Count of non-null elements + */ + public static int checkDirectoryArray(String[] names) { + int count = 0; + for (int i = 0; i < names.length; i++) { + if (names[i] != null) { + File dir = new File(names[i]); + if (dir.exists() && dir.isDirectory()) { + count++; + } else { + names[i] = null; + } + } + } + return count; + } + /** + * Extracts the basename of a file, removing the extension, if present + */ + public static String getBasename(File file) { + String path = file.getPath(); + // Remove the extension + String basename = file.getName(); + int pos = basename.lastIndexOf('.'); + if (pos != -1) { + basename = basename.substring(0, pos); + } + return basename; + } + /** + * Gets the parent directory for the executable file name using the current + * directory and system executable path + * + * @param exeName + * Name of executable such as "cl.exe" + * @return parent directory or null if not located + */ + public static File getExecutableLocation(String exeName) { + // + // must add current working directory to the + // from of the path from the "path" environment variable + File currentDir = new File(System.getProperty("user.dir")); + if (new File(currentDir, exeName).exists()) { + return currentDir; + } + File[] envPath = CUtil.getPathFromEnvironment("PATH", + File.pathSeparator); + for (int i = 0; i < envPath.length; i++) { + if (new File(envPath[i], exeName).exists()) { + return envPath[i]; + } + } + return null; + } + /** + * Extracts the parent of a file + */ + public static String getParentPath(String path) { + int pos = path.lastIndexOf(File.separator); + if (pos <= 0) { + return null; + } + return path.substring(0, pos); + } + /** + * Returns an array of File for each existing directory in the specified + * environment variable + * + * @param envVariable + * environment variable name such as "LIB" or "INCLUDE" + * @param delim + * delimitor used to separate parts of the path, typically ";" + * or ":" + * @return array of File's for each part that is an existing directory + */ + public static File[] getPathFromEnvironment(String envVariable, String delim) { + // OS/4000 does not support the env command. + if (System.getProperty("os.name").equals("OS/400")) + return new File[]{}; + Vector osEnv = Execute.getProcEnvironment(); + String match = envVariable.concat("="); + for (Enumeration e = osEnv.elements(); e.hasMoreElements();) { + String entry = ((String) e.nextElement()).trim(); + if (entry.length() > match.length()) { + String entryFrag = entry.substring(0, match.length()); + if (entryFrag.equalsIgnoreCase(match)) { + String path = entry.substring(match.length()); + return parsePath(path, delim); + } + } + } + File[] noPath = new File[0]; + return noPath; + } + /** + * Returns a relative path for the targetFile relative to the base + * directory. + * + * @param base + * base directory as returned by File.getCanonicalPath() + * @param targetFile + * target file + * @return relative path of target file. Returns targetFile if there were + * no commonalities between the base and the target + * + */ + public static String getRelativePath(final String base, final File targetFile) { + try { + // + // remove trailing file separator + // + String canonicalBase = base; + if (base.charAt(base.length() - 1) != File.separatorChar) { + canonicalBase = base + File.separatorChar; + } + // + // get canonical name of target + // + String canonicalTarget; + if (System.getProperty("os.name").equals("OS/400")) + canonicalTarget = targetFile.getPath(); + else + canonicalTarget = targetFile.getCanonicalPath(); + if (canonicalBase.startsWith(canonicalTarget + File.separatorChar)) { + canonicalTarget = canonicalTarget + File.separator; + } + if (canonicalTarget.equals(canonicalBase)) { + return "."; + } + // + // see if the prefixes are the same + // + if (canonicalBase.substring(0, 2).equals("\\\\")) { + // + // UNC file name, if target file doesn't also start with same + // server name, don't go there + int endPrefix = canonicalBase.indexOf('\\', 2); + String prefix1 = canonicalBase.substring(0, endPrefix); + String prefix2 = canonicalTarget.substring(0, endPrefix); + if (!prefix1.equals(prefix2)) { + return canonicalTarget; + } + } else { + if (canonicalBase.substring(1, 3).equals(":\\")) { + int endPrefix = 2; + String prefix1 = canonicalBase.substring(0, endPrefix); + String prefix2 = canonicalTarget.substring(0, endPrefix); + if (!prefix1.equals(prefix2)) { + return canonicalTarget; + } + } else { + if (canonicalBase.charAt(0) == '/') { + if (canonicalTarget.charAt(0) != '/') { + return canonicalTarget; + } + } + } + } + char separator = File.separatorChar; + int lastCommonSeparator = -1; + int minLength = canonicalBase.length(); + if (canonicalTarget.length() < minLength) { + minLength = canonicalTarget.length(); + } + // + // walk to the shorter of the two paths + // finding the last separator they have in common + for (int i = 0; i < minLength; i++) { + if (canonicalTarget.charAt(i) == canonicalBase.charAt(i)) { + if (canonicalTarget.charAt(i) == separator) { + lastCommonSeparator = i; + } + } else { + break; + } + } + StringBuffer relativePath = new StringBuffer(50); + // + // walk from the first difference to the end of the base + // adding "../" for each separator encountered + // + for (int i = lastCommonSeparator + 1; i < canonicalBase.length(); i++) { + if (canonicalBase.charAt(i) == separator) { + if (relativePath.length() > 0) { + relativePath.append(separator); + } + relativePath.append(".."); + } + } + if (canonicalTarget.length() > lastCommonSeparator + 1) { + if (relativePath.length() > 0) { + relativePath.append(separator); + } + relativePath.append(canonicalTarget.substring(lastCommonSeparator + 1)); + } + return relativePath.toString(); + } catch (IOException ex) { + } + return targetFile.toString(); + } + public static boolean isActive(Project p, String ifCond, String unlessCond) + throws BuildException { + if (ifCond != null) { + String ifValue = p.getProperty(ifCond); + if (ifValue == null) { + return false; + } else { + if (ifValue.equals("false") || ifValue.equals("no")) { + throw new BuildException("if condition \"" + ifCond + + "\" has suspicious value \"" + ifValue); + } + } + } + if (unlessCond != null) { + String unlessValue = p.getProperty(unlessCond); + if (unlessValue != null) { + if (unlessValue.equals("false") || unlessValue.equals("no")) { + throw new BuildException("unless condition \"" + unlessCond + + "\" has suspicious value \"" + unlessValue); + } + return false; + } + } + return true; + } + /** + * Parse a string containing directories into an File[] + * + * @param path + * path string, for example ".;c:\something\include" + * @param delim + * delimiter, typically ; or : + */ + public static File[] parsePath(String path, String delim) { + Vector libpaths = new Vector(); + int delimPos = 0; + for (int startPos = 0; startPos < path.length(); startPos = delimPos + + delim.length()) { + delimPos = path.indexOf(delim, startPos); + if (delimPos < 0) { + delimPos = path.length(); + } + // + // don't add an entry for zero-length paths + // + if (delimPos > startPos) { + String dirName = path.substring(startPos, delimPos); + File dir = new File(dirName); + if (dir.exists() && dir.isDirectory()) { + libpaths.addElement(dir); + } + } + } + File[] paths = new File[libpaths.size()]; + libpaths.copyInto(paths); + return paths; + } + /** + * This method is exposed so test classes can overload and test the + * arguments without actually spawning the compiler + */ + public static int runCommand(CCTask task, File workingDir, + String[] cmdline, boolean newEnvironment, Environment env) + throws BuildException { + try { + task.log(Commandline.toString(cmdline), Project.MSG_VERBOSE); + Execute exe = new Execute(new LogStreamHandler(task, + Project.MSG_INFO, Project.MSG_ERR)); + if (System.getProperty("os.name").equals("OS/390")) + exe.setVMLauncher(false); + exe.setAntRun(task.getProject()); + exe.setCommandline(cmdline); + exe.setWorkingDirectory(workingDir); + if (env != null) { + String[] environment = env.getVariables(); + if (environment != null) { + for (int i = 0; i < environment.length; i++) { + task.log("Setting environment variable: " + + environment[i], Project.MSG_VERBOSE); + } + } + exe.setEnvironment(environment); + } + exe.setNewenvironment(newEnvironment); + return exe.execute(); + } catch (java.io.IOException exc) { + throw new BuildException("Could not launch " + cmdline[0] + ": " + + exc, task.getLocation()); + } + } + /** + * Compares the contents of 2 arrays for equaliy. + */ + public static boolean sameList(Object[] a, Object[] b) { + if (a == null || b == null || a.length != b.length) { + return false; + } + for (int i = 0; i < a.length; i++) { + if (!a[i].equals(b[i])) { + return false; + } + } + return true; + } + /** + * Compares the contents of an array and a Vector for equality. + */ + public static boolean sameList(Vector v, Object[] a) { + if (v == null || a == null || v.size() != a.length) { + return false; + } + for (int i = 0; i < a.length; i++) { + Object o = a[i]; + if (!o.equals(v.elementAt(i))) { + return false; + } + } + return true; + } + /** + * Compares the contents of an array and a Vector for set equality. Assumes + * input array and vector are sets (i.e. no duplicate entries) + */ + public static boolean sameSet(Object[] a, Vector b) { + if (a == null || b == null || a.length != b.size()) { + return false; + } + if (a.length == 0) { + return true; + } + // Convert the array into a set + Hashtable t = new Hashtable(); + for (int i = 0; i < a.length; i++) { + t.put(a[i], a[i]); + } + for (int i = 0; i < b.size(); i++) { + Object o = b.elementAt(i); + if (t.remove(o) == null) { + return false; + } + } + return (t.size() == 0); + } + /** + * Converts a vector to a string array. + */ + public static String[] toArray(Vector src) { + String[] retval = new String[src.size()]; + src.copyInto(retval); + return retval; + } + /** + * Replaces any embedded quotes in the string so that the value can be + * placed in an attribute in an XML file + * + * @param attrValue + * value to be expressed + * @return equivalent attribute literal + * + */ + public static String xmlAttribEncode(String attrValue) { + StringBuffer buf = new StringBuffer (attrValue); + int quotePos; + + for (quotePos = -1; (quotePos = buf.indexOf("\"", quotePos + 1)) >= 0;) { + buf.deleteCharAt(quotePos); + buf.insert (quotePos, """); + quotePos += 5; + } + + for (quotePos = -1; (quotePos = buf.indexOf("<", quotePos + 1)) >= 0;) { + buf.deleteCharAt(quotePos); + buf.insert (quotePos, "<"); + quotePos += 3; + } + + for (quotePos = -1; (quotePos = buf.indexOf(">", quotePos + 1)) >= 0;) { + buf.deleteCharAt(quotePos); + buf.insert (quotePos, ">"); + quotePos += 3; + } + + return buf.toString(); + } + + public final static int FILETIME_EPSILON = 500; + /** + * Determines whether time1 is earlier than time2 + * to a degree that file system time truncation is not significant. + * + * @param time1 long first time value + * @param time2 long second time value + * @return boolean if first time value is earlier than second time value. + * If the values are within the rounding error of the file system return false. + */ + public static boolean isSignificantlyBefore(long time1, long time2) { + return (time1 + FILETIME_EPSILON) < time2; + } + /** + * Determines whether time1 is later than time2 + * to a degree that file system time truncation is not significant. + * + * @param time1 long first time value + * @param time2 long second time value + * @return boolean if first time value is later than second time value. + * If the values are within the rounding error of the file system return false. + */ + public static boolean isSignificantlyAfter(long time1, long time2) { + return time1 > (time2 + FILETIME_EPSILON); + } + + + public static String toWindowsPath(final String path) { + if (File.separatorChar != '\\' && path.indexOf(File.separatorChar) != -1) { + return StringUtils.replace(path, File.separator, "\\"); + } + return path; + } + + public static String toUnixPath(final String path) { + if (File.separatorChar != '/' && path.indexOf(File.separatorChar) != -1) { + return StringUtils.replace(path, File.separator, "/"); + } + return path; + } + + /** + * Determines if source file has a system path, + * that is part of the compiler or platform. + * @param source source, may not be null. + * @return true is source file appears to be system library + * and its path should be discarded. + */ + public static boolean isSystemPath(final File source) { + String lcPath = source.getAbsolutePath().toLowerCase(java.util.Locale.US); + return lcPath.indexOf("platformsdk") != -1 + || lcPath.indexOf("microsoft") != -1 || + lcPath == "/usr/include" || + lcPath == "/usr/lib" || + lcPath == "/usr/local/include" || + lcPath == "/usr/local/lib"; + } + + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java b/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java new file mode 100644 index 0000000..313d3ac --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CompilerDef.java @@ -0,0 +1,502 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.util.Enumeration; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.Compiler; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +import net.sf.antcontrib.cpptasks.types.CompilerArgument; +import net.sf.antcontrib.cpptasks.types.ConditionalPath; +import net.sf.antcontrib.cpptasks.types.DefineSet; +import net.sf.antcontrib.cpptasks.types.IncludePath; +import net.sf.antcontrib.cpptasks.types.SystemIncludePath; +import net.sf.antcontrib.cpptasks.types.UndefineArgument; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +/** + * A compiler definition. compiler elements may be placed either as children of + * a cc element or the project element. A compiler element with an id attribute + * may be referenced from compiler elements with refid or extends attributes. + * + * @author Adam Murdoch + */ +public final class CompilerDef extends ProcessorDef { + /** The source file sets. */ + private final Vector defineSets = new Vector(); + private Boolean exceptions; + private Boolean rtti; + private final Vector includePaths = new Vector(); + private Boolean multithreaded; + private final Vector precompileDefs = new Vector(); + private final Vector sysIncludePaths = new Vector(); + private OptimizationEnum optimization; + private int warnings = -1; + public CompilerDef() { + } + /** + * Adds a compiler command-line arg. + */ + public void addConfiguredCompilerArg(CompilerArgument arg) { + if (isReference()) { + throw noChildrenAllowed(); + } + addConfiguredProcessorArg(arg); + } + /** + * Adds a compiler command-line arg. + */ + public void addConfiguredCompilerParam(CompilerParam param) { + if (isReference()) { + throw noChildrenAllowed(); + } + addConfiguredProcessorParam(param); + } + /** + * Adds a defineset. + */ + public void addConfiguredDefineset(DefineSet defs) { + if (defs == null) { + throw new NullPointerException("defs"); + } + if (isReference()) { + throw noChildrenAllowed(); + } + defineSets.addElement(defs); + } + /** + * Creates an include path. + */ + public IncludePath createIncludePath() { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + throw noChildrenAllowed(); + } + IncludePath path = new IncludePath(p); + includePaths.addElement(path); + return path; + } + /** + * Specifies precompilation prototype file and exclusions. + * + */ + public PrecompileDef createPrecompile() throws BuildException { + Project p = getProject(); + if (isReference()) { + throw noChildrenAllowed(); + } + PrecompileDef precomp = new PrecompileDef(); + precomp.setProject(p); + precompileDefs.addElement(precomp); + return precomp; + } + /** + * Creates a system include path. Locations and timestamps of files located + * using the system include paths are not used in dependency analysis. + * + * + * Standard include locations should not be specified. The compiler + * adapters should recognized the settings from the appropriate environment + * variables or configuration files. + */ + public SystemIncludePath createSysIncludePath() { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + throw noChildrenAllowed(); + } + SystemIncludePath path = new SystemIncludePath(p); + sysIncludePaths.addElement(path); + return path; + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + public UndefineArgument[] getActiveDefines() { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException( + "project must be set before this call"); + } + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getActiveDefines(); + } + Vector actives = new Vector(); + for (int i = 0; i < defineSets.size(); i++) { + DefineSet currentSet = (DefineSet) defineSets.elementAt(i); + UndefineArgument[] defines = currentSet.getDefines(); + for (int j = 0; j < defines.length; j++) { + if (defines[j].isActive(p)) { + actives.addElement(defines[j]); + } + } + } + UndefineArgument[] retval = new UndefineArgument[actives.size()]; + actives.copyInto(retval); + return retval; + } + /** + * Returns the compiler-specific include path. + */ + public String[] getActiveIncludePaths() { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getActiveIncludePaths(); + } + return getActivePaths(includePaths); + } + private String[] getActivePaths(Vector paths) { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project not set"); + } + Vector activePaths = new Vector(paths.size()); + for (int i = 0; i < paths.size(); i++) { + ConditionalPath path = (ConditionalPath) paths.elementAt(i); + if (path.isActive(p)) { + String[] pathEntries = path.list(); + for (int j = 0; j < pathEntries.length; j++) { + activePaths.addElement(pathEntries[j]); + } + } + } + String[] pathNames = new String[activePaths.size()]; + activePaths.copyInto(pathNames); + return pathNames; + } + public PrecompileDef getActivePrecompile(CompilerDef ccElement) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getActivePrecompile(ccElement); + } + PrecompileDef current = null; + Enumeration iter = precompileDefs.elements(); + while (iter.hasMoreElements()) { + current = (PrecompileDef) iter.nextElement(); + if (current.isActive()) { + return current; + } + } + CompilerDef extendedDef = (CompilerDef) getExtends(); + if (extendedDef != null) { + current = extendedDef.getActivePrecompile(null); + if (current != null) { + return current; + } + } + if (ccElement != null && getInherit()) { + return ccElement.getActivePrecompile(null); + } + return null; + } + public String[] getActiveSysIncludePaths() { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getActiveSysIncludePaths(); + } + return getActivePaths(sysIncludePaths); + } + public final boolean getExceptions(CompilerDef[] defaultProviders, int index) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getExceptions(defaultProviders, index); + } + if (exceptions != null) { + return exceptions.booleanValue(); + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getExceptions(defaultProviders, + index + 1); + } + } + return false; + } + public final Boolean getRtti(CompilerDef[] defaultProviders, int index) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getRtti(defaultProviders, index); + } + if (rtti != null) { + return rtti; + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getRtti(defaultProviders, + index + 1); + } + } + return null; + } + public final OptimizationEnum getOptimization(CompilerDef[] defaultProviders, int index) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getOptimization(defaultProviders, index); + } + if (optimization != null) { + return optimization; + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getOptimization(defaultProviders, + index + 1); + } + } + return null; + } + + public boolean getMultithreaded(CompilerDef[] defaultProviders, int index) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getMultithreaded(defaultProviders, index); + } + if (multithreaded != null) { + return multithreaded.booleanValue(); + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getMultithreaded( + defaultProviders, index + 1); + } + } + return true; + } + public Processor getProcessor() { + Processor processor = super.getProcessor(); + if (processor == null) { + processor = GccCCompiler.getInstance(); + } + if (getLibtool() && processor instanceof CommandLineCompiler) { + CommandLineCompiler compiler = (CommandLineCompiler) processor; + processor = compiler.getLibtoolCompiler(); + } + return processor; + } + public int getWarnings(CompilerDef[] defaultProviders, int index) { + if (isReference()) { + return ((CompilerDef) getCheckedRef(CompilerDef.class, + "CompilerDef")).getWarnings(defaultProviders, index); + } + if (warnings == -1) { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getWarnings(defaultProviders, + index + 1); + } + } + return warnings; + } + /** + * Sets the default compiler adapter. Use the "name" attribute when the + * compiler is a supported compiler. + * + * @param classname + * fully qualified classname which implements CompilerAdapter + */ + public void setClassname(String classname) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + super.setClassname(classname); + Processor proc = getProcessor(); + if (!(proc instanceof Compiler)) { + throw new BuildException(classname + " does not implement Compiler"); + } + } + /** + * Enables or disables exception support. + * + * @param exceptions + * if true, exceptions are supported. + * + */ + public void setExceptions(boolean exceptions) { + if (isReference()) { + throw tooManyAttributes(); + } + this.exceptions = booleanValueOf(exceptions); + } + + /** + * Enables or disables run-time type information. + * + * @param rtti + * if true, run-time type information is supported. + * + */ + public void setRtti(boolean rtti) { + if (isReference()) { + throw tooManyAttributes(); + } + this.rtti = booleanValueOf(rtti); + } + + /** + * Enables or disables generation of multithreaded code. Unless specified, + * multithreaded code generation is enabled. + * + * @param multithreaded + * If true, generated code may be multithreaded. + */ + public void setMultithreaded(boolean multithreaded) { + if (isReference()) { + throw tooManyAttributes(); + } + this.multithreaded = booleanValueOf(multithreaded); + } + /** + * Sets compiler type. + * + * + * Supported compilers + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU Fortran compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler
mocQt meta-object compiler
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+ * + */ + public void setName(CompilerEnum name) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + Compiler compiler = name.getCompiler(); + setProcessor(compiler); + } + protected void setProcessor(Processor proc) throws BuildException { + try { + super.setProcessor((Compiler) proc); + } catch (ClassCastException ex) { + throw new BuildException(ex); + } + } + /** + * Enumerated attribute with the values "none", "severe", "default", + * "production", "diagnostic", and "aserror". + */ + public void setWarnings(WarningLevelEnum level) { + warnings = level.getIndex(); + } + /** + * Sets optimization level. + * + * @param value optimization level + */ + public void setOptimize(OptimizationEnum value) { + if (isReference()) { + throw tooManyAttributes(); + } + this.optimization = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CompilerEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/CompilerEnum.java new file mode 100644 index 0000000..0233050 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CompilerEnum.java @@ -0,0 +1,262 @@ +/* + * + * Copyright 2002-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import net.sf.antcontrib.cpptasks.arm.ADSCCompiler; +import net.sf.antcontrib.cpptasks.borland.BorlandCCompiler; +import net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler; +import net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranCompiler; +import net.sf.antcontrib.cpptasks.compiler.Compiler; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCCompiler; +import net.sf.antcontrib.cpptasks.devstudio.DevStudio2005CCompiler; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioMIDLCompiler; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioResourceCompiler; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +import net.sf.antcontrib.cpptasks.gcc.WindresResourceCompiler; +import net.sf.antcontrib.cpptasks.hp.aCCCompiler; +import net.sf.antcontrib.cpptasks.ibm.VisualAgeCCompiler; +import net.sf.antcontrib.cpptasks.intel.IntelLinux32CCompiler; +import net.sf.antcontrib.cpptasks.intel.IntelLinux64CCompiler; +import net.sf.antcontrib.cpptasks.intel.IntelWin32CCompiler; +import net.sf.antcontrib.cpptasks.intel.IntelWin64CCompiler; +import net.sf.antcontrib.cpptasks.mozilla.XpidlCompiler; +import net.sf.antcontrib.cpptasks.os390.OS390CCompiler; +import net.sf.antcontrib.cpptasks.os400.IccCompiler; +import net.sf.antcontrib.cpptasks.sun.C89CCompiler; +import net.sf.antcontrib.cpptasks.sun.ForteCCCompiler; +import net.sf.antcontrib.cpptasks.ti.ClxxCCompiler; +import net.sf.antcontrib.cpptasks.trolltech.MetaObjectCompiler; +import net.sf.antcontrib.cpptasks.trolltech.UserInterfaceCompiler; +import net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCCompiler; +import net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranCompiler; + +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * Enumeration of supported compilers + * + * Supported compilers + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
msvc8Microsoft Visual C++ 8
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
cl6xTI TMS320C6000 Optimizing Compiler
cl55TI TMS320C55x Optimizing C/C++ Compiler
armcppARM 32-bit C++ compiler
armccARM 32-bit C compiler
tcppARM 16-bit C++ compiler
tccARM 16-bit C compiler
uicQt user interface compiler
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler (experimental)
wflOpenWatcom FORTRAN compiler (experimental)
windresGNU windres resource compiler
+ * + * @author Curt Arnold + * + */ +public class CompilerEnum extends EnumeratedAttribute { + private final static ProcessorEnumValue[] compilers = new ProcessorEnumValue[]{ + new ProcessorEnumValue("gcc", GccCCompiler.getInstance()), + new ProcessorEnumValue("g++", GccCCompiler.getGppInstance()), + new ProcessorEnumValue("c++", GccCCompiler.getCppInstance()), + new ProcessorEnumValue("g77", GccCCompiler.getG77Instance()), + new ProcessorEnumValue("msvc", DevStudioCCompiler.getInstance()), + new ProcessorEnumValue("msvc8", DevStudio2005CCompiler.getInstance()), + new ProcessorEnumValue("bcc", BorlandCCompiler.getInstance()), + new ProcessorEnumValue("msrc", DevStudioResourceCompiler + .getInstance()), + new ProcessorEnumValue("brc", BorlandResourceCompiler.getInstance()), + new ProcessorEnumValue("df", CompaqVisualFortranCompiler + .getInstance()), + new ProcessorEnumValue("midl", DevStudioMIDLCompiler.getInstance()), + new ProcessorEnumValue("icl", IntelWin32CCompiler.getInstance()), + new ProcessorEnumValue("ecl", IntelWin64CCompiler.getInstance()), + new ProcessorEnumValue("icc", IntelLinux32CCompiler.getInstance()), + new ProcessorEnumValue("ecc", IntelLinux64CCompiler.getInstance()), + new ProcessorEnumValue("CC", ForteCCCompiler.getInstance()), + new ProcessorEnumValue("aCC", aCCCompiler.getInstance()), + new ProcessorEnumValue("os390", OS390CCompiler.getInstance()), + new ProcessorEnumValue("os400", IccCompiler.getInstance()), + new ProcessorEnumValue("sunc89", C89CCompiler.getInstance()), + new ProcessorEnumValue("xlC", VisualAgeCCompiler.getInstance()), + new ProcessorEnumValue("cl6x", ClxxCCompiler.getCl6xInstance()), + new ProcessorEnumValue("cl55", ClxxCCompiler.getCl55Instance()), + new ProcessorEnumValue("armcc", ADSCCompiler.getArmCC()), + new ProcessorEnumValue("armcpp", ADSCCompiler.getArmCpp()), + new ProcessorEnumValue("tcc", ADSCCompiler.getThumbCC()), + new ProcessorEnumValue("tcpp", ADSCCompiler.getThumbCpp()), + // GCC Cross Compilers + new ProcessorEnumValue( + "sparc-sun-solaris2-gcc", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler + .getInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-g++", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler + .getGppInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-c++", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler + .getCppInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-g77", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler + .getG77Instance()), + // GCC Cross Compilers + new ProcessorEnumValue("gcc-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler + .getInstance()), + new ProcessorEnumValue("g++-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler + .getGppInstance()), + new ProcessorEnumValue("c++-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler + .getCppInstance()), + new ProcessorEnumValue("g77-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccCCompiler + .getG77Instance()), + new ProcessorEnumValue("uic", UserInterfaceCompiler.getInstance()), + new ProcessorEnumValue("moc", MetaObjectCompiler.getInstance()), + new ProcessorEnumValue("xpidl", XpidlCompiler.getInstance()), + new ProcessorEnumValue("wcl", OpenWatcomCCompiler.getInstance()), + new ProcessorEnumValue("wfl", OpenWatcomFortranCompiler.getInstance()), + new ProcessorEnumValue("windres", WindresResourceCompiler.getInstance()) + }; + public Compiler getCompiler() { + return (Compiler) compilers[getIndex()].getProcessor(); + } + public String[] getValues() { + return ProcessorEnumValue.getValues(compilers); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/CompilerParam.java b/src/main/java/net/sf/antcontrib/cpptasks/CompilerParam.java new file mode 100644 index 0000000..8a15a77 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/CompilerParam.java @@ -0,0 +1,33 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +/******************************************************************************* + * Place class description here. + * + * @author inger + * @author + * + * @since + ******************************************************************************/ +public class CompilerParam extends ProcessorParam { + public CompilerParam() { + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/DependencyInfo.java b/src/main/java/net/sf/antcontrib/cpptasks/DependencyInfo.java new file mode 100644 index 0000000..a04105f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/DependencyInfo.java @@ -0,0 +1,86 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.util.Vector; +/** + * @author Curt Arnold + */ +public final class DependencyInfo { + /** + * Last modified time of this file or anything that it depends on. + * + * Not persisted since almost any change could invalidate it. Initialized + * to long.MIN_VALUE on construction. + */ + private long compositeLastModified; + private/* final */String includePathIdentifier; + private/* final */String[] includes; + private/* final */String source; + private/* final */long sourceLastModified; + private/* final */String[] sysIncludes; + public DependencyInfo(String includePathIdentifier, String source, + long sourceLastModified, Vector includes, Vector sysIncludes) { + if (source == null) { + throw new NullPointerException("source"); + } + if (includePathIdentifier == null) { + throw new NullPointerException("includePathIdentifier"); + } + this.source = source; + this.sourceLastModified = sourceLastModified; + this.includePathIdentifier = includePathIdentifier; + this.includes = new String[includes.size()]; + if (includes.size() == 0) { + compositeLastModified = sourceLastModified; + } else { + includes.copyInto(this.includes); + compositeLastModified = Long.MIN_VALUE; + } + this.sysIncludes = new String[sysIncludes.size()]; + sysIncludes.copyInto(this.sysIncludes); + } + /** + * Returns the latest modification date of the source or anything that it + * depends on. + * + * @return the composite lastModified time, returns Long.MIN_VALUE if not + * set + */ + public long getCompositeLastModified() { + return compositeLastModified; + } + public String getIncludePathIdentifier() { + return includePathIdentifier; + } + public String[] getIncludes() { + String[] includesClone = (String[]) includes.clone(); + return includesClone; + } + public String getSource() { + return source; + } + public long getSourceLastModified() { + return sourceLastModified; + } + public String[] getSysIncludes() { + String[] sysIncludesClone = (String[]) sysIncludes.clone(); + return sysIncludesClone; + } + public void setCompositeLastModified(long lastMod) { + compositeLastModified = lastMod; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/DependencyTable.java b/src/main/java/net/sf/antcontrib/cpptasks/DependencyTable.java new file mode 100644 index 0000000..48a7278 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/DependencyTable.java @@ -0,0 +1,610 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.UnsupportedEncodingException; +import java.util.Enumeration; +import java.util.Hashtable; +import java.util.Vector; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.parsers.SAXParser; +import javax.xml.parsers.SAXParserFactory; +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.xml.sax.Attributes; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.DefaultHandler; +/** + * @author Curt Arnold + */ +public final class DependencyTable { + /** + * This class handles populates the TargetHistory hashtable in response to + * SAX parse events + */ + private class DependencyTableHandler extends DefaultHandler { + private File baseDir; + private final DependencyTable dependencyTable; + private String includePath; + private Vector includes; + private String source; + private long sourceLastModified; + private Vector sysIncludes; + /** + * Constructor + * + * @param history + * hashtable of TargetHistory keyed by output name + * @param outputFiles + * existing files in output directory + */ + private DependencyTableHandler(DependencyTable dependencyTable, + File baseDir) { + this.dependencyTable = dependencyTable; + this.baseDir = baseDir; + includes = new Vector(); + sysIncludes = new Vector(); + source = null; + } + public void endElement(String namespaceURI, String localName, + String qName) throws SAXException { + // + // if then + // create Dependency object and add to hashtable + // if corresponding source file exists and + // has the same timestamp + // + if (qName.equals("source")) { + if (source != null && includePath != null) { + File existingFile = new File(baseDir, source); + // + // if the file exists and the time stamp is right + // preserve the dependency info + if (existingFile.exists()) { + // + // would have expected exact matches + // but was seeing some unexpected difference by + // a few tens of milliseconds, as long + // as the times are within a second + long existingLastModified = existingFile.lastModified(); + if (!CUtil.isSignificantlyAfter(existingLastModified, sourceLastModified) && + !CUtil.isSignificantlyBefore(existingLastModified, sourceLastModified)) { + DependencyInfo dependInfo = new DependencyInfo( + includePath, source, sourceLastModified, + includes, sysIncludes); + dependencyTable.putDependencyInfo(source, + dependInfo); + } + } + source = null; + includes.setSize(0); + } + } else { + // + // this causes any elements outside the + // scope of an to be discarded + // + if (qName.equals("includePath")) { + includePath = null; + } + } + } + /** + * startElement handler + */ + public void startElement(String namespaceURI, String localName, + String qName, Attributes atts) throws SAXException { + // + // if includes, then add relative file name to vector + // + if (qName.equals("include")) { + includes.addElement(atts.getValue("file")); + } else { + if (qName.equals("sysinclude")) { + sysIncludes.addElement(atts.getValue("file")); + } else { + // + // if source then + // capture source file name, + // modification time and reset includes vector + // + if (qName.equals("source")) { + source = atts.getValue("file"); + sourceLastModified = Long.parseLong(atts + .getValue("lastModified"), 16); + includes.setSize(0); + sysIncludes.setSize(0); + } else { + if (qName.equals("includePath")) { + includePath = atts.getValue("signature"); + } + } + } + } + } + } + public abstract class DependencyVisitor { + /** + * Previews all the children of this source file. + * + * May be called multiple times as DependencyInfo's for children are + * filled in. + * + * @return true to continue towards recursion into included files + */ + public abstract boolean preview(DependencyInfo parent, + DependencyInfo[] children); + /** + * Called if the dependency depth exhausted the stack. + */ + public abstract void stackExhausted(); + /** + * Visits the dependency info. + * + * @return true to continue towards recursion into included files + */ + public abstract boolean visit(DependencyInfo dependInfo); + } + public class TimestampChecker extends DependencyVisitor { + private boolean noNeedToRebuild; + private long outputLastModified; + private boolean rebuildOnStackExhaustion; + public TimestampChecker(final long outputLastModified, + boolean rebuildOnStackExhaustion) { + this.outputLastModified = outputLastModified; + noNeedToRebuild = true; + this.rebuildOnStackExhaustion = rebuildOnStackExhaustion; + } + public boolean getMustRebuild() { + return !noNeedToRebuild; + } + public boolean preview(DependencyInfo parent, DependencyInfo[] children) { + int withCompositeTimes = 0; + long parentCompositeLastModified = parent.getSourceLastModified(); + for (int i = 0; i < children.length; i++) { + if (children[i] != null) { + // + // expedient way to determine if a child forces us to + // rebuild + // + visit(children[i]); + long childCompositeLastModified = children[i] + .getCompositeLastModified(); + if (childCompositeLastModified != Long.MIN_VALUE) { + withCompositeTimes++; + if (childCompositeLastModified > parentCompositeLastModified) { + parentCompositeLastModified = childCompositeLastModified; + } + } + } + } + if (withCompositeTimes == children.length) { + parent.setCompositeLastModified(parentCompositeLastModified); + } + // + // may have been changed by an earlier call to visit() + // + return noNeedToRebuild; + } + public void stackExhausted() { + if (rebuildOnStackExhaustion) { + noNeedToRebuild = false; + } + } + public boolean visit(DependencyInfo dependInfo) { + if (noNeedToRebuild) { + if (CUtil.isSignificantlyAfter(dependInfo.getSourceLastModified(), outputLastModified) + || CUtil.isSignificantlyAfter(dependInfo.getCompositeLastModified(), outputLastModified)) { + noNeedToRebuild = false; + } + } + // + // only need to process the children if + // it has not yet been determined whether + // we need to rebuild and the composite modified time + // has not been determined for this file + return noNeedToRebuild + && dependInfo.getCompositeLastModified() == Long.MIN_VALUE; + } + } + private/* final */File baseDir; + private String baseDirPath; + /** + * a hashtable of DependencyInfo[] keyed by output file name + */ + private final Hashtable dependencies = new Hashtable(); + /** The file the cache was loaded from. */ + private/* final */File dependenciesFile; + /** Flag indicating whether the cache should be written back to file. */ + private boolean dirty; + /** + * Creates a target history table from dependencies.xml in the prject + * directory, if it exists. Otherwise, initializes the dependencies empty. + * + * @param baseDir + * output directory for task + */ + public DependencyTable(File baseDir) { + if (baseDir == null) { + throw new NullPointerException("baseDir"); + } + this.baseDir = baseDir; + try { + baseDirPath = baseDir.getCanonicalPath(); + } catch (IOException ex) { + baseDirPath = baseDir.toString(); + } + dirty = false; + // + // load any existing dependencies from file + dependenciesFile = new File(baseDir, "dependencies.xml"); + } + public void commit(CCTask task) { + // + // if not dirty, no need to update file + // + if (dirty) { + // + // walk through dependencies to get vector of include paths + // identifiers + // + Vector includePaths = getIncludePaths(); + // + // + // write dependency file + // + try { + FileOutputStream outStream = new FileOutputStream( + dependenciesFile); + OutputStreamWriter streamWriter; + // + // Early VM's may not have UTF-8 support + // fallback to default code page which + // "should" be okay unless there are + // non ASCII file names + String encodingName = "UTF-8"; + try { + streamWriter = new OutputStreamWriter(outStream, "UTF-8"); + } catch (UnsupportedEncodingException ex) { + streamWriter = new OutputStreamWriter(outStream); + encodingName = streamWriter.getEncoding(); + } + BufferedWriter writer = new BufferedWriter(streamWriter); + writer.write("\n"); + writer.write("\n"); + StringBuffer buf = new StringBuffer(); + Enumeration includePathEnum = includePaths.elements(); + while (includePathEnum.hasMoreElements()) { + writeIncludePathDependencies((String) includePathEnum + .nextElement(), writer, buf); + } + writer.write("\n"); + writer.close(); + dirty = false; + } catch (IOException ex) { + task.log("Error writing " + dependenciesFile.toString() + ":" + + ex.toString()); + } + } + } + /** + * Returns an enumerator of DependencyInfo's + */ + public Enumeration elements() { + return dependencies.elements(); + } + /** + * This method returns a DependencyInfo for the specific source file and + * include path identifier + * + */ + public DependencyInfo getDependencyInfo(String sourceRelativeName, + String includePathIdentifier) { + DependencyInfo dependInfo = null; + DependencyInfo[] dependInfos = (DependencyInfo[]) dependencies + .get(sourceRelativeName); + if (dependInfos != null) { + for (int i = 0; i < dependInfos.length; i++) { + dependInfo = dependInfos[i]; + if (dependInfo.getIncludePathIdentifier().equals( + includePathIdentifier)) { + return dependInfo; + } + } + } + return null; + } + private Vector getIncludePaths() { + Vector includePaths = new Vector(); + DependencyInfo[] dependInfos; + Enumeration dependenciesEnum = dependencies.elements(); + while (dependenciesEnum.hasMoreElements()) { + dependInfos = (DependencyInfo[]) dependenciesEnum.nextElement(); + for (int i = 0; i < dependInfos.length; i++) { + DependencyInfo dependInfo = dependInfos[i]; + boolean matchesExisting = false; + final String dependIncludePath = dependInfo + .getIncludePathIdentifier(); + Enumeration includePathEnum = includePaths.elements(); + while (includePathEnum.hasMoreElements()) { + if (dependIncludePath.equals(includePathEnum.nextElement())) { + matchesExisting = true; + break; + } + } + if (!matchesExisting) { + includePaths.addElement(dependIncludePath); + } + } + } + return includePaths; + } + public void load() throws IOException, ParserConfigurationException, + SAXException { + dependencies.clear(); + if (dependenciesFile.exists()) { + SAXParserFactory factory = SAXParserFactory.newInstance(); + factory.setValidating(false); + SAXParser parser = factory.newSAXParser(); + parser.parse(dependenciesFile, new DependencyTableHandler(this, + baseDir)); + dirty = false; + } + } + /** + * Determines if the specified target needs to be rebuilt. + * + * This task may result in substantial IO as files are parsed to determine + * their dependencies + */ + public boolean needsRebuild(CCTask task, TargetInfo target, + int dependencyDepth) { + // look at any files where the compositeLastModified + // is not known, but the includes are known + // + boolean mustRebuild = false; + CompilerConfiguration compiler = (CompilerConfiguration) target + .getConfiguration(); + String includePathIdentifier = compiler.getIncludePathIdentifier(); + File[] sources = target.getSources(); + DependencyInfo[] dependInfos = new DependencyInfo[sources.length]; + long outputLastModified = target.getOutput().lastModified(); + // + // try to solve problem using existing dependency info + // (not parsing any new files) + // + DependencyInfo[] stack = new DependencyInfo[50]; + boolean rebuildOnStackExhaustion = true; + if (dependencyDepth >= 0) { + if (dependencyDepth < 50) { + stack = new DependencyInfo[dependencyDepth]; + } + rebuildOnStackExhaustion = false; + } + TimestampChecker checker = new TimestampChecker(outputLastModified, + rebuildOnStackExhaustion); + for (int i = 0; i < sources.length && !mustRebuild; i++) { + File source = sources[i]; + String relative = CUtil.getRelativePath(baseDirPath, source); + DependencyInfo dependInfo = getDependencyInfo(relative, + includePathIdentifier); + if (dependInfo == null) { + task.log("Parsing " + relative, Project.MSG_VERBOSE); + dependInfo = parseIncludes(task, compiler, source); + } + walkDependencies(task, dependInfo, compiler, stack, checker); + mustRebuild = checker.getMustRebuild(); + } + return mustRebuild; + } + public DependencyInfo parseIncludes(CCTask task, + CompilerConfiguration compiler, File source) { + DependencyInfo dependInfo = compiler.parseIncludes(task, baseDir, + source); + String relativeSource = CUtil.getRelativePath(baseDirPath, source); + putDependencyInfo(relativeSource, dependInfo); + return dependInfo; + } + private void putDependencyInfo(String key, DependencyInfo dependInfo) { + // + // optimistic, add new value + // + DependencyInfo[] old = (DependencyInfo[]) dependencies.put(key, + new DependencyInfo[]{dependInfo}); + dirty = true; + // + // something was already there + // + if (old != null) { + // + // see if the include path matches a previous entry + // if so replace it + String includePathIdentifier = dependInfo + .getIncludePathIdentifier(); + for (int i = 0; i < old.length; i++) { + DependencyInfo oldDepend = old[i]; + if (oldDepend.getIncludePathIdentifier().equals( + includePathIdentifier)) { + old[i] = dependInfo; + dependencies.put(key, old); + return; + } + } + // + // no match prepend the new entry to the array + // of dependencies for the file + DependencyInfo[] combined = new DependencyInfo[old.length + 1]; + combined[0] = dependInfo; + for (int i = 0; i < old.length; i++) { + combined[i + 1] = old[i]; + } + dependencies.put(key, combined); + } + return; + } + public void walkDependencies(CCTask task, DependencyInfo dependInfo, + CompilerConfiguration compiler, DependencyInfo[] stack, + DependencyVisitor visitor) throws BuildException { + // + // visit this node + // if visit returns true then + // visit the referenced include and sysInclude dependencies + // + if (visitor.visit(dependInfo)) { + // + // find first null entry on stack + // + int stackPosition = -1; + for (int i = 0; i < stack.length; i++) { + if (stack[i] == null) { + stackPosition = i; + stack[i] = dependInfo; + break; + } else { + // + // if we have appeared early in the calling history + // then we didn't exceed the criteria + if (stack[i] == dependInfo) { + return; + } + } + } + if (stackPosition == -1) { + visitor.stackExhausted(); + return; + } + // + // locate dependency infos + // + String[] includes = dependInfo.getIncludes(); + String includePathIdentifier = compiler.getIncludePathIdentifier(); + DependencyInfo[] includeInfos = new DependencyInfo[includes.length]; + for (int i = 0; i < includes.length; i++) { + DependencyInfo includeInfo = getDependencyInfo(includes[i], + includePathIdentifier); + includeInfos[i] = includeInfo; + } + // + // preview with only the already available dependency infos + // + if (visitor.preview(dependInfo, includeInfos)) { + // + // now need to fill in the missing DependencyInfos + // + int missingCount = 0; + for (int i = 0; i < includes.length; i++) { + if (includeInfos[i] == null) { + missingCount++; + task.log("Parsing " + includes[i], Project.MSG_VERBOSE); + // + // If the include filepath is relative + // then anchor it the base directory + File src = new File(includes[i]); + if (!src.isAbsolute()) { + src = new File(baseDir, includes[i]); + } + DependencyInfo includeInfo = parseIncludes(task, + compiler, src); + includeInfos[i] = includeInfo; + } + } + // + // if it passes a review the second time + // then recurse into all the children + if (missingCount == 0 + || visitor.preview(dependInfo, includeInfos)) { + // + // recurse into + // + for (int i = 0; i < includeInfos.length; i++) { + DependencyInfo includeInfo = includeInfos[i]; + walkDependencies(task, includeInfo, compiler, stack, + visitor); + } + } + } + stack[stackPosition] = null; + } + } + private void writeDependencyInfo(BufferedWriter writer, StringBuffer buf, + DependencyInfo dependInfo) throws IOException { + String[] includes = dependInfo.getIncludes(); + String[] sysIncludes = dependInfo.getSysIncludes(); + // + // if the includes have not been evaluted then + // it is not worth our time saving it + // and trying to distiguish between files with + // no dependencies and those with undetermined dependencies + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + for (int i = 0; i < includes.length; i++) { + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + } + for (int i = 0; i < sysIncludes.length; i++) { + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + } + writer.write(" \n"); + return; + } + private void writeIncludePathDependencies(String includePathIdentifier, + BufferedWriter writer, StringBuffer buf) throws IOException { + // + // include path element + // + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + Enumeration dependenciesEnum = dependencies.elements(); + while (dependenciesEnum.hasMoreElements()) { + DependencyInfo[] dependInfos = (DependencyInfo[]) dependenciesEnum + .nextElement(); + for (int i = 0; i < dependInfos.length; i++) { + DependencyInfo dependInfo = dependInfos[i]; + // + // if this is for the same include path + // then output the info + if (dependInfo.getIncludePathIdentifier().equals( + includePathIdentifier)) { + writeDependencyInfo(writer, buf, dependInfo); + } + } + } + writer.write(" \n"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/DistributerDef.java b/src/main/java/net/sf/antcontrib/cpptasks/DistributerDef.java new file mode 100644 index 0000000..f40ac8e --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/DistributerDef.java @@ -0,0 +1,243 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + + +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.Reference; +import java.util.Vector; + +/** + * Distributed build information (Non-functional prototype). + * + */ +public final class DistributerDef + extends DataType { + /** + * if property. + */ + private String ifCond; + + /** + * unless property. + */ + private String unlessCond; + + /** + * hosts. + * + */ + private String hosts; + + /** + * Protocol. + * + */ + private DistributerProtocolEnum protocol; + + /** + * Not sure what this is. + */ + private int tcpCork; + + /** + * user name. + */ + private String user; + + /** + * local to remote file name maps. + */ + private final Vector maps = new Vector(); + + /** + * Constructor. + * + */ + public DistributerDef() { + } + + /** + * Required by documentation generator. + */ + public void execute() { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + + /** + * Returns true if the if and unless conditions (if any) are + * satisfied. + * @return true if definition is active. + */ + public boolean isActive() { + return CUtil.isActive(getProject(), ifCond, unlessCond); + } + + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(final String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + + /** + * Sets the property name for the 'if' condition. + * + * The define will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public void setIf(final String propName) { + ifCond = propName; + } + + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. If + * specified, no other attributes should be specified. + * @param r reference name + */ + public void setRefid(final Reference r) { + super.setRefid(r); + } + + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(final String propName) { + unlessCond = propName; + } + + /** + * Gets hosts. + * @return hosts, may be null. + * + */ + public String getHosts() { + if (isReference()) { + DistributerDef refDistributer = (DistributerDef) + getCheckedRef(DistributerDef.class, + "DistributerDef"); + return refDistributer.getHosts(); + } + return hosts; + } + + /** + * Gets tcp cork. + * @return TCP_CORK value. + * + */ + public int getTcpcork() { + if (isReference()) { + DistributerDef refDistributer = (DistributerDef) + getCheckedRef(DistributerDef.class, + "DistributerDef"); + return refDistributer.getTcpcork(); + } + return tcpCork; + } + + /** + * Gets protocol. + * @return protocol, may be null. + * + */ + public DistributerProtocolEnum getProtocol() { + if (isReference()) { + DistributerDef refDistributer = (DistributerDef) + getCheckedRef(DistributerDef.class, + "DistributerDef"); + return refDistributer.getProtocol(); + } + return protocol; + } + + /** + * Sets hosts. + * @param value new value + */ + public void setHosts(final String value) { + if (isReference()) { + throw tooManyAttributes(); + } + hosts = value; + } + + /** + * Sets TCP_CORK value. + * @param value new value + */ + public void setTcpcork(final int value) { + if (isReference()) { + throw tooManyAttributes(); + } + tcpCork = value; + } + + /** + * Sets protocol. + * @param value new value + */ + public void setProtocol(final DistributerProtocolEnum value) { + if (isReference()) { + throw tooManyAttributes(); + } + protocol = value; + } + + /** + * Local to remote filename maps. + * @return new map + */ + public DistributerMap createMap() { + DistributerMap map = new DistributerMap(); + map.setProject(getProject()); + maps.addElement(map); + return map; + } + + /** + * Sets remote user name. + * @param value user name + */ + public void setUser(final String value) { + user = value; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/DistributerMap.java b/src/main/java/net/sf/antcontrib/cpptasks/DistributerMap.java new file mode 100644 index 0000000..ec0f4a4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/DistributerMap.java @@ -0,0 +1,218 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.io.File; +import java.io.IOException; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.DataType; + +/** + * Local to remote filename mapping (Experimental). + * + */ +public final class DistributerMap + extends DataType { + /** + * if property. + */ + private String ifCond; + + /** + * unless property. + */ + private String unlessCond; + + /** + * local directory name. + * + */ + private File localName; + + /** + * Canonical local file name. + */ + private String canonicalPath; + + /** + * remote name. + * + */ + private String remoteName; + + /** + * Separator (/ or \) character on remote system. + */ + private char remoteSeparator = File.separatorChar; + + /** + * hosts that for which this map is valid. + * + */ + private String hosts; + + /** + * Constructor. + * + */ + public DistributerMap() { + } + + /** + * Required by documentation generator. + */ + public void execute() { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + + /** + * Returns true if the if and unless conditions (if any) are + * satisfied. + * + * @return true if this object is active. + */ + public boolean isActive() { + return CUtil.isActive(getProject(), ifCond, unlessCond); + } + + /** + * Sets the property name for the 'if' condition. + * + * This object will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public void setIf(final String propName) { + ifCond = propName; + } + + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(final String propName) { + unlessCond = propName; + } + + /** + * Gets local directory. + * @return local directory, may be null. + * + */ + public File getLocal() { + return localName; + } + + /** + * Gets remote name for directory. + * @return remote name, may be null. + * + */ + public String getRemote() { + return remoteName; + } + + /** + * Converts the local file name to the remote name for the same file. + * + * @param host host + * @param localFile local file + * @return remote name for local file, null if unknown. + */ + public String toRemote(final String host, final File localFile) { + if (remoteName != null + && (hosts == null || hosts.indexOf(host) >= 0)) { + try { + String canonical = localFile.getCanonicalPath(); + if (canonical.startsWith(canonicalPath)) { + if (isActive()) { + return remoteName + + canonical.substring(canonicalPath.length()).replace(File. + separatorChar, remoteSeparator); + } + } + } catch (IOException ex) { + return null; + } + } + return null; + } + + /** + * Sets local directory for base of mapping. + * + * @param value value + */ + public void setLocal(final File value) { + if (value == null) { + throw new NullPointerException("value"); + } + if (value.exists() && !value.isDirectory()) { + throw new BuildException("local should be a directory"); + } + localName = value; + try { + canonicalPath = localName.getCanonicalPath(); + } catch (IOException ex) { + throw new BuildException(ex); + } + } + + /** + * Sets remote name for directory. + * @param value remote name for directory + */ + public void setRemote(final String value) { + remoteName = value; + } + + /** + * Sets the separator character (/ or \) for the remote system. + * @param value separator character + */ + public void setRemoteSeparator(final String value) { + if (value != null && value.length() != 1) { + throw new BuildException("remote separator must be a single character"); + } + remoteSeparator = value.charAt(0); + } + + /** + * Sets hosts for which this mapping is valid. + * + * @param value hosts + */ + public void setHosts(final String value) { + hosts = value; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.java new file mode 100644 index 0000000..7d3734d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/DistributerProtocolEnum.java @@ -0,0 +1,50 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Distributer prococol names (experimental). + * + * @author Curt Arnold + * + */ +public final class DistributerProtocolEnum + extends EnumeratedAttribute { + /** + * Constructor. + * + * Set by default to "distcc" + * + * @see java.lang.Object#Object() + */ + public DistributerProtocolEnum() { + setValue("distcc"); + } + + /** + * Gets list of acceptable values. + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[] { + "distcc", + "ssh"}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/FileVisitor.java b/src/main/java/net/sf/antcontrib/cpptasks/FileVisitor.java new file mode 100644 index 0000000..c59f04f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/FileVisitor.java @@ -0,0 +1,27 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; + +import org.apache.tools.ant.BuildException; +/** + * An abstract class implemented to walk over the fileset members of a + * ProcessorDef + */ +public interface FileVisitor { + abstract void visit(File parentDir, String filename) throws BuildException; +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/LinkerDef.java b/src/main/java/net/sf/antcontrib/cpptasks/LinkerDef.java new file mode 100644 index 0000000..cde8837 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/LinkerDef.java @@ -0,0 +1,509 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.util.Enumeration; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.gcc.GccLinker; +import net.sf.antcontrib.cpptasks.types.FlexLong; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LinkerArgument; +import net.sf.antcontrib.cpptasks.types.SystemLibrarySet; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.FlexInteger; +/** + * A linker definition. linker elements may be placed either as children of a + * cc element or the project element. A linker element with an id attribute may + * be referenced by linker elements with refid or extends attributes. + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public class LinkerDef extends ProcessorDef { + private long base; + private String entry; + private Boolean fixed; + private Boolean incremental; + private final Vector librarySets = new Vector(); + private Boolean map; + private int stack; + private final Vector sysLibrarySets = new Vector(); + /** + * Default constructor + * + * @see java.lang.Object#Object() + */ + public LinkerDef() { + base = -1; + stack = -1; + } + private void addActiveLibrarySet(Project project, Vector libsets, + Vector srcSets) { + Enumeration srcenum = srcSets.elements(); + while (srcenum.hasMoreElements()) { + LibrarySet set = (LibrarySet) srcenum.nextElement(); + if (set.isActive(project)) { + libsets.addElement(set); + } + } + } + private void addActiveSystemLibrarySets(Project project, Vector libsets) { + addActiveLibrarySet(project, libsets, sysLibrarySets); + } + private void addActiveUserLibrarySets(Project project, Vector libsets) { + addActiveLibrarySet(project, libsets, librarySets); + } + /** + * Adds a linker command-line arg. + */ + public void addConfiguredLinkerArg(LinkerArgument arg) { + addConfiguredProcessorArg(arg); + } + /** + * Adds a compiler command-line arg. + */ + public void addConfiguredLinkerParam(LinkerParam param) { + if (isReference()) { + throw noChildrenAllowed(); + } + addConfiguredProcessorParam(param); + } + /** + * Adds a system library set. + */ + public void addLibset(LibrarySet libset) { + if (isReference()) { + throw super.noChildrenAllowed(); + } + if (libset == null) { + throw new NullPointerException("libset"); + } + librarySets.addElement(libset); + } + /** + * Adds a system library set. + */ + public void addSyslibset(SystemLibrarySet libset) { + if (isReference()) { + throw super.noChildrenAllowed(); + } + if (libset == null) { + throw new NullPointerException("libset"); + } + sysLibrarySets.addElement(libset); + } + + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** + * Returns an array of active library sets for this linker definition. + */ + public LibrarySet[] getActiveLibrarySets(LinkerDef[] defaultProviders, + int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getActiveUserLibrarySets(defaultProviders, index); + } + Project p = getProject(); + Vector libsets = new Vector(); + for (int i = index; i < defaultProviders.length; i++) { + defaultProviders[i].addActiveUserLibrarySets(p, libsets); + } + addActiveUserLibrarySets(p, libsets); + for (int i = index; i < defaultProviders.length; i++) { + defaultProviders[i].addActiveSystemLibrarySets(p, libsets); + } + addActiveSystemLibrarySets(p, libsets); + LibrarySet[] sets = new LibrarySet[libsets.size()]; + libsets.copyInto(sets); + return sets; + } + /** + * Returns an array of active library sets for this linker definition. + */ + public LibrarySet[] getActiveSystemLibrarySets( + LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getActiveUserLibrarySets(defaultProviders, index); + } + Project p = getProject(); + Vector libsets = new Vector(); + for (int i = index; i < defaultProviders.length; i++) { + defaultProviders[i].addActiveSystemLibrarySets(p, libsets); + } + addActiveSystemLibrarySets(p, libsets); + LibrarySet[] sets = new LibrarySet[libsets.size()]; + libsets.copyInto(sets); + return sets; + } + /** + * Returns an array of active library sets for this linker definition. + */ + public LibrarySet[] getActiveUserLibrarySets(LinkerDef[] defaultProviders, + int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getActiveUserLibrarySets(defaultProviders, index); + } + Project p = getProject(); + Vector libsets = new Vector(); + for (int i = index; i < defaultProviders.length; i++) { + defaultProviders[i].addActiveUserLibrarySets(p, libsets); + } + addActiveUserLibrarySets(p, libsets); + LibrarySet[] sets = new LibrarySet[libsets.size()]; + libsets.copyInto(sets); + return sets; + } + public long getBase(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getBase(defaultProviders, index); + } + if (base <= 0) { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getBase(defaultProviders, + index + 1); + } + } + return base; + } + public Boolean getFixed(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getFixed(defaultProviders, index); + } + if (fixed == null) { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getFixed(defaultProviders, + index + 1); + } + } + return fixed; + } + public boolean getIncremental(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getIncremental(defaultProviders, index); + } + if (incremental != null) { + return incremental.booleanValue(); + } + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getIncremental(defaultProviders, index + 1); + } + return false; + } + public boolean getMap(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getMap(defaultProviders, index); + } + if (map != null) { + return map.booleanValue(); + } + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getMap(defaultProviders, index + 1); + } + return false; + } + public String getEntry(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getEntry(defaultProviders, index); + } + if (entry != null) { + return entry; + } + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getEntry(defaultProviders, index + 1); + } + return null; + } + + public Processor getProcessor() { + Linker linker = (Linker) super.getProcessor(); + if (linker == null) { + linker = GccLinker.getInstance(); + } + if (getLibtool() && linker instanceof CommandLineLinker) { + CommandLineLinker cmdLineLinker = (CommandLineLinker) linker; + linker = cmdLineLinker.getLibtoolLinker(); + } + return linker; + } + + public Processor getProcessor(LinkType linkType) { + Processor proc = getProcessor(); + return proc.getLinker(linkType); + } + + public int getStack(LinkerDef[] defaultProviders, int index) { + if (isReference()) { + return ((LinkerDef) getCheckedRef(LinkerDef.class, "LinkerDef")) + .getStack(defaultProviders, index); + } + if (stack < 0) { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getStack(defaultProviders, + index + 1); + } + } + return stack; + } + /** + * Sets the base address. May be specified in either decimal or hex. + * + * @param base + * base address + * + */ + public void setBase(FlexLong base) { + if (isReference()) { + throw tooManyAttributes(); + } + this.base = base.longValue(); + } + /** + * Sets the starting address. + * + * @param entry + * function name + */ + public void setEntry(String entry) { + if (isReference()) { + throw tooManyAttributes(); + } + this.entry = entry; + } + /** + * If true, marks the file to be loaded only at its preferred address. + */ + public void setFixed(boolean fixed) { + if (isReference()) { + throw tooManyAttributes(); + } + this.fixed = booleanValueOf(fixed); + } + /** + * If true, allows incremental linking. + * + */ + public void setIncremental(boolean incremental) { + if (isReference()) { + throw tooManyAttributes(); + } + this.incremental = booleanValueOf(incremental); + } + /** + * If set to true, a map file will be produced. + */ + public void setMap(boolean map) { + if (isReference()) { + throw tooManyAttributes(); + } + this.map = booleanValueOf(map); + } + /** + * Sets linker type. + * + * + * Supported linkers + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
gccGcc Linker
g++G++ Linker
ldLd Linker
arGcc Librarian
msvcMicrosoft Linker
bccBorland Linker
dfCompaq Visual Fortran Linker
iclIntel Linker for Windows (IA-32)
eclIntel Linker for Windows (IA-64)
iccIntel Linker for Linux (IA-32)
eccIntel Linker for Linux (IA-64)
CCSun ONE Linker
aCCHP aC++ Linker
os390OS390 Linker
os390batchOS390 Linker
os400IccLinker
sunc89C89 Linker
xlCVisualAge Linker
wclOpenWatcom C/C++ linker
wflOpenWatcom FORTRAN linker
+ * + */ + public void setName(LinkerEnum name) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + Linker linker = name.getLinker(); + super.setProcessor(linker); + } + protected void setProcessor(Processor proc) throws BuildException { + Linker linker = null; + if (proc instanceof Linker) { + linker = (Linker) proc; + } else { + LinkType linkType = new LinkType(); + linker = proc.getLinker(linkType); + } + super.setProcessor(linker); + } + /** + * Sets stack size in bytes. + */ + public void setStack(FlexInteger stack) { + if (isReference()) { + throw tooManyAttributes(); + } + this.stack = stack.intValue(); + } + public void visitSystemLibraries(Linker linker, FileVisitor libraryVisitor) { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + LinkerDef master = ((LinkerDef) getCheckedRef(LinkerDef.class, + "Linker")); + master.visitSystemLibraries(linker, libraryVisitor); + } else { + // + // if this linker extends another, + // visit its libraries first + // + LinkerDef extendsDef = (LinkerDef) getExtends(); + if (extendsDef != null) { + extendsDef.visitSystemLibraries(linker, libraryVisitor); + } + if (sysLibrarySets.size() > 0) { + File[] libpath = linker.getLibraryPath(); + for (int i = 0; i < sysLibrarySets.size(); i++) { + LibrarySet set = (LibrarySet) sysLibrarySets.elementAt(i); + if (set.isActive(p)) { + set.visitLibraries(p, linker, libpath, + libraryVisitor); + } + } + } + } + } + public void visitUserLibraries(Linker linker, FileVisitor libraryVisitor) { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + LinkerDef master = ((LinkerDef) getCheckedRef(LinkerDef.class, + "Linker")); + master.visitUserLibraries(linker, libraryVisitor); + } else { + // + // if this linker extends another, + // visit its libraries first + // + LinkerDef extendsDef = (LinkerDef) getExtends(); + if (extendsDef != null) { + extendsDef.visitUserLibraries(linker, libraryVisitor); + } + // + // visit the user libraries + // + if (librarySets.size() > 0) { + File[] libpath = linker.getLibraryPath(); + for (int i = 0; i < librarySets.size(); i++) { + LibrarySet set = (LibrarySet) librarySets.elementAt(i); + if (set.isActive(p)) { + set.visitLibraries(p, linker, libpath, + libraryVisitor); + } + } + } + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/LinkerEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/LinkerEnum.java new file mode 100644 index 0000000..df96723 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/LinkerEnum.java @@ -0,0 +1,112 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import net.sf.antcontrib.cpptasks.arm.ADSLinker; +import net.sf.antcontrib.cpptasks.borland.BorlandLinker; +import net.sf.antcontrib.cpptasks.compaq.CompaqVisualFortranLinker; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioLinker; +import net.sf.antcontrib.cpptasks.gcc.GccLibrarian; +import net.sf.antcontrib.cpptasks.gcc.GccLinker; +import net.sf.antcontrib.cpptasks.gcc.GppLinker; +import net.sf.antcontrib.cpptasks.gcc.LdLinker; +import net.sf.antcontrib.cpptasks.hp.aCCLinker; +import net.sf.antcontrib.cpptasks.ibm.VisualAgeLinker; +import net.sf.antcontrib.cpptasks.intel.IntelLinux32Linker; +import net.sf.antcontrib.cpptasks.intel.IntelLinux64Linker; +import net.sf.antcontrib.cpptasks.intel.IntelWin32Linker; +import net.sf.antcontrib.cpptasks.os390.OS390Linker; +import net.sf.antcontrib.cpptasks.os400.IccLinker; +import net.sf.antcontrib.cpptasks.sun.C89Linker; +import net.sf.antcontrib.cpptasks.sun.ForteCCLinker; +import net.sf.antcontrib.cpptasks.ti.ClxxLinker; +import org.apache.tools.ant.types.EnumeratedAttribute; +import net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomCLinker; +import net.sf.antcontrib.cpptasks.openwatcom.OpenWatcomFortranLinker; + +/** + * Enumeration of supported linkers + * + * @author Curt Arnold + * + */ +public class LinkerEnum extends EnumeratedAttribute { + private final static ProcessorEnumValue[] linkers = new ProcessorEnumValue[]{ + new ProcessorEnumValue("gcc", GccLinker.getInstance()), + new ProcessorEnumValue("g++", GppLinker.getInstance()), + new ProcessorEnumValue("ld", LdLinker.getInstance()), + new ProcessorEnumValue("ar", GccLibrarian.getInstance()), + new ProcessorEnumValue("msvc", DevStudioLinker.getInstance()), + new ProcessorEnumValue("bcc", BorlandLinker.getInstance()), + new ProcessorEnumValue("df", CompaqVisualFortranLinker + .getInstance()), + new ProcessorEnumValue("icl", IntelWin32Linker.getInstance()), + new ProcessorEnumValue("ecl", IntelWin32Linker.getInstance()), + new ProcessorEnumValue("icc", IntelLinux32Linker.getInstance()), + new ProcessorEnumValue("ecc", IntelLinux64Linker.getInstance()), + new ProcessorEnumValue("CC", ForteCCLinker.getInstance()), + new ProcessorEnumValue("aCC", aCCLinker.getInstance()), + new ProcessorEnumValue("os390", OS390Linker.getInstance()), + new ProcessorEnumValue("os390batch", OS390Linker + .getDataSetInstance()), + new ProcessorEnumValue("os400", IccLinker.getInstance()), + new ProcessorEnumValue("sunc89", C89Linker.getInstance()), + new ProcessorEnumValue("xlC", VisualAgeLinker.getInstance()), + new ProcessorEnumValue("cl6x", ClxxLinker.getCl6xInstance()), + new ProcessorEnumValue("cl55", ClxxLinker.getCl55Instance()), + new ProcessorEnumValue("armcc", ADSLinker.getInstance()), + new ProcessorEnumValue("armcpp", ADSLinker.getInstance()), + new ProcessorEnumValue("tcc", ADSLinker.getInstance()), + new ProcessorEnumValue("tcpp", ADSLinker.getInstance()), + // gcc cross compilers + new ProcessorEnumValue( + "sparc-sun-solaris2-gcc", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLinker + .getInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-g++", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GppLinker + .getInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-ld", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.LdLinker + .getInstance()), + new ProcessorEnumValue( + "sparc-sun-solaris2-ar", + net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccLibrarian + .getInstance()), + new ProcessorEnumValue("gcc-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccLinker + .getInstance()), + new ProcessorEnumValue("g++-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GppLinker + .getInstance()), + new ProcessorEnumValue("ld-cross", + net.sf.antcontrib.cpptasks.gcc.cross.LdLinker.getInstance()), + new ProcessorEnumValue("ar-cross", + net.sf.antcontrib.cpptasks.gcc.cross.GccLibrarian + .getInstance()), + new ProcessorEnumValue("wcl", OpenWatcomCLinker.getInstance()), + new ProcessorEnumValue("wfl", OpenWatcomFortranLinker.getInstance()), + }; + public Linker getLinker() { + return (Linker) linkers[getIndex()].getProcessor(); + } + public String[] getValues() { + return ProcessorEnumValue.getValues(linkers); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/LinkerParam.java b/src/main/java/net/sf/antcontrib/cpptasks/LinkerParam.java new file mode 100644 index 0000000..3dae933 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/LinkerParam.java @@ -0,0 +1,33 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +/******************************************************************************* + * Place class description here. + * + * @author inger + * @author + * + * @since + ******************************************************************************/ +public class LinkerParam extends ProcessorParam { + public LinkerParam() { + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/OSFamilyEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/OSFamilyEnum.java new file mode 100644 index 0000000..68ebd82 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/OSFamilyEnum.java @@ -0,0 +1,59 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumeration of cpu types. + * + * @author Curt Arnold + * + */ +public final class OSFamilyEnum + extends EnumeratedAttribute { + /** + * Constructor. + * + * Set by default to "pentium3" + * + * @see java.lang.Object#Object() + */ + public OSFamilyEnum() { + setValue("windows"); + } + + /** + * Gets list of acceptable values. + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[] { + "windows", + "dos", + "mac", + "unix", + "netware", + "os/2", + "tandem", + "win9x", + "z/os", + "os/400", + "openvms"}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ObjectFileCollector.java b/src/main/java/net/sf/antcontrib/cpptasks/ObjectFileCollector.java new file mode 100644 index 0000000..fd4cda5 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ObjectFileCollector.java @@ -0,0 +1,42 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.Linker; + +import org.apache.tools.ant.BuildException; +/** + * Collects object files for the link step. + * + * + */ +public final class ObjectFileCollector implements FileVisitor { + private final Vector files; + private final Linker linker; + public ObjectFileCollector(Linker linker, Vector files) { + this.linker = linker; + this.files = files; + } + public void visit(File parentDir, String filename) throws BuildException { + int bid = linker.bid(filename); + if (bid >= 1) { + files.addElement(new File(parentDir, filename)); + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/OptimizationEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/OptimizationEnum.java new file mode 100644 index 0000000..042822e --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/OptimizationEnum.java @@ -0,0 +1,82 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumeration of optimization levels (experimental). + * + * @author Curt Arnold + * + */ +public final class OptimizationEnum + extends EnumeratedAttribute { + /** + * Constructor. + * + * Set by default to "speed" + * + * @see java.lang.Object#Object() + */ + public OptimizationEnum() { + setValue("speed"); + } + + /** + * Gets list of acceptable values. + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[] { + "none", + "size", + "minimal", + "speed", + "full", + "aggressive", + "extreme", + "unsafe" + }; + } + + /** + * Is size optimized. + * @return boolean true if size is optimized. + */ + public boolean isSize() { + return "size".equals(getValue()); + } + + /** + * Is speed optimized. + * @return boolean true if speed is optimized. + */ + public boolean isSpeed() { + return !isSize() && !isNoOptimization(); + } + + /** + * Is no optimization performed. + * @return boolean true if no optimization is performed. + */ + public boolean isNoOptimization() { + return "none".equals(getValue()); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/OutputTypeEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/OutputTypeEnum.java new file mode 100644 index 0000000..873a99c --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/OutputTypeEnum.java @@ -0,0 +1,48 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * Enumeration of supported subsystems + * + * @author Curt Arnold + * + */ +public class OutputTypeEnum extends EnumeratedAttribute { + /** + * Constructor + * + * Set by default to "executable" + * + * @see java.lang.Object#Object() + */ + public OutputTypeEnum() { + setValue("executable"); + } + /** + * Gets list of acceptable values + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[]{"executable", // executable program + "plugin", // plugin module + "shared", // dynamically linkable module + "static" // convenience library + }; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/PrecompileDef.java b/src/main/java/net/sf/antcontrib/cpptasks/PrecompileDef.java new file mode 100644 index 0000000..b642197 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/PrecompileDef.java @@ -0,0 +1,212 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.util.Enumeration; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.types.ConditionalFileSet; + +import org.apache.tools.ant.Project; +import org.apache.tools.ant.DirectoryScanner; +import org.apache.tools.ant.types.DataType; +/** + * An element that specifies a prototype file and rules for source files that + * should not use precompiled headers + * + * @author Curt Arnold + */ +public final class PrecompileDef extends DataType { + private final Vector exceptSets = new Vector(); + private String ifCond; + /** + * Directory of prototype file + */ + private File prototype = new File("stdafx.cpp"); + private String unlessCond; + /** + * Constructor + * + */ + public PrecompileDef() { + } + /** + * Method used by PrecompileExceptDef to add exception set to + * PrecompileDef. + */ + public void appendExceptFileSet(ConditionalFileSet exceptSet) { + exceptSet.setProject(getProject()); + exceptSets.addElement(exceptSet); + } + /** + * Adds filesets that specify files that should not be processed with + * precompiled headers enabled. + * + */ + public PrecompileExceptDef createExcept() { + return new PrecompileExceptDef(this); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + public String[] getExceptFiles() { + PrecompileDef ref = getRef(); + if (ref != null) { + return ref.getExceptFiles(); + } + if (exceptSets.size() == 0) { + return new String[0]; + } + Project p = getProject(); + String[] exceptFiles = null; + Enumeration setEnum = exceptSets.elements(); + while (setEnum.hasMoreElements()) { + ConditionalFileSet exceptSet = (ConditionalFileSet) setEnum + .nextElement(); + if (exceptSet.isActive()) { + DirectoryScanner scanner = exceptSet + .getDirectoryScanner(p); + String[] scannerFiles = scanner.getIncludedFiles(); + if (exceptFiles == null) { + exceptFiles = scannerFiles; + } else { + if (scannerFiles.length > 0) { + String[] newFiles = new String[exceptFiles.length + + scannerFiles.length]; + for (int i = 0; i < exceptFiles.length; i++) { + newFiles[i] = exceptFiles[i]; + } + int index = exceptFiles.length; + for (int i = 0; i < scannerFiles.length; i++) { + newFiles[index++] = scannerFiles[i]; + } + exceptFiles = newFiles; + } + } + } + } + if (exceptFiles == null) { + exceptFiles = new String[0]; + } + return exceptFiles; + } + /** + * Gets prototype source file + * + */ + public File getPrototype() { + PrecompileDef ref = getRef(); + if (ref != null) { + return ref.getPrototype(); + } + return prototype; + } + private PrecompileDef getRef() { + if (isReference()) { + return ((PrecompileDef) getCheckedRef(PrecompileDef.class, + "PrecompileDef")); + } + return null; + } + public boolean isActive() { + boolean isActive = CUtil.isActive(getProject(), ifCond, unlessCond); + if (!isActive) { + PrecompileDef ref = getRef(); + if (ref != null) { + return ref.isActive(); + } + } + return isActive; + } + /** + * Sets a description of the current data type. + */ + public void setDescription(String desc) { + super.setDescription(desc); + } + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + /** + * Set the 'if' condition. + * + * The processor will be ignored unless the property is defined. + * + * The value of property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * isActive() is evaluated. + * + * @param propName + * name of property + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Sets file to precompile. + * + * Should be a source file that includes only one unguarded header file. + * Default value is "stdafx.cpp". + * + * @param prototype + * file path for prototype source file + */ + public void setPrototype(File prototype) { + if (isReference()) { + throw tooManyAttributes(); + } + if (prototype == null) { + throw new NullPointerException("prototype"); + } + this.prototype = prototype; + } + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. + * + * @param ref + * Reference to other element + * + */ + public void setRefid(org.apache.tools.ant.types.Reference ref) { + super.setRefid(ref); + } + /** + * Set the 'unless' condition. If named property exists at execution time, + * the processor will be ignored. + * + * Value of property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when isActive is called. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/PrecompileExceptDef.java b/src/main/java/net/sf/antcontrib/cpptasks/PrecompileExceptDef.java new file mode 100644 index 0000000..c6c7da7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/PrecompileExceptDef.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; + +import net.sf.antcontrib.cpptasks.types.ConditionalFileSet; + +import org.apache.tools.ant.BuildException; +/** + * Specifies files that should not be compiled using precompiled headers. + * + * @author Curt Arnold + */ +public final class PrecompileExceptDef { + private ConditionalFileSet localSet = null; + /** + * Collection of contained by definition + */ + private PrecompileDef owner; + /** + * Constructor + * + */ + public PrecompileExceptDef(PrecompileDef owner) { + this.owner = owner; + } + /** + * Adds filesets that specify files that should not be processed using + * precompiled headers. + * + * @param exceptSet + * FileSet specify files that should not be processed with + * precompiled headers enabled. + */ + public void addFileset(ConditionalFileSet exceptSet) { + owner.appendExceptFileSet(exceptSet); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** + * Sets the base-directory + */ + public void setDir(File dir) throws BuildException { + if (localSet == null) { + localSet = new ConditionalFileSet(); + owner.appendExceptFileSet(localSet); + } + localSet.setDir(dir); + } + /** + * Comma or space separated list of file patterns that should not be + * compiled using precompiled headers. + * + * @param includes + * the string containing the include patterns + */ + public void setIncludes(String includes) { + if (localSet == null) { + localSet = new ConditionalFileSet(); + owner.appendExceptFileSet(localSet); + } + localSet.setIncludes(includes); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ProcessorDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorDef.java new file mode 100644 index 0000000..54a3406 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorDef.java @@ -0,0 +1,679 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.lang.reflect.Method; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.types.CommandLineArgument; +import net.sf.antcontrib.cpptasks.types.ConditionalFileSet; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.DirectoryScanner; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.Environment; +import org.apache.tools.ant.types.Reference; +/** + * An abstract compiler/linker definition. + * + * @author Curt Arnold + */ +public abstract class ProcessorDef extends DataType { + /** + * Returns the equivalent Boolean object for the specified value + * + * Equivalent to Boolean.valueOf in JDK 1.4 + * + * @param val + * boolean value + * @return Boolean.TRUE or Boolean.FALSE + */ + protected static Boolean booleanValueOf(boolean val) { + if (val) { + return Boolean.TRUE; + } + return Boolean.FALSE; + } + /** + * if true, targets will be built for debugging + */ + private Boolean debug; + private Environment env = null; + /** + * Reference for "extends" processor definition + */ + private Reference extendsRef = null; + /** + * Name of property that must be present or definition will be ignored. May + * be null. + */ + private String ifProp; + /** + * if true, processor definition inherits values from containing cc + * element + */ + private boolean inherit; + private Boolean libtool = null; + protected boolean newEnvironment = false; + /** + * Processor. + */ + private Processor processor; + /** + * Collection of or contained by definition + */ + private final Vector processorArgs = new Vector(); + /** + * Collection of or contained by definition + */ + private final Vector processorParams = new Vector(); + /** + * if true, all targets will be unconditionally rebuilt + */ + private Boolean rebuild; + /** + * Collection of contained by definition + */ + private final Vector srcSets = new Vector(); + /** + * Name of property that if present will cause definition to be ignored. + * May be null. + */ + private String unlessProp; + /** + * Constructor + * + */ + protected ProcessorDef() throws NullPointerException { + inherit = true; + } + /** + * Adds a or + * + * @param arg + * command line argument, must not be null + * @throws NullPointerException + * if arg is null + * @throws BuildException + * if this definition is a reference + */ + protected void addConfiguredProcessorArg(CommandLineArgument arg) + throws NullPointerException, BuildException { + if (arg == null) { + throw new NullPointerException("arg"); + } + if (isReference()) { + throw noChildrenAllowed(); + } + processorArgs.addElement(arg); + } + /** + * Adds a or + * + * @param param + * command line argument, must not be null + * @throws NullPointerException + * if arg is null + * @throws BuildException + * if this definition is a reference + */ + protected void addConfiguredProcessorParam(ProcessorParam param) + throws NullPointerException, BuildException { + if (param == null) { + throw new NullPointerException("param"); + } + if (isReference()) { + throw noChildrenAllowed(); + } + processorParams.addElement(param); + } + /** + * Add an environment variable to the launched process. + */ + public void addEnv(Environment.Variable var) { + if (env == null) { + env = new Environment(); + } + env.addVariable(var); + } + /** + * Adds a source file set. + * + * Files in these set will be processed by this configuration and will not + * participate in the auction. + * + * @param srcSet + * Fileset identifying files that should be processed by this + * processor + * @throws BuildException + * if processor definition is a reference + */ + public void addFileset(ConditionalFileSet srcSet) throws BuildException { + if (isReference()) { + throw noChildrenAllowed(); + } + srcSet.setProject(getProject()); + srcSets.addElement(srcSet); + } + /** + * Creates a configuration + * + * @param baseDef + * reference to def from containing cc element, may be null + * @return configuration + * + */ + public ProcessorConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef baseDef, + TargetDef targetPlatform, VersionInfo versionInfo) { + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).createConfiguration(task, linkType, + baseDef, targetPlatform, versionInfo); + } + ProcessorDef[] defaultProviders = getDefaultProviders(baseDef); + Processor proc = getProcessor(linkType); + return proc.createConfiguration(task, linkType, defaultProviders, this, targetPlatform, versionInfo); + } + /** + * Prepares list of processor arguments ( compilerarg, linkerarg ) that + * are active for the current project settings. + * + * @return active compiler arguments + */ + public CommandLineArgument[] getActiveProcessorArgs() { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getActiveProcessorArgs(); + } + Vector activeArgs = new Vector(processorArgs.size()); + for (int i = 0; i < processorArgs.size(); i++) { + CommandLineArgument arg = (CommandLineArgument) processorArgs + .elementAt(i); + if (arg.isActive(p)) { + activeArgs.addElement(arg); + } + } + CommandLineArgument[] array = new CommandLineArgument[activeArgs.size()]; + activeArgs.copyInto(array); + return array; + } + /** + * Prepares list of processor arguments ( compilerarg, linkerarg) that + * are active for the current project settings. + * + * @return active compiler arguments + */ + public ProcessorParam[] getActiveProcessorParams() { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException("project must be set"); + } + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getActiveProcessorParams(); + } + Vector activeParams = new Vector(processorParams.size()); + for (int i = 0; i < processorParams.size(); i++) { + ProcessorParam param = (ProcessorParam) processorParams + .elementAt(i); + if (param.isActive(p)) { + activeParams.addElement(param); + } + } + ProcessorParam[] array = new ProcessorParam[activeParams.size()]; + activeParams.copyInto(array); + return array; + } + /** + * Gets boolean indicating debug build + * + * @param defaultProviders + * array of ProcessorDef's in descending priority + * @param index + * index to first element in array that should be considered + * @return if true, built targets for debugging + */ + public boolean getDebug(ProcessorDef[] defaultProviders, int index) { + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getDebug(defaultProviders, index); + } + if (debug != null) { + return debug.booleanValue(); + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getDebug(defaultProviders, + index + 1); + } + } + return false; + } + /** + * Creates an chain of objects which provide default values in descending + * order of significance. + * + * @param baseDef + * corresponding ProcessorDef from CCTask, will be last element + * in array unless inherit = false + * @return default provider array + * + */ + protected final ProcessorDef[] getDefaultProviders(ProcessorDef baseDef) { + ProcessorDef extendsDef = getExtends(); + Vector chain = new Vector(); + while (extendsDef != null && !chain.contains(extendsDef)) { + chain.addElement(extendsDef); + extendsDef = extendsDef.getExtends(); + } + if (baseDef != null && getInherit()) { + chain.addElement(baseDef); + } + ProcessorDef[] defaultProviders = new ProcessorDef[chain.size()]; + chain.copyInto(defaultProviders); + return defaultProviders; + } + /** + * Gets the ProcessorDef specified by the extends attribute + * + * @return Base ProcessorDef, null if extends is not specified + * @throws BuildException + * if reference is not same type object + */ + public ProcessorDef getExtends() throws BuildException { + if (extendsRef != null) { + Object obj = extendsRef.getReferencedObject(getProject()); + if (!getClass().isInstance(obj)) { + throw new BuildException("Referenced object " + + extendsRef.getRefId() + " not correct type, is " + + obj.getClass().getName() + " should be " + + getClass().getName()); + } + return (ProcessorDef) obj; + } + return null; + } + /** + * Gets the inherit attribute. If the inherit value is true, this processor + * definition will inherit default values from the containing cc element. + * + * @return if true then properties from the containing element are + * used. + */ + public final boolean getInherit() { + return inherit; + } + public boolean getLibtool() { + if (libtool != null) { + return libtool.booleanValue(); + } + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getLibtool(); + } + ProcessorDef extendsDef = getExtends(); + if (extendsDef != null) { + return extendsDef.getLibtool(); + } + return false; + } + /** + * Obtains the appropriate processor (compiler, linker) + * + * @return processor + */ + protected Processor getProcessor() { + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getProcessor(); + } + // + // if a processor has not been explicitly set + // then may be set by an extended definition + if (processor == null) { + ProcessorDef extendsDef = getExtends(); + if (extendsDef != null) { + return extendsDef.getProcessor(); + } + } + return processor; + } + + /** + * Obtains the appropriate processor (compiler, linker) based on the + * LinkType. + * + * @return processor + */ + protected Processor getProcessor(LinkType linkType) { + // by default ignore the linkType. + return getProcessor(); + } + /** + * Gets a boolean value indicating whether all targets must be rebuilt + * regardless of dependency analysis. + * + * @param defaultProviders + * array of ProcessorDef's in descending priority + * @param index + * index to first element in array that should be considered + * @return true if all targets should be rebuilt. + */ + public boolean getRebuild(ProcessorDef[] defaultProviders, int index) { + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).getRebuild(defaultProviders, index); + } + if (rebuild != null) { + return rebuild.booleanValue(); + } else { + if (defaultProviders != null && index < defaultProviders.length) { + return defaultProviders[index].getRebuild(defaultProviders, + index + 1); + } + } + return false; + } + /** + * Returns true if the processor definition contains embedded file set + * definitions + * + * @return true if processor definition contains embedded filesets + */ + public boolean hasFileSets() { + if (isReference()) { + return ((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).hasFileSets(); + } + return srcSets.size() > 0; + } + /** + * Determine if this def should be used. + * + * Definition will be active if the "if" variable (if specified) is set and + * the "unless" variable (if specified) is not set and that all reference + * or extended definitions are active + * + * @return true if processor is active + * @throws IllegalStateException + * if not properly initialized + * @throws BuildException + * if "if" or "unless" variable contains suspicious values + * "false" or "no" which indicates possible confusion + */ + public boolean isActive() throws BuildException, IllegalStateException { + Project project = getProject(); + if (!CUtil.isActive(project, ifProp, unlessProp)) { + return false; + } + if (isReference()) { + if (!((ProcessorDef) getCheckedRef(ProcessorDef.class, + "ProcessorDef")).isActive()) { + return false; + } + } + // + // walk through any extended definitions + // + ProcessorDef[] defaultProviders = getDefaultProviders(null); + for (int i = 0; i < defaultProviders.length; i++) { + if (!defaultProviders[i].isActive()) { + return false; + } + } + return true; + } + /** + * Sets the class name for the adapter. Use the "name" attribute when the + * tool is supported. + * + * @param className + * full class name + * + */ + public void setClassname(String className) throws BuildException { + Object proc = null; + try { + Class implClass = ProcessorDef.class.getClassLoader().loadClass( + className); + try { + Method getInstance = implClass.getMethod("getInstance", + new Class[0]); + proc = getInstance.invoke(null, new Object[0]); + } catch (Exception ex) { + proc = implClass.newInstance(); + } + } catch (Exception ex) { + throw new BuildException(ex); + } + setProcessor((Processor) proc); + } + /** + * If set true, all targets will be built for debugging. + * + * @param debug + * true if targets should be built for debugging + * @throws BuildException + * if processor definition is a reference + */ + public void setDebug(boolean debug) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + this.debug = booleanValueOf(debug); + } + /** + * Sets a description of the current data type. + */ + public void setDescription(String desc) { + super.setDescription(desc); + } + /** + * Specifies that this element extends the element with id attribute with a + * matching value. The configuration will be constructed from the settings + * of this element, element referenced by extends, and the containing cc + * element. + * + * @param extendsRef + * Reference to the extended processor definition. + * @throws BuildException + * if this processor definition is a reference + */ + public void setExtends(Reference extendsRef) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + this.extendsRef = extendsRef; + } + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + /** + * Sets the property name for the 'if' condition. + * + * The configuration will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * name of property + */ + public void setIf(String propName) { + ifProp = propName; + } + /** + * If inherit has the default value of true, defines, includes and other + * settings from the containing cc element will be inherited. + * + * @param inherit + * new value + * @throws BuildException + * if processor definition is a reference + */ + public void setInherit(boolean inherit) throws BuildException { + if (isReference()) { + throw super.tooManyAttributes(); + } + this.inherit = inherit; + } + /** + * Set use of libtool. + * + * If set to true, the "libtool " will be prepended to the command line + * + * @param libtool + * If true, use libtool. + */ + public void setLibtool(boolean libtool) { + if (isReference()) { + throw tooManyAttributes(); + } + this.libtool = booleanValueOf(libtool); + } + /** + * Do not propagate old environment when new environment variables are + * specified. + */ + public void setNewenvironment(boolean newenv) { + newEnvironment = newenv; + } + /** + * Sets the processor + * + * @param processor + * processor, may not be null. + * @throws BuildException + * if ProcessorDef is a reference + * @throws NullPointerException + * if processor is null + */ + protected void setProcessor(Processor processor) throws BuildException, + NullPointerException { + if (processor == null) { + throw new NullPointerException("processor"); + } + if (isReference()) { + throw super.tooManyAttributes(); + } + if (env == null && !newEnvironment) { + this.processor = processor; + } else { + this.processor = processor.changeEnvironment(newEnvironment, env); + } + } + /** + * If set true, all targets will be unconditionally rebuilt. + * + * @param rebuild + * if true, rebuild all targets. + * @throws BuildException + * if processor definition is a reference + */ + public void setRebuild(boolean rebuild) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + this.rebuild = booleanValueOf(rebuild); + } + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. If + * specified, no other attributes or child content should be specified, + * other than "if", "unless" and "description". + * + * @param ref + * Reference to other element + * + */ + public void setRefid(org.apache.tools.ant.types.Reference ref) { + super.setRefid(ref); + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the configuration will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessProp = propName; + } + /** + * This method calls the FileVistor's visit function for every file in the + * processors definition + * + * @param visitor + * object whose visit method is called for every file + */ + public void visitFiles(FileVisitor visitor) { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException( + "project must be set before this call"); + } + if (isReference()) { + ((ProcessorDef) getCheckedRef(ProcessorDef.class, "ProcessorDef")) + .visitFiles(visitor); + } + // + // if this processor extends another, + // visit its files first + // + ProcessorDef extendsDef = getExtends(); + if (extendsDef != null) { + extendsDef.visitFiles(visitor); + } + + for (int i = 0; i < srcSets.size(); i++) { + ConditionalFileSet srcSet = (ConditionalFileSet) srcSets + .elementAt(i); + if (srcSet.isActive()) { + // Find matching source files + DirectoryScanner scanner = srcSet.getDirectoryScanner(p); + // Check each source file - see if it needs compilation + String[] fileNames = scanner.getIncludedFiles(); + File parentDir = scanner.getBasedir(); + for (int j = 0; j < fileNames.length; j++) { + String currentFile = fileNames[j]; + visitor.visit(parentDir, currentFile); + } + } + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ProcessorEnumValue.java b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorEnumValue.java new file mode 100644 index 0000000..9096183 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorEnumValue.java @@ -0,0 +1,47 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import net.sf.antcontrib.cpptasks.compiler.Processor; +/** + * One entry in the arrays used by the CompilerEnum and LinkerEnum classes. + * + * @author Curt Arnold + * @see CompilerEnum + * @see LinkerEnum + * + */ +public class ProcessorEnumValue { + public static String[] getValues(ProcessorEnumValue[] processors) { + String[] values = new String[processors.length]; + for (int i = 0; i < processors.length; i++) { + values[i] = processors[i].getName(); + } + return values; + } + private String name; + private Processor processor; + public ProcessorEnumValue(String name, Processor processor) { + this.name = name; + this.processor = processor; + } + public String getName() { + return name; + } + public Processor getProcessor() { + return processor; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ProcessorParam.java b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorParam.java new file mode 100644 index 0000000..1b0c613 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ProcessorParam.java @@ -0,0 +1,100 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +/******************************************************************************* + * Place class description here. + * + * @author inger + * @author + * + * @since + ******************************************************************************/ +public class ProcessorParam { + private String ifCond; + private String name; + private String unlessCond; + private String value; + public ProcessorParam() { + } + public String getName() { + return name; + } + public String getValue() { + return value; + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + */ + public boolean isActive(org.apache.tools.ant.Project p) { + if (value == null) { + return false; + } + if (ifCond != null && p.getProperty(ifCond) == null) { + return false; + } else if (unlessCond != null && p.getProperty(unlessCond) != null) { + return false; + } + return true; + } + /** + * Sets the property name for the 'if' condition. + * + * The argument will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Specifies relative location of argument on command line. "start" will + * place argument at start of command line, "mid" will place argument after + * all "start" arguments but before filenames, "end" will place argument + * after filenames. + * + */ + public void setName(String name) { + this.name = name; + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the argument will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } + /** + * Specifies the string that should appear on the command line. The + * argument will be quoted if it contains embedded blanks. Use multiple + * arguments to avoid quoting. + * + */ + public void setValue(String value) { + this.value = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/RuntimeType.java b/src/main/java/net/sf/antcontrib/cpptasks/RuntimeType.java new file mode 100644 index 0000000..6590098 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/RuntimeType.java @@ -0,0 +1,26 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * Enumerated attribute with the values "dynamic" and "static", + */ +public class RuntimeType extends EnumeratedAttribute { + public String[] getValues() { + return new String[]{"dynamic", "static"}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/SourceHistory.java b/src/main/java/net/sf/antcontrib/cpptasks/SourceHistory.java new file mode 100644 index 0000000..4ffd38f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/SourceHistory.java @@ -0,0 +1,51 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.io.IOException; +/** + * The history of a source file used to build a target + * + * @author Curt Arnold + */ +public final class SourceHistory { + private/* final */long lastModified; + private/* final */String relativePath; + /** + * Constructor + */ + public SourceHistory(String relativePath, long lastModified) { + if (relativePath == null) { + throw new NullPointerException("relativePath"); + } + this.relativePath = relativePath; + this.lastModified = lastModified; + } + public String getAbsolutePath(File baseDir) { + try { + return new File(baseDir, relativePath).getCanonicalPath(); + } catch (IOException ex) { + } + return relativePath; + } + public long getLastModified() { + return lastModified; + } + public String getRelativePath() { + return relativePath; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/SubsystemEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/SubsystemEnum.java new file mode 100644 index 0000000..19dd207 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/SubsystemEnum.java @@ -0,0 +1,34 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * Enumeration of supported subsystems + * + * @author Curt Arnold + * + */ +public final class SubsystemEnum extends EnumeratedAttribute { + private final static String[] values = new String[]{"gui", "console", + "other"}; + public SubsystemEnum() { + setValue("gui"); + } + public String[] getValues() { + return (String[]) values.clone(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetDef.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetDef.java new file mode 100644 index 0000000..70263ad --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetDef.java @@ -0,0 +1,228 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.Reference; + +/** + * Information on the execution platforms for the generated code. + * (Non-functional prototype) + * + */ +public final class TargetDef + extends DataType { + /** + * if property. + */ + private String ifCond; + + /** + * unless property. + */ + private String unlessCond; + + /** + * cpu. + * + */ + private CPUEnum cpu; + + /** + * architecture. + * + */ + private ArchEnum arch; + + /** + * OS Family. + * + */ + private OSFamilyEnum osFamily; + + /** + * Constructor. + * + */ + public TargetDef() { + } + + /** + * Bogus method required for documentation generation. + */ + public void execute() { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + * @return true if active + */ + public boolean isActive() { + return CUtil.isActive(getProject(), ifCond, unlessCond); + } + + /** + * Sets a description of the current data type. + * @param desc description + */ + public void setDescription(final String desc) { + super.setDescription(desc); + } + + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(final String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + + /** + * Sets the property name for the 'if' condition. + * + * The define will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public void setIf(final String propName) { + ifCond = propName; + } + + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. If + * specified, no other attributes should be specified. + * @param r id of referenced target + */ + public void setRefid(final Reference r) { + super.setRefid(r); + } + + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(final String propName) { + unlessCond = propName; + } + + /** + * Gets cpu. + * @return cpu, may be null. + * + */ + public CPUEnum getCpu() { + if (isReference()) { + TargetDef refPlatform = (TargetDef) + getCheckedRef(TargetDef.class, + "TargetDef"); + return refPlatform.getCpu(); + } + return cpu; + } + + /** + * Gets arch. + * @return arch, may be null. + * + */ + public ArchEnum getArch() { + if (isReference()) { + TargetDef refPlatform = (TargetDef) + getCheckedRef(TargetDef.class, + "TargetDef"); + return refPlatform.getArch(); + } + return arch; + } + + /** + * Gets operating system family. + * @return os family, may be null. + * + */ + public OSFamilyEnum getOsfamily() { + if (isReference()) { + TargetDef refPlatform = (TargetDef) + getCheckedRef(TargetDef.class, + "TargetDef"); + return refPlatform.getOsfamily(); + } + return osFamily; + } + + /** + * Sets preferred cpu, but does not use cpu specific instructions. + * @param value new value + */ + public void setCpu(final CPUEnum value) { + if (isReference()) { + throw tooManyAttributes(); + } + cpu = value; + } + + /** + * Sets cpu architecture, compiler may use cpu specific instructions. + * @param value new value + */ + public void setArch(final ArchEnum value) { + if (isReference()) { + throw tooManyAttributes(); + } + if (cpu != null) { + throw tooManyAttributes(); + } + arch = value; + } + + /** + * Sets operating system family. + * @param value new value + */ + public void setOsfamily(final OSFamilyEnum value) { + if (isReference()) { + throw tooManyAttributes(); + } + if (cpu != null) { + throw tooManyAttributes(); + } + osFamily = value; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetHistory.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetHistory.java new file mode 100644 index 0000000..b797170 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetHistory.java @@ -0,0 +1,58 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +/** + * A description of a file built or to be built + */ +public final class TargetHistory { + private/* final */String config; + private/* final */String output; + private/* final */long outputLastModified; + private/* final */SourceHistory[] sources; + /** + * Constructor from build step + */ + public TargetHistory(String config, String output, long outputLastModified, + SourceHistory[] sources) { + if (config == null) { + throw new NullPointerException("config"); + } + if (sources == null) { + throw new NullPointerException("source"); + } + if (output == null) { + throw new NullPointerException("output"); + } + this.config = config; + this.output = output; + this.outputLastModified = outputLastModified; + this.sources = (SourceHistory[]) sources.clone(); + } + public String getOutput() { + return output; + } + public long getOutputLastModified() { + return outputLastModified; + } + public String getProcessorConfiguration() { + return config; + } + public SourceHistory[] getSources() { + SourceHistory[] clone = (SourceHistory[]) sources.clone(); + return clone; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetHistoryTable.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetHistoryTable.java new file mode 100644 index 0000000..bdab94c --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetHistoryTable.java @@ -0,0 +1,430 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.UnsupportedEncodingException; +import java.util.Enumeration; +import java.util.Hashtable; +import java.util.Vector; + +import javax.xml.parsers.SAXParser; +import javax.xml.parsers.SAXParserFactory; + +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; + +import org.apache.tools.ant.BuildException; +import org.xml.sax.Attributes; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.DefaultHandler; +/** + * A history of the compiler and linker settings used to build the files in the + * same directory as the history. + * + * @author Curt Arnold + */ +public final class TargetHistoryTable { + /** + * This class handles populates the TargetHistory hashtable in response to + * SAX parse events + */ + private class TargetHistoryTableHandler extends DefaultHandler { + private final File baseDir; + private String config; + private final Hashtable history; + private String output; + private long outputLastModified; + private final Vector sources = new Vector(); + /** + * Constructor + * + * @param history + * hashtable of TargetHistory keyed by output name + * @param outputFiles + * existing files in output directory + */ + private TargetHistoryTableHandler(Hashtable history, File baseDir) { + this.history = history; + config = null; + output = null; + this.baseDir = baseDir; + } + public void endElement(String namespaceURI, String localName, + String qName) throws SAXException { + // + // if then + // create TargetHistory object and add to hashtable + // if corresponding output file exists and + // has the same timestamp + // + if (qName.equals("target")) { + if (config != null && output != null) { + File existingFile = new File(baseDir, output); + // + // if the corresponding files doesn't exist or has a + // different + // modification time, then discard this record + if (existingFile.exists()) { + // + // would have expected exact time stamps + // but have observed slight differences + // in return value for multiple evaluations of + // lastModified(). Check if times are within + // a second + long existingLastModified = existingFile.lastModified(); + if (!CUtil.isSignificantlyBefore(existingLastModified, outputLastModified) + && !CUtil.isSignificantlyAfter(existingLastModified, outputLastModified)) { + SourceHistory[] sourcesArray = new SourceHistory[sources + .size()]; + sources.copyInto(sourcesArray); + TargetHistory targetHistory = new TargetHistory( + config, output, outputLastModified, + sourcesArray); + history.put(output, targetHistory); + } + } + } + output = null; + sources.setSize(0); + } else { + // + // reset config so targets not within a processor element + // don't pick up a previous processors signature + // + if (qName.equals("processor")) { + config = null; + } + } + } + /** + * startElement handler + */ + public void startElement(String namespaceURI, String localName, + String qName, Attributes atts) throws SAXException { + // + // if sourceElement + // + if (qName.equals("source")) { + String sourceFile = atts.getValue("file"); + long sourceLastModified = Long.parseLong(atts + .getValue("lastModified"), 16); + sources.addElement(new SourceHistory(sourceFile, + sourceLastModified)); + } else { + // + // if element, + // grab file name and lastModified values + // TargetHistory object will be created in endElement + // + if (qName.equals("target")) { + sources.setSize(0); + output = atts.getValue("file"); + outputLastModified = Long.parseLong(atts + .getValue("lastModified"), 16); + } else { + // + // if element, + // grab signature attribute + // + if (qName.equals("processor")) { + config = atts.getValue("signature"); + } + } + } + } + } + /** Flag indicating whether the cache should be written back to file. */ + private boolean dirty; + /** + * a hashtable of TargetHistory's keyed by output file name + */ + private final Hashtable history = new Hashtable(); + /** The file the cache was loaded from. */ + private/* final */File historyFile; + private/* final */File outputDir; + private String outputDirPath; + /** + * Creates a target history table from history.xml in the output directory, + * if it exists. Otherwise, initializes the history table empty. + * + * @param task + * task used for logging history load errors + * @param outputDir + * output directory for task + */ + public TargetHistoryTable(CCTask task, File outputDir) + throws BuildException { + if (outputDir == null) { + throw new NullPointerException("outputDir"); + } + if (!outputDir.isDirectory()) { + throw new BuildException("Output directory is not a directory"); + } + if (!outputDir.exists()) { + throw new BuildException("Output directory does not exist"); + } + this.outputDir = outputDir; + try { + outputDirPath = outputDir.getCanonicalPath(); + } catch (IOException ex) { + outputDirPath = outputDir.toString(); + } + // + // load any existing history from file + // suppressing any records whose corresponding + // file does not exist, is zero-length or + // last modified dates differ + historyFile = new File(outputDir, "history.xml"); + if (historyFile.exists()) { + SAXParserFactory factory = SAXParserFactory.newInstance(); + factory.setValidating(false); + try { + SAXParser parser = factory.newSAXParser(); + parser.parse(historyFile, new TargetHistoryTableHandler( + history, outputDir)); + } catch (Exception ex) { + // + // a failure on loading this history is not critical + // but should be logged + task.log("Error reading history.xml: " + ex.toString()); + } + } else { + // + // create empty history file for identifying new files by last + // modified + // timestamp comperation (to compare with + // System.currentTimeMillis() don't work on Unix, because it + // maesure timestamps only in seconds). + // + try { + FileOutputStream outputStream = new FileOutputStream( + historyFile); + byte[] historyElement = new byte[]{0x3C, 0x68, 0x69, 0x73, + 0x74, 0x6F, 0x72, 0x79, 0x2F, 0x3E}; + outputStream.write(historyElement); + outputStream.close(); + } catch (IOException ex) { + throw new BuildException("Can't create history file", ex); + } + } + } + public void commit() throws IOException { + // + // if not dirty, no need to update file + // + if (dirty) { + // + // build (small) hashtable of config id's in history + // + Hashtable configs = new Hashtable(20); + Enumeration elements = history.elements(); + while (elements.hasMoreElements()) { + TargetHistory targetHistory = (TargetHistory) elements + .nextElement(); + String configId = targetHistory.getProcessorConfiguration(); + if (configs.get(configId) == null) { + configs.put(configId, configId); + } + } + FileOutputStream outStream = new FileOutputStream(historyFile); + OutputStreamWriter outWriter; + // + // early VM's don't support UTF-8 encoding + // try and fallback to the default encoding + // otherwise + String encodingName = "UTF-8"; + try { + outWriter = new OutputStreamWriter(outStream, "UTF-8"); + } catch (UnsupportedEncodingException ex) { + outWriter = new OutputStreamWriter(outStream); + encodingName = outWriter.getEncoding(); + } + BufferedWriter writer = new BufferedWriter(outWriter); + writer.write("\n"); + writer.write("\n"); + StringBuffer buf = new StringBuffer(200); + Enumeration configEnum = configs.elements(); + while (configEnum.hasMoreElements()) { + String configId = (String) configEnum.nextElement(); + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + elements = history.elements(); + while (elements.hasMoreElements()) { + TargetHistory targetHistory = (TargetHistory) elements + .nextElement(); + if (targetHistory.getProcessorConfiguration().equals( + configId)) { + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + SourceHistory[] sourceHistories = targetHistory + .getSources(); + for (int i = 0; i < sourceHistories.length; i++) { + buf.setLength(0); + buf.append(" \n"); + writer.write(buf.toString()); + } + writer.write(" \n"); + } + } + writer.write(" \n"); + } + writer.write("\n"); + writer.close(); + dirty = false; + } + } + public TargetHistory get(String configId, String outputName) { + TargetHistory targetHistory = (TargetHistory) history.get(outputName); + if (targetHistory != null) { + if (!targetHistory.getProcessorConfiguration().equals(configId)) { + targetHistory = null; + } + } + return targetHistory; + } + public void markForRebuild(Hashtable targetInfos) { + Enumeration targetInfoEnum = targetInfos.elements(); + while (targetInfoEnum.hasMoreElements()) { + markForRebuild((TargetInfo) targetInfoEnum.nextElement()); + } + } + public void markForRebuild(TargetInfo targetInfo) { + // + // if it must already be rebuilt, no need to check further + // + if (!targetInfo.getRebuild()) { + TargetHistory history = get(targetInfo.getConfiguration() + .toString(), targetInfo.getOutput().getName()); + if (history == null) { + targetInfo.mustRebuild(); + } else { + SourceHistory[] sourceHistories = history.getSources(); + File[] sources = targetInfo.getSources(); + if (sourceHistories.length != sources.length) { + targetInfo.mustRebuild(); + } else { + Hashtable sourceMap = new Hashtable(sources.length); + for (int i = 0; i < sources.length; i++) { + try { + sourceMap.put(sources[i].getCanonicalPath(), sources[i]); + } catch(IOException ex) { + sourceMap.put(sources[i].getAbsolutePath(), sources[i]); + } + } + for (int i = 0; i < sourceHistories.length; i++) { + // + // relative file name, must absolutize it on output + // directory + // + String absPath = sourceHistories[i].getAbsolutePath(outputDir); + File match = (File) sourceMap.get(absPath); + if (match != null) { + try { + match = (File) sourceMap.get(new File(absPath).getCanonicalPath()); + } catch(IOException ex) { + targetInfo.mustRebuild(); + break; + } + } + if (match == null || match.lastModified() != sourceHistories[i].getLastModified()) { + targetInfo.mustRebuild(); + break; + } + } + } + } + } + } + public void update(ProcessorConfiguration config, String[] sources, VersionInfo versionInfo) { + String configId = config.getIdentifier(); + String[] onesource = new String[1]; + String[] outputNames; + for (int i = 0; i < sources.length; i++) { + onesource[0] = sources[i]; + outputNames = config.getOutputFileNames(sources[i], versionInfo); + for (int j = 0; j < outputNames.length; j++) { + update(configId, outputNames[j], onesource); + } + } + } + private void update(String configId, String outputName, String[] sources) { + File outputFile = new File(outputDir, outputName); + // + // if output file doesn't exist or predates the start of the + // compile step (most likely a compilation error) then + // do not write add a history entry + // + if (outputFile.exists() && + !CUtil.isSignificantlyBefore(outputFile.lastModified(), historyFile.lastModified())) { + dirty = true; + history.remove(outputName); + SourceHistory[] sourceHistories = new SourceHistory[sources.length]; + for (int i = 0; i < sources.length; i++) { + File sourceFile = new File(sources[i]); + long lastModified = sourceFile.lastModified(); + String relativePath = CUtil.getRelativePath(outputDirPath, + sourceFile); + sourceHistories[i] = new SourceHistory(relativePath, + lastModified); + } + TargetHistory newHistory = new TargetHistory(configId, outputName, + outputFile.lastModified(), sourceHistories); + history.put(outputName, newHistory); + } + } + public void update(TargetInfo linkTarget) { + File outputFile = linkTarget.getOutput(); + String outputName = outputFile.getName(); + // + // if output file doesn't exist or predates the start of the + // compile or link step (most likely a compilation error) then + // do not write add a history entry + // + if (outputFile.exists() + && !CUtil.isSignificantlyBefore(outputFile.lastModified(),historyFile.lastModified())) { + dirty = true; + history.remove(outputName); + SourceHistory[] sourceHistories = linkTarget + .getSourceHistories(outputDirPath); + TargetHistory newHistory = new TargetHistory(linkTarget + .getConfiguration().getIdentifier(), outputName, outputFile + .lastModified(), sourceHistories); + history.put(outputName, newHistory); + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetInfo.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetInfo.java new file mode 100644 index 0000000..8fd5bb4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetInfo.java @@ -0,0 +1,127 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +/** + * A description of a file built or to be built + */ +public final class TargetInfo { + private static final File[] emptyFileArray = new File[0]; + private/* final */ProcessorConfiguration config; + private/* final */File output; + private boolean rebuild; + private/* final */File[] sources; + private File[] sysSources; + public TargetInfo(ProcessorConfiguration config, File[] sources, + File[] sysSources, File output, boolean rebuild) { + if (config == null) { + throw new NullPointerException("config"); + } + if (sources == null) { + throw new NullPointerException("sources"); + } + if (output == null) { + throw new NullPointerException("output"); + } + this.config = config; + this.sources = (File[]) sources.clone(); + if (sysSources == null) { + this.sysSources = emptyFileArray; + } else { + this.sysSources = (File[]) sysSources.clone(); + } + this.output = output; + this.rebuild = rebuild; + // + // if the output doesn't exist, must rebuild it + // + if (!output.exists()) { + rebuild = true; + } + } + public String[] getAllSourcePaths() { + String[] paths = new String[sysSources.length + sources.length]; + for (int i = 0; i < sysSources.length; i++) { + paths[i] = sysSources[i].toString(); + } + int offset = sysSources.length; + for (int i = 0; i < sources.length; i++) { + paths[offset + i] = sources[i].toString(); + } + return paths; + } + public File[] getAllSources() { + File[] allSources = new File[sources.length + sysSources.length]; + for (int i = 0; i < sysSources.length; i++) { + allSources[i] = sysSources[i]; + } + int offset = sysSources.length; + for (int i = 0; i < sources.length; i++) { + allSources[i + offset] = sources[i]; + } + return allSources; + } + public ProcessorConfiguration getConfiguration() { + return config; + } + public File getOutput() { + return output; + } + public boolean getRebuild() { + return rebuild; + } + /** + * Returns an array of SourceHistory objects (contains relative path and + * last modified time) for the source[s] of this target + */ + public SourceHistory[] getSourceHistories(String basePath) { + SourceHistory[] histories = new SourceHistory[sources.length]; + for (int i = 0; i < sources.length; i++) { + String relativeName = CUtil.getRelativePath(basePath, sources[i]); + long lastModified = sources[i].lastModified(); + histories[i] = new SourceHistory(relativeName, lastModified); + } + return histories; + } + public String[] getSourcePaths() { + String[] paths = new String[sources.length]; + for (int i = 0; i < sources.length; i++) { + paths[i] = sources[i].toString(); + } + return paths; + } + public File[] getSources() { + File[] clone = (File[]) sources.clone(); + return clone; + } + public String[] getSysSourcePaths() { + String[] paths = new String[sysSources.length]; + for (int i = 0; i < sysSources.length; i++) { + paths[i] = sysSources[i].toString(); + } + return paths; + } + public File[] getSysSources() { + File[] clone = (File[]) sysSources.clone(); + return clone; + } + public void mustRebuild() { + this.rebuild = true; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java new file mode 100644 index 0000000..9260f77 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java @@ -0,0 +1,120 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import java.io.File; +import java.util.Hashtable; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.LinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; + +import org.apache.tools.ant.BuildException; +/** + * This class matches each visited file with an appropriate compiler + * + * @author Curt Arnold + */ +public final class TargetMatcher implements FileVisitor { + private LinkerConfiguration linker; + private Vector objectFiles; + private File outputDir; + private ProcessorConfiguration[] processors; + private final File sourceFiles[] = new File[1]; + private Hashtable targets; + private VersionInfo versionInfo; + private CCTask task; + public TargetMatcher(CCTask task, File outputDir, + ProcessorConfiguration[] processors, LinkerConfiguration linker, + Vector objectFiles, Hashtable targets, + VersionInfo versionInfo) { + this.task = task; + this.outputDir = outputDir; + this.processors = processors; + this.targets = targets; + this.linker = linker; + this.objectFiles = objectFiles; + this.versionInfo = versionInfo; + } + public void visit(File parentDir, String filename) throws BuildException { + File fullPath = new File(parentDir, filename); + // + // see if any processor wants to bid + // on this one + ProcessorConfiguration selectedCompiler = null; + int bid = 0; + if (processors != null) { + for (int k = 0; k < processors.length; k++) { + int newBid = processors[k].bid(fullPath.toString()); + if (newBid > bid) { + bid = newBid; + selectedCompiler = processors[k]; + } + } + } + // + // no processor interested in file + // log diagnostic message + if (bid <= 0) { + if (linker != null) { + int linkerbid = linker.bid(filename); + if (linkerbid > 0) { + objectFiles.addElement(fullPath); + if (linkerbid == 1) { + task.log("Unrecognized file type " + fullPath.toString() + + " will be passed to linker"); + } + } + } + } else { + // + // get output file name + // + String[] outputFileNames = selectedCompiler + .getOutputFileNames(filename, versionInfo); + sourceFiles[0] = fullPath; + // + // if there is some output for this task + // (that is a source file and not an header file) + // + for (int i = 0; i < outputFileNames.length; i++) { + // + // see if the same output file has already been registered + // + TargetInfo previousTarget = (TargetInfo) targets + .get(outputFileNames[i]); + if (previousTarget == null) { + targets.put(outputFileNames[i], new TargetInfo( + selectedCompiler, sourceFiles, null, new File( + outputDir, outputFileNames[i]), + selectedCompiler.getRebuild())); + } else { + if (!previousTarget.getSources()[0].equals(sourceFiles[0])) { + StringBuffer builder = new StringBuffer( + "Output filename conflict: "); + builder.append(outputFileNames[i]); + builder.append(" would be produced from "); + builder.append(previousTarget.getSources()[0] + .toString()); + builder.append(" and "); + builder.append(filename); + throw new BuildException(builder.toString()); + } + } + } + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/VersionInfo.java b/src/main/java/net/sf/antcontrib/cpptasks/VersionInfo.java new file mode 100644 index 0000000..92cfeb0 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/VersionInfo.java @@ -0,0 +1,671 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; + +import java.util.Vector; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.Reference; + +/** + * Version Information. + * + * This information is applied in a platform specific manner + * to embed version information into executable images. This + * behavior is new and subject to change. + * + * On the Microsoft Windows platform, a resource is generated and added + * to the set of files to be compiled. A resource compiler must + * be specified to compile the generated file. + * + * On Unix platforms, versioninfo is currently not used. + * Future versions may append fileversion to the output file name, + * use compatibility version for -soname and possibly create + * symbolic links. + */ +public final class VersionInfo extends DataType { + /** + * if property. + */ + private String ifCond; + /** + * unless property. + */ + private String unlessCond; + + /** + * extends property. + */ + private Reference extendsRef; + + /** + * file version. + * + */ + private String fileVersion; + /** + * Product version. + * + */ + private String productVersion; + /** + * file language. + * + */ + private String language; + + /** + * comments. + * + */ + private String fileComments; + /** + * Company name. + * + */ + private String companyName; + /** + * Description. + * + */ + private String fileDescription; + /** + * internal name. + */ + private String internalName; + /** + * legal copyright. + * + */ + private String legalCopyright; + /** + * legal trademark. + * + */ + private String legalTrademarks; + /** + * original filename. + * + */ + private String originalFilename; + /** + * private build. + * + */ + private String privateBuild; + /** + * product name. + * + */ + private String productName; + /** + * Special build + */ + private String specialBuild; + /** + * compatibility version + * + */ + private String compatibilityVersion; + + /** + * prerease build. + * + */ + private Boolean prerelease; + + /** + * prerease build. + * + */ + private Boolean patched; + + + /** + * Constructor. + * + */ + public VersionInfo() { + } + + /** + * Private constructor for merge. + * @param stack list of version infos with most significant first. + */ + private VersionInfo(final Vector stack) { + VersionInfo source = null; + for(int i = stack.size() - 1; i >= 0; i--) { + source = (VersionInfo) stack.elementAt(i); + if (source.getIf() != null) { + ifCond = source.getIf(); + } + if (source.getUnless() != null) { + unlessCond = source.getUnless(); + } + if (source.getFileversion() != null) { + fileVersion = source.getFileversion(); + } + if (source.getProductversion() != null) { + productVersion = source.getProductversion(); + } + if (source.getLanguage() != null) { + language = source.getLanguage(); + } + if (source.getFilecomments() != null) { + fileComments = source.getFilecomments(); + } + if (source.getCompanyname() != null) { + companyName = source.getCompanyname(); + } + if (source.getFiledescription() != null) { + fileDescription = source.getFiledescription(); + } + if (source.getInternalname() != null) { + internalName = source.getInternalname(); + } + if (source.getLegalcopyright() != null) { + legalCopyright = source.getLegalcopyright(); + } + if (source.getLegaltrademarks() != null) { + legalTrademarks = source.getLegaltrademarks(); + } + if (source.getOriginalfilename() != null) { + originalFilename = source.getOriginalfilename(); + } + if (source.getPrivatebuild() != null) { + privateBuild = source.getPrivatebuild(); + } + if (source.getProductname() != null) { + productName = source.getProductname(); + } + if (source.getSpecialbuild() != null) { + specialBuild = source.getSpecialbuild(); + } + if (source.getCompatibilityversion() != null) { + compatibilityVersion = source.getCompatibilityversion(); + } + if (source.getPrerelease() != null) { + prerelease = source.getPrerelease(); + } + if (source.getPatched() != null) { + patched = source.getPatched(); + } + } + setProject(source.getProject()); + } + + /** + * Returns a VersionInfo that reflects any inherited version information. + * @return merged version information. + */ + public VersionInfo merge() { + if (isReference()) { + VersionInfo refVersion = (VersionInfo) + getCheckedRef(VersionInfo.class, + "VersionInfo"); + return refVersion.merge(); + } + Reference currentRef = this.getExtends(); + if (currentRef == null) { + return this; + } + Vector stack = new Vector(5); + stack.addElement(this); + while (currentRef != null) { + Object obj = currentRef.getReferencedObject(getProject()); + if (obj instanceof VersionInfo) { + VersionInfo current = (VersionInfo) obj; + if (current.isReference()) { + current = (VersionInfo) + current.getCheckedRef(VersionInfo.class, + "VersionInfo"); + } + if (stack.contains(current)) { + throw this.circularReference(); + } + stack.addElement(current); + currentRef = current.getExtends(); + } else { + throw new BuildException("Referenced element " + + currentRef.getRefId() + " is not a versioninfo."); + } + } + return new VersionInfo(stack); + } + /** + * Methods is required for documentation generation, throws + * exception if called. + * + * @throws org.apache.tools.ant.BuildException if called + */ + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + * + * @exception BuildException + * throws build exception if name is not set + */ + public final boolean isActive() throws BuildException { + return CUtil.isActive(getProject(), ifCond, unlessCond); + } + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + + public Reference getExtends() { + return this.extendsRef; + } + /** + * Specifies that this element extends the element with id attribute with a + * matching value. The configuration will be constructed from the settings + * of this element, element referenced by extends, and the containing cc + * element. + * + * @param extendsRef + * Reference to the extended processor definition. + * @throws BuildException + * if this processor definition is a reference + */ + public void setExtends(Reference extendsRef) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + this.extendsRef = extendsRef; + } + + /** + * Gets if property name. + * @return property name, may be null. + */ + public final String getIf() { + return ifCond; + } + /** + * Sets the property name for the 'if' condition. + * + * The define will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public final void setIf(String propName) { + if (isReference()) { + throw tooManyAttributes(); + } + ifCond = propName; + } + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. If + * specified, no other attributes should be specified. + * + */ + public void setRefid(Reference r) throws BuildException { + super.setRefid(r); + } + /** + * Gets if property name. + * @return property name, may be null. + */ + public final String getUnless() { + return unlessCond; + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public final void setUnless(String propName) { + if (isReference()) { + throw tooManyAttributes(); + } + unlessCond = propName; + } + /** + * Gets file version. + * @return file version, may be null. + * + */ + public String getFileversion() { + return fileVersion; + } + /** + * Gets Product version. + * @return product version, may be null + */ + public String getProductversion() { + return productVersion; + } + /** + * Gets compatibility version. + * @return compatibility version, may be null + */ + public String getCompatibilityversion() { + return compatibilityVersion; + } + /** + * Gets file language, should be an IETF RFC 3066 identifier, for example, en-US. + * @return language, may be null. + */ + public String getLanguage() { + return language; + } + + /** + * Gets comments. + * @return comments, may be null. + */ + public String getFilecomments() { + return fileComments; + } + /** + * Gets Company name. + * @return company name, may be null. + */ + public String getCompanyname() { + return companyName; + } + /** + * Gets Description. + * @return description, may be null. + */ + public String getFiledescription() { + return fileDescription; + } + /** + * Gets internal name. + * @return internal name, may be null. + */ + public String getInternalname() { + return internalName; + } + /** + * Gets legal copyright. + * @return legal copyright, may be null. + */ + public String getLegalcopyright() { + return legalCopyright; + } + /** + * Gets legal trademark. + * @return legal trademark, may be null; + */ + public String getLegaltrademarks() { + return legalTrademarks; + } + /** + * Gets original filename. + * @return original filename, may be null. + */ + public String getOriginalfilename() { + return originalFilename; + } + /** + * Gets private build. + * @return private build, may be null. + */ + public String getPrivatebuild() { + return privateBuild; + } + /** + * Gets prerelease. + * @return prerelease, may be null. + */ + public Boolean getPrerelease() { + return prerelease; + } + /** + * Gets patched. + * @return patched, may be null. + */ + public Boolean getPatched() { + return patched; + } + /** + * Gets product name. + * @return product name, may be null. + */ + public String getProductname() { + return productName; + } + /** + * Special build + * @return special build, may be null. + */ + public String getSpecialbuild() { + return specialBuild; + } + + /** + * Sets file version. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setFileversion(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + fileVersion = value; + } + /** + * Sets product version. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setProductversion(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + productVersion = value; + } + /** + * Sets compatibility version. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setCompatibilityversion(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + compatibilityVersion = value; + } + /** + * Sets language. + * @param value new value, should be an IETF RFC 3066 language identifier. + * @throws BuildException if specified with refid + */ + public void setLanguage(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + language = value; + } + /** + * Sets comments. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setFilecomments(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + fileComments = value; + } + + /** + * Sets file description. + * @param value new value + */ + public void setFiledescription(String value) { + if (isReference()) { + throw tooManyAttributes(); + } + fileDescription = value; + } + + /** + * Sets company name. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setCompanyname(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + companyName = value; + } + + + /** + * Sets internal name. Internal name will automatically be + * specified from build step, only set this value if + * intentionally overriding that value. + * + * @param value new value + * @throws BuildException if specified with refid + */ + public void setInternalname(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + internalName = value; + } + + /** + * Sets legal copyright. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setLegalcopyright(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + legalCopyright = value; + } + /** + * Sets legal trademark. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setLegaltrademarks(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + legalTrademarks = value; + } + /** + * Sets original name. Only set this value if + * intentionally overriding the value from the build set. + * + * @param value new value + * @throws BuildException if specified with refid + */ + public void setOriginalfilename(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + originalFilename = value; + } + /** + * Sets private build. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setPrivatebuild(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + privateBuild = value; + } + /** + * Sets prerelease. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setPrerelease(boolean value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + if (value) { + prerelease = Boolean.TRUE; + } else { + prerelease = Boolean.FALSE; + } + } + /** + * Sets prerelease. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setPatched(boolean value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + if (value) { + patched = Boolean.TRUE; + } else { + patched = Boolean.FALSE; + } + } + /** + * Sets product name. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setProductname(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + productName= value; + } + /** + * Sets private build. + * @param value new value + * @throws BuildException if specified with refid + */ + public void setSpecialbuild(String value) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + specialBuild = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java new file mode 100644 index 0000000..6ba7438 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/WarningLevelEnum.java @@ -0,0 +1,40 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks; +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumerated attribute with the values "none", "severe", "default", + * "production", "diagnostic", and "aserror". + */ +public final class WarningLevelEnum extends EnumeratedAttribute { + /** + * Constructor. + * + */ + public WarningLevelEnum() { + setValue("default"); + } + /** + * Get allowable values. + * @return allowable values + */ + public String[] getValues() { + return new String[]{"none", "severe", "default", "production", + "diagnostic", "aserror"}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.java b/src/main/java/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.java new file mode 100644 index 0000000..c3a6807 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/apple/PropertyListSerialization.java @@ -0,0 +1,235 @@ +/* + * Licensed to the Ant-Contrib Project under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The Ant-Contrib licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.apple; + +import org.xml.sax.ContentHandler; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.AttributesImpl; + +import javax.xml.transform.Result; +import javax.xml.transform.TransformerConfigurationException; +import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.sax.SAXTransformerFactory; +import javax.xml.transform.sax.TransformerHandler; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.io.File; +import java.io.IOException; +import java.io.FileOutputStream; + +/** + * Static class that provides methods to serialize + * a Map to a Cocoa XML Property List. Does not currently support + * date or data elements. + */ +public final class PropertyListSerialization { + /** + * Private constructor. + */ + private PropertyListSerialization() { + + } + + /** + * Serializes a property list into a Cocoa XML Property List document. + * @param propertyList property list. + * @param file destination. + * @param comments comments to insert into document. + * @throws SAXException if exception during serialization. + * @throws TransformerConfigurationException if exception creating serializer. + */ + public static void serialize(final Map propertyList, + final List comments, + final File file) + throws IOException, SAXException, + TransformerConfigurationException { + SAXTransformerFactory sf = (SAXTransformerFactory) + SAXTransformerFactory.newInstance(); + TransformerHandler handler = sf.newTransformerHandler(); + + FileOutputStream os = new FileOutputStream(file); + StreamResult result = new StreamResult(os); + handler.setResult(result); + + handler.startDocument(); + for(Iterator iter = comments.iterator(); iter.hasNext();) { + char[] comment = String.valueOf(iter.next()).toCharArray(); + handler.comment(comment, 0, comment.length); + } + AttributesImpl attributes = new AttributesImpl(); + handler.startElement(null, "plist", "plist", attributes); + serializeMap(propertyList, handler); + handler.endElement(null, "plist", "plist"); + + handler.endDocument(); + } + + /** + * Serialize a map as a dict element. + * @param map map to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeMap(final Map map, + final ContentHandler handler) + throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + handler.startElement(null, "dict", "dict", attributes); + + if (map.size() > 0) { + // + // need to output with sorted keys to maintain + // reproducability + // + Object[] keys = map.keySet().toArray(); + Arrays.sort(keys); + for(int i = 0; i < keys.length; i++) { + String key = String.valueOf(keys[i]); + handler.startElement(null, "key", "key", attributes); + handler.characters(key.toCharArray(), 0, key.length()); + handler.endElement(null, "key", "key"); + serializeObject(map.get(keys[i]), handler); + } + } + handler.endElement(null, "dict", "dict"); + } + + /** + * Serialize a list as an array element. + * @param list list to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeList(final List list, + final ContentHandler handler) + throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + handler.startElement(null, "array", "array", attributes); + for(Iterator iter = list.iterator();iter.hasNext();) { + serializeObject(iter.next(), handler); + } + handler.endElement(null, "array", "array"); + } + + /** + * Creates an element with the specified tag name and character content. + * @param tag tag name. + * @param content character content. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeElement(final String tag, + final String content, + final ContentHandler handler) + throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + handler.startElement(null, tag, tag, attributes); + handler.characters(content.toCharArray(), 0, content.length()); + handler.endElement(null, tag, tag); + } + + + /** + * Serialize a Number as an integer element. + * @param integer number to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeInteger(final Number integer, + final ContentHandler handler) + throws SAXException { + serializeElement("integer", String.valueOf(integer.longValue()), + handler); + } + + /** + * Serialize a Number as a real element. + * @param real number to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeReal(final Number real, + final ContentHandler handler) + throws SAXException { + serializeElement("real", + String.valueOf(real.doubleValue()), + handler); + } + + + /** + * Serialize a Boolean as a true or false element. + * @param val boolean to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeBoolean(final Boolean val, + final ContentHandler handler) + throws SAXException { + String tag = "false"; + if (val.booleanValue()) { + tag = "true"; + } + AttributesImpl attributes = new AttributesImpl(); + handler.startElement(null, tag, tag, attributes); + handler.endElement(null, tag, tag); + } + + /** + * Serialize a string as a string element. + * @param val string to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeString(final String val, + final ContentHandler handler) + throws SAXException { + serializeElement("string", + val, + handler); + } + + + /** + * Serialize an object using the best available element. + * @param obj object to serialize. + * @param handler destination of serialization events. + * @throws SAXException if exception during serialization. + */ + private static void serializeObject(final Object obj, + final ContentHandler handler) + throws SAXException { + if (obj instanceof Map) { + serializeMap((Map) obj, handler); + } else if (obj instanceof List) { + serializeList((List) obj, handler); + } else if (obj instanceof Number) { + if(obj instanceof Double + ||obj instanceof Float) { + serializeReal((Number) obj, handler); + } else { + serializeInteger((Number) obj, handler); + } + } else if (obj instanceof Boolean) { + serializeBoolean((Boolean) obj, handler); + } else { + serializeString(String.valueOf(obj), handler); + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.java b/src/main/java/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.java new file mode 100644 index 0000000..f901b4d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/apple/XcodeProjectWriter.java @@ -0,0 +1,1016 @@ +/* + * + * Copyright 2004-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.apple; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +import net.sf.antcontrib.cpptasks.ide.DependencyDef; +import net.sf.antcontrib.cpptasks.ide.ProjectDef; +import net.sf.antcontrib.cpptasks.ide.ProjectWriter; +import org.apache.tools.ant.BuildException; +import org.xml.sax.SAXException; + +import javax.xml.transform.TransformerConfigurationException; +import java.io.File; +import java.io.IOException; +import java.text.NumberFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.Hashtable; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; +import java.util.Map; + + +/** + * Writes a Apple Xcode 2.1+ project directory. XCode stores project + * configuration as a PropertyList. Though it will always write the project + * as a Cocoa Old-Style ASCII property list, it will read projects + * stored using Cocoa's XML Property List format. + */ +public final class XcodeProjectWriter + implements ProjectWriter { + + /** + * Constructor. + */ + public XcodeProjectWriter() { + } + + /** + * Writes a project definition file. + * + * @param fileName File name base, writer may append appropriate extension + * @param task cc task for which to write project + * @param projectDef project element + * @param targets compilation targets + * @param linkTarget link target + * @throws IOException if error writing project file + */ + public void writeProject(final File fileName, + final CCTask task, + final ProjectDef projectDef, + final List sources, + final Hashtable targets, + final TargetInfo linkTarget) throws IOException { + + File xcodeDir = new File(fileName + ".xcodeproj"); + if (!projectDef.getOverwrite() && xcodeDir.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + xcodeDir.toString()); + } + + CommandLineCompilerConfiguration compilerConfig = + getBaseCompilerConfiguration(targets); + if (compilerConfig == null) { + throw new BuildException( + "Unable to find compilation target using GNU C++ compiler"); + } + + + CommandLineLinkerConfiguration linkerConfig = null; + if (linkTarget.getConfiguration() instanceof CommandLineLinkerConfiguration) { + linkerConfig = (CommandLineLinkerConfiguration) linkTarget.getConfiguration(); + } + + String projectName = projectDef.getName(); + if (projectName == null) { + projectName = fileName.getName(); + } + final String basePath = fileName.getAbsoluteFile().getParent(); + + xcodeDir.mkdir(); + + File xcodeProj = new File(xcodeDir, "project.pbxproj"); + + // + // create property list + // + Map propertyList = new HashMap(); + propertyList.put("archiveVersion", "1"); + propertyList.put("classes", new HashMap()); + propertyList.put("objectVersion", "42"); + Map objects = new HashMap(); + + final String sourceTree = ""; + + // + // add source files and source group to property list + // + List sourceGroupChildren = + addSources(objects, "SOURCE_ROOT", basePath, targets); + PBXObjectRef sourceGroup = + createPBXGroup("Source", sourceTree, sourceGroupChildren); + objects.put(sourceGroup.getID(), sourceGroup.getProperties()); + + + + + // + // add product to property list + // + PBXObjectRef product = addProduct(objects, linkTarget); + List productsList = new ArrayList(); + productsList.add(product); + PBXObjectRef productsGroup = + createPBXGroup("Products", sourceTree, productsList); + objects.put(productsGroup.getID(), productsGroup.getProperties()); + + // + // add documentation group to property list + // + PBXObjectRef documentationGroup = addDocumentationGroup(objects, sourceTree); + + // + // add main group containing source, products and documentation group + // + ArrayList groups = new ArrayList(3); + groups.add(sourceGroup); + groups.add(documentationGroup); + groups.add(productsGroup); + PBXObjectRef mainGroup = createPBXGroup(projectName, sourceTree, groups); + StringBuffer comments = new StringBuffer(); + for(Iterator iter = projectDef.getComments().iterator(); iter.hasNext();) { + comments.append(iter.next()); + } + if (comments.length() > 0) { + mainGroup.getProperties().put("comments", comments.toString()); + } + objects.put(mainGroup.getID(), mainGroup.getProperties()); + + // + // add project configurations + // + PBXObjectRef compilerConfigurations = + addProjectConfigurationList(objects, + basePath, + projectDef.getDependencies(), + compilerConfig, + linkerConfig); + + String projectDirPath = ""; + List projectTargets = new ArrayList(); + + // + // add project to property list + // + // + // Calculate path (typically several ../..) of the root directory + // (where build.xml lives) relative to the XCode project directory. + // XCode 3.0 will now prompt user to supply the value if not specified. + String projectRoot = CUtil.toUnixPath( + CUtil.getRelativePath(basePath, projectDef.getProject().getBaseDir())); + PBXObjectRef project = createPBXProject(compilerConfigurations, mainGroup, + projectDirPath, projectRoot, projectTargets); + objects.put(project.getID(), project.getProperties()); + + List frameworkBuildFiles = new ArrayList(); + for (Iterator iter = projectDef.getDependencies().iterator(); iter.hasNext();) { + DependencyDef dependency = (DependencyDef) iter.next(); + PBXObjectRef buildFile = addDependency(objects, project, groups, basePath, dependency); + if (buildFile != null) { + frameworkBuildFiles.add(buildFile); + } + } + // + // add description of native target (that is the executable or + // shared library) + // + PBXObjectRef nativeTarget = + addNativeTarget(objects, linkTarget, product, + projectName, sourceGroupChildren, frameworkBuildFiles); + projectTargets.add(nativeTarget); + + + + + + // + // finish up overall property list + // + propertyList.put("objects", objects); + propertyList.put("rootObject", project.getID()); + + + // + // write property list out to XML file + // + try { + PropertyListSerialization.serialize(propertyList, + projectDef.getComments(), xcodeProj); + } catch (TransformerConfigurationException ex) { + throw new IOException(ex.toString()); + } catch (SAXException ex) { + if (ex.getException() instanceof IOException) { + throw (IOException) ex.getException(); + } + throw new IOException(ex.toString()); + } + } + + + /** + * Adds a dependency to the object graph. + * @param objects + * @param project + * @param mainGroupChildren + * @param baseDir + * @param dependency + * @return PBXBuildFile to add to PBXFrameworksBuildPhase. + */ + private PBXObjectRef addDependency(final Map objects, + final PBXObjectRef project, + final List mainGroupChildren, + final String baseDir, + final DependencyDef dependency) { + if (dependency.getFile() != null) { + File xcodeDir = new File(dependency.getFile().getAbsolutePath() + ".xcodeproj"); + if (xcodeDir.exists()) { + PBXObjectRef xcodePrj = createPBXFileReference("SOURCE_ROOT", baseDir, xcodeDir); + mainGroupChildren.add(xcodePrj); + objects.put(xcodePrj.getID(), xcodePrj.getProperties()); + + int proxyType = 2; + PBXObjectRef proxy = createPBXContainerItemProxy( + xcodePrj, proxyType, dependency.getName()); + objects.put(proxy.getID(), proxy.getProperties()); + + PBXObjectRef referenceProxy = createPBXReferenceProxy(proxy, dependency); + objects.put(referenceProxy.getID(), referenceProxy.getProperties()); + + PBXObjectRef buildFile = createPBXBuildFile(referenceProxy, Collections.EMPTY_MAP); + objects.put(buildFile.getID(), buildFile.getProperties()); + + List productsChildren = new ArrayList(); + productsChildren.add(referenceProxy); + PBXObjectRef products = createPBXGroup("Products", "", productsChildren); + objects.put(products.getID(), products.getProperties()); + + Map projectReference = new HashMap(); + projectReference.put("ProductGroup", products); + projectReference.put("ProjectRef", xcodePrj); + + List projectReferences = (List) project.getProperties().get("ProjectReferences"); + if (projectReferences == null) { + projectReferences = new ArrayList(); + project.getProperties().put("ProjectReferences", projectReferences); + } + projectReferences.add(projectReference); + return buildFile; + } + } + return null; + } + + /** + * Add documentation group to map of objects. + * @param objects object map. + * @param sourceTree source tree description. + * @return documentation group. + */ + private PBXObjectRef addDocumentationGroup(final Map objects, + final String sourceTree) { + List productsList = new ArrayList(); + PBXObjectRef products = + createPBXGroup("Documentation", sourceTree, productsList); + objects.put(products.getID(), products.getProperties()); + return products; + } + + /** + * Add file reference of product to map of objects. + * @param objects object map. + * @param linkTarget build description for executable or shared library. + * @return file reference to generated executable or shared library. + */ + private PBXObjectRef addProduct(final Map objects, + final TargetInfo linkTarget) { + + // + // create file reference for executable file + // forget Ant's location, just place in XCode's default location + PBXObjectRef executable = createPBXFileReference("BUILD_PRODUCTS_DIR", + linkTarget.getOutput().getParent(), + linkTarget.getOutput()); + Map executableProperties = executable.getProperties(); + + String fileType = getFileType(linkTarget); + executableProperties.put("explicitFileType", fileType); + executableProperties.put("includeInIndex", "0"); + objects.put(executable.getID(), executableProperties); + + return executable; + } + + + /** + * Add file references for all source files to map of objects. + * @param objects map of objects. + * @param sourceTree source tree. + * @param basePath parent of XCode project dir + * @param targets build targets. + * @return list containing file references of source files. + */ + private List addSources(final Map objects, + final String sourceTree, + final String basePath, + final Hashtable targets) { + List sourceGroupChildren = new ArrayList(); + + ArrayList sourceList = new ArrayList(targets.size()); + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo info = (TargetInfo) targetIter.next(); + File[] targetsources = info.getSources(); + for (int i = 0; i < targetsources.length; i++) { + sourceList.add(targetsources[i]); + } + } + Object[] sortedSources = sourceList.toArray(); + Arrays.sort(sortedSources, new Comparator() { + public int compare(final Object o1, final Object o2) { + return (((File) o1).getName().compareTo( + ((File) o2).getName())); + } + }); + for (int i = 0; i < sortedSources.length; i++) { + PBXObjectRef fileRef = createPBXFileReference(sourceTree, + basePath, (File) sortedSources[i]); + sourceGroupChildren.add(fileRef); + objects.put(fileRef.getID(), fileRef.getProperties()); + } + + return sourceGroupChildren; + } + + /** + * Add native target configuration list. + * @param objects map of objects. + * @param projectName project name. + * @return build configurations for native target. + */ + private PBXObjectRef addNativeTargetConfigurationList(final Map objects, + final String projectName) { + + // + // Create a configuration list with + // two stock configurations: Debug and Release + // + List configurations = new ArrayList(); + Map debugSettings = new HashMap(); + debugSettings.put("COPY_PHASE_STRIP", "NO"); + debugSettings.put("GCC_DYNAMIC_NO_PIC", "NO"); + debugSettings.put("GCC_ENABLE_FIX_AND_CONTINUE", "YES"); + debugSettings.put("GCC_MODEL_TUNING", "G5"); + debugSettings.put("GCC_OPTIMIZATION_LEVEL", "0"); + debugSettings.put("INSTALL_PATH", "$(HOME)/bin"); + debugSettings.put("PRODUCT_NAME", projectName); + debugSettings.put("ZERO_LINK", "YES"); + PBXObjectRef debugConfig = createXCBuildConfiguration("Debug", + debugSettings); + objects.put(debugConfig.getID(), debugConfig.getProperties()); + configurations.add(debugConfig); + + Map releaseSettings = new HashMap(); + List archs = new ArrayList(); + archs.add("ppc"); + archs.add("i386"); + releaseSettings.put("ARCHS", archs); + releaseSettings.put("GCC_GENERATE_DEBUGGING_SYMBOLS", "NO"); + releaseSettings.put("GCC_MODEL_TUNING", "G5"); + releaseSettings.put("INSTALL_PATH", "$(HOME)/bin"); + releaseSettings.put("PRODUCT_NAME", projectName); + PBXObjectRef releaseConfig = createXCBuildConfiguration("Release", + releaseSettings); + objects.put(releaseConfig.getID(), releaseConfig.getProperties()); + configurations.add(releaseConfig); + + PBXObjectRef configurationList = createXCConfigurationList(configurations); + objects.put(configurationList.getID(), configurationList.getProperties()); + return configurationList; + } + + + + /** + * Add project configuration list. + * @param objects map of objects. + * @param baseDir base directory. + * @param compilerConfig compiler configuration. + * @return project configuration object. + */ + private PBXObjectRef addProjectConfigurationList(final Map objects, + final String baseDir, + final List dependencies, + final CommandLineCompilerConfiguration compilerConfig, + final CommandLineLinkerConfiguration linkerConfig) { + // + // Create a configuration list with + // two stock configurations: Debug and Release + // + List configurations = new ArrayList(); + Map debugSettings = new HashMap(); + debugSettings.put("GCC_WARN_ABOUT_RETURN_TYPE", "YES"); + debugSettings.put("GCC_WARN_UNUSED_VARIABLE", "YES"); + debugSettings.put("PREBINDING", "NO"); + debugSettings.put("SDKROOT", "/Developer/SDKs/MacOSX10.4u.sdk"); + + + PBXObjectRef debugConfig = createXCBuildConfiguration("Debug", debugSettings); + objects.put(debugConfig.getID(), debugConfig.getProperties()); + configurations.add(debugConfig); + + Map releaseSettings = new HashMap(); + releaseSettings.put("GCC_WARN_ABOUT_RETURN_TYPE", "YES"); + releaseSettings.put("GCC_WARN_UNUSED_VARIABLE", "YES"); + releaseSettings.put("PREBINDING", "NO"); + releaseSettings.put("SDKROOT", "/Developer/SDKs/MacOSX10.4u.sdk"); + PBXObjectRef releaseConfig = + createXCBuildConfiguration("Release", releaseSettings); + objects.put(releaseConfig.getID(), releaseConfig.getProperties()); + configurations.add(releaseConfig); + PBXObjectRef configurationList = createXCConfigurationList(configurations); + Map projectConfigurationListProperties = configurationList.getProperties(); + projectConfigurationListProperties.put("defaultConfigurationIsVisible", "0"); + projectConfigurationListProperties.put("defaultConfigurationName", "Debug"); + objects.put(configurationList.getID(), configurationList.getProperties()); + + // + // add include paths to both configurations + // + File[] includeDirs = compilerConfig.getIncludePath(); + if (includeDirs.length > 0) { + ArrayList includePaths = new ArrayList(); + Map includePathMap = new HashMap(); + for (int i = 0; i < includeDirs.length; i++) { + if(!CUtil.isSystemPath(includeDirs[i])) { + String absPath = includeDirs[i].getAbsolutePath(); + if (!includePathMap.containsKey(absPath)) { + if(absPath.startsWith("/usr/")) { + includePaths.add(CUtil.toUnixPath(absPath)); + } else { + String relPath = CUtil.toUnixPath( + CUtil.getRelativePath(baseDir, includeDirs[i])); + includePaths.add(relPath); + } + includePathMap.put(absPath, absPath); + } + } + } + includePaths.add("${inherited)"); + debugSettings.put("HEADER_SEARCH_PATHS", includePaths); + releaseSettings.put("HEADER_SEARCH_PATHS", includePaths); + } + + // + // add preprocessor definitions to both configurations + // + // + String[] preArgs = compilerConfig.getPreArguments(); + List defines = new ArrayList(); + for (int i = 0; i < preArgs.length; i++) { + if (preArgs[i].startsWith("-D")) { + defines.add(preArgs[i].substring(2)); + } + } + if (defines.size() > 0) { + defines.add("$(inherited)"); + debugSettings.put("GCC_PREPROCESSOR_DEFINITIONS", defines); + releaseSettings.put("GCC_PREPROCESSOR_DEFINITIONS", defines); + } + + + if (linkerConfig != null) { + Map librarySearchMap = new HashMap(); + List librarySearchPaths = new ArrayList(); + List otherLdFlags = new ArrayList(); + String[] linkerArgs = linkerConfig.getEndArguments(); + for (int i = 0; i < linkerArgs.length; i++) { + if (linkerArgs[i].startsWith("-L")) { + String libDir = linkerArgs[i].substring(2); + if (!librarySearchMap.containsKey(libDir)) { + if (!libDir.equals("/usr/lib")) { + librarySearchPaths.add( + CUtil.toUnixPath(CUtil.getRelativePath(baseDir, + new File(libDir)))); + } + librarySearchMap.put(libDir, libDir); + + } + } else if (linkerArgs[i].startsWith("-l")) { + // + // check if library is in dependencies list + // + String libName = linkerArgs[i].substring(2); + boolean found = false; + for(Iterator iter = dependencies.iterator();iter.hasNext();) { + DependencyDef dependency = (DependencyDef) iter.next(); + if (libName.startsWith(dependency.getName())) { + File dependencyFile = dependency.getFile(); + if (dependencyFile != null && + new File(dependencyFile.getAbsolutePath() + ".xcodeproj").exists()) { + found = true; + break; + } + } + } + if (!found) { + otherLdFlags.add(linkerArgs[i]); + } + } + } + + + debugSettings.put("LIBRARY_SEARCH_PATHS", librarySearchPaths); + debugSettings.put("OTHER_LDFLAGS", otherLdFlags); + releaseSettings.put("LIBRARY_SEARCH_PATHS", librarySearchPaths); + releaseSettings.put("OTHER_LDFLAGS", otherLdFlags); + } + return configurationList; + } + + /** + * Add native target to map of objects. + * @param objects map of objects. + * @param linkTarget description of executable or shared library. + * @param product product. + * @param projectName project name. + * @param sourceGroupChildren source files needed to build product. + * @return native target. + */ + private PBXObjectRef addNativeTarget(final Map objects, + final TargetInfo linkTarget, + final PBXObjectRef product, + final String projectName, + final List sourceGroupChildren, + final List frameworkBuildFiles) { + + PBXObjectRef buildConfigurations = + addNativeTargetConfigurationList(objects, projectName); + + int buildActionMask = 2147483647; + List buildPhases = new ArrayList(); + + Map settings = new HashMap(); + settings.put("ATTRIBUTES", new ArrayList()); + List buildFiles = new ArrayList(); + for (Iterator iter = sourceGroupChildren.iterator(); + iter.hasNext();) { + PBXObjectRef sourceFile = (PBXObjectRef) iter.next(); + PBXObjectRef buildFile = createPBXBuildFile(sourceFile, settings); + buildFiles.add(buildFile); + objects.put(buildFile.getID(), buildFile.getProperties()); + } + + + PBXObjectRef sourcesBuildPhase = createPBXSourcesBuildPhase(buildActionMask, + buildFiles, false); + objects.put(sourcesBuildPhase.getID(), sourcesBuildPhase.getProperties()); + buildPhases.add(sourcesBuildPhase); + + + buildActionMask = 8; + PBXObjectRef frameworksBuildPhase = + createPBXFrameworksBuildPhase(buildActionMask, + frameworkBuildFiles, false); + objects.put(frameworksBuildPhase.getID(), frameworksBuildPhase.getProperties()); + buildPhases.add(frameworksBuildPhase); + + PBXObjectRef copyFilesBuildPhase = createPBXCopyFilesBuildPhase(8, + "/usr/share/man/man1", "0", new ArrayList(), true); + objects.put(copyFilesBuildPhase.getID(), copyFilesBuildPhase.getProperties()); + buildPhases.add(copyFilesBuildPhase); + + List buildRules = new ArrayList(); + + List dependencies = new ArrayList(); + + String productInstallPath = "$(HOME)/bin"; + + String productType = getProductType(linkTarget); + + PBXObjectRef nativeTarget = createPBXNativeTarget(projectName, + buildConfigurations, buildPhases, buildRules, dependencies, + productInstallPath, projectName, product, productType); + objects.put(nativeTarget.getID(), nativeTarget.getProperties()); + + return nativeTarget; + } + + private int getProductTypeIndex(final TargetInfo linkTarget) { + String outPath = linkTarget.getOutput().getPath(); + String outExtension = null; + int lastDot = outPath.lastIndexOf('.'); + if (lastDot != -1) { + outExtension = outPath.substring(lastDot); + } + if (".a".equalsIgnoreCase(outExtension) || ".lib".equalsIgnoreCase(outExtension)) { + return 1; + } else if (".dylib".equalsIgnoreCase(outExtension) || + ".so".equalsIgnoreCase(outExtension) || + ".dll".equalsIgnoreCase(outExtension)) { + return 2; + } + return 0; + } + + private String getProductType(final TargetInfo linkTarget) { + switch(getProductTypeIndex(linkTarget)) { + case 1: + return "com.apple.product-type.library.static"; + case 2: + return "com.apple.product-type.library.dynamic"; + default: + return "com.apple.product-type.tool"; + } + } + + private String getFileType(final TargetInfo linkTarget) { + switch(getProductTypeIndex(linkTarget)) { + case 1: + return "archive.ar"; + case 2: + return "compiled.mach-o.dylib"; + default: + return "compiled.mach-o.executable"; + } + } + + + /** + * Create PBXFileReference. + * @param sourceTree source tree. + * @param baseDir base directory. + * @param file file. + * @return PBXFileReference object. + */ + private static PBXObjectRef createPBXFileReference(final String sourceTree, + final String baseDir, + final File file) { + Map map = new HashMap(); + map.put("isa", "PBXFileReference"); + + String relPath = CUtil.toUnixPath(CUtil.getRelativePath(baseDir, file)); + map.put("path", relPath); + map.put("name", file.getName()); + map.put("sourceTree", sourceTree); + return new PBXObjectRef(map); + } + + /** + * Create PBXGroup. + * @param name group name. + * @param sourceTree source tree. + * @param children list of PBXFileReferences. + * @return group. + */ + private static PBXObjectRef createPBXGroup(final String name, + final String sourceTree, + final List children) { + Map map = new HashMap(); + map.put("isa", "PBXGroup"); + map.put("name", name); + map.put("sourceTree", sourceTree); + map.put("children", children); + return new PBXObjectRef(map); + } + + /** + * Create PBXProject. + * @param buildConfigurationList build configuration list. + * @param mainGroup main group. + * @param projectDirPath project directory path. + * @param targets targets. + * @param projectRoot projectRoot directory relative to + * @return project. + */ + private static PBXObjectRef createPBXProject(final PBXObjectRef buildConfigurationList, + final PBXObjectRef mainGroup, + final String projectDirPath, + final String projectRoot, + final List targets) { + Map map = new HashMap(); + map.put("isa", "PBXProject"); + map.put("buildConfigurationList", buildConfigurationList.getID()); + map.put("hasScannedForEncodings", "0"); + map.put("mainGroup", mainGroup.getID()); + map.put("projectDirPath", projectDirPath); + map.put("targets", targets); + map.put("projectRoot", projectRoot); + return new PBXObjectRef(map); + } + + /** + * Create XCConfigurationList. + * @param buildConfigurations build configurations. + * @return configuration list. + */ + private static PBXObjectRef createXCConfigurationList(final List buildConfigurations) { + Map map = new HashMap(); + map.put("isa", "XCConfigurationList"); + map.put("buildConfigurations", buildConfigurations); + return new PBXObjectRef(map); + } + + + /** + * Create XCBuildConfiguration. + * @param name name. + * @param buildSettings build settings. + * @return build configuration. + */ + private static PBXObjectRef createXCBuildConfiguration(final String name, + final Map buildSettings) { + Map map = new HashMap(); + map.put("isa", "XCBuildConfiguration"); + map.put("buildSettings", buildSettings); + map.put("name", name); + return new PBXObjectRef(map); + } + + /** + * Create PBXNativeTarget. + * @param name name. + * @param buildConfigurationList build configuration list. + * @param buildPhases build phases. + * @param buildRules build rules. + * @param dependencies dependencies. + * @param productInstallPath product install path. + * @param productName product name. + * @param productReference file reference for product. + * @param productType product type. + * @return native target. + */ + private static PBXObjectRef createPBXNativeTarget(final String name, + final PBXObjectRef buildConfigurationList, + final List buildPhases, + final List buildRules, + final List dependencies, + final String productInstallPath, + final String productName, + final PBXObjectRef productReference, + final String productType) { + Map map = new HashMap(); + map.put("isa", "PBXNativeTarget"); + map.put("buildConfigurationList", buildConfigurationList); + map.put("buildPhases", buildPhases); + map.put("buildRules", buildRules); + map.put("dependencies", dependencies); + map.put("name", name); + map.put("productInstallPath", productInstallPath); + map.put("productName", productName); + map.put("productReference", productReference); + map.put("productType", productType); + return new PBXObjectRef(map); + } + + /** + * Create PBXSourcesBuildPhase. + * @param buildActionMask build action mask. + * @param files source files. + * @param runOnly if true, phase should only be run on deployment. + * @return PBXSourcesBuildPhase. + */ + private static PBXObjectRef createPBXSourcesBuildPhase(int buildActionMask, + List files, + boolean runOnly) { + Map map = new HashMap(); + map.put("buildActionMask", + String.valueOf(buildActionMask)); + map.put("files", files); + map.put("isa", "PBXSourcesBuildPhase"); + map.put("runOnlyForDeploymentPostprocessing", toString(runOnly)); + return new PBXObjectRef(map); + } + + /** + * Create PBXBuildFile. + * @param fileRef source file. + * @param settings build settings. + * @return PBXBuildFile. + */ + private static PBXObjectRef createPBXBuildFile(PBXObjectRef fileRef, + Map settings) { + Map map = new HashMap(); + map.put("fileRef", fileRef); + map.put("isa", "PBXBuildFile"); + if (settings != null) { + map.put("settings", settings); + } + return new PBXObjectRef(map); + } + + /** + * Create PBXFrameworksBuildPhase. + * @param buildActionMask build action mask. + * @param files files. + * @param runOnly if true, phase should only be run on deployment. + * @return PBXFrameworkBuildPhase. + */ + private static PBXObjectRef createPBXFrameworksBuildPhase( + final int buildActionMask, + final List files, + final boolean runOnly) { + Map map = new HashMap(); + map.put("isa", "PBXFrameworksBuildPhase"); + map.put("buildActionMask", NumberFormat.getIntegerInstance(Locale.US).format(buildActionMask)); + map.put("files", files); + map.put("runOnlyForDeploymentPostprocessing", toString(runOnly)); + return new PBXObjectRef(map); + } + + /** + * Create a build phase that copies files to a destination. + * @param buildActionMask build action mask. + * @param dstPath destination path. + * @param dstSubfolderSpec subfolder spec. + * @param files files. + * @param runOnly if true, phase should only be run on deployment. + * @return PBXCopyFileBuildPhase. + */ + private static PBXObjectRef createPBXCopyFilesBuildPhase( + final int buildActionMask, + final String dstPath, + final String dstSubfolderSpec, + final List files, + final boolean runOnly) { + Map map = new HashMap(); + map.put("isa", "PBXCopyFilesBuildPhase"); + map.put("buildActionMask", NumberFormat.getIntegerInstance(Locale.US).format(buildActionMask)); + map.put("dstPath", dstPath); + map.put("dstSubfolderSpec", dstSubfolderSpec); + map.put("files", files); + map.put("runOnlyForDeploymentPostprocessing", toString(runOnly)); + return new PBXObjectRef(map); + } + + + /** + * Create a proxy for a file in a different project. + * @param containerPortal XcodeProject containing file. + * @param proxyType proxy type. + * @return PBXContainerItemProxy. + */ + private static PBXObjectRef createPBXContainerItemProxy( + final PBXObjectRef containerPortal, + final int proxyType, + final String remoteInfo) { + Map map = new HashMap(); + map.put("isa", "PBXContainerItemProxy"); + map.put("containerPortal", containerPortal); + map.put("proxyType", NumberFormat.getIntegerInstance(Locale.US).format(proxyType)); + map.put("remoteInfo", remoteInfo); + return new PBXObjectRef(map); + } + + + /** + * Create a proxy for a file in a different project. + * @param remoteRef PBXContainerItemProxy for reference. + * @param dependency dependency. + * @return PBXContainerItemProxy. + */ + private static PBXObjectRef createPBXReferenceProxy( + final PBXObjectRef remoteRef, + final DependencyDef dependency) { + Map map = new HashMap(); + map.put("isa", "PBXReferenceProxy"); + String fileType = "compiled.mach-o.dylib"; + map.put("fileType", fileType); + map.put("remoteRef", remoteRef); + map.put("path", dependency.getFile().getName() + ".dylib"); + map.put("sourceTree", "BUILT_PRODUCTS_DIR"); + return new PBXObjectRef(map); + } + + /** + * Method returns "1" for true, "0" for false. + * @param b boolean value. + * @return "1" for true, "0" for false. + */ + private static String toString(boolean b) { + if (b) { + return "1"; + } else { + return "0"; + } + } + + /** + * Represents a property map with an 96 bit identity. + * When placed in a property list, this object will + * output the string representation of the identity + * which XCode uses to find the corresponding property + * bag in the "objects" property of the top-level property list. + */ + private static final class PBXObjectRef { + /** + * Identifier. + */ + private final String id; + /** + * Properties. + */ + private final Map properties; + /** + * Next available identifier. + */ + private static int nextID = 0; + + /** + * Create reference. + * @param props properties. + */ + public PBXObjectRef(final Map props) { + if (props == null) { + throw new NullPointerException("props"); + } + StringBuffer buf = new StringBuffer("000000000000000000000000"); + String idStr = Integer.toHexString(nextID++); + buf.replace(buf.length() - idStr.length(), buf.length(), idStr); + id = buf.toString(); + properties = props; + } + + /** + * Get object identifier. + * @return identifier. + */ + public String toString() { + return id; + } + + /** + * Get object identifier. + * @return object identifier. + */ + public String getID() { + return id; + } + + /** + * Get properties. + * @return properties. + */ + public Map getProperties() { + return properties; + } + } + + /** + * Gets the first recognized compiler from the + * compilation targets. + * + * @param targets compilation targets + * @return representative (hopefully) compiler configuration + */ + private CommandLineCompilerConfiguration + getBaseCompilerConfiguration(Hashtable targets) { + // + // find first target with an GNU C++ compilation + // + CommandLineCompilerConfiguration compilerConfig; + // + // get the first target and assume that it is representative + // + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo targetInfo = (TargetInfo) targetIter.next(); + ProcessorConfiguration config = targetInfo.getConfiguration(); + // + // for the first cl compiler + // + if (config instanceof CommandLineCompilerConfiguration) { + compilerConfig = (CommandLineCompilerConfiguration) config; + if (compilerConfig.getCompiler() instanceof GccCCompiler) { + return compilerConfig; + } + } + } + return null; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/apple/package.html b/src/main/java/net/sf/antcontrib/cpptasks/apple/package.html new file mode 100644 index 0000000..43a2ac3 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/apple/package.html @@ -0,0 +1,27 @@ + + + + + + + +Project writer for Apple Xcode + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.java new file mode 100644 index 0000000..11004ad --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSCCompiler.java @@ -0,0 +1,210 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.arm; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.OptimizationEnum; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the ARM C Compilers + * + * See Doc No: ARM DUI 0151A, Issued: Nov 2001 at + * http://www.arm.com/arm/User_Guides?OpenDocument + * + * @author Curt Arnold + * + */ +public class ADSCCompiler extends CommandLineCCompiler { + /** + * Header file extensions + */ + private static final String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + /** + * Source file extensions + */ + private static final String[] sourceExtensions = new String[]{".c", ".cc", + ".cpp", ".cxx", ".c++"}; + /** + * Singleton for ARM 32-bit C compiler + */ + private static final ADSCCompiler armcc = new ADSCCompiler("armcc", false, + null); + /** + * Singleton for ARM 32-bit C++ compiler + */ + private static final ADSCCompiler armcpp = new ADSCCompiler("armcpp", + false, null); + /** + * Singleton for ARM 16-bit C compiler + */ + private static final ADSCCompiler tcc = new ADSCCompiler("tcc", false, null); + /** + * Singleton for ARM 16-bit C++ compiler + */ + private static final ADSCCompiler tcpp = new ADSCCompiler("tcpp", false, + null); + /** + * Singleton for ARM 32-bit C compiler + */ + public static ADSCCompiler getArmCC() { + return armcc; + } + /** + * Singleton for ARM 32-bit C++ compiler + */ + public static ADSCCompiler getArmCpp() { + return armcpp; + } + /** + * Singleton for ARM 16-bit C compiler + */ + public static ADSCCompiler getThumbCC() { + return tcc; + } + /** + * Singleton for ARM 16-bit C++ compiler + */ + public static ADSCCompiler getThumbCpp() { + return tcpp; + } + private static void quoteFile(StringBuffer buf, String outPath) { + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + } + /** + * Private constructor + * + * @param command + * executable name + * @param newEnvironment + * Change environment + * @param env + * New environment + */ + private ADSCCompiler(String command, boolean newEnvironment, Environment env) { + super(command, "-vsn", sourceExtensions, headerExtensions, ".o", false, + null, newEnvironment, env); + } + /** + * {@inheritDoc} + */ + protected void addImpliedArgs(Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + if (debug) { + args.addElement("-g"); + } + // + // didn't see anything about producing + // anything other than executables in the docs + if (linkType.isExecutable()) { + } else if (linkType.isSharedLibrary()) { + } + } + /** + * Adds flags that customize the warnings reported + * + * Compiler does not appear to have warning levels but ability to turn off + * specific errors by explicit switches, could fabricate levels by + * prioritizing errors. + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#addWarningSwitch(java.util.Vector, + * int) + */ + protected void addWarningSwitch(Vector args, int warnings) { + } + /** + * Add command line options for preprocessor macro + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getDefineSwitch(java.lang.StringBuffer, + * java.lang.String, java.lang.String) + */ + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-D"); + buffer.append(define); + if (value != null) { + buffer.append('='); + buffer.append(value); + } + } + /** + * ARMINC environment variable contains the default include path + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getEnvironmentIncludePath() + */ + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("ARMINC", ";"); + } + /** + * Returns command line option to specify include directory + * + */ + protected String getIncludeDirSwitch(String source) { + StringBuffer buf = new StringBuffer("-I"); + quoteFile(buf, source); + return buf.toString(); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return ADSLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return ADSLinker.getDllInstance(); + } + return ADSLinker.getInstance(); + } + /** + * Maximum command line length + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getMaximumCommandLength() + */ + public int getMaximumCommandLength() { + return 1000; + } + /* + * Adds command to undefine preprocessor macro + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getUndefineSwitch(java.lang.StringBuffer, + * java.lang.String) + */ + protected void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("-U"); + buffer.append(define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.java new file mode 100644 index 0000000..65c430f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLibrarian.java @@ -0,0 +1,159 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.arm; + +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for ARM Librarian + * + * @author Curt Arnold + */ +public class ADSLibrarian extends CommandLineLinker { + + private static final ADSLibrarian instance = new ADSLibrarian(); + + public static ADSLibrarian getInstance() { + return instance; + } + + private ADSLibrarian() + { + super("armar",null, + new String[] { ".o" }, new String[0], ".lib", false, null); + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long, java.util.Vector) + */ + protected void addBase(long base, Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean, java.util.Vector) + */ + protected void addFixed(Boolean fixed, Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean, net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector) + */ + protected void addImpliedArgs( + boolean debug, + LinkType linkType, + Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean, java.util.Vector) + */ + protected void addIncremental(boolean incremental, Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean, java.util.Vector) + */ + protected void addMap(boolean map, Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int, java.util.Vector) + */ + protected void addStack(int stack, Vector args) { + // TODO Auto-generated method stub + + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + // TODO Auto-generated method stub + + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String) + */ + protected String getCommandFileSwitch(String commandFile) { + // TODO Auto-generated method stub + return null; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath() + */ + public File[] getLibraryPath() { + // TODO Auto-generated method stub + return null; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[]) + */ + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return new String[0]; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType linkType) { + // TODO Auto-generated method stub + return null; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength() + */ + protected int getMaximumCommandLength() { + // TODO Auto-generated method stub + return 0; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String) + */ + protected String[] getOutputFileSwitch(String outputFile) { + // TODO Auto-generated method stub + return null; + } + + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive() + */ + public boolean isCaseSensitive() { + // TODO Auto-generated method stub + return false; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLinker.java new file mode 100644 index 0000000..fda52fa --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/arm/ADSLinker.java @@ -0,0 +1,166 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.arm; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the ARM Linker + * + * @author CurtA + */ +public class ADSLinker extends CommandLineLinker { + private static final ADSLinker dllInstance = new ADSLinker(".o"); + private static final ADSLinker instance = new ADSLinker(".axf"); + public static ADSLinker getDllInstance() { + return dllInstance; + } + public static ADSLinker getInstance() { + return instance; + } + private ADSLinker(String outputSuffix) { + super("armlink", "-vsn", new String[]{".o", ".lib", ".res"}, + new String[]{".map", ".pdb", ".lnk"}, outputSuffix, false, null); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long, + * java.util.Vector) + */ + protected void addBase(long base, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean, + * java.util.Vector) + */ + protected void addFixed(Boolean fixed, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean, + * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector) + */ + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (debug) { + args.addElement("-debug"); + } + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean, + * java.util.Vector) + */ + protected void addIncremental(boolean incremental, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean, + * java.util.Vector) + */ + protected void addMap(boolean map, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int, + * java.util.Vector) + */ + protected void addStack(int stack, Vector args) { + // TODO Auto-generated method stub + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + // TODO Auto-generated method stub + + } + + /** + * May have to make this String array return + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String) + */ + protected String getCommandFileSwitch(String commandFile) { + return "-via" + commandFile; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath() + */ + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("ARMLIB", ";"); + } + /* + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[]) + */ + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + // + // TODO: looks like bad extension + // + return new String[]{".o"}; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType linkType) { + return this; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength() + */ + protected int getMaximumCommandLength() { + return 1024; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String) + */ + protected String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-output", outputFile}; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive() + */ + public boolean isCaseSensitive() { + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.java new file mode 100644 index 0000000..fd9c657 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCCompiler.java @@ -0,0 +1,134 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Borland(r) C/C++ compiler. + * + * @author Curt Arnold + */ +public class BorlandCCompiler extends PrecompilingCommandLineCCompiler { + private static final String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private static final String[] sourceExtensions = new String[]{".c", ".cc", + ".cpp", ".cxx", ".c++"}; + private static final BorlandCCompiler instance = new BorlandCCompiler( + false, null); + public static BorlandCCompiler getInstance() { + return instance; + } + private BorlandCCompiler(boolean newEnvironment, Environment env) { + super("bcc32", "--version", sourceExtensions, headerExtensions, ".obj", false, + null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("-c"); + // + // turn off compiler autodependency since + // we do it ourselves + args.addElement("-X"); + if (exceptions) { + args.addElement("-x"); + } else { + args.addElement("-x-"); + } + if (multithreaded) { + args.addElement("-tWM"); + } + if (debug) { + args.addElement("-Od"); + args.addElement("-v"); + } else { + if (optimization != null) { + if (optimization.isSpeed()) { + args.addElement("-O1"); + } else { + if (optimization.isSpeed()) { + args.addElement("-O2"); + } else { + if (optimization.isNoOptimization()) { + args.addElement("-Od"); + } + } + } + } + } + if (rtti != null && !rtti.booleanValue()) { + args.addElement("-RT-"); + } + } + protected void addWarningSwitch(Vector args, int level) { + BorlandProcessor.addWarningSwitch(args, level); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new BorlandCCompiler(newEnvironment, env); + } + return this; + } + protected CompilerConfiguration createPrecompileGeneratingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude) { + String[] additionalArgs = new String[]{"-H=" + lastInclude, "-Hc"}; + return new CommandLineCompilerConfiguration(baseConfig, additionalArgs, + null, true); + } + protected CompilerConfiguration createPrecompileUsingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude, String[] exceptFiles) { + String[] additionalArgs = new String[]{"-Hu"}; + return new CommandLineCompilerConfiguration(baseConfig, additionalArgs, + exceptFiles, false); + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + BorlandProcessor.getDefineSwitch(buffer, define, value); + } + protected File[] getEnvironmentIncludePath() { + return BorlandProcessor.getEnvironmentPath("bcc32", 'I', + new String[]{"..\\include"}); + } + protected String getIncludeDirSwitch(String includeDir) { + return BorlandProcessor.getIncludeDirSwitch("-I", includeDir); + } + public Linker getLinker(LinkType type) { + return BorlandLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 1024; + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + BorlandProcessor.getUndefineSwitch(buffer, define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.java new file mode 100644 index 0000000..a452b1b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandCfgParser.java @@ -0,0 +1,70 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.IOException; +import java.io.Reader; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.parser.AbstractParser; +import net.sf.antcontrib.cpptasks.parser.AbstractParserState; +import net.sf.antcontrib.cpptasks.parser.LetterState; +import net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState; +/** + * A parser that paths from a borland cfg file + * + * @author Curt Arnold + */ +public final class BorlandCfgParser extends AbstractParser { + private AbstractParserState newLineState; + private final Vector path = new Vector(); + /** + * + * + */ + public BorlandCfgParser(char switchChar) { + // + // a quoted path (-I"some path") + // doesn't end till a close quote and will be abandoned + // if a new line is encountered first + // + AbstractParserState quote = new CfgFilenameState(this, new char[]{'"'}); + // + // an unquoted path (-Ic:\borland\include) + // ends at the first space or new line + AbstractParserState unquote = new CfgFilenameState(this, new char[]{ + ' ', '\n', '\r'}); + AbstractParserState quoteBranch = new QuoteBranchState(this, quote, + unquote); + AbstractParserState toNextSwitch = new ConsumeToSpaceOrNewLine(this); + AbstractParserState switchState = new LetterState(this, switchChar, + quoteBranch, toNextSwitch); + newLineState = new WhitespaceOrLetterState(this, '-', switchState); + } + public void addFilename(String include) { + path.addElement(include); + } + public AbstractParserState getNewLineState() { + return newLineState; + } + public String[] parsePath(Reader reader) throws IOException { + path.setSize(0); + super.parse(reader); + String[] retval = new String[path.size()]; + path.copyInto(retval); + return retval; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.java new file mode 100644 index 0000000..703ddd3 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLibrarian.java @@ -0,0 +1,219 @@ +/* + * + * Copyright 2002-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.File; +import java.io.IOException; +import java.util.Vector; +import org.apache.tools.ant.BuildException; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the Borland(r) tlib Librarian + * + * @author Curt Arnold + */ +public class BorlandLibrarian extends CommandLineLinker { + private static final BorlandLibrarian instance = new BorlandLibrarian(); + public static BorlandLibrarian getInstance() { + return instance; + } + private BorlandLibrarian() { + super("tlib", "--version", new String[]{".obj"}, new String[0], ".lib", false, + null); + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + } + protected void addIncremental(boolean incremental, Vector args) { + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + protected String getCommandFileSwitch(String cmdFile) { + // + // tlib requires quotes around paths containing - + // ilink32 doesn't like them + StringBuffer buf = new StringBuffer("@"); + BorlandProcessor.quoteFile(buf, cmdFile); + return buf.toString(); + } + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return BorlandProcessor.getLibraryPatterns(libnames, libType); + } + public Linker getLinker(LinkType type) { + return BorlandLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 1024; + } + public String[] getOutputFileSwitch(String outFile) { + return BorlandProcessor.getOutputFileSwitch(outFile); + } + public boolean isCaseSensitive() { + return BorlandProcessor.isCaseSensitive(); + } + /** + * Gets identifier for the linker. + * + * TLIB will lockup when attempting to get version + * information. Since the Librarian version isn't critical + * just return a stock response. + */ + public String getIdentifier() { + return "TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation"; + } + + /** + * Prepares argument list for exec command. + * + * @param outputDir linker output directory + * @param outputName linker output name + * @param sourceFiles + * linker input files (.obj, .o, .res) + * @param config + * linker configuration + * @return arguments for runTask + */ + protected String[] prepareArguments( + CCTask task, + String outputDir, + String outputName, + String[] sourceFiles, + CommandLineLinkerConfiguration config) { + String[] preargs = config.getPreArguments(); + String[] endargs = config.getEndArguments(); + StringBuffer buf = new StringBuffer(); + Vector execArgs = new Vector(preargs.length + endargs.length + 10 + + sourceFiles.length); + + execArgs.addElement(this.getCommand()); + String outputFileName = new File(outputDir, outputName).toString(); + execArgs.addElement(quoteFilename(buf, outputFileName)); + + for (int i = 0; i < preargs.length; i++) { + execArgs.addElement(preargs[i]); + } + + // + // add a place-holder for page size + // + int pageSizeIndex = execArgs.size(); + execArgs.addElement(null); + + int objBytes = 0; + + for (int i = 0; i < sourceFiles.length; i++) { + String last4 = sourceFiles[i] + .substring(sourceFiles[i].length() - 4).toLowerCase(); + if (last4.equals(".def")) { + } else { + if (last4.equals(".res")) { + } else { + if (last4.equals(".lib")) { + } else { + execArgs.addElement("+" + quoteFilename(buf, sourceFiles[i])); + objBytes += new File(sourceFiles[i]).length(); + } + } + } + } + + for (int i = 0; i < endargs.length; i++) { + execArgs.addElement(endargs[i]); + } + + String[] execArguments = new String[execArgs.size()]; + execArgs.copyInto(execArguments); + + int minPageSize = objBytes >> 16; + int pageSize = 0; + for(int i = 4; i <= 15; i++) { + pageSize = 1 << i; + if (pageSize > minPageSize) break; + } + execArguments[pageSizeIndex] = "/P" + Integer.toString(pageSize); + + return execArguments; + } + + /** + * Prepares argument list to execute the linker using a response file. + * + * @param outputFile + * linker output file + * @param args + * output of prepareArguments + * @return arguments for runTask + */ + protected String[] prepareResponseFile(File outputFile, String[] args) + throws IOException { + String[] cmdargs = BorlandProcessor.prepareResponseFile(outputFile, args, " & \n"); + cmdargs[cmdargs.length - 1] = getCommandFileSwitch(cmdargs[cmdargs.length -1]); + return cmdargs; + } + + /** + * Builds a library + * + */ + public void link(CCTask task, + File outputFile, + String[] sourceFiles, + CommandLineLinkerConfiguration config) + throws BuildException + { + // + // delete any existing library + outputFile.delete(); + // + // build a new library + super.link(task, outputFile, sourceFiles, config); + } + + /** + * Encloses problematic file names within quotes. + * @param buf string buffer + * @param filename source file name + * @return filename potentially enclosed in quotes. + */ + protected String quoteFilename(StringBuffer buf,String filename) { + buf.setLength(0); + BorlandProcessor.quoteFile(buf, filename); + return buf.toString(); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLinker.java new file mode 100644 index 0000000..6a28805 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandLinker.java @@ -0,0 +1,293 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.File; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.platforms.WindowsPlatform; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the Borland(r) ilink32 linker + * + * @author Curt Arnold + */ +public final class BorlandLinker extends CommandLineLinker { + private static final BorlandLinker dllLinker = new BorlandLinker(".dll"); + private static final BorlandLinker instance = new BorlandLinker(".exe"); + public static BorlandLinker getInstance() { + return instance; + } + private BorlandLinker(String outputSuffix) { + super("ilink32", "-r", new String[]{".obj", ".lib", ".res"}, + new String[]{".map", ".pdb", ".lnk"}, outputSuffix, false, null); + } + protected void addBase(long base, Vector args) { + if (base >= 0) { + String baseAddr = Long.toHexString(base); + args.addElement("-b:" + baseAddr); + } + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (linkType.isExecutable()) { + if (linkType.isSubsystemConsole()) { + args.addElement("/ap"); + } else { + if (linkType.isSubsystemGUI()) { + args.addElement("/Tpe"); + } + } + } + if (linkType.isSharedLibrary()) { + args.addElement("/Tpd"); + args.addElement("/Gi"); + } + if (debug) { + args.addElement("-v"); + } + } + protected void addIncremental(boolean incremental, Vector args) { + } + protected void addMap(boolean map, Vector args) { + if (!map) { + args.addElement("-x"); + } + } + protected void addStack(int stack, Vector args) { + if (stack >= 0) { + String stackStr = Integer.toHexString(stack); + args.addElement("-S:" + stackStr); + } + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + public String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + public String getIdentifier() { + return "Borland Linker"; + } + public File[] getLibraryPath() { + return BorlandProcessor.getEnvironmentPath("ilink32", 'L', + new String[]{"..\\lib"}); + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return BorlandProcessor.getLibraryPatterns(libnames, libType); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return BorlandLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } + public int getMaximumCommandLength() { + return 1024; + } + public String[] getOutputFileSwitch(String outFile) { + return BorlandProcessor.getOutputFileSwitch(outFile); + } + protected String getStartupObject(LinkType linkType) { + if (linkType.isSharedLibrary()) { + return "c0d32.obj"; + } + if (linkType.isSubsystemGUI()) { + return "c0w32.obj"; + } + if (linkType.isSubsystemConsole()) { + return "c0x32.obj"; + } + return null; + } + public boolean isCaseSensitive() { + return BorlandProcessor.isCaseSensitive(); + } + /** + * Prepares argument list for exec command. + * + * @param outputDir linker output directory + * @param outputName linker output name + * @param sourceFiles + * linker input files (.obj, .o, .res) + * @param config + * linker configuration + * @return arguments for runTask + */ + protected String[] prepareArguments( + CCTask task, + String outputDir, + String outputName, + String[] sourceFiles, + CommandLineLinkerConfiguration config) { + String[] preargs = config.getPreArguments(); + String[] endargs = config.getEndArguments(); + Vector execArgs = new Vector(preargs.length + endargs.length + 10 + + sourceFiles.length); + execArgs.addElement(this.getCommand()); + for (int i = 0; i < preargs.length; i++) { + execArgs.addElement(preargs[i]); + } + for (int i = 0; i < endargs.length; i++) { + execArgs.addElement(endargs[i]); + } + // + // see if the input files have any known startup obj files + // + String startup = null; + for (int i = 0; i < sourceFiles.length; i++) { + String filename = new File(sourceFiles[i]).getName().toLowerCase(); + if (startup != null && filename.substring(0, 2).equals("c0") + && filename.substring(3, 5).equals("32") + && filename.substring(filename.length() - 4).equals(".obj")) { + startup = sourceFiles[i]; + } + } + // + // c0w32.obj, c0x32.obj or c0d32.obj depending on + // link type + if (startup == null) { + startup = config.getStartupObject(); + } + execArgs.addElement(startup); + Vector resFiles = new Vector(); + Vector libFiles = new Vector(); + String defFile = null; + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < sourceFiles.length; i++) { + String last4 = sourceFiles[i] + .substring(sourceFiles[i].length() - 4).toLowerCase(); + if (last4.equals(".def")) { + defFile = quoteFilename(buf, sourceFiles[i]); + } else { + if (last4.equals(".res")) { + resFiles.addElement(quoteFilename(buf, sourceFiles[i])); + } else { + if (last4.equals(".lib")) { + libFiles.addElement(quoteFilename(buf, sourceFiles[i])); + } else { + execArgs.addElement(quoteFilename(buf, sourceFiles[i])); + } + } + } + } + // + // output file name + // + String outputFileName = new File(outputDir, outputName).toString(); + execArgs.addElement("," + quoteFilename(buf, outputFileName)); + if (config.getMap()) { + int lastPeriod = outputFileName.lastIndexOf('.'); + String mapName; + if (lastPeriod < outputFileName.length() - 4) { + mapName = outputFileName + ".map"; + } else { + mapName = outputFileName.substring(0, lastPeriod) + ".map"; + } + execArgs.addElement("," + quoteFilename(buf, mapName) + ","); + } else { + execArgs.addElement(",,"); + } + // + // add all the libraries + // + Enumeration libEnum = libFiles.elements(); + boolean hasImport32 = false; + boolean hasCw32 = false; + while (libEnum.hasMoreElements()) { + String libName = (String) libEnum.nextElement(); + if (libName.equalsIgnoreCase("import32.lib")) { + hasImport32 = true; + } + if (libName.equalsIgnoreCase("cw32.lib")) { + hasImport32 = true; + } + execArgs.addElement(quoteFilename(buf, libName)); + } + if (!hasCw32) { + execArgs.addElement(quoteFilename(buf, "cw32.lib")); + } + if (!hasImport32) { + execArgs.addElement(quoteFilename(buf, "import32.lib")); + } + if (defFile == null) { + execArgs.addElement(",,"); + } else { + execArgs.addElement("," + quoteFilename(buf, defFile) + ","); + } + Enumeration resEnum = resFiles.elements(); + while (resEnum.hasMoreElements()) { + String resName = (String) resEnum.nextElement(); + execArgs.addElement(quoteFilename(buf, resName)); + } + String[] execArguments = new String[execArgs.size()]; + execArgs.copyInto(execArguments); + return execArguments; + } + /** + * Prepares argument list to execute the linker using a response file. + * + * @param outputFile + * linker output file + * @param args + * output of prepareArguments + * @return arguments for runTask + */ + protected String[] prepareResponseFile(File outputFile, String[] args) + throws IOException { + String cmdargs[] = BorlandProcessor.prepareResponseFile(outputFile, args, " + \n"); + cmdargs[cmdargs.length - 1] = getCommandFileSwitch(cmdargs[cmdargs.length -1]); + return cmdargs; + } + + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + */ + public void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) throws IOException { + WindowsPlatform.addVersionFiles(versionInfo, linkType, outputFile, isDebug, objDir, matcher); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.java new file mode 100644 index 0000000..b14c854 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandProcessor.java @@ -0,0 +1,219 @@ +/* + * + * Copyright 2002-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.io.Reader; +import java.util.Vector; +import java.io.FileWriter; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +/** + * A add-in class for Borland(r) processor adapters + * + * + */ +public final class BorlandProcessor { + public static void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("-w-"); + break; + case 5 : + args.addElement("-w!"); + break; + default : + args.addElement("-w"); + break; + } + } + public static void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-D"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + /** + * This method extracts path information from the appropriate .cfg file in + * the install directory. + * + * @param toolName + * Tool name, for example, "bcc32", "brc32", "ilink32" + * @param switchChar + * Command line switch character, for example "L" for libraries + * @param defaultRelativePath + * default path relative to executable directory + * @return path + */ + public static File[] getEnvironmentPath(String toolName, char switchChar, + String[] defaultRelativePath) { + if (toolName == null) { + throw new NullPointerException("toolName"); + } + if (defaultRelativePath == null) { + throw new NullPointerException("defaultRelativePath"); + } + String[] path = defaultRelativePath; + File exeDir = CUtil.getExecutableLocation(toolName + ".exe"); + if (exeDir != null) { + File cfgFile = new File(exeDir, toolName + ".cfg"); + if (cfgFile.exists()) { + try { + Reader reader = new BufferedReader(new FileReader(cfgFile)); + BorlandCfgParser cfgParser = new BorlandCfgParser( + switchChar); + path = cfgParser.parsePath(reader); + reader.close(); + } catch (IOException ex) { + // + // could be logged + // + } + } + } else { + // + // if can't find the executable, + // assume current directory to resolve relative paths + // + exeDir = new File(System.getProperty("user.dir")); + } + int nonExistant = 0; + File[] resourcePath = new File[path.length]; + for (int i = 0; i < path.length; i++) { + resourcePath[i] = new File(path[i]); + if (!resourcePath[i].isAbsolute()) { + resourcePath[i] = new File(exeDir, path[i]); + } + // + // if any of the entries do not exist or are + // not directories, null them out + if (!(resourcePath[i].exists() && resourcePath[i].isDirectory())) { + resourcePath[i] = null; + nonExistant++; + } + } + // + // if there were some non-existant or non-directory + // entries in the configuration file then + // create a shorter array + if (nonExistant > 0) { + File[] culled = new File[resourcePath.length - nonExistant]; + int index = 0; + for (int i = 0; i < resourcePath.length; i++) { + if (resourcePath[i] != null) { + culled[index++] = resourcePath[i]; + } + } + resourcePath = culled; + } + return resourcePath; + } + public static String getIncludeDirSwitch(String includeOption, + String includeDir) { + StringBuffer buf = new StringBuffer(includeOption); + quoteFile(buf, includeDir); + return buf.toString(); + } + public static String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length]; + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(libnames[i]); + buf.append(".lib"); + patterns[i] = buf.toString(); + } + return patterns; + } + public static String[] getOutputFileSwitch(String outFile) { + return new String[0]; + } + public static void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("-U"); + buffer.append(define); + } + public static boolean isCaseSensitive() { + return false; + } + public static void quoteFile(StringBuffer buf, String outPath) { + if (outPath.charAt(0) != '\"' + && (outPath.indexOf(' ') >= 0 + || outPath.indexOf('-') >= 0 + || outPath.indexOf('/') >= 0)) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + } + + /** + * Prepares argument list to execute the linker using a response file. + * + * @param outputFile + * linker output file + * @param args + * output of prepareArguments + * @return arguments for runTask + */ + public static String[] prepareResponseFile(File outputFile, + String[] args, + String continuation) + throws IOException { + String baseName = outputFile.getName(); + File commandFile = new File(outputFile.getParent(), baseName + ".rsp"); + FileWriter writer = new FileWriter(commandFile); + for (int i = 1; i < args.length - 1; i++) { + writer.write(args[i]); + // + // if either the current argument ends with + // or next argument starts with a comma then + // don't split the line + if (args[i].endsWith(",") || args[i + 1].startsWith(",")) { + writer.write(' '); + } else { + // + // split the line to make it more readable + // + writer.write(continuation); + } + } + // + // write the last argument + // + if (args.length > 1) { + writer.write(args[args.length - 1]); + } + writer.close(); + String[] execArgs = new String[2]; + execArgs[0] = args[0]; + // + // left for the caller to decorate + execArgs[1] = commandFile.toString(); + return execArgs; + } + + private BorlandProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.java new file mode 100644 index 0000000..debfa2b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/BorlandResourceCompiler.java @@ -0,0 +1,129 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Borland(r) brc32 Resource compiler. + * + * @author Curt Arnold + */ +public class BorlandResourceCompiler extends CommandLineCompiler { + private static final BorlandResourceCompiler instance = new BorlandResourceCompiler( + false, null); + public static BorlandResourceCompiler getInstance() { + return instance; + } + private BorlandResourceCompiler(boolean newEnvironment, Environment env) { + super("brc32", "c:\\__bogus\\__bogus.rc", new String[]{".rc"}, + new String[]{".h", ".hpp", ".inl"}, ".res", false, null, + newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + // + // compile only + // + args.addElement("-r"); + } + protected void addWarningSwitch(Vector args, int level) { + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new BorlandResourceCompiler(newEnvironment, env); + } + return this; + } + public void compile(CCTask task, File outputDir, String[] sourceFiles, + String[] args, String[] endArgs, boolean relentless, + CommandLineCompilerConfiguration config, ProgressMonitor monitor) + throws BuildException { + super.compile(task, outputDir, sourceFiles, args, endArgs, relentless, + config, monitor); + } + /** + * The include parser for C will work just fine, but we didn't want to + * inherit from CommandLineCCompiler + */ + protected Parser createParser(File source) { + return new CParser(); + } + protected int getArgumentCountPerInputFile() { + return 2; + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-d"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + protected File[] getEnvironmentIncludePath() { + return BorlandProcessor.getEnvironmentPath("brc32", 'i', + new String[]{"..\\include"}); + } + protected String getIncludeDirSwitch(String includeDir) { + return BorlandProcessor.getIncludeDirSwitch("-i", includeDir); + } + protected String getInputFileArgument(File outputDir, String filename, + int index) { + if (index == 0) { + String[] outputFileNames = getOutputFileNames(filename, null); + String fullOutputName = new File(outputDir, outputFileNames[0]) + .toString(); + return "-fo" + fullOutputName; + } + return filename; + } + public Linker getLinker(LinkType type) { + return BorlandLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 1024; + } + protected int getMaximumInputFilesPerCommand() { + return 1; + } + protected int getTotalArgumentLengthForInputFile(File outputDir, + String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 0); + String arg2 = getInputFileArgument(outputDir, inputFile, 1); + return arg1.length() + arg2.length() + 2; + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.java new file mode 100644 index 0000000..dfe5ec6 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/CBuilderXProjectWriter.java @@ -0,0 +1,542 @@ +/* + * + * Copyright 2004-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks.borland; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Hashtable; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.gcc.GccCCompiler; +import net.sf.antcontrib.cpptasks.ide.ProjectDef; +import net.sf.antcontrib.cpptasks.ide.ProjectWriter; + +import org.apache.tools.ant.BuildException; +import org.apache.xml.serialize.OutputFormat; +import org.apache.xml.serialize.Serializer; +import org.apache.xml.serialize.XMLSerializer; +import org.xml.sax.ContentHandler; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.AttributesImpl; + +/** + * Writes a CBuilderX 1.0 project file. + * + * @author curta + * + */ +public final class CBuilderXProjectWriter + implements ProjectWriter { + /** + * Constructor. + */ + public CBuilderXProjectWriter() { + } + + /** + * Writes a project definition file. + * + * @param fileName + * project name for file, should has .cbx extension + * @param task + * cc task for which to write project + * @param projectDef + * project element + * @param sources source files + * @param targets compilation targets + * @param linkTarget link target + * @throws IOException if I/O error + * @throws SAXException if XML serialization error + */ + public void writeProject(final File fileName, + final CCTask task, + final ProjectDef projectDef, + final List sources, + final Hashtable targets, + final TargetInfo linkTarget) throws + IOException, + SAXException { + + String projectName = projectDef.getName(); + if (projectName == null) { + projectName = fileName.getName(); + } + final String basePath = fileName.getAbsoluteFile().getParent(); + + File projectFile = new File(fileName + ".cbx"); + if (!projectDef.getOverwrite() && projectFile.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + projectFile.toString()); + } + + CommandLineCompilerConfiguration compilerConfig = + getBaseCompilerConfiguration(targets); + if (compilerConfig == null) { + throw new BuildException( + "Unable to generate C++ BuilderX project when gcc or bcc is not used."); + } + + OutputStream outStream = new FileOutputStream(projectFile); + OutputFormat format = new OutputFormat("xml", "UTF-8", true); + Serializer serializer = new XMLSerializer(outStream, format); + ContentHandler content = serializer.asContentHandler(); + content.startDocument(); + AttributesImpl emptyAttrs = new AttributesImpl(); + content.startElement(null, "project", "project", emptyAttrs); + PropertyWriter propertyWriter = new PropertyWriter(content); + propertyWriter.write("build.config", "active", "0"); + propertyWriter.write("build.config", "count", "0"); + propertyWriter.write("build.config", "excludedefaultforzero", "0"); + propertyWriter.write("build.config.0", "builddir", "Debug"); + propertyWriter.write("build.config.0", "key", "Debug_Build"); + propertyWriter.write("build.config.0", "linux.builddir", + "linux/Debug_Build"); + propertyWriter.write("build.config.0", "settings.MinGW", + "default;debug"); + propertyWriter.write("build.config.0", "settings.gnuc++", + "default;debug"); + propertyWriter.write("build.config.0", "settings.intellinia32", + "default;debug"); + propertyWriter.write("build.config.0", "settings.mswin32", + "default;debug"); + propertyWriter.write("build.config.0", "type", "Toolset"); + propertyWriter.write("build.config.0", "win32.builddir", + "windows/Debug_Build"); + propertyWriter.write("build.node", "name", projectDef.getName()); + final String buildType = getBuildType(task); + propertyWriter.write("build.node", "type", buildType); + propertyWriter.write("build.platform", "active", + getActivePlatform(task)); + propertyWriter.write("build.platform", "linux.Debug_Build.toolset", + "gnuc++"); + propertyWriter.write("build.platform", "linux.Release_Build.toolset", + "gnuc++"); + propertyWriter.write("build.platform", "linux.default", "gnuc++"); + propertyWriter.write("build.platform", "linux.gnuc++.enabled", "1"); + propertyWriter.write("build.platform", "linux.mswin32.enabled", "1"); + propertyWriter.write("build.platform", "linux.win32b.enabled", "1"); + propertyWriter.write("build.platform", "solaris.default", "gnuc++"); + propertyWriter.write("build.platform", "solaris.enabled", "1"); + String toolset = getWin32Toolset(compilerConfig); + propertyWriter.write("build.platform", "win32.default", toolset); + propertyWriter.write("build.platform", "win32." + toolset + ".enabled", "1"); + + propertyWriter.write("cbproject", "version", "X.1.0"); + if ("dllproject".equals(buildType)) { + propertyWriter.write("gnuc++.g++compile", + "option.fpic_using_GOT.enabled", "1"); + propertyWriter.write("gnuc++.g++link", "option.shared.enabled", "1"); + propertyWriter.write("intellinia32.icc", "option.minus_Kpic.enabled", + "1"); + propertyWriter.write("intellinia32.icclink", + "option.minus_shared.enabled", "1"); + } + // + // assume the first target is representative of all compilation tasks + // + writeCompileOptions(basePath, propertyWriter, compilerConfig); + writeLinkOptions(basePath, propertyWriter, linkTarget); + propertyWriter.write("linux.gnuc++.Debug_Build", "saved", "1"); + if ("dllproject".equals(buildType)) { + propertyWriter.write("runtime", "ExcludeDefaultForZero", "1"); + //propertyWriter.write("unique", "id", "852"); + } else if ("exeproject".equals(buildType)) { + propertyWriter.write("runtime.0", "BuildTargetOnRun", + "com.borland.cbuilder.build." + + "CBProjectBuilder$ProjectBuildAction;make"); + propertyWriter.write("runtime.0", "ConfigurationName", + projectDef.getName()); + propertyWriter.write("runtime.0", "RunnableType", + "com.borland.cbuilder.runtime.ExecutableRunner"); + } + AttributesImpl fileAttributes = new AttributesImpl(); + fileAttributes.addAttribute(null, "path", "path", "#PCDATA", ""); + AttributesImpl gccAttributes = null; + if (!"g++".equals(compilerConfig.getCommand())) { + gccAttributes = new AttributesImpl(); + gccAttributes.addAttribute(null, "category", "category", "#PCDATA", + "build.basecmd"); + gccAttributes.addAttribute(null, "name", "name", "#PCDATA", + "linux.gnuc++.Debug_Build.g++_key"); + gccAttributes.addAttribute(null, "value", "value", "#PCDATA", + compilerConfig.getCommand()); + } + + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo info = (TargetInfo) targetIter.next(); + File[] targetsources = info.getSources(); + for (int i = 0; i < targetsources.length; i++) { + String relativePath = CUtil.getRelativePath(basePath, + targetsources[i]); + fileAttributes.setValue(0, relativePath); + content.startElement(null, "file", "file", fileAttributes); + + // + // if file ends with .c, use gcc instead of g++ + // + if (gccAttributes != null) { + content.startElement(null, "property", "property", gccAttributes); + content.endElement(null, "property", "property"); + } + content.endElement(null, "file", "file"); + } + } + content.endElement(null, "project", "project"); + content.endDocument(); + } + + /** + * Gets build type from link target. + * @param task CCTask current task + * @return String build type + */ + private String getBuildType(final CCTask task) { + String outType = task.getOuttype(); + if ("executable".equals(outType)) { + return "exeproject"; + } else if ("static".equals(outType)) { + return "libraryproject"; + } + return "dllproject"; + } + + /** + * Gets active platform. + * @param task CCTask cc task + * @return String platform identifier + */ + private String getActivePlatform(final CCTask task) { + String osName = System.getProperty("os.name").toLowerCase(Locale.US); + if (osName.indexOf("windows") >= 0) { + return "win32"; + } + return "linux"; + } + + private String getWin32Toolset(final CommandLineCompilerConfiguration compilerConfig) { + if (compilerConfig != null && compilerConfig.getCompiler() instanceof BorlandCCompiler) { + return "win32b"; + } + return "MinGW"; + } + + /** + * Utility class to generate property elements. + */ + private static class PropertyWriter { + /** + * Content handler. + */ + private ContentHandler content; + + /** + * Attributes list. + */ + private AttributesImpl propertyAttributes; + + /** + * Constructor. + * + * @param contentHandler ContentHandler content handler + */ + public PropertyWriter(final ContentHandler contentHandler) { + content = contentHandler; + propertyAttributes = new AttributesImpl(); + propertyAttributes.addAttribute(null, "category", "category", + "#PCDATA", ""); + propertyAttributes + .addAttribute(null, "name", "name", "#PCDATA", ""); + propertyAttributes.addAttribute(null, "value", "value", "#PCDATA", + ""); + } + + /** + * Write property element. + * + * @param category String category + * @param name String property name + * @param value String property value + * @throws SAXException if I/O error or illegal content + */ + public final void write(final String category, + final String name, + final String value) throws SAXException { + propertyAttributes.setValue(0, category); + propertyAttributes.setValue(1, name); + propertyAttributes.setValue(2, value); + content.startElement(null, "property", "property", + propertyAttributes); + content.endElement(null, "property", "property"); + } + } + + /** + * Gets the first recognized compiler from the + * compilation targets. + * @param targets compilation targets + * @return representative (hopefully) compiler configuration + */ + private CommandLineCompilerConfiguration + getBaseCompilerConfiguration(final Hashtable targets) { + // + // find first target with an gcc or bcc compilation + // + CommandLineCompilerConfiguration compilerConfig = null; + // + // get the first target and assume that it is representative + // + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo targetInfo = (TargetInfo) targetIter.next(); + ProcessorConfiguration config = targetInfo.getConfiguration(); + String identifier = config.getIdentifier(); + // + // for the first gcc or bcc compiler + // + if (config instanceof CommandLineCompilerConfiguration) { + compilerConfig = (CommandLineCompilerConfiguration) config; + if (compilerConfig.getCompiler() instanceof GccCCompiler || + compilerConfig.getCompiler() instanceof BorlandCCompiler) { + return compilerConfig; + } + } + } + return null; + } + + /** + * Writes elements corresponding to compilation options. + * + * @param baseDir String base directory + * @param writer PropertyWriter property writer + * @param compilerConfig representative configuration + * @throws SAXException if I/O error or illegal content + */ + private void writeCompileOptions(final String baseDir, + final PropertyWriter writer, + final CommandLineCompilerConfiguration + compilerConfig) throws SAXException { + boolean isBcc = false; + boolean isUnix = true; + String compileID = "linux.Debug_Build.gnuc++.g++compile"; + if (compilerConfig.getCompiler() instanceof BorlandCCompiler) { + compileID = "win32.Debug_Build.win32b.bcc32"; + isUnix = false; + isBcc = true; + } + + File[] includePath = compilerConfig.getIncludePath(); + int includeIndex = 1; + if (isUnix) { + writer.write(compileID, + "option.I.arg." + (includeIndex++), + "/usr/include"); + writer.write(compileID, + "option.I.arg." + (includeIndex++), + "/usr/include/g++-3"); + } + for (int i = 0; i < includePath.length; i++) { + String relPath = CUtil.getRelativePath(baseDir, includePath[i]); + writer.write(compileID, + "option.I.arg." + (includeIndex++), + relPath); + } + if (includePath.length > 0) { + writer.write(compileID, + "option.I.enabled", + "1"); + } + + String defineBase = "option.D_MACRO_VALUE"; + if (isBcc) { + defineBase = "option.D"; + } + String defineOption = defineBase + ".arg."; + int defineIndex = 1; + int undefineIndex = 1; + String[] preArgs = compilerConfig.getPreArguments(); + for (int i = 0; i < preArgs.length; i++) { + if (preArgs[i].startsWith("-D")) { + writer.write(compileID, + defineOption + (defineIndex++), + preArgs[i].substring(2)); + } else if (preArgs[i].startsWith("-U")) { + writer.write(compileID, + "option.U.arg." + + (undefineIndex++), preArgs[i] + .substring(2)); + } else if (!(preArgs[i].startsWith("-I") + || preArgs[i].startsWith("-o"))) { + // + // any others (-g, -fno-rtti, -w, -Wall, etc) + // + writer.write(compileID, + "option." + preArgs[i].substring(1) + ".enabled", + "1"); + } + } + if (defineIndex > 1) { + writer.write(compileID, + defineBase + ".enabled", + "1"); + } + if (undefineIndex > 1) { + writer.write(compileID, + "option.U.enabled", + "1"); + } + } + + /** + * Writes elements corresponding to link options. + * + * @param baseDir String base directory + * @param writer PropertyWriter property writer + * @param linkTarget TargetInfo link target + * @throws SAXException if I/O error or illegal content + */ + private void + writeLinkOptions(final String baseDir, + final PropertyWriter writer, + final TargetInfo linkTarget) throws SAXException { + if (linkTarget != null) { + ProcessorConfiguration config = linkTarget.getConfiguration(); + if (config instanceof CommandLineLinkerConfiguration) { + CommandLineLinkerConfiguration linkConfig = + (CommandLineLinkerConfiguration) config; + + if (linkConfig.getLinker() instanceof BorlandLinker) { + String linkID = "win32.Debug_Build.win32b.ilink32"; + writeIlinkArgs(writer, linkID, linkConfig.getPreArguments()); + writeIlinkArgs(writer, linkID, linkConfig.getEndArguments()); + writer.write(linkID, "param.libfiles.1", "cw32mt.lib"); + writer.write(linkID, "param.libfiles.2", "import32.lib"); + int libIndex = 3; + String[] libNames = linkConfig.getLibraryNames(); + for(int i = 0; i < libNames.length; i++) { + writer.write(linkID, "param.libfiles." + (libIndex++), + libNames[i]); + } + String startup = linkConfig.getStartupObject(); + if (startup != null) { + writer.write(linkID, "param.objfiles.1", startup); + } + } else { + String linkID = "linux.Debug_Build.gnuc++.g++link"; + writeLdArgs(writer, linkID, linkConfig.getPreArguments()); + writeLdArgs(writer, linkID, linkConfig.getEndArguments()); + } + } + } + } + + /** + * Writes ld linker options to project file. + * + * @param writer PropertyWriter property writer + * @param linkID String linker identifier + * @param preArgs String[] linker arguments + * @throws SAXException thrown if unable to write option + */ + private void writeLdArgs(final PropertyWriter writer, + final String linkID, + final String[] preArgs) throws SAXException { + int objnameIndex = 1; + int libnameIndex = 1; + int libpathIndex = 1; + for (int i = 0; i < preArgs.length; i++) { + if (preArgs[i].startsWith("-o")) { + writer.write(linkID, + "option.o.arg." + + (objnameIndex++), preArgs[i] + .substring(2)); + } else if (preArgs[i].startsWith("-l")) { + writer.write(linkID, + "option.l.arg." + + (libnameIndex++), preArgs[i] + .substring(2)); + } else if (preArgs[i].startsWith("-L")) { + writer.write(linkID, + "option.L.arg." + + (libpathIndex++), preArgs[i] + .substring(2)); + } else { + // + // any others + // + writer.write(linkID, "option." + preArgs[i].substring(1) + ".enabled", + "1"); + } + } + if (objnameIndex > 1) { + writer.write(linkID, + "option.o.enabled", + "1"); + } + if (libnameIndex > 1) { + writer.write(linkID, + "option.l.enabled", + "1"); + } + if (libpathIndex > 1) { + writer.write(linkID, + "option.L.enabled", + "1"); + } + } + + /** + * Writes ilink32 linker options to project file. + * + * @param writer PropertyWriter property writer + * @param linkID String linker identifier + * @param preArgs String[] linker arguments + * @throws SAXException thrown if unable to write option + */ + private void writeIlinkArgs(final PropertyWriter writer, + final String linkID, + final String[] args) throws SAXException { + for (int i = 0; i < args.length; i++) { + if (args[i].charAt(0) == '/' || args[i].charAt(0) == '-') { + int equalsPos = args[i].indexOf('='); + if (equalsPos > 0) { + String option = "option." + args[i].substring(0, equalsPos -1); + writer.write(linkID, + option + ".enabled", + "1"); + writer.write(linkID, + option + ".value", + args[i].substring(equalsPos + 1)); + } else { + writer.write(linkID, "option." + args[i].substring(1) + ".enabled", "1"); + } + } + } + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.java new file mode 100644 index 0000000..82767cb --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/CfgFilenameState.java @@ -0,0 +1,46 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import net.sf.antcontrib.cpptasks.parser.AbstractParser; +import net.sf.antcontrib.cpptasks.parser.AbstractParserState; +import net.sf.antcontrib.cpptasks.parser.FilenameState; +public class CfgFilenameState extends FilenameState { + private char terminator; + public CfgFilenameState(AbstractParser parser, char[] terminators) { + super(parser, terminators); + terminator = terminators[0]; + } + public AbstractParserState consume(char ch) { + // + // if a ';' is encountered then + // close the previous filename by sending a + // recognized terminator to our super class + // and stay in this state for more filenamese + if (ch == ';') { + super.consume(terminator); + return this; + } + AbstractParserState newState = super.consume(ch); + // + // change null (consume to end of line) + // to look for next switch character + if (newState == null) { + newState = getParser().getNewLineState(); + } + return newState; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.java new file mode 100644 index 0000000..5656af8 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/ConsumeToSpaceOrNewLine.java @@ -0,0 +1,30 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import net.sf.antcontrib.cpptasks.parser.AbstractParser; +import net.sf.antcontrib.cpptasks.parser.AbstractParserState; +public class ConsumeToSpaceOrNewLine extends AbstractParserState { + public ConsumeToSpaceOrNewLine(AbstractParser parser) { + super(parser); + } + public AbstractParserState consume(char ch) { + if (ch == ' ' || ch == '\t' || ch == '\n') { + return getParser().getNewLineState(); + } + return this; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.java b/src/main/java/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.java new file mode 100644 index 0000000..ec3bc84 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/QuoteBranchState.java @@ -0,0 +1,35 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.borland; +import net.sf.antcontrib.cpptasks.parser.AbstractParser; +import net.sf.antcontrib.cpptasks.parser.AbstractParserState; +public class QuoteBranchState extends AbstractParserState { + private AbstractParserState quote; + private AbstractParserState unquote; + public QuoteBranchState(AbstractParser parser, AbstractParserState quote, + AbstractParserState unquote) { + super(parser); + this.quote = quote; + this.unquote = unquote; + } + public AbstractParserState consume(char ch) { + if (ch == '"') { + return quote; + } + return unquote.consume(ch); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/borland/package.html b/src/main/java/net/sf/antcontrib/cpptasks/borland/package.html new file mode 100644 index 0000000..a91e91f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/borland/package.html @@ -0,0 +1,27 @@ + + + + + + + +Adapter for Borland tools. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.java new file mode 100644 index 0000000..1595ae1 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranCompiler.java @@ -0,0 +1,137 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compaq; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineFortranCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Compaq(r) Visual Fortran compiler. + * + * @author Curt Arnold + */ +public class CompaqVisualFortranCompiler extends CommandLineFortranCompiler { + private static final CompaqVisualFortranCompiler[] instance = new CompaqVisualFortranCompiler[]{new CompaqVisualFortranCompiler( + false, null)}; + public static CompaqVisualFortranCompiler getInstance() { + return instance[0]; + } + private CompaqVisualFortranCompiler(boolean newEnvironment, Environment env) { + super("DF", null, new String[]{".f90", ".for", ".f"}, new String[]{ + ".i", ".i90", ".fpp", ".inc", ".bak", ".exe"}, ".obj", false, + null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("/nologo"); + args.addElement("/compile_only"); + if (debug) { + args.addElement("/debug:full"); + args.addElement("/define:_DEBUG"); + } else { + args.addElement("/debug:none"); + args.addElement("/define:NDEBUG"); + } + if (multithreaded) { + args.addElement("/threads"); + args.addElement("/define:_MT"); + } else { + args.addElement("/nothreads"); + } + boolean staticRuntime = linkType.isStaticRuntime(); + if (staticRuntime) { + args.addElement("/libs:static"); + } else { + args.addElement("/libs:dll"); + } + if (linkType.isSharedLibrary()) { + args.addElement("/dll"); + args.addElement("/define:_DLL"); + } + } + public void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("/nowarn"); + break; + case 1 : + break; + case 2 : + break; + case 3 : + args.addElement("/warn:usage"); + break; + case 4 : + args.addElement("/warn:all"); + break; + case 5 : + args.addElement("/warn:errors"); + break; + } + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new CompaqVisualFortranCompiler(newEnvironment, env); + } + return this; + } + protected void getDefineSwitch(StringBuffer buf, String define, String value) { + buf.append("/define:"); + buf.append(define); + if (value != null && value.length() > 0) { + buf.append('='); + buf.append(value); + } + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ";"); + } + protected String getIncludeDirSwitch(String includeDir) { + StringBuffer buf = new StringBuffer("/include:"); + if (includeDir.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(includeDir); + buf.append('"'); + } else { + buf.append(includeDir); + } + return buf.toString(); + } + public Linker getLinker(LinkType type) { + return CompaqVisualFortranLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 1024; + } + protected void getUndefineSwitch(StringBuffer buf, String define) { + buf.append("/undefine:"); + buf.append(define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.java new file mode 100644 index 0000000..2488619 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.java @@ -0,0 +1,82 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compaq; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioLibrarian; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the Compaq(r) Visual Fortran Librarian + * + * @author Curt Arnold + */ +public class CompaqVisualFortranLibrarian extends CommandLineLinker { + private static final CompaqVisualFortranLibrarian instance = new CompaqVisualFortranLibrarian(); + public static CompaqVisualFortranLibrarian getInstance() { + return instance; + } + private CompaqVisualFortranLibrarian() { + super("lib", "/bogus", new String[]{".obj"}, new String[0], ".lib", + false, null); + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + args.addElement("/nologo"); + } + protected void addIncremental(boolean incremental, Vector args) { + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + protected String getCommandFileSwitch(String commandFile) { + return DevStudioProcessor.getCommandFileSwitch(commandFile); + } + public File[] getLibraryPath() { + return new File[0]; + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return new String[0]; + } + public Linker getLinker(LinkType type) { + return CompaqVisualFortranLinker.getInstance().getLinker(type); + } + protected int getMaximumCommandLength() { + return DevStudioLibrarian.getInstance().getMaximumCommandLength(); + } + protected String[] getOutputFileSwitch(String outputFile) { + return DevStudioLibrarian.getInstance().getOutputFileSwitch(outputFile); + } + public boolean isCaseSensitive() { + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.java new file mode 100644 index 0000000..c8930f9 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLinker.java @@ -0,0 +1,77 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compaq; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker; +/** + * Adapter for the Compaq(r) Visual Fortran linker. + * + * @author Curt Arnold + */ +public final class CompaqVisualFortranLinker extends DevStudioCompatibleLinker { + private static final CompaqVisualFortranLinker dllLinker = new CompaqVisualFortranLinker( + ".dll"); + private static final CompaqVisualFortranLinker instance = new CompaqVisualFortranLinker( + ".exe"); + public static CompaqVisualFortranLinker getInstance() { + return instance; + } + private CompaqVisualFortranLinker(String outputSuffix) { + super("DF", "__bogus__.xxx", outputSuffix); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + args.addElement("/NOLOGO"); + boolean staticRuntime = linkType.isStaticRuntime(); + if (staticRuntime) { + args.addElement("/libs:static"); + } else { + args.addElement("/libs:dll"); + } + if (debug) { + args.addElement("/debug"); + } else { + } + if (linkType.isSharedLibrary()) { + args.addElement("/dll"); + } else { + args.addElement("/exe"); + } + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return CompaqVisualFortranLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } + public String[] getOutputFileSwitch(String outputFile) { + StringBuffer buf = new StringBuffer("/OUT:"); + if (outputFile.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(outputFile); + buf.append('"'); + } else { + buf.append(outputFile); + } + return new String[]{buf.toString()}; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.java new file mode 100644 index 0000000..2d1401f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractCompiler.java @@ -0,0 +1,207 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.io.Reader; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.CompilerDef; +import net.sf.antcontrib.cpptasks.DependencyInfo; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.VersionInfo; + +/** + * An abstract compiler implementation. + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public abstract class AbstractCompiler extends AbstractProcessor + implements + Compiler { + private static final String[] emptyIncludeArray = new String[0]; + private String outputSuffix; + protected AbstractCompiler(String[] sourceExtensions, + String[] headerExtensions, String outputSuffix) { + super(sourceExtensions, headerExtensions); + this.outputSuffix = outputSuffix; + } + /** + * Checks file name to see if parse should be attempted + * + * Default implementation returns false for files with extensions '.dll', + * 'tlb', '.res' + * + */ + protected boolean canParse(File sourceFile) { + String sourceName = sourceFile.toString(); + int lastPeriod = sourceName.lastIndexOf('.'); + if (lastPeriod >= 0 && lastPeriod == sourceName.length() - 4) { + String ext = sourceName.substring(lastPeriod).toUpperCase(); + if (ext.equals(".DLL") || ext.equals(".TLB") || ext.equals(".RES")) { + return false; + } + } + return true; + } + abstract protected CompilerConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] baseConfigs, + CompilerDef specificConfig, TargetDef targetPlatform, + VersionInfo versionInfo); + public ProcessorConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, TargetDef targetPlatform, + VersionInfo versionInfo) { + if (specificConfig == null) { + throw new NullPointerException("specificConfig"); + } + return createConfiguration(task, linkType, baseConfigs, + (CompilerDef) specificConfig, targetPlatform, versionInfo); + } + abstract protected Parser createParser(File sourceFile); + protected String getBaseOutputName(String inputFile) { + int lastSlash = inputFile.lastIndexOf('/'); + int lastReverse = inputFile.lastIndexOf('\\'); + int lastSep = inputFile.lastIndexOf(File.separatorChar); + if (lastReverse > lastSlash) { + lastSlash = lastReverse; + } + if (lastSep > lastSlash) { + lastSlash = lastSep; + } + int lastPeriod = inputFile.lastIndexOf('.'); + if (lastPeriod < 0) { + lastPeriod = inputFile.length(); + } + return inputFile.substring(lastSlash + 1, lastPeriod); + } + public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo) { + // + // if a recognized input file + // + if (bid(inputFile) > 1) { + String baseName = getBaseOutputName(inputFile); + return new String[] { baseName + outputSuffix }; + } + return new String[0]; + } + /** + * Returns dependency info for the specified source file + * + * @param task + * task for any diagnostic output + * @param source + * file to be parsed + * @param includePath + * include path to be used to resolve included files + * + * @param sysIncludePath + * sysinclude path from build file, files resolved using + * sysInclude path will not participate in dependency analysis + * + * @param envIncludePath + * include path from environment variable, files resolved with + * envIncludePath will not participate in dependency analysis + * + * @param baseDir + * used to produce relative paths in DependencyInfo + * @param includePathIdentifier + * used to distinguish DependencyInfo's from different include + * path settings + * + */ + public final DependencyInfo parseIncludes(CCTask task, File source, + File[] includePath, File[] sysIncludePath, File[] envIncludePath, + File baseDir, String includePathIdentifier) { + // + // if any of the include files can not be identified + // change the sourceLastModified to Long.MAX_VALUE to + // force recompilation of anything that depends on it + long sourceLastModified = source.lastModified(); + File[] sourcePath = new File[1]; + sourcePath[0] = new File(source.getParent()); + Vector onIncludePath = new Vector(); + Vector onSysIncludePath = new Vector(); + String baseDirPath; + try { + baseDirPath = baseDir.getCanonicalPath(); + } catch (IOException ex) { + baseDirPath = baseDir.toString(); + } + String relativeSource = CUtil.getRelativePath(baseDirPath, source); + String[] includes = emptyIncludeArray; + if (canParse(source)) { + Parser parser = createParser(source); + try { + Reader reader = new BufferedReader(new FileReader(source)); + parser.parse(reader); + includes = parser.getIncludes(); + } catch (IOException ex) { + task.log("Error parsing " + source.toString() + ":" + + ex.toString()); + includes = new String[0]; + } + } + for (int i = 0; i < includes.length; i++) { + String includeName = includes[i]; + if (!resolveInclude(includeName, sourcePath, onIncludePath)) { + if (!resolveInclude(includeName, includePath, onIncludePath)) { + if (!resolveInclude(includeName, sysIncludePath, + onSysIncludePath)) { + if (!resolveInclude(includeName, envIncludePath, + onSysIncludePath)) { + // + // this should be enough to require us to reparse + // the file with the missing include for dependency + // information without forcing a rebuild + sourceLastModified += 2 * CUtil.FILETIME_EPSILON; + } + } + } + } + } + for (int i = 0; i < onIncludePath.size(); i++) { + String relativeInclude = CUtil.getRelativePath(baseDirPath, + (File) onIncludePath.elementAt(i)); + onIncludePath.setElementAt(relativeInclude, i); + } + for (int i = 0; i < onSysIncludePath.size(); i++) { + String relativeInclude = CUtil.getRelativePath(baseDirPath, + (File) onSysIncludePath.elementAt(i)); + onSysIncludePath.setElementAt(relativeInclude, i); + } + return new DependencyInfo(includePathIdentifier, relativeSource, + sourceLastModified, onIncludePath, onSysIncludePath); + } + protected boolean resolveInclude(String includeName, File[] includePath, + Vector onThisPath) { + for (int i = 0; i < includePath.length; i++) { + File includeFile = new File(includePath[i], includeName); + if (includeFile.exists()) { + onThisPath.addElement(includeFile); + return true; + } + } + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java new file mode 100644 index 0000000..5d9cefa --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java @@ -0,0 +1,122 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; +import java.io.IOException; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerDef; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.types.Environment; +/** + * An abstract Linker implementation. + * + * @author Adam Murdoch + */ +public abstract class AbstractLinker extends AbstractProcessor + implements + Linker { + public AbstractLinker(String[] objExtensions, String[] ignoredExtensions) { + super(objExtensions, ignoredExtensions); + } + /** + * Returns the bid of the processor for the file. + * + * A linker will bid 1 on any unrecognized file type. + * + * @param inputFile + * filename of input file + * @return bid for the file, 0 indicates no interest, 1 indicates that the + * processor recognizes the file but doesn't process it (header + * files, for example), 100 indicates strong interest + */ + public int bid(String inputFile) { + int bid = super.bid(inputFile); + switch (bid) { + // + // unrecognized extension, take the file + // + case 0 : + return 1; + // + // discard the ignored extensions + // + case 1 : + return 0; + } + return bid; + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + return this; + } + abstract protected LinkerConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] baseConfigs, + LinkerDef specificConfig, TargetDef targetPlatform, + VersionInfo versionInfo); + public ProcessorConfiguration createConfiguration(CCTask task, + LinkType linkType, ProcessorDef[] baseConfigs, + ProcessorDef specificConfig, + TargetDef targetPlatform, + VersionInfo versionInfo) { + if (specificConfig == null) { + throw new NullPointerException("specificConfig"); + } + return createConfiguration(task, linkType, baseConfigs, + (LinkerDef) specificConfig, targetPlatform, versionInfo); + } + public String getLibraryKey(File libfile) { + return libfile.getName(); + } + public abstract String[] getOutputFileNames(String fileName, VersionInfo versionInfo); + + + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + */ + public void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) throws IOException { + if (versionInfo == null) { + throw new NullPointerException("versionInfo"); + } + if (linkType == null) { + throw new NullPointerException("linkType"); + } + if (outputFile == null) { + throw new NullPointerException("outputFile"); + } + if (objDir == null) { + throw new NullPointerException("objDir"); + } + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.java new file mode 100644 index 0000000..d0cd77b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/AbstractProcessor.java @@ -0,0 +1,129 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import org.apache.tools.ant.types.Environment; +/** + * An abstract processor (compiler/linker) implementation. + * + * @author Curt Arnold + */ +public abstract class AbstractProcessor implements Processor, Cloneable { + /** + * default bid for a file name that the processor recognizes but does not + * process and does not want to fall through to the linker + */ + public final static int DEFAULT_DISCARD_BID = 1; + /** + * default bid for a file name that the processor desires to process + */ + public final static int DEFAULT_PROCESS_BID = 100; + /** + * Determines the identification of a command line processor by capture the + * first line of its output for a specific command. + * + * @param command + * array of command line arguments starting with executable + * name. For example, { "cl" } + * @param fallback + * start of identifier if there is an error in executing the + * command + * @return identifier for the processor + */ + protected static String getIdentifier(String[] command, String fallback) { + String identifier = fallback; + try { + String[] cmdout = CaptureStreamHandler.run(command); + if (cmdout.length > 0) { + identifier = cmdout[0]; + } + } catch (Throwable ex) { + identifier = fallback + ":" + ex.toString(); + } + return identifier; + } + private final String[] headerExtensions; + private final String[] sourceExtensions; + protected AbstractProcessor(String[] sourceExtensions, + String[] headerExtensions) { + this.sourceExtensions = (String[]) sourceExtensions.clone(); + this.headerExtensions = (String[]) headerExtensions.clone(); + } + /** + * Returns the bid of the processor for the file. + * + * @param inputFile + * filename of input file + * @return bid for the file, 0 indicates no interest, 1 indicates that the + * processor recognizes the file but doesn't process it (header + * files, for example), 100 indicates strong interest + */ + public int bid(String inputFile) { + String lower = inputFile.toLowerCase(); + for (int i = 0; i < sourceExtensions.length; i++) { + if (lower.endsWith(sourceExtensions[i])) { + return DEFAULT_PROCESS_BID; + } + } + for (int i = 0; i < headerExtensions.length; i++) { + if (lower.endsWith(headerExtensions[i])) { + return DEFAULT_DISCARD_BID; + } + } + return 0; + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + return this; + } + protected Object clone() throws CloneNotSupportedException { + return super.clone(); + } + public String[] getHeaderExtensions() { + return (String[]) this.headerExtensions.clone(); + } + abstract public String getIdentifier(); + /** + * Gets the target operating system architecture + * + * @return String target operating system architecture + */ + protected String getOSArch() { + return System.getProperty("os.arch"); + } + /** + * Gets the target operating system name + * + * @return String target operating system name + */ + protected String getOSName() { + return System.getProperty("os.name"); + } + public String[] getSourceExtensions() { + return (String[]) this.sourceExtensions.clone(); + } + /** + * Returns true if the target operating system is Mac OS X or Darwin. + * + * @return boolean + */ + protected boolean isDarwin() { + String osName = getOSName(); + return "Mac OS X".equals(osName); + } + public final String toString() { + return getIdentifier(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.java new file mode 100644 index 0000000..83c59f7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CaptureStreamHandler.java @@ -0,0 +1,122 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.util.Vector; + +import org.apache.tools.ant.taskdefs.Execute; +import org.apache.tools.ant.taskdefs.ExecuteStreamHandler; +/** + * Implements ExecuteStreamHandler to capture the output of a Execute to an + * array of strings + * + * @author Curt Arnold + */ +public class CaptureStreamHandler implements ExecuteStreamHandler { + /** + * Runs an executable and captures the output in a String array + * + * @param cmdline + * command line arguments + * @return output of process + */ + public static String[] run(String[] cmdline) { + CaptureStreamHandler handler = new CaptureStreamHandler(); + Execute exec = new Execute(handler); + exec.setCommandline(cmdline); + try { + int status = exec.execute(); + } catch (IOException ex) { + } + return handler.getOutput(); + } + private InputStream errorStream; + private InputStream fromProcess; + public CaptureStreamHandler() { + } + public String[] getOutput() { + String[] output; + if (fromProcess != null) { + Vector lines = new Vector(10); + try { + BufferedReader reader = new BufferedReader( + new InputStreamReader(errorStream)); + for (int i = 0; i < 2; i++) { + for (int j = 0; j < 100; j++) { + String line = reader.readLine(); + if (line == null) { + reader = new BufferedReader(new InputStreamReader( + fromProcess)); + break; + } + lines.addElement(line); + } + } + } catch (IOException ex) { + } + output = new String[lines.size()]; + lines.copyInto(output); + return output; + } + output = new String[0]; + return output; + } + /** + * Install a handler for the error stream of the subprocess. + * + * @param is + * input stream to read from the error stream from the + * subprocess + */ + public void setProcessErrorStream(InputStream is) throws IOException { + errorStream = is; + } + /** + * Install a handler for the input stream of the subprocess. + * + * @param os + * output stream to write to the standard input stream of the + * subprocess + */ + public void setProcessInputStream(OutputStream os) throws IOException { + os.close(); + } + /** + * Install a handler for the output stream of the subprocess. + * + * @param is + * input stream to read from the error stream from the + * subprocess + */ + public void setProcessOutputStream(InputStream is) throws IOException { + fromProcess = is; + } + /** + * Start handling of the streams. + */ + public void start() throws IOException { + } + /** + * Stop handling of the streams - will not be restarted. + */ + public void stop() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.java new file mode 100644 index 0000000..adafa08 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCCompiler.java @@ -0,0 +1,42 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.types.Environment; +/** + * An abstract Compiler implementation which uses an external program to + * perform the compile. + * + * @author Adam Murdoch + */ +public abstract class CommandLineCCompiler extends CommandLineCompiler { + protected CommandLineCCompiler(String command, String identifierArg, + String[] sourceExtensions, String[] headerExtensions, + String outputSuffix, boolean libtool, + CommandLineCCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + outputSuffix, libtool, libtoolCompiler, newEnvironment, env); + } + protected Parser createParser(File source) { + return new CParser(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.java new file mode 100644 index 0000000..46ec59a --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompiler.java @@ -0,0 +1,437 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.CompilerDef; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.types.CommandLineArgument; +import net.sf.antcontrib.cpptasks.types.UndefineArgument; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum;; +/** + * An abstract Compiler implementation which uses an external program to + * perform the compile. + * + * @author Adam Murdoch + */ +public abstract class CommandLineCompiler extends AbstractCompiler { + private String command; + private final Environment env; + private String identifier; + private String identifierArg; + private boolean libtool; + private CommandLineCompiler libtoolCompiler; + private final boolean newEnvironment; + protected CommandLineCompiler(String command, String identifierArg, + String[] sourceExtensions, String[] headerExtensions, + String outputSuffix, boolean libtool, + CommandLineCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(sourceExtensions, headerExtensions, outputSuffix); + this.command = command; + if (libtool && libtoolCompiler != null) { + throw new java.lang.IllegalArgumentException( + "libtoolCompiler should be null when libtool is true"); + } + this.libtool = libtool; + this.libtoolCompiler = libtoolCompiler; + this.identifierArg = identifierArg; + this.newEnvironment = newEnvironment; + this.env = env; + } + abstract protected void addImpliedArgs(Vector args, boolean debug, + boolean multithreaded, boolean exceptions, LinkType linkType, + Boolean rtti, OptimizationEnum optimization); + /** + * Adds command-line arguments for include directories. + * + * If relativeArgs is not null will add corresponding relative paths + * include switches to that vector (for use in building a configuration + * identifier that is consistent between machines). + * + * @param baseDirPath Base directory path. + * @param includeDirs + * Array of include directory paths + * @param args + * Vector of command line arguments used to execute the task + * @param relativeArgs + * Vector of command line arguments used to build the + * configuration identifier + */ + protected void addIncludes(String baseDirPath, File[] includeDirs, + Vector args, Vector relativeArgs, StringBuffer includePathId) { + for (int i = 0; i < includeDirs.length; i++) { + args.addElement(getIncludeDirSwitch(includeDirs[i] + .getAbsolutePath())); + if (relativeArgs != null) { + String relative = CUtil.getRelativePath(baseDirPath, + includeDirs[i]); + relativeArgs.addElement(getIncludeDirSwitch(relative)); + if (includePathId != null) { + if (includePathId.length() == 0) { + includePathId.append("/I"); + } else { + includePathId.append(" /I"); + } + includePathId.append(relative); + } + } + } + } + abstract protected void addWarningSwitch(Vector args, int warnings); + protected void buildDefineArguments(CompilerDef[] defs, Vector args) { + // + // assume that we aren't inheriting defines from containing + // + UndefineArgument[] merged = defs[0].getActiveDefines(); + for (int i = 1; i < defs.length; i++) { + // + // if we are inheriting, merge the specific defines with the + // containing defines + merged = UndefineArgument.merge(defs[i].getActiveDefines(), merged); + } + StringBuffer buf = new StringBuffer(30); + for (int i = 0; i < merged.length; i++) { + buf.setLength(0); + UndefineArgument current = merged[i]; + if (current.isDefine()) { + getDefineSwitch(buf, current.getName(), current.getValue()); + } else { + getUndefineSwitch(buf, current.getName()); + } + args.addElement(buf.toString()); + } + } + /** + * Compiles a source file. + * + */ + public void compile(CCTask task, File outputDir, String[] sourceFiles, + String[] args, String[] endArgs, boolean relentless, + CommandLineCompilerConfiguration config, ProgressMonitor monitor) + throws BuildException { + BuildException exc = null; + // + // determine length of executable name and args + // + String command = getCommand(); + int baseLength = command.length() + args.length + endArgs.length; + if (libtool) { + baseLength += 8; + } + for (int i = 0; i < args.length; i++) { + baseLength += args[i].length(); + } + for (int i = 0; i < endArgs.length; i++) { + baseLength += endArgs[i].length(); + } + if (baseLength > getMaximumCommandLength()) { + throw new BuildException( + "Command line is over maximum length without specifying source file"); + } + // + // typically either 1 or Integer.MAX_VALUE + // + int maxInputFilesPerCommand = getMaximumInputFilesPerCommand(); + int argumentCountPerInputFile = getArgumentCountPerInputFile(); + for (int sourceIndex = 0; sourceIndex < sourceFiles.length;) { + int cmdLength = baseLength; + int firstFileNextExec; + for (firstFileNextExec = sourceIndex; firstFileNextExec < sourceFiles.length + && (firstFileNextExec - sourceIndex) < maxInputFilesPerCommand; firstFileNextExec++) { + cmdLength += getTotalArgumentLengthForInputFile(outputDir, + sourceFiles[firstFileNextExec]); + if (cmdLength >= getMaximumCommandLength()) + break; + } + if (firstFileNextExec == sourceIndex) { + throw new BuildException( + "Extremely long file name, can't fit on command line"); + } + int argCount = args.length + 1 + endArgs.length + + (firstFileNextExec - sourceIndex) + * argumentCountPerInputFile; + if (libtool) { + argCount++; + } + String[] commandline = new String[argCount]; + int index = 0; + if (libtool) { + commandline[index++] = "libtool"; + } + commandline[index++] = command; + for (int j = 0; j < args.length; j++) { + commandline[index++] = args[j]; + } + for (int j = sourceIndex; j < firstFileNextExec; j++) { + for (int k = 0; k < argumentCountPerInputFile; k++) { + commandline[index++] = getInputFileArgument(outputDir, + sourceFiles[j], k); + } + } + for (int j = 0; j < endArgs.length; j++) { + commandline[index++] = endArgs[j]; + } + int retval = runCommand(task, outputDir, commandline); + if (monitor != null) { + String[] fileNames = new String[firstFileNextExec - sourceIndex]; + for (int j = 0; j < fileNames.length; j++) { + fileNames[j] = sourceFiles[sourceIndex + j]; + } + monitor.progress(fileNames); + } + // + // if the process returned a failure code and + // we aren't holding an exception from an earlier + // interation + if (retval != 0 && exc == null) { + // + // construct the exception + // + exc = new BuildException(this.getCommand() + + " failed with return code " + retval, task + .getLocation()); + // + // and throw it now unless we are relentless + // + if (!relentless) { + throw exc; + } + } + sourceIndex = firstFileNextExec; + } + // + // if the compiler returned a failure value earlier + // then throw an exception + if (exc != null) { + throw exc; + } + } + protected CompilerConfiguration createConfiguration(final CCTask task, + final LinkType linkType, + final ProcessorDef[] baseDefs, + final CompilerDef specificDef, + final TargetDef targetPlatform, + final VersionInfo versionInfo) { + Vector args = new Vector(); + CompilerDef[] defaultProviders = new CompilerDef[baseDefs.length + 1]; + for (int i = 0; i < baseDefs.length; i++) { + defaultProviders[i + 1] = (CompilerDef) baseDefs[i]; + } + defaultProviders[0] = specificDef; + Vector cmdArgs = new Vector(); + // + // add command line arguments inherited from element + // any "extends" and finally the specific CompilerDef + CommandLineArgument[] commandArgs; + for (int i = defaultProviders.length - 1; i >= 0; i--) { + commandArgs = defaultProviders[i].getActiveProcessorArgs(); + for (int j = 0; j < commandArgs.length; j++) { + if (commandArgs[j].getLocation() == 0) { + args.addElement(commandArgs[j].getValue()); + } else { + cmdArgs.addElement(commandArgs[j]); + } + } + } + Vector params = new Vector(); + // + // add command line arguments inherited from element + // any "extends" and finally the specific CompilerDef + ProcessorParam[] paramArray; + for (int i = defaultProviders.length - 1; i >= 0; i--) { + paramArray = defaultProviders[i].getActiveProcessorParams(); + for (int j = 0; j < paramArray.length; j++) { + params.add(paramArray[j]); + } + } + paramArray = (ProcessorParam[]) (params + .toArray(new ProcessorParam[params.size()])); + boolean multithreaded = specificDef.getMultithreaded(defaultProviders, + 1); + boolean debug = specificDef.getDebug(baseDefs, 0); + boolean exceptions = specificDef.getExceptions(defaultProviders, 1); + Boolean rtti = specificDef.getRtti(defaultProviders, 1); + OptimizationEnum optimization = specificDef.getOptimization(defaultProviders, 1); + this.addImpliedArgs(args, debug, multithreaded, exceptions, linkType, rtti, optimization); + // + // add all appropriate defines and undefines + // + buildDefineArguments(defaultProviders, args); + int warnings = specificDef.getWarnings(defaultProviders, 0); + addWarningSwitch(args, warnings); + Enumeration argEnum = cmdArgs.elements(); + int endCount = 0; + while (argEnum.hasMoreElements()) { + CommandLineArgument arg = (CommandLineArgument) argEnum + .nextElement(); + switch (arg.getLocation()) { + case 1 : + args.addElement(arg.getValue()); + break; + case 2 : + endCount++; + break; + } + } + String[] endArgs = new String[endCount]; + argEnum = cmdArgs.elements(); + int index = 0; + while (argEnum.hasMoreElements()) { + CommandLineArgument arg = (CommandLineArgument) argEnum + .nextElement(); + if (arg.getLocation() == 2) { + endArgs[index++] = arg.getValue(); + } + } + // + // Want to have distinct set of arguments with relative + // path names for includes that are used to build + // the configuration identifier + // + Vector relativeArgs = (Vector) args.clone(); + // + // add all active include and sysincludes + // + StringBuffer includePathIdentifier = new StringBuffer(); + File baseDir = specificDef.getProject().getBaseDir(); + String baseDirPath; + try { + baseDirPath = baseDir.getCanonicalPath(); + } catch (IOException ex) { + baseDirPath = baseDir.toString(); + } + Vector includePath = new Vector(); + Vector sysIncludePath = new Vector(); + for (int i = defaultProviders.length - 1; i >= 0; i--) { + String[] incPath = defaultProviders[i].getActiveIncludePaths(); + for (int j = 0; j < incPath.length; j++) { + includePath.addElement(incPath[j]); + } + incPath = defaultProviders[i].getActiveSysIncludePaths(); + for (int j = 0; j < incPath.length; j++) { + sysIncludePath.addElement(incPath[j]); + } + } + File[] incPath = new File[includePath.size()]; + for (int i = 0; i < includePath.size(); i++) { + incPath[i] = new File((String) includePath.elementAt(i)); + } + File[] sysIncPath = new File[sysIncludePath.size()]; + for (int i = 0; i < sysIncludePath.size(); i++) { + sysIncPath[i] = new File((String) sysIncludePath.elementAt(i)); + } + addIncludes(baseDirPath, incPath, args, relativeArgs, + includePathIdentifier); + addIncludes(baseDirPath, sysIncPath, args, null, null); + StringBuffer buf = new StringBuffer(getIdentifier()); + for (int i = 0; i < relativeArgs.size(); i++) { + buf.append(' '); + buf.append(relativeArgs.elementAt(i)); + } + for (int i = 0; i < endArgs.length; i++) { + buf.append(' '); + buf.append(endArgs[i]); + } + String configId = buf.toString(); + String[] argArray = new String[args.size()]; + args.copyInto(argArray); + boolean rebuild = specificDef.getRebuild(baseDefs, 0); + File[] envIncludePath = getEnvironmentIncludePath(); + return new CommandLineCompilerConfiguration(this, configId, incPath, + sysIncPath, envIncludePath, includePathIdentifier.toString(), + argArray, paramArray, rebuild, endArgs); + } + protected int getArgumentCountPerInputFile() { + return 1; + } + protected final String getCommand() { + return command; + } + abstract protected void getDefineSwitch(StringBuffer buffer, String define, + String value); + protected abstract File[] getEnvironmentIncludePath(); + public String getIdentifier() { + if (identifier == null) { + if (identifierArg == null) { + identifier = getIdentifier(new String[]{command}, command); + } else { + identifier = getIdentifier( + new String[]{command, identifierArg}, command); + } + } + return identifier; + } + abstract protected String getIncludeDirSwitch(String source); + protected String getInputFileArgument(File outputDir, String filename, + int index) { + // + // if there is an embedded space, + // must enclose in quotes + if (filename.indexOf(' ') >= 0) { + StringBuffer buf = new StringBuffer("\""); + buf.append(filename); + buf.append("\""); + return buf.toString(); + } + return filename; + } + protected final boolean getLibtool() { + return libtool; + } + /** + * Obtains the same compiler, but with libtool set + * + * Default behavior is to ignore libtool + */ + public final CommandLineCompiler getLibtoolCompiler() { + if (libtoolCompiler != null) { + return libtoolCompiler; + } + return this; + } + abstract public int getMaximumCommandLength(); + protected int getMaximumInputFilesPerCommand() { + return Integer.MAX_VALUE; + } + protected int getTotalArgumentLengthForInputFile(File outputDir, + String inputFile) { + return inputFile.length() + 1; + } + abstract protected void getUndefineSwitch(StringBuffer buffer, String define); + /** + * This method is exposed so test classes can overload and test the + * arguments without actually spawning the compiler + */ + protected int runCommand(CCTask task, File workingDir, String[] cmdline) + throws BuildException { + return CUtil.runCommand(task, workingDir, cmdline, newEnvironment, env); + } + protected final void setCommand(String command) { + this.command = command; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.java new file mode 100644 index 0000000..38492ea --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineCompilerConfiguration.java @@ -0,0 +1,226 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CompilerParam; +import net.sf.antcontrib.cpptasks.DependencyInfo; +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +/** + * A configuration for a C++ compiler + * + * @author Curt Arnold + */ +public final class CommandLineCompilerConfiguration + implements + CompilerConfiguration { + private/* final */String[] args; + private/* final */CommandLineCompiler compiler; + private String[] endArgs; + // + // include path from environment variable not + // explicitly stated in Ant script + private/* final */File[] envIncludePath; + private String[] exceptFiles; + private/* final */String identifier; + private/* final */File[] includePath; + private/* final */String includePathIdentifier; + private boolean isPrecompiledHeaderGeneration; + private/* final */ProcessorParam[] params; + private/* final */boolean rebuild; + private/* final */File[] sysIncludePath; + public CommandLineCompilerConfiguration(CommandLineCompiler compiler, + String identifier, File[] includePath, File[] sysIncludePath, + File[] envIncludePath, String includePathIdentifier, String[] args, + ProcessorParam[] params, boolean rebuild, String[] endArgs) { + if (compiler == null) { + throw new NullPointerException("compiler"); + } + if (identifier == null) { + throw new NullPointerException("identifier"); + } + if (includePathIdentifier == null) { + throw new NullPointerException("includePathIdentifier"); + } + if (args == null) { + this.args = new String[0]; + } else { + this.args = (String[]) args.clone(); + } + if (includePath == null) { + this.includePath = new File[0]; + } else { + this.includePath = (File[]) includePath.clone(); + } + if (sysIncludePath == null) { + this.sysIncludePath = new File[0]; + } else { + this.sysIncludePath = (File[]) sysIncludePath.clone(); + } + if (envIncludePath == null) { + this.envIncludePath = new File[0]; + } else { + this.envIncludePath = (File[]) envIncludePath.clone(); + } + this.compiler = compiler; + this.params = (ProcessorParam[]) params.clone(); + this.rebuild = rebuild; + this.identifier = identifier; + this.includePathIdentifier = includePathIdentifier; + this.endArgs = (String[]) endArgs.clone(); + exceptFiles = null; + isPrecompiledHeaderGeneration = false; + } + public CommandLineCompilerConfiguration( + CommandLineCompilerConfiguration base, String[] additionalArgs, + String[] exceptFiles, boolean isPrecompileHeaderGeneration) { + compiler = base.compiler; + identifier = base.identifier; + rebuild = base.rebuild; + includePath = (File[]) base.includePath.clone(); + sysIncludePath = (File[]) base.sysIncludePath.clone(); + endArgs = (String[]) base.endArgs.clone(); + envIncludePath = (File[]) base.envIncludePath.clone(); + includePathIdentifier = base.includePathIdentifier; + if (exceptFiles != null) { + this.exceptFiles = (String[]) exceptFiles.clone(); + } + this.isPrecompiledHeaderGeneration = isPrecompileHeaderGeneration; + args = new String[base.args.length + additionalArgs.length]; + for (int i = 0; i < base.args.length; i++) { + args[i] = base.args[i]; + } + int index = base.args.length; + for (int i = 0; i < additionalArgs.length; i++) { + args[index++] = additionalArgs[i]; + } + } + public int bid(String inputFile) { + int compilerBid = compiler.bid(inputFile); + if (compilerBid > 0 && exceptFiles != null) { + for (int i = 0; i < exceptFiles.length; i++) { + if (inputFile.equals(exceptFiles[i])) { + return 0; + } + } + } + return compilerBid; + } + public void compile(CCTask task, File outputDir, String[] sourceFiles, + boolean relentless, ProgressMonitor monitor) throws BuildException { + if (monitor != null) { + monitor.start(this); + } + try { + compiler.compile(task, outputDir, sourceFiles, args, endArgs, + relentless, this, monitor); + if (monitor != null) { + monitor.finish(this, true); + } + } catch (BuildException ex) { + if (monitor != null) { + monitor.finish(this, false); + } + throw ex; + } + } + /** + * + * This method may be used to get two distinct compiler configurations, one + * for compiling the specified file and producing a precompiled header + * file, and a second for compiling other files using the precompiled + * header file. + * + * The last (preferrably only) include directive in the prototype file will + * be used to mark the boundary between pre-compiled and normally compiled + * headers. + * + * @param prototype + * A source file (for example, stdafx.cpp) that is used to build + * the precompiled header file. @returns null if precompiled + * headers are not supported or a two element array containing + * the precompiled header generation configuration and the + * consuming configuration + * + */ + public CompilerConfiguration[] createPrecompileConfigurations( + File prototype, String[] nonPrecompiledFiles) { + if (compiler instanceof PrecompilingCompiler) { + return ((PrecompilingCompiler) compiler) + .createPrecompileConfigurations(this, prototype, + nonPrecompiledFiles); + } + return null; + } + /** + * Returns a string representation of this configuration. Should be + * canonical so that equivalent configurations will have equivalent string + * representations + */ + public String getIdentifier() { + return identifier; + } + public String getIncludePathIdentifier() { + return includePathIdentifier; + } + public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo) { + return compiler.getOutputFileNames(inputFile, versionInfo); + } + public CompilerParam getParam(String name) { + for (int i = 0; i < params.length; i++) { + if (name.equals(params[i].getName())) + return (CompilerParam) params[i]; + } + return null; + } + public ProcessorParam[] getParams() { + return params; + } + public boolean getRebuild() { + return rebuild; + } + public boolean isPrecompileGeneration() { + return isPrecompiledHeaderGeneration; + } + public DependencyInfo parseIncludes(CCTask task, File baseDir, File source) { + return compiler.parseIncludes(task, source, includePath, + sysIncludePath, envIncludePath, baseDir, + getIncludePathIdentifier()); + } + public String toString() { + return identifier; + } + public String[] getPreArguments() { + return (String[]) args.clone(); + } + public String[] getEndArguments() { + return (String[]) endArgs.clone(); + } + public File[] getIncludePath() { + return (File[]) includePath.clone(); + } + public Compiler getCompiler() { + return compiler; + } + public String getCommand() { + return compiler.getCommand(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.java new file mode 100644 index 0000000..7b0eed2 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineFortranCompiler.java @@ -0,0 +1,42 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.types.Environment; +/** + * An abstract Compiler implementation which uses an external program to + * perform the compile. + * + * @author Curt Arnold + */ +public abstract class CommandLineFortranCompiler extends CommandLineCompiler { + protected CommandLineFortranCompiler(String command, String identifierArg, + String[] sourceExtensions, String[] headerExtensions, + String outputSuffix, boolean libtool, + CommandLineFortranCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + outputSuffix, libtool, libtoolCompiler, newEnvironment, env); + } + protected Parser createParser(File source) { + return new FortranParser(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.java new file mode 100644 index 0000000..86594fa --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinker.java @@ -0,0 +1,407 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; + +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.util.Enumeration; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.LinkerDef; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.types.CommandLineArgument; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; + + +/** + * An abstract Linker implementation that performs the link via an external + * command. + * + * @author Adam Murdoch + */ +public abstract class CommandLineLinker extends AbstractLinker +{ + private String command; + private Environment env = null; + private String identifier; + private String identifierArg; + private boolean isLibtool; + private String[] librarySets; + private CommandLineLinker libtoolLinker; + private boolean newEnvironment = false; + private String outputSuffix; + + + /** Creates a comand line linker invocation */ + public CommandLineLinker(String command, + String identifierArg, + String[] extensions, + String[] ignoredExtensions, String outputSuffix, + boolean isLibtool, CommandLineLinker libtoolLinker) + { + super(extensions, ignoredExtensions); + this.command = command; + this.identifierArg = identifierArg; + this.outputSuffix = outputSuffix; + this.isLibtool = isLibtool; + this.libtoolLinker = libtoolLinker; + } + protected abstract void addBase(long base, Vector args); + + protected abstract void addFixed(Boolean fixed, Vector args); + + abstract protected void addImpliedArgs(boolean debug, + LinkType linkType, Vector args); + protected abstract void addIncremental(boolean incremental, Vector args); + + // + // Windows processors handle these through file list + // + protected String[] addLibrarySets(CCTask task, LibrarySet[] libsets, Vector preargs, + Vector midargs, Vector endargs) { + return null; + } + protected abstract void addMap(boolean map, Vector args); + protected abstract void addStack(int stack, Vector args); + protected abstract void addEntry(String entry, Vector args); + + protected LinkerConfiguration createConfiguration( + CCTask task, + LinkType linkType, + ProcessorDef[] baseDefs, LinkerDef specificDef, TargetDef targetPlatform, + VersionInfo versionInfo) { + + Vector preargs = new Vector(); + Vector midargs = new Vector(); + Vector endargs = new Vector(); + Vector[] args = new Vector[] { preargs, midargs, endargs }; + + LinkerDef[] defaultProviders = new LinkerDef[baseDefs.length+1]; + defaultProviders[0] = specificDef; + for(int i = 0; i < baseDefs.length; i++) { + defaultProviders[i+1] = (LinkerDef) baseDefs[i]; + } + // + // add command line arguments inherited from element + // any "extends" and finally the specific CompilerDef + CommandLineArgument[] commandArgs; + for(int i = defaultProviders.length-1; i >= 0; i--) { + commandArgs = defaultProviders[i].getActiveProcessorArgs(); + for(int j = 0; j < commandArgs.length; j++) { + args[commandArgs[j].getLocation()]. + addElement(commandArgs[j].getValue()); + } + } + + Vector params = new Vector(); + // + // add command line arguments inherited from element + // any "extends" and finally the specific CompilerDef + ProcessorParam[] paramArray; + for (int i = defaultProviders.length - 1; i >= 0; i--) { + paramArray = defaultProviders[i].getActiveProcessorParams(); + for (int j = 0; j < paramArray.length; j++) { + params.add(paramArray[j]); + } + } + + paramArray = (ProcessorParam[])(params.toArray(new ProcessorParam[params.size()])); + + boolean debug = specificDef.getDebug(baseDefs,0); + + + String startupObject = getStartupObject(linkType); + + addImpliedArgs(debug, linkType, preargs); + addIncremental(specificDef.getIncremental(defaultProviders,1), preargs); + addFixed(specificDef.getFixed(defaultProviders,1), preargs); + addMap(specificDef.getMap(defaultProviders,1), preargs); + addBase(specificDef.getBase(defaultProviders,1), preargs); + addStack(specificDef.getStack(defaultProviders,1), preargs); + addEntry(specificDef.getEntry(defaultProviders, 1), preargs); + + String[] libnames = null; + LibrarySet[] libsets = specificDef.getActiveLibrarySets(defaultProviders,1); + if (libsets.length > 0) { + libnames = addLibrarySets(task, libsets, preargs, midargs, endargs); + } + + StringBuffer buf = new StringBuffer(getIdentifier()); + for (int i = 0; i < 3; i++) { + Enumeration argenum = args[i].elements(); + while (argenum.hasMoreElements()) { + buf.append(' '); + buf.append(argenum.nextElement().toString()); + } + } + String configId = buf.toString(); + + String[][] options = new String[][] { + new String[args[0].size() + args[1].size()], + new String[args[2].size()] }; + args[0].copyInto(options[0]); + int offset = args[0].size(); + for (int i = 0; i < args[1].size(); i++) { + options[0][i+offset] = (String) args[1].elementAt(i); + } + args[2].copyInto(options[1]); + + + boolean rebuild = specificDef.getRebuild(baseDefs,0); + boolean map = specificDef.getMap(defaultProviders,1); + + //task.log("libnames:"+libnames.length, Project.MSG_VERBOSE); + return new CommandLineLinkerConfiguration(this,configId,options, + paramArray, + rebuild,map, debug,libnames, startupObject); + } + + /** + * Allows drived linker to decorate linker option. + * Override by GccLinker to prepend a "-Wl," to + * pass option to through gcc to linker. + * + * @param buf buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg linker argument + */ + protected String decorateLinkerOption(StringBuffer buf, String arg) { + return arg; + } + + protected final String getCommand() { + return command; + } + protected abstract String getCommandFileSwitch(String commandFile); + + + public String getIdentifier() { + if(identifier == null) { + if (identifierArg == null) { + identifier = getIdentifier(new String[] { command }, command); + } else { + identifier = getIdentifier(new String[] { command, identifierArg }, + command); + } + } + return identifier; + } + public final CommandLineLinker getLibtoolLinker() { + if (libtoolLinker != null) { + return libtoolLinker; + } + return this; + } + protected abstract int getMaximumCommandLength(); + + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + return new String[] { baseName + outputSuffix }; + } + + protected String[] getOutputFileSwitch(CCTask task, String outputFile) { + return getOutputFileSwitch(outputFile); + } + protected abstract String[] getOutputFileSwitch(String outputFile); + protected String getStartupObject(LinkType linkType) { + return null; + } + + /** + * Performs a link using a command line linker + * + */ + public void link(CCTask task, + File outputFile, + String[] sourceFiles, + CommandLineLinkerConfiguration config) + throws BuildException + { + File parentDir = new File(outputFile.getParent()); + String parentPath; + try { + parentPath = parentDir.getCanonicalPath(); + } catch(IOException ex) { + parentPath = parentDir.getAbsolutePath(); + } + String[] execArgs = prepareArguments(task, parentPath,outputFile.getName(), + sourceFiles, config); + int commandLength = 0; + for(int i = 0; i < execArgs.length; i++) { + commandLength += execArgs[i].length() + 1; + } + + // + // if command length exceeds maximum + // then create a temporary + // file containing everything but the command name + if(commandLength >= this.getMaximumCommandLength()) { + try { + execArgs = prepareResponseFile(outputFile,execArgs); + } + catch(IOException ex) { + throw new BuildException(ex); + } + } + + int retval = runCommand(task,parentDir,execArgs); + // + // if the process returned a failure code then + // throw an BuildException + // + if(retval != 0) { + // + // construct the exception + // + throw new BuildException(this.getCommand() + " failed with return code " + retval, task.getLocation()); + } + + } + + + /** + * Prepares argument list for exec command. Will return null + * if command line would exceed allowable command line buffer. + * + * @param task compilation task. + * @param outputFile linker output file + * @param sourceFiles linker input files (.obj, .o, .res) + * @param config linker configuration + * @return arguments for runTask + */ + protected String[] prepareArguments( + CCTask task, + String outputDir, + String outputFile, + String[] sourceFiles, + CommandLineLinkerConfiguration config) { + + String[] preargs = config.getPreArguments(); + String[] endargs = config.getEndArguments(); + String outputSwitch[] = getOutputFileSwitch(task, outputFile); + int allArgsCount = preargs.length + 1 + outputSwitch.length + + sourceFiles.length + endargs.length; + if (isLibtool) { + allArgsCount++; + } + String[] allArgs = new String[allArgsCount]; + int index = 0; + if (isLibtool) { + allArgs[index++] = "libtool"; + } + allArgs[index++] = this.getCommand(); + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < preargs.length; i++) { + allArgs[index++] = decorateLinkerOption(buf, preargs[i]); + } + for (int i = 0; i < outputSwitch.length; i++) { + allArgs[index++] = outputSwitch[i]; + } + for (int i = 0; i < sourceFiles.length; i++) { + allArgs[index++] = prepareFilename(buf,outputDir,sourceFiles[i]); + } + for (int i = 0; i < endargs.length; i++) { + allArgs[index++] = decorateLinkerOption(buf, endargs[i]); + } + return allArgs; + } + + /** + * Processes filename into argument form + * + */ + protected String prepareFilename(StringBuffer buf, + String outputDir, String sourceFile) { + String relativePath = CUtil.getRelativePath(outputDir, + new File(sourceFile)); + return quoteFilename(buf,relativePath); + } + + /** + * Prepares argument list to execute the linker using a + * response file. + * + * @param outputFile linker output file + * @param args output of prepareArguments + * @return arguments for runTask + */ + protected String[] prepareResponseFile(File outputFile,String[] args) throws IOException + { + String baseName = outputFile.getName(); + File commandFile = new File(outputFile.getParent(),baseName + ".rsp"); + FileWriter writer = new FileWriter(commandFile); + int execArgCount = 1; + if (isLibtool) { + execArgCount++; + } + String[] execArgs = new String[execArgCount+1]; + for (int i = 0; i < execArgCount; i++) { + execArgs[i] = args[i]; + } + execArgs[execArgCount] = getCommandFileSwitch(commandFile.toString()); + for(int i = execArgCount; i < args.length; i++) { + // + // if embedded space and not quoted then + // quote argument + if (args[i].indexOf(" ") >= 0 && args[i].charAt(0) != '\"') { + writer.write('\"'); + writer.write(args[i]); + writer.write("\"\n"); + } else { + writer.write(args[i]); + writer.write('\n'); + } + } + writer.close(); + return execArgs; + } + + + protected String quoteFilename(StringBuffer buf,String filename) { + if(filename.indexOf(' ') >= 0) { + buf.setLength(0); + buf.append('\"'); + buf.append(filename); + buf.append('\"'); + return buf.toString(); + } + return filename; + } + + /** + * This method is exposed so test classes can overload + * and test the arguments without actually spawning the + * compiler + */ + protected int runCommand(CCTask task, File workingDir,String[] cmdline) + throws BuildException { + return CUtil.runCommand(task,workingDir,cmdline, newEnvironment, env); + } + + protected final void setCommand(String command) { + this.command = command; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.java new file mode 100644 index 0000000..f0aad67 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CommandLineLinkerConfiguration.java @@ -0,0 +1,128 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.TargetInfo; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +/** + * A configuration for a command line linker + * + * @author Curt Arnold + */ +public final class CommandLineLinkerConfiguration + implements + LinkerConfiguration { + private/* final */String[][] args; + private/* final */String identifier; + private String[] libraryNames; + private/* final */CommandLineLinker linker; + private/* final */boolean map; + private/* final */ProcessorParam[] params; + private/* final */boolean rebuild; + private boolean debug; + private String startupObject; + public CommandLineLinkerConfiguration(CommandLineLinker linker, + String identifier, String[][] args, ProcessorParam[] params, + boolean rebuild, boolean map, boolean debug, String[] libraryNames, + String startupObject) { + if (linker == null) { + throw new NullPointerException("linker"); + } + if (args == null) { + throw new NullPointerException("args"); + } else { + this.args = (String[][]) args.clone(); + } + this.linker = linker; + this.params = (ProcessorParam[]) params.clone(); + this.rebuild = rebuild; + this.identifier = identifier; + this.map = map; + this.debug = debug; + if (libraryNames == null) { + this.libraryNames = new String[0]; + } else { + this.libraryNames = (String[]) libraryNames.clone(); + } + this.startupObject = startupObject; + } + public int bid(String filename) { + return linker.bid(filename); + } + public String[] getEndArguments() { + String[] clone = (String[]) args[1].clone(); + return clone; + } + /** + * Returns a string representation of this configuration. Should be + * canonical so that equivalent configurations will have equivalent string + * representations + */ + public String getIdentifier() { + return identifier; + } + public String[] getLibraryNames() { + String[] clone = (String[]) libraryNames.clone(); + return clone; + } + public boolean getMap() { + return map; + } + public String[] getOutputFileNames(String inputFile, VersionInfo versionInfo) { + return linker.getOutputFileNames(inputFile, versionInfo); + } + public LinkerParam getParam(String name) { + for (int i = 0; i < params.length; i++) { + if (name.equals(params[i].getName())) + return (LinkerParam) params[i]; + } + return null; + } + public ProcessorParam[] getParams() { + return params; + } + public String[] getPreArguments() { + String[] clone = (String[]) args[0].clone(); + return clone; + } + public boolean getRebuild() { + return rebuild; + } + public String getStartupObject() { + return startupObject; + } + public void link(CCTask task, TargetInfo linkTarget) throws BuildException { + // + // AllSourcePath's include any syslibsets + // + String[] sourcePaths = linkTarget.getAllSourcePaths(); + linker.link(task, linkTarget.getOutput(), sourcePaths, this); + } + public String toString() { + return identifier; + } + public Linker getLinker() { + return linker; + } + public boolean isDebug() { + return debug; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/Compiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Compiler.java new file mode 100644 index 0000000..48bc190 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Compiler.java @@ -0,0 +1,24 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +/** + * A compiler. + * + * @author Adam Murdoch + */ +public interface Compiler extends Processor { +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.java new file mode 100644 index 0000000..6aba345 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/CompilerConfiguration.java @@ -0,0 +1,64 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CompilerParam; +import net.sf.antcontrib.cpptasks.DependencyInfo; + +import org.apache.tools.ant.BuildException; +/** + * A configuration for a compiler + * + * @author Curt Arnold + */ +public interface CompilerConfiguration extends ProcessorConfiguration { + void compile(CCTask task, File outputDir, String[] sourceFiles, + boolean relentless, ProgressMonitor monitor) throws BuildException; + /** + * + * This method may be used to get two distinct compiler configurations, one + * for compiling the specified file and producing a precompiled header + * file, and a second for compiling other files using the precompiled + * header file. + * + * The last (preferrably only) include directive in the prototype file will + * be used to mark the boundary between pre-compiled and normally compiled + * headers. + * + * @param prototype + * A source file (for example, stdafx.cpp) that is used to build + * the precompiled header file. @returns null if precompiled + * headers are not supported or a two element array containing + * the precompiled header generation configuration and the + * consuming configuration + * + */ + CompilerConfiguration[] createPrecompileConfigurations(File prototype, + String[] nonPrecompiledFiles); + /** + * Returns an digest for the include path for the configuration. + * + * This is used to determine if cached dependency information is invalid + * because the include paths have changed + */ + String getIncludePathIdentifier(); + public CompilerParam getParam(String name); + boolean isPrecompileGeneration(); + DependencyInfo parseIncludes(CCTask task, File baseDir, File source); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java new file mode 100644 index 0000000..70ee93f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkType.java @@ -0,0 +1,150 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import net.sf.antcontrib.cpptasks.OutputTypeEnum; +import net.sf.antcontrib.cpptasks.SubsystemEnum; +/** + * This class represents the target platform for the compile and link step. The + * name is an anachronism and should be changed. + * + * @author Curt Arnold + */ +public class LinkType { + private OutputTypeEnum outputType = new OutputTypeEnum(); + private boolean staticRuntime = false; + private SubsystemEnum subsystem = new SubsystemEnum(); + /** + * Constructor + * + * By default, an gui executable with a dynamically linked runtime + * + */ + public LinkType() { + } + /** + * Gets whether the link should produce an executable + * + * @return boolean + */ + public boolean isExecutable() { + String value = outputType.getValue(); + return value.equals("executable"); + } + /** + * Gets whether the link should produce a plugin module. + * + * @return boolean + */ + public boolean isPluginModule() { + String value = outputType.getValue(); + return value.equals("plugin"); + } + /** + * Gets whether the link should produce a shared library. + * + * @return boolean + */ + public boolean isSharedLibrary() { + String value = outputType.getValue(); + return value.equals("shared") || value.equals("plugin"); + } + /** + * Gets whether the link should produce a static library. + * + * @return boolean + */ + public boolean isStaticLibrary() { + String value = outputType.getValue(); + return value.equals("static"); + } + /** + * Gets whether the module should use a statically linked runtime library. + * + * @return boolean + */ + public boolean isStaticRuntime() { + return staticRuntime; + } + /** + * Gets whether the link should produce a module for a console subsystem. + * + * @return boolean + */ + public boolean isSubsystemConsole() { + String value = subsystem.getValue(); + return value.equals("console"); + } + /** + * Gets whether the link should produce a module for a graphical user + * interface subsystem. + * + * @return boolean + */ + public boolean isSubsystemGUI() { + String value = subsystem.getValue(); + return value.equals("gui"); + } + /** + * Sets the output type (execuable, shared, etc). + * + * @param outputType may not be null + */ + public void setOutputType(OutputTypeEnum outputType) { + if (outputType == null) { + throw new IllegalArgumentException("outputType"); + } + this.outputType = outputType; + } + + /** + * Gets the output type. + * @return output type + */ + public String getOutputType() { + return outputType.getValue(); + } + + /** + * Requests use of a static runtime library. + * + * @param staticRuntime + * if true, use static runtime library if possible. + */ + public void setStaticRuntime(boolean staticRuntime) { + this.staticRuntime = staticRuntime; + } + /** + * Sets the subsystem (gui, console, etc). + * + * @param subsystem + * subsystem, may not be null + */ + public void setSubsystem(SubsystemEnum subsystem) { + if (subsystem == null) { + throw new IllegalArgumentException("subsystem"); + } + this.subsystem = subsystem; + } + + /** + * Get subsystem name. + * @return subsystem name + */ + public String getSubsystem() { + return subsystem.getValue(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Linker.java new file mode 100644 index 0000000..0638a70 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Linker.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; +import java.io.IOException; + +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * A linker for executables, and static and dynamic libraries. + * + * @author Adam Murdoch + */ +public interface Linker extends Processor { + /** + * Extracts the significant part of a library name to ensure there aren't + * collisions + */ + String getLibraryKey(File libname); + /** + * returns the library path for the linker + */ + File[] getLibraryPath(); + /** + * Returns 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. + * + * @param libnames + * array of library names + */ + String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libraryType); + /** + * Gets the linker for the specified link type. + * + * @return appropriate linker or null, will return this if this linker can + * handle the specified link type + */ + Linker getLinker(LinkType linkType); + /** + * Returns true if the linker is case-sensitive + */ + boolean isCaseSensitive(); + + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + */ + void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) throws IOException; +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.java new file mode 100644 index 0000000..ff7ac5d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/LinkerConfiguration.java @@ -0,0 +1,33 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.TargetInfo; + +import org.apache.tools.ant.BuildException; +/** + * A configuration for a linker + * + * @author Curt Arnold + */ +public interface LinkerConfiguration extends ProcessorConfiguration { + public LinkerParam getParam(String name); + void link(CCTask task, TargetInfo linkTarget) throws BuildException; + Linker getLinker(); + boolean isDebug(); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.java new file mode 100644 index 0000000..2af1a68 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCCompiler.java @@ -0,0 +1,43 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; + +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.types.Environment; +/** + * A command line C compiler that can utilize precompilation of header files + * + * @author Curt Arnold + */ +public abstract class PrecompilingCommandLineCCompiler + extends + PrecompilingCommandLineCompiler { + protected PrecompilingCommandLineCCompiler(String command, + String identifierArg, String[] sourceExtensions, + String[] headerExtensions, String outputSuffix, boolean libtool, + PrecompilingCommandLineCCompiler libtoolCompiler, + boolean newEnvironment, Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + outputSuffix, libtool, libtoolCompiler, newEnvironment, env); + } + protected Parser createParser(File source) { + return new CParser(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.java new file mode 100644 index 0000000..3b66597 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCommandLineCompiler.java @@ -0,0 +1,104 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.io.Reader; + +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +/** + * A command line C compiler that can utilize precompilation of header files + * + * @author Curt Arnold + */ +public abstract class PrecompilingCommandLineCompiler + extends + CommandLineCompiler implements PrecompilingCompiler { + protected PrecompilingCommandLineCompiler(String command, + String identifierArg, String[] sourceExtensions, + String[] headerExtensions, String outputSuffix, boolean libtool, + PrecompilingCommandLineCompiler libtoolCompiler, + boolean newEnvironment, Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + outputSuffix, libtool, libtoolCompiler, newEnvironment, env); + } + /** + * + * This method may be used to get two distinct compiler configurations, one + * for compiling the specified file and producing a precompiled header + * file, and a second for compiling other files using the precompiled + * header file. + * + * The last (preferrably only) include directive in the prototype file will + * be used to mark the boundary between pre-compiled and normally compiled + * headers. + * + * @param config + * base configuration + * @param prototype + * A source file (for example, stdafx.cpp) that is used to build + * the precompiled header file. @returns null if precompiled + * headers are not supported or a two element array containing + * the precompiled header generation configuration and the + * consuming configuration + * + */ + public CompilerConfiguration[] createPrecompileConfigurations( + CompilerConfiguration config, File prototype, String[] exceptFiles) { + // + // cast should success or someone is passing us a configuration + // that was prepared by another processor + // + CommandLineCompilerConfiguration cmdLineConfig = (CommandLineCompilerConfiguration) config; + // + // parse prototype file to determine last header + // + Parser parser = createParser(prototype); + String[] includes; + try { + Reader reader = new BufferedReader(new FileReader(prototype)); + parser.parse(reader); + includes = parser.getIncludes(); + } catch (IOException ex) { + throw new BuildException( + "Error parsing precompiled header protoype: " + + prototype.toString() + ":" + ex.toString()); + } + if (includes.length == 0) { + throw new BuildException("Precompiled header prototype: " + + prototype.toString() + + " does not contain any include directives."); + } + CompilerConfiguration[] configs = new CompilerConfiguration[2]; + configs[0] = createPrecompileGeneratingConfig(cmdLineConfig, prototype, + includes[0]); + configs[1] = createPrecompileUsingConfig(cmdLineConfig, prototype, + includes[0], exceptFiles); + return configs; + } + abstract protected CompilerConfiguration createPrecompileGeneratingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude); + abstract protected CompilerConfiguration createPrecompileUsingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude, String[] exceptFiles); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.java new file mode 100644 index 0000000..f707dc5 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/PrecompilingCompiler.java @@ -0,0 +1,49 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import java.io.File; +/** + * A compiler that can utilize precompilation of header files + * + * @author Curt Arnold + */ +public interface PrecompilingCompiler { + /** + * + * This method may be used to get two distinct compiler configurations, one + * for compiling the specified file and producing a precompiled header + * file, and a second for compiling other files using the precompiled + * header file. + * + * The last (preferrably only) include directive in the prototype file will + * be used to mark the boundary between pre-compiled and normally compiled + * headers. + * + * @param config + * base configuration + * @param prototype + * A source file (for example, stdafx.cpp) that is used to build + * the precompiled header file. @returns null if precompiled + * headers are not supported or a two element array containing + * the precompiled header generation configuration and the + * consuming configuration + * + */ + CompilerConfiguration[] createPrecompileConfigurations( + CompilerConfiguration config, File prototype, + String[] nonPrecompiledFiles); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/Processor.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Processor.java new file mode 100644 index 0000000..d6513f7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/Processor.java @@ -0,0 +1,75 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.ProcessorDef; +import net.sf.antcontrib.cpptasks.TargetDef; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.types.Environment; +/** + * A processor. Base interface for Compiler and Linker + * + * @author Curt Arnold + */ +public interface Processor { + /** + * Returns a bid indicating the desire of this compiler to process the + * file. + * + * @param inputFile + * input file + * @return 0 = no interest, 100 = high interest + */ + int bid(String inputFile); + Processor changeEnvironment(boolean newEnvironment, Environment env); + /** + * Returns the compiler configuration for or element. + * + * @param defaultProviders + * When specificConfig corresponds to a or linker + * element, defaultProvider will be a zero to two element array. + * If there is an extends attribute, the first element will be + * the referenced ProcessorDef, unless inherit = false, the last + * element will be the containing element + * @param specificConfig + * A or element. + * @return resulting configuration + */ + ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, + ProcessorDef[] defaultProviders, ProcessorDef specificConfig, + TargetDef targetPlatform, VersionInfo versionInfo); + /** + * Retrieve an identifier that identifies the specific version of the + * compiler. Compilers with the same identifier should produce the same + * output files for the same input files and command line switches. + */ + String getIdentifier(); + /** + * Gets the linker that is associated with this processors + */ + Linker getLinker(LinkType type); + /** + * Output file name (no path components) corresponding to source file + * + * @param inputFile + * input file + * @return output file name or null if no output file or name not + * determined by input file + */ + String[] getOutputFileNames(String inputFile, VersionInfo versionInfo); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.java new file mode 100644 index 0000000..870fb33 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProcessorConfiguration.java @@ -0,0 +1,54 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +import net.sf.antcontrib.cpptasks.ProcessorParam; +import net.sf.antcontrib.cpptasks.VersionInfo; + +/** + * A configuration for a C++ compiler, linker or other processor + * + * @author Curt Arnold + */ +public interface ProcessorConfiguration { + /** + * An indication of how much this compiler would like to process this file + * + * @return 0 is no interest to process, 100 is strong interest to process + */ + int bid(String filename); + /** + * Returns a string representation of this configuration. Should be + * canonical so that equivalent configurations will have equivalent string + * representations + */ + String getIdentifier(); + /** + * Output file name (no path components) corresponding to source file + * + * @param inputFile + * input file + * @return output file names or zero-length array if no output file or name not + * determined by input file + */ + String[] getOutputFileNames(String inputFile, VersionInfo versionInfo); + ProcessorParam[] getParams(); + /** + * If true, all files using this configuration should be rebuilt and any + * existing output files should be ignored + */ + boolean getRebuild(); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.java b/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.java new file mode 100644 index 0000000..9949856 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/compiler/ProgressMonitor.java @@ -0,0 +1,31 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.compiler; +/** + * Interface to receive notification of compile progress + * + * @author Curt Arnold + */ +public interface ProgressMonitor { + public void finish(ProcessorConfiguration config, boolean normal); + /** + * Called to notify monitor of progress + * + */ + void progress(String[] sources); + public void start(ProcessorConfiguration config); +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.java new file mode 100644 index 0000000..8df73bd --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudio2005CCompiler.java @@ -0,0 +1,62 @@ +/* + * + * Copyright 2002-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; + +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the Microsoft(r) C/C++ 8 Optimizing Compiler + * + * @author David Haney + */ +public final class DevStudio2005CCompiler extends DevStudioCompatibleCCompiler { + private static final DevStudio2005CCompiler instance = new DevStudio2005CCompiler( + "cl", false, null); + public static DevStudio2005CCompiler getInstance() { + return instance; + } + private DevStudio2005CCompiler(String command, boolean newEnvironment, + Environment env) { + super(command, "/bogus", newEnvironment, env); + } + /** + * Override the default debug flags to use VC 8 compatible versions. + */ + protected void addDebugSwitch(Vector args) { + args.addElement("/Zi"); + args.addElement("/Od"); + args.addElement("/RTC1"); + args.addElement("/D_DEBUG"); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new DevStudio2005CCompiler(getCommand(), newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return DevStudioLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.java new file mode 100644 index 0000000..1281046 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCCompiler.java @@ -0,0 +1,50 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Microsoft(r) C/C++ Optimizing Compiler + * + * @author Adam Murdoch + */ +public final class DevStudioCCompiler extends DevStudioCompatibleCCompiler { + private static final DevStudioCCompiler instance = new DevStudioCCompiler( + "cl", false, null); + public static DevStudioCCompiler getInstance() { + return instance; + } + private DevStudioCCompiler(String command, boolean newEnvironment, + Environment env) { + super(command, "/bogus", newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new DevStudioCCompiler(getCommand(), newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return DevStudioLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java new file mode 100644 index 0000000..5f37855 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleCCompiler.java @@ -0,0 +1,136 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * An abstract base class for compilers that are basically command line + * compatible with Microsoft(r) C/C++ Optimizing Compiler + * + * @author Curt Arnold + */ +public abstract class DevStudioCompatibleCCompiler + extends + PrecompilingCommandLineCCompiler { + private static String[] mflags = new String[]{ + // + // first four are single-threaded + // (runtime=static,debug=false), (..,debug=true), + // (runtime=dynamic,debug=true), (..,debug=false), (not supported) + // next four are multi-threaded, same sequence + "/ML", "/MLd", null, null, "/MT", "/MTd", "/MD", "/MDd"}; + protected DevStudioCompatibleCCompiler(String command, + String identifierArg, boolean newEnvironment, Environment env) { + super(command, identifierArg, new String[]{".c", ".cc", ".cpp", ".cxx", + ".c++"}, new String[]{".h", ".hpp", ".inl"}, ".obj", false, + null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("/c"); + args.addElement("/nologo"); + if (exceptions) { + // changed to eliminate warning on VC 2005, should support VC 6 and later + // use /GX to support VC5 - 2005 (with warning) + args.addElement("/EHsc"); + } + int mindex = 0; + if (multithreaded) { + mindex += 4; + } + boolean staticRuntime = linkType.isStaticRuntime(); + if (!staticRuntime) { + mindex += 2; + } + if (debug) { + mindex += 1; + addDebugSwitch(args); + } else { + if (optimization != null) { + if (optimization.isSize()) { + args.addElement("/O1"); + } + if (optimization.isSpeed()) { + args.addElement("/O2"); + } + } + args.addElement("/DNDEBUG"); + } + String mflag = mflags[mindex]; + if (mflag == null) { + throw new BuildException( + "multithread='false' and runtime='dynamic' not supported"); + } + args.addElement(mflag); + if (rtti != null && rtti.booleanValue()) { + args.addElement("/GR"); + } + } + protected void addDebugSwitch(Vector args) { + args.addElement("/Zi"); + args.addElement("/Od"); + args.addElement("/GZ"); + args.addElement("/D_DEBUG"); + } + protected void addWarningSwitch(Vector args, int level) { + DevStudioProcessor.addWarningSwitch(args, level); + } + protected CompilerConfiguration createPrecompileGeneratingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude) { + String[] additionalArgs = new String[]{ + "/Fp" + CUtil.getBasename(prototype) + ".pch", "/Yc"}; + return new CommandLineCompilerConfiguration(baseConfig, additionalArgs, + null, true); + } + protected CompilerConfiguration createPrecompileUsingConfig( + CommandLineCompilerConfiguration baseConfig, File prototype, + String lastInclude, String[] exceptFiles) { + String[] additionalArgs = new String[]{ + "/Fp" + CUtil.getBasename(prototype) + ".pch", + "/Yu" + lastInclude}; + return new CommandLineCompilerConfiguration(baseConfig, additionalArgs, + exceptFiles, false); + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + DevStudioProcessor.getDefineSwitch(buffer, define, value); + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ";"); + } + protected String getIncludeDirSwitch(String includeDir) { + return DevStudioProcessor.getIncludeDirSwitch(includeDir); + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + DevStudioProcessor.getUndefineSwitch(buffer, define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java new file mode 100644 index 0000000..985dfcf --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +/** + * Abstract base adapter for librarians with command line options compatible + * with the Microsoft(r) Library Manager + * + * @author Curt Arnold + */ +public abstract class DevStudioCompatibleLibrarian extends CommandLineLinker { + public DevStudioCompatibleLibrarian(String command, String identifierArg) { + super(command, identifierArg, new String[]{".obj"}, new String[0], + ".lib", false, null); + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + args.addElement("/nologo"); + } + protected void addIncremental(boolean incremental, Vector args) { + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + protected String getCommandFileSwitch(String cmdFile) { + return "@" + cmdFile; + } + public File[] getLibraryPath() { + return new File[0]; + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return new String[0]; + } + public int getMaximumCommandLength() { + return 32767; + } + public String[] getOutputFileSwitch(String outFile) { + StringBuffer buf = new StringBuffer("/OUT:"); + if (outFile.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(outFile); + buf.append('"'); + } else { + buf.append(outFile); + } + return new String[]{buf.toString()}; + } + public boolean isCaseSensitive() { + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.java new file mode 100644 index 0000000..80d2aac --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLinker.java @@ -0,0 +1,148 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.io.File; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.platforms.WindowsPlatform; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Abstract base class for linkers that try to mimic the command line arguments + * for the Microsoft (r) Incremental Linker + * + * @author Curt Arnold + */ +public abstract class DevStudioCompatibleLinker extends CommandLineLinker { + public DevStudioCompatibleLinker(String command, String identifierArg, + String outputSuffix) { + super(command, identifierArg, new String[]{".obj", ".lib", ".res"}, + new String[]{".map", ".pdb", ".lnk", ".dll"}, outputSuffix, + false, null); + } + protected void addBase(long base, Vector args) { + if (base >= 0) { + String baseAddr = Long.toHexString(base); + args.addElement("/BASE:0x" + baseAddr); + } + } + protected void addFixed(Boolean fixed, Vector args) { + if (fixed != null) { + if (fixed.booleanValue()) { + args.addElement("/FIXED"); + } else { + args.addElement("/FIXED:NO"); + } + } + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + args.addElement("/NOLOGO"); + if (debug) { + args.addElement("/DEBUG"); + } + if (linkType.isSharedLibrary()) { + args.addElement("/DLL"); + } + // + // The following lines were commented out + // from v 1.5 to v 1.12 with no explanation + // + if(linkType.isSubsystemGUI()) { + args.addElement("/SUBSYSTEM:WINDOWS"); } else { + if(linkType.isSubsystemConsole()) { + args.addElement("/SUBSYSTEM:CONSOLE"); } } + } + protected void addIncremental(boolean incremental, Vector args) { + if (incremental) { + args.addElement("/INCREMENTAL:YES"); + } else { + args.addElement("/INCREMENTAL:NO"); + } + } + protected void addMap(boolean map, Vector args) { + if (map) { + args.addElement("/MAP"); + } + } + protected void addStack(int stack, Vector args) { + if (stack >= 0) { + String stackStr = Integer.toHexString(stack); + args.addElement("/STACK:0x" + stackStr); + } + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + if (entry != null) { + args.addElement("/ENTRY:" + entry); + } + } + + public String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length]; + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(libnames[i]); + buf.append(".lib"); + patterns[i] = buf.toString(); + } + return patterns; + } + public int getMaximumCommandLength() { + return 32767; + } + public String[] getOutputFileSwitch(String outputFile) { + return new String[]{"/OUT:" + outputFile}; + } + public boolean isCaseSensitive() { + return false; + } + + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + */ + public void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) throws IOException { + WindowsPlatform.addVersionFiles(versionInfo, linkType, outputFile, isDebug, objDir, matcher); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.java new file mode 100644 index 0000000..bd63f42 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLibrarian.java @@ -0,0 +1,36 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * Adapter for the Microsoft (r) Library Manager + * + * @author Curt Arnold + */ +public final class DevStudioLibrarian extends DevStudioCompatibleLibrarian { + private static final DevStudioLibrarian instance = new DevStudioLibrarian(); + public static DevStudioLibrarian getInstance() { + return instance; + } + private DevStudioLibrarian() { + super("lib", "/bogus"); + } + public Linker getLinker(LinkType type) { + return DevStudioLinker.getInstance().getLinker(type); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.java new file mode 100644 index 0000000..826074b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioLinker.java @@ -0,0 +1,44 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * Adapter for the Microsoft (r) Incremental Linker + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public final class DevStudioLinker extends DevStudioCompatibleLinker { + private static final DevStudioLinker dllLinker = new DevStudioLinker(".dll"); + private static final DevStudioLinker instance = new DevStudioLinker(".exe"); + public static DevStudioLinker getInstance() { + return instance; + } + private DevStudioLinker(String outputSuffix) { + super("link", "/DLL", outputSuffix); + } + public Linker getLinker(LinkType type) { + if (type.isSharedLibrary()) { + return dllLinker; + } + if (type.isStaticLibrary()) { + return DevStudioLibrarian.getInstance(); + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.java new file mode 100644 index 0000000..fa2e414 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioMIDLCompiler.java @@ -0,0 +1,112 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * Adapter for the Microsoft (r) MIDL Compiler + * + * @author Curt Arnold + */ +public final class DevStudioMIDLCompiler extends CommandLineCompiler { + private static final DevStudioMIDLCompiler instance = new DevStudioMIDLCompiler( + false, null); + public static DevStudioMIDLCompiler getInstance() { + return instance; + } + private DevStudioMIDLCompiler(boolean newEnvironment, Environment env) { + super("midl", null, new String[]{".idl", ".odl"}, new String[]{}, + ".tlb", false, null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + } + protected void addWarningSwitch(Vector args, int level) { + DevStudioProcessor.addWarningSwitch(args, level); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new DevStudioMIDLCompiler(newEnvironment, env); + } + return this; + } + /** + * The include parser for C will work just fine, but we didn't want to + * inherit from CommandLineCCompiler + */ + protected Parser createParser(File source) { + return new CParser(); + } + protected int getArgumentCountPerInputFile() { + return 3; + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + DevStudioProcessor.getDefineSwitch(buffer, define, value); + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ";"); + } + protected String getIncludeDirSwitch(String includeDir) { + return DevStudioProcessor.getIncludeDirSwitch(includeDir); + } + protected String getInputFileArgument(File outputDir, String filename, + int index) { + switch (index) { + case 0 : + return "/tlb"; + case 1 : + return new File(outputDir, getOutputFileNames(filename, null)[0]) + .getAbsolutePath(); + } + return filename; + } + public Linker getLinker(LinkType type) { + return DevStudioLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } + protected int getMaximumInputFilesPerCommand() { + return 1; + } + protected int getTotalArgumentLengthForInputFile(File outputDir, + String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 0); + String arg2 = getInputFileArgument(outputDir, inputFile, 1); + String arg3 = getInputFileArgument(outputDir, inputFile, 2); + return arg1.length() + arg2.length() + arg3.length() + 3; + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + DevStudioProcessor.getUndefineSwitch(buffer, define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.java new file mode 100644 index 0000000..8257c09 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProcessor.java @@ -0,0 +1,90 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.util.Vector; +/** + * A add-in class for Microsoft Developer Studio processors + * + * + */ +public class DevStudioProcessor { + public static void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("/W0"); + break; + case 1 : + args.addElement("/W1"); + break; + case 2 : + break; + case 3 : + args.addElement("/W3"); + break; + case 4 : + args.addElement("/W4"); + break; + case 5 : + args.addElement("/WX"); + break; + } + } + public static String getCommandFileSwitch(String cmdFile) { + StringBuffer buf = new StringBuffer("@"); + if (cmdFile.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(cmdFile.replace('/', '\\')); + buf.append('\"'); + } else { + buf.append(cmdFile); + } + return buf.toString(); + } + public static void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("/D"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + public static String getIncludeDirSwitch(String includeDir) { + return "/I" + includeDir.replace('/', '\\'); + } + public static String[] getOutputFileSwitch(String outPath) { + StringBuffer buf = new StringBuffer("/Fo"); + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + String[] retval = new String[]{buf.toString()}; + return retval; + } + public static void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("/U"); + buffer.append(define); + } + public static boolean isCaseSensitive() { + return false; + } + private DevStudioProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.java new file mode 100644 index 0000000..51ab1dd --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioProjectWriter.java @@ -0,0 +1,710 @@ +/* + * + * Copyright 2004-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.ide.DependencyDef; +import net.sf.antcontrib.cpptasks.ide.ProjectDef; +import net.sf.antcontrib.cpptasks.ide.ProjectWriter; +import net.sf.antcontrib.cpptasks.ide.CommentDef; +import org.apache.tools.ant.BuildException; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.Writer; +import java.util.*; +import java.text.MessageFormat; + +/** + * Writes a Microsoft Visual Studio 97 or Visual Studio 6 project file. + * + * Status: Collects file list but does not pick + * up libraries and settings from project. + * + * @author curta + */ +public final class DevStudioProjectWriter + implements ProjectWriter { + /** + * Visual Studio version. + */ + private String version; + + /** + * Constructor. + * @param versionArg String Visual Studio version. + */ + public DevStudioProjectWriter(final String versionArg) { + this.version = versionArg; + } + + private static String toProjectName(final String name) { + // + // some characters are apparently not allowed in VS project names + // but have not been able to find them documented + // limiting characters to alphas, numerics and hyphens + StringBuffer projectNameBuf = new StringBuffer(name); + for (int i = 0; i < projectNameBuf.length(); i++) { + final char ch = projectNameBuf.charAt(i); + if (!((ch >= 'a' && ch <= 'z') + || (ch >= 'A' && ch <= 'Z') + || (ch >= '0' && ch <= '9'))) { + projectNameBuf.setCharAt(i, '_'); + } + } + return projectNameBuf.toString(); + + } + + /** + * Writes a project definition file. + * @param fileName File name base, writer may append appropriate extension + * @param task cc task for which to write project + * @param projectDef project element + * @param files source files + * @param targets compilation targets + * @param linkTarget link target + * @throws IOException if error writing project file + */ + public void writeProject(final File fileName, + final CCTask task, + final ProjectDef projectDef, + final List files, + final Hashtable targets, + final TargetInfo linkTarget) throws IOException { + + // + // some characters are apparently not allowed in VS project names + // but have not been able to find them documented + // limiting characters to alphas, numerics and hyphens + String projectName = projectDef.getName(); + if (projectName != null) { + projectName = toProjectName(projectName); + } else { + projectName = toProjectName(fileName.getName()); + } + + final String basePath = fileName.getAbsoluteFile().getParent(); + + File dspFile = new File(fileName + ".dsp"); + if (!projectDef.getOverwrite() && dspFile.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + dspFile.toString()); + } + File dswFile = new File(fileName + ".dsw"); + if (!projectDef.getOverwrite() && dswFile.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + dswFile.toString()); + } + + CommandLineCompilerConfiguration compilerConfig = + getBaseCompilerConfiguration(targets); + if (compilerConfig == null) { + throw new BuildException( + "Unable to generate Visual Studio project " + + "when Microsoft C++ is not used."); + } + + Writer writer = new BufferedWriter(new FileWriter(dspFile)); + writer.write("# Microsoft Developer Studio Project File - Name=\""); + writer.write(projectName); + writer.write("\" - Package Owner=<4>\r\n"); + writer.write( + "# Microsoft Developer Studio Generated Build File, Format Version "); + writer.write(this.version); + writer.write("\r\n"); + writer.write("# ** DO NOT EDIT **\r\n\r\n"); + + writeComments(writer, projectDef.getComments()); + + String outputType = task.getOuttype(); + String subsystem = task.getSubsystem(); + String targtype = "Win32 (x86) Dynamic-Link Library"; + String targid = "0x0102"; + if ("executable".equals(outputType)) { + if ("console".equals(subsystem)) { + targtype = "Win32 (x86) Console Application"; + targid = "0x0103"; + } else { + targtype = "Win32 (x86) Application"; + targid = "0x0101"; + } + } else if ("static".equals(outputType)) { + targtype = "Win32 (x86) Static Library"; + targid = "0x0104"; + } + writer.write("# TARGTYPE \""); + writer.write(targtype); + writer.write("\" "); + writer.write(targid); + writer.write("\r\n\r\nCFG="); + + writer.write(projectName + " - Win32 Debug"); + writer.write("\r\n"); + + writeMessage(writer, projectName, targtype); + + writer.write("# Begin Project\r\n"); + if (version.equals("6.00")) { + writer.write("# PROP AllowPerConfigDependencies 0\r\n"); + } + writer.write("# PROP Scc_ProjName \"\"\r\n"); + writer.write("# PROP Scc_LocalPath \"\"\r\n"); + writer.write("CPP=cl.exe\r\n"); + writer.write("MTL=midl.exe\r\n"); + writer.write("RSC=rc.exe\r\n"); + + writer.write("\r\n!IF \"$(CFG)\" == \"" + projectName + " - Win32 Release\"\r\n"); + + writeConfig(writer, false, projectDef.getDependencies(), basePath, compilerConfig, linkTarget, targets); + + writer.write("\r\n!ELSEIF \"$(CFG)\" == \"" + projectName + " - Win32 Debug\"\r\n"); + + writeConfig(writer, true, projectDef.getDependencies(), basePath, compilerConfig, linkTarget, targets); + + writer.write("\r\n!ENDIF\r\n"); + + writer.write("# Begin Target\r\n\r\n"); + writer.write("# Name \"" + projectName + " - Win32 Release\"\r\n"); + writer.write("# Name \"" + projectName + " - Win32 Debug\"\r\n"); + + + + File[] sortedSources = getSources(files); + + if (version.equals("6.00")) { + final String sourceFilter = "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"; + final String headerFilter = "h;hpp;hxx;hm;inl"; + final String resourceFilter = + "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"; + + writer.write("# Begin Group \"Source Files\"\r\n\r\n"); + writer.write("# PROP Default_Filter \"" + sourceFilter + "\"\r\n"); + + for (int i = 0; i < sortedSources.length; i++) { + if (!isGroupMember(headerFilter, sortedSources[i]) + && !isGroupMember(resourceFilter, sortedSources[i])) { + writeSource(writer, basePath, sortedSources[i]); + } + } + writer.write("# End Group\r\n"); + + writer.write("# Begin Group \"Header Files\"\r\n\r\n"); + writer.write("# PROP Default_Filter \"" + headerFilter + "\"\r\n"); + + for (int i = 0; i < sortedSources.length; i++) { + if (isGroupMember(headerFilter, sortedSources[i])) { + writeSource(writer, basePath, sortedSources[i]); + } + } + writer.write("# End Group\r\n"); + + writer.write("# Begin Group \"Resource Files\"\r\n\r\n"); + writer.write("# PROP Default_Filter \"" + resourceFilter + "\"\r\n"); + + for (int i = 0; i < sortedSources.length; i++) { + if (isGroupMember(resourceFilter, sortedSources[i])) { + writeSource(writer, basePath, sortedSources[i]); + } + } + writer.write("# End Group\r\n"); + + } else { + for (int i = 0; i < sortedSources.length; i++) { + writeSource(writer, basePath, sortedSources[i]); + } + } + + writer.write("# End Target\r\n"); + writer.write("# End Project\r\n"); + writer.close(); + + // + // write workspace file + // + writer = new BufferedWriter(new FileWriter(dswFile)); + writeWorkspace(writer, projectDef, projectName, dspFile); + writer.close(); + + } + + private void writeConfig(final Writer writer, + boolean isDebug, + final List dependencies, + final String basePath, + CommandLineCompilerConfiguration compilerConfig, + TargetInfo linkTarget, + Hashtable targets) throws IOException { + writer.write("# PROP BASE Use_MFC 0\r\n"); + + String configType = "Release"; + String configInt = "0"; + String configMacro = "NDEBUG"; + if (isDebug) { + configType = "Debug"; + configInt = "1"; + configMacro = "_DEBUG"; + } + + writer.write("# PROP BASE Use_Debug_Libraries "); + writer.write(configInt); + writer.write("\r\n# PROP BASE Output_Dir \""); + writer.write(configType); + writer.write("\"\r\n"); + writer.write("# PROP BASE Intermediate_Dir \""); + writer.write(configType); + writer.write("\"\r\n"); + writer.write("# PROP BASE Target_Dir \"\"\r\n"); + writer.write("# PROP Use_MFC 0\r\n"); + writer.write("# PROP Use_Debug_Libraries "); + writer.write(configInt); + writer.write("\r\n# PROP Output_Dir \""); + writer.write(configType); + writer.write("\"\r\n"); + writer.write("# PROP Intermediate_Dir \""); + writer.write(configType); + writer.write("\"\r\n"); + writer.write("# PROP Target_Dir \"\"\r\n"); + writeCompileOptions(writer, isDebug, basePath, compilerConfig); + writer.write( + "# ADD BASE MTL /nologo /D \"" + configMacro + "\" /mktyplib203 /o NUL /win32\r\n"); + writer.write( + "# ADD MTL /nologo /D \"" + configMacro + "\" /mktyplib203 /o NUL /win32\r\n"); + writer.write("# ADD BASE RSC /l 0x409 /d \"" + configMacro + "\"\r\n"); + writer.write("# ADD RSC /l 0x409 /d \"" + configMacro + "\"\r\n"); + writer.write("BSC32=bscmake.exe\r\n"); + writer.write("# ADD BASE BSC32 /nologo\r\n"); + writer.write("# ADD BSC32 /nologo\r\n"); + writer.write("LINK32=link.exe\r\n"); + writeLinkOptions(writer, isDebug, dependencies, basePath, linkTarget, targets); + } + private static void writeWorkspaceProject(final Writer writer, + final String projectName, + final String projectFile, + final List dependsOn) throws IOException { + writer.write("############################################"); + writer.write("###################################\r\n\r\n"); + String file = projectFile; + if(!file.startsWith(".") && !file.startsWith("\\") && !file.startsWith("/")) { + file = ".\\" + file; + } + writer.write("Project: \"" + projectName + "\"=\"" + + file + + "\" - Package Owner=<4>\r\n\r\n"); + + writer.write("Package=<5>\r\n{{{\r\n}}}\r\n\r\n"); + writer.write("Package=<4>\r\n{{{\r\n"); + if (dependsOn != null) { + for(Iterator iter = dependsOn.iterator(); iter.hasNext();) { + writer.write(" Begin Project Dependency\r\n"); + writer.write(" Project_Dep_Name " + toProjectName(String.valueOf(iter.next())) + "\r\n"); + writer.write(" End Project Dependency\r\n"); + } + } + writer.write("}}}\r\n\r\n"); + + } + + private void writeWorkspace(final Writer writer, + final ProjectDef project, + final String projectName, + final File dspFile) throws IOException { + + writer.write("Microsoft Developer Studio Workspace File, Format Version "); + writer.write(version); + writer.write("\r\n"); + writer.write("# WARNING: DO NOT EDIT OR DELETE"); + writer.write(" THIS WORKSPACE FILE!\r\n\r\n"); + + writeComments(writer, project.getComments()); + + + List dependencies = project.getDependencies(); + List projectDeps = new ArrayList(); + String basePath = dspFile.getParent(); + for(Iterator iter = dependencies.iterator(); iter.hasNext();) { + DependencyDef dep = (DependencyDef) iter.next(); + if (dep.getFile() != null) { + String projName = toProjectName(dep.getName()); + projectDeps.add(projName); + String depProject = CUtil.toWindowsPath( + CUtil.getRelativePath(basePath, + new File(dep.getFile() + ".dsp"))); + writeWorkspaceProject(writer, projName, depProject, dep.getDependsList()); + } + } + + writeWorkspaceProject(writer, projectName, dspFile.getName(), projectDeps); + + writer.write("############################################"); + writer.write("###################################\r\n\r\n"); + + + writer.write("Global:\r\n\r\nPackage=<5>\r\n{{{\r\n}}}"); + writer.write("\r\n\r\nPackage=<3>\r\n{{{\r\n}}}\r\n\r\n"); + + writer.write("########################################"); + writer.write("#######################################\r\n\r\n"); + + } + + /** + * Returns true if the file has an extension that appears in the group filter. + * @param filter String group filter + * @param candidate File file + * @return boolean true if member of group + */ + private boolean isGroupMember(final String filter, final File candidate) { + String fileName = candidate.getName(); + int lastDot = fileName.lastIndexOf('.'); + if (lastDot >= 0 && lastDot < fileName.length() - 1) { + String extension = + ";" + fileName.substring(lastDot + 1).toLowerCase() + ";"; + String semiFilter = ";" + filter + ";"; + return semiFilter.indexOf(extension) >= 0; + } + return false; + } + + /** + * Writes the entry for one source file in the project. + * @param writer Writer writer + * @param basePath String base path for project + * @param groupMember File project source file + * @throws IOException if error writing project file + */ + private void writeSource(final Writer writer, + final String basePath, + final File groupMember) + throws IOException { + writer.write("# Begin Source File\r\n\r\nSOURCE="); + String relativePath = CUtil.getRelativePath(basePath, + groupMember); + // + // if relative path is just a name (hello.c) then + // make it .\hello.c + if (!relativePath.startsWith(".") + && relativePath.indexOf(":") < 0 + && !relativePath.startsWith("\\")) { + relativePath = ".\\" + relativePath; + } + writer.write(CUtil.toWindowsPath(relativePath)); + writer.write("\r\n# End Source File\r\n"); + } + + /** + * Get alphabetized array of source files. + * @param sourceList list of source files + * @return File[] source files + */ + private File[] getSources(final List sourceList) { + File[] sortedSources = new File[sourceList.size()]; + sourceList.toArray(sortedSources); + Arrays.sort(sortedSources, new Comparator() { + public int compare(final Object o1, final Object o2) { + return ((File) o1).getName().compareTo(((File) o2).getName()); + } + }); + return sortedSources; + } + + /** + * Writes "This is not a makefile" warning. + * @param writer Writer writer + * @param projectName String project name + * @param targtype String target type + * @throws IOException if error writing project + */ + + private void writeMessage(final Writer writer, + final String projectName, + final String targtype) throws IOException { + writer.write( + "!MESSAGE This is not a valid makefile. "); + writer.write("To build this project using NMAKE,\r\n"); + writer.write("!MESSAGE use the Export Makefile command and run\r\n"); + writer.write("!MESSAGE \r\n"); + writer.write("!MESSAGE NMAKE /f \""); + writer.write(projectName); + writer.write(".mak\".\r\n"); + writer.write("!MESSAGE \r\n"); + writer.write( + "!MESSAGE You can specify a configuration when running NMAKE\r\n"); + writer.write( + "!MESSAGE by defining the macro CFG on the command line. "); + writer.write("For example:\r\n"); + writer.write("!MESSAGE \r\n"); + writer.write("!MESSAGE NMAKE /f \""); + writer.write(projectName); + writer.write(".mak\" CFG=\""); + writer.write(projectName); + writer.write(" - Win32 Debug\"\r\n"); + writer.write("!MESSAGE \r\n"); + writer.write("!MESSAGE Possible choices for configuration are:\r\n"); + writer.write("!MESSAGE \r\n"); + String pattern = "!MESSAGE \"{0} - Win32 {1}\" (based on \"{2}\")\r\n"; + writer.write(MessageFormat.format(pattern, new Object[] { projectName, "Release", targtype })); + writer.write(MessageFormat.format(pattern, new Object[] { projectName, "Debug", targtype })); + writer.write("!MESSAGE \r\n"); + writer.write("\r\n"); + + } + + /** + * Gets the first recognized compiler from the + * compilation targets. + * @param targets compilation targets + * @return representative (hopefully) compiler configuration + */ + private CommandLineCompilerConfiguration + getBaseCompilerConfiguration(final Hashtable targets) { + // + // find first target with an DevStudio C compilation + // + CommandLineCompilerConfiguration compilerConfig; + // + // get the first target and assume that it is representative + // + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo targetInfo = (TargetInfo) targetIter.next(); + ProcessorConfiguration config = targetInfo.getConfiguration(); + // + // for the first cl compiler + // + if (config instanceof CommandLineCompilerConfiguration) { + compilerConfig = (CommandLineCompilerConfiguration) config; + if (compilerConfig.getCompiler() instanceof DevStudioCCompiler) { + return compilerConfig; + } + } + } + return null; + } + + /** + * Writes compiler options. + * @param writer Writer writer + * @param isDebug true if debug. + * @param baseDir String base directory + * @param compilerConfig compiler configuration + * @throws IOException if error on writing project + */ + private void writeCompileOptions(final Writer writer, + final boolean isDebug, + final String baseDir, + final CommandLineCompilerConfiguration + compilerConfig) throws IOException { + StringBuffer baseOptions = new StringBuffer(50); + baseOptions.append("# ADD BASE CPP"); + StringBuffer options = new StringBuffer(50); + options.append("# ADD CPP"); + File[] includePath = compilerConfig.getIncludePath(); + for (int i = 0; i < includePath.length; i++) { + options.append(" /I \""); + String relPath = CUtil.getRelativePath(baseDir, includePath[i]); + options.append(CUtil.toWindowsPath(relPath)); + options.append('"'); + } + Hashtable optionMap = new Hashtable(); + + if (isDebug) { + // + // release options that should be mapped to debug counterparts + // + optionMap.put("/MT", "/MTd"); + optionMap.put("/ML", "/MLd"); + optionMap.put("/MD", "/MDd"); + optionMap.put("/O2", "/Od"); + optionMap.put("/O3", "/Od"); + } else { + // + // debug options that should be mapped to release counterparts + // + optionMap.put("/MTD", "/MT"); + optionMap.put("/MLD", "/ML"); + optionMap.put("/MDD", "/MD"); + optionMap.put("/GM", ""); + optionMap.put("/ZI", ""); + optionMap.put("/OD", "/O2"); + optionMap.put("/GZ", ""); + } + + + + String[] preArgs = compilerConfig.getPreArguments(); + for (int i = 0; i < preArgs.length; i++) { + if (preArgs[i].startsWith("/D")) { + options.append(" /D "); + baseOptions.append(" /D "); + String body = preArgs[i].substring(2); + if (preArgs[i].indexOf('=') >= 0) { + options.append(body); + baseOptions.append(body); + } else { + StringBuffer buf = new StringBuffer("\""); + if ("NDEBUG".equals(body) || "_DEBUG".equals(body)) { + if (isDebug) { + buf.append("_DEBUG"); + } else { + buf.append("NDEBUG"); + } + } else { + buf.append(body); + } + buf.append("\""); + options.append(buf); + baseOptions.append(buf); + } + } else if (!preArgs[i].startsWith("/I")) { + String option = preArgs[i]; + String key = option.toUpperCase(Locale.US); + if (optionMap.containsKey(key)) { + option = optionMap.get(key).toString(); + } + options.append(" "); + options.append(option); + baseOptions.append(" "); + baseOptions.append(option); + } + } + baseOptions.append("\r\n"); + options.append("\r\n"); + writer.write(baseOptions.toString()); + writer.write(options.toString()); + + } + + + + + + /** + * Writes link options. + * @param writer Writer writer + * @param basePath String base path + * @param dependencies project dependencies, used to suppress explicit linking. + * @param linkTarget TargetInfo link target + * @param targets Hashtable all targets + * @throws IOException if unable to write to project file + */ + private void writeLinkOptions(final Writer writer, + final boolean isDebug, + final List dependencies, + final String basePath, + final TargetInfo linkTarget, + final Hashtable targets) throws IOException { + + StringBuffer baseOptions = new StringBuffer(100); + StringBuffer options = new StringBuffer(100); + baseOptions.append("# ADD BASE LINK32"); + options.append("# ADD LINK32"); + + ProcessorConfiguration config = linkTarget.getConfiguration(); + if (config instanceof CommandLineLinkerConfiguration) { + CommandLineLinkerConfiguration linkConfig = + (CommandLineLinkerConfiguration) config; + + File[] linkSources = linkTarget.getAllSources(); + for (int i = 0; i < linkSources.length; i++) { + // + // if file was not compiled or otherwise generated + // + if (targets.get(linkSources[i].getName()) == null) { + // + // if source appears to be a system library or object file + // just output the name of the file (advapi.lib for example) + // otherwise construct a relative path. + // + String relPath = linkSources[i].getName(); + // + // check if file comes from a project dependency + // if it does it should not be explicitly linked + boolean fromDependency = false; + if (relPath.indexOf(".") > 0) { + String baseName = relPath.substring(0, relPath.indexOf(".")); + for(Iterator iter = dependencies.iterator(); iter.hasNext(); ) { + DependencyDef depend = (DependencyDef) iter.next(); + if (baseName.compareToIgnoreCase(depend.getName()) == 0) { + fromDependency = true; + } + } + } + if (!fromDependency) { + if (!CUtil.isSystemPath(linkSources[i])) { + relPath = CUtil.getRelativePath(basePath, linkSources[i]); + } + // + // if path has an embedded space then + // must quote + if (relPath.indexOf(' ') > 0) { + options.append(" \""); + options.append(CUtil.toWindowsPath(relPath)); + options.append("\""); + } else { + options.append(' '); + options.append(CUtil.toWindowsPath(relPath)); + } + } + } + } + String[] preArgs = linkConfig.getPreArguments(); + for (int i = 0; i < preArgs.length; i++) { + if (isDebug || !preArgs[i].equals("/DEBUG")) { + options.append(' '); + options.append(preArgs[i]); + baseOptions.append(' '); + baseOptions.append(preArgs[i]); + } + } + String[] endArgs = linkConfig.getEndArguments(); + for (int i = 0; i < endArgs.length; i++) { + options.append(' '); + options.append(endArgs[i]); + baseOptions.append(' '); + baseOptions.append(endArgs[i]); + } + } + baseOptions.append("\r\n"); + options.append("\r\n"); + writer.write(baseOptions.toString()); + writer.write(options.toString()); + } + + private static void writeComments(final Writer writer, + final List comments) throws IOException { + for(Iterator iter = comments.iterator();iter.hasNext();) { + String comment = ((CommentDef) iter.next()).getText(); + if (comment != null) { + int start = 0; + for(int end = comment.indexOf('\n'); + end != -1; + end = comment.indexOf('\n', start)) { + writer.write("#" + comment.substring(start, end) + "\r\n"); + start = end + 1; + } + } + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.java new file mode 100644 index 0000000..6f8360b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/DevStudioResourceCompiler.java @@ -0,0 +1,119 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Microsoft (r) Windows 32 Resource Compiler + * + * @author Curt Arnold + */ +public final class DevStudioResourceCompiler extends CommandLineCompiler { + private static final DevStudioResourceCompiler instance = new DevStudioResourceCompiler( + false, null); + public static DevStudioResourceCompiler getInstance() { + return instance; + } + private String identifier; + private DevStudioResourceCompiler(boolean newEnvironment, Environment env) { + super("rc", null, new String[]{".rc"}, new String[]{".h", ".hpp", + ".inl"}, ".res", false, null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + if (debug) { + args.addElement("/D_DEBUG"); + } else { + args.addElement("/DNDEBUG"); + } + } + protected void addWarningSwitch(Vector args, int level) { + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new DevStudioResourceCompiler(newEnvironment, env); + } + return this; + } + /** + * The include parser for C will work just fine, but we didn't want to + * inherit from CommandLineCCompiler + */ + protected Parser createParser(File source) { + return new CParser(); + } + protected int getArgumentCountPerInputFile() { + return 2; + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + DevStudioProcessor.getDefineSwitch(buffer, define, value); + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ";"); + } + protected String getIncludeDirSwitch(String includeDir) { + return DevStudioProcessor.getIncludeDirSwitch(includeDir); + } + protected String getInputFileArgument(File outputDir, String filename, + int index) { + if (index == 0) { + String outputFileName = getOutputFileNames(filename, null)[0]; + String fullOutputName = new File(outputDir, outputFileName) + .toString(); + return "/fo" + fullOutputName; + } + return filename; + } + public Linker getLinker(LinkType type) { + return DevStudioLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } + protected int getMaximumInputFilesPerCommand() { + return 1; + } + protected int getTotalArgumentLengthForInputFile(File outputDir, + String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 0); + String arg2 = getInputFileArgument(outputDir, inputFile, 1); + return arg1.length() + arg2.length() + 2; + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + DevStudioProcessor.getUndefineSwitch(buffer, define); + } + public String getIdentifier() { + return "Microsoft (R) Windows (R) Resource Compiler"; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.java b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.java new file mode 100644 index 0000000..f554e09 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/VisualStudioNETProjectWriter.java @@ -0,0 +1,866 @@ +/* + * + * Copyright 2004-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.devstudio; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.ProcessorConfiguration; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.ide.ProjectDef; +import net.sf.antcontrib.cpptasks.ide.CommentDef; +import net.sf.antcontrib.cpptasks.ide.ProjectWriter; +import net.sf.antcontrib.cpptasks.ide.DependencyDef; +import org.apache.tools.ant.BuildException; +import org.apache.xml.serialize.OutputFormat; +import org.apache.xml.serialize.XMLSerializer; +import org.xml.sax.ContentHandler; +import org.xml.sax.SAXException; +import org.xml.sax.helpers.AttributesImpl; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Arrays; +import java.util.Comparator; +import java.util.Hashtable; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +/** + * Writes a Visual Studio.NET project file. + * + * @author curta + */ +public final class VisualStudioNETProjectWriter + implements ProjectWriter { + /** + * Version of VisualStudio.NET. + */ + private final String version; + + /** + * Literal to represent a true value. + */ + private final String trueLiteral; + + /** + * Literal to represent a false value. + */ + private final String falseLiteral; + + /** + * Constructor. + * + * @param versionArg String VisualStudio.NET version + * @param trueArg literal to represent true, "true" in VC 2005. + * @param falseArg literal to represent false, "false" in VC 2005. + */ + public VisualStudioNETProjectWriter(final String versionArg, + final String trueArg, + final String falseArg) { + if (versionArg == null) { + throw new IllegalArgumentException("versionArg"); + } + if (trueArg == null) { + throw new IllegalArgumentException("trueArg"); + } + if (falseArg == null) { + throw new IllegalArgumentException("falseArg"); + } + this.version = versionArg; + this.trueLiteral = trueArg; + this.falseLiteral = falseArg; + } + + + + /** + * Gets the configuration type. + * + * @param task cc task, may not be null. + * @return configuration type + */ + private String getConfigurationType(final CCTask task) { + String outputType = task.getOuttype(); + String targtype = "2"; // Win32 (x86) Dynamic-Link Library"; + if ("executable".equals(outputType)) { + targtype = "1"; // "Win32 (x86) Console Application"; + } else if ("static".equals(outputType)) { + targtype = "4"; //"Win32 (x86) Static Library"; + } + return targtype; + } + + + + /** + * Get character set for Windows API. + * @param compilerConfig compiler configuration, may not be null. + * @return "1" is TCHAR is unicode, "0" if TCHAR is multi-byte. + */ + private String getCharacterSet( + final CommandLineCompilerConfiguration compilerConfig) { + String[] args = compilerConfig.getPreArguments(); + String charset = "0"; + for (int i = 0; i < args.length; i++) { + if ("/D_UNICODE".equals(args[i]) || "/DUNICODE".equals(args[i])) { + charset = "1"; + } + if ("/D_MBCS".equals(args[i])) { + charset = "2"; + } + } + return charset; + } + + /** + * Write the start tag of the Configuration element. + * @param content serialization content handler. + * @param isDebug if true, write a debug configuration. + * @param task cc task. + * @param compilerConfig compiler configuration. + * @throws SAXException thrown if serialization error. + */ + private void writeConfigurationStartTag(final ContentHandler content, + final boolean isDebug, + final CCTask task, + final CommandLineCompilerConfiguration compilerConfig) + throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + if (isDebug) { + addAttribute(attributes, "Name", "Debug|Win32"); + addAttribute(attributes, "OutputDirectory", "Debug"); + addAttribute(attributes, "IntermediateDirectory", "Debug"); + } else { + addAttribute(attributes, "Name", "Release|Win32"); + addAttribute(attributes, "OutputDirectory", "Release"); + addAttribute(attributes, "IntermediateDirectory", "Release"); + + } + addAttribute(attributes, "ConfigurationType", + getConfigurationType(task)); + addAttribute(attributes, "CharacterSet", + getCharacterSet(compilerConfig)); + content.startElement(null, + "Configuration", "Configuration", attributes); + } + + /** + * Get value of Optimization property. + * @param compilerConfig compiler configuration, may not be null. + * @return value of Optimization property. + */ + private String getOptimization( + final CommandLineCompilerConfiguration compilerConfig) { + String[] args = compilerConfig.getPreArguments(); + String opt = "0"; + for (int i = 0; i < args.length; i++) { + if ("/Od".equals(args[i])) { + opt = "0"; + } + if ("/O1".equals(args[i])) { + opt = "1"; + } + if ("/O2".equals(args[i])) { + opt = "2"; + } + if ("/Ox".equals(args[i])) { + opt = "3"; + } + } + return opt; + } + + /** + * Get value of AdditionalIncludeDirectories property. + * @param compilerConfig compiler configuration. + * @param baseDir base for relative paths. + * @return value of AdditionalIncludeDirectories property. + */ + private String getAdditionalIncludeDirectories( + final String baseDir, + final CommandLineCompilerConfiguration compilerConfig) { + File[] includePath = compilerConfig.getIncludePath(); + StringBuffer includeDirs = new StringBuffer(); + for (int i = 0; i < includePath.length; i++) { + String relPath = CUtil.getRelativePath(baseDir, includePath[i]); + includeDirs.append(CUtil.toWindowsPath(relPath)); + includeDirs.append(';'); + } + + + if (includeDirs.length() > 0) { + includeDirs.setLength(includeDirs.length() - 1); + } + return includeDirs.toString(); + } + + /** + * Get value of PreprocessorDefinitions property. + * @param compilerConfig compiler configuration. + * @param isDebug true if generating debug configuration. + * @return value of PreprocessorDefinitions property. + */ + private String getPreprocessorDefinitions( + final CommandLineCompilerConfiguration compilerConfig, + final boolean isDebug) { + StringBuffer defines = new StringBuffer(); + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if (args[i].startsWith("/D")) { + String macro = args[i].substring(2); + if (isDebug) { + if (macro.equals("NDEBUG")) { + macro = "_DEBUG"; + } + } else { + if (macro.equals("_DEBUG")) { + macro = "NDEBUG"; + } + } + defines.append(macro); + defines.append(";"); + } + } + + if (defines.length() > 0) { + defines.setLength(defines.length() - 1); + } + return defines.toString(); + } + + /** + * Get value of RuntimeLibrary property. + * @param compilerConfig compiler configuration. + * @param isDebug true if generating debug configuration. + * @return value of RuntimeLibrary property. + */ + private String getRuntimeLibrary( + final CommandLineCompilerConfiguration compilerConfig, + final boolean isDebug) { + String rtl = null; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if (args[i].startsWith("/MT")) { + if (isDebug) { + rtl = "1"; + } else { + rtl = "0"; + } + } else if (args[i].startsWith("/MD")) { + if (isDebug) { + rtl = "3"; + } else { + rtl = "2"; + } + } + } + return rtl; + } + + /** + * Get value of UsePrecompiledHeader property. + * @param compilerConfig compiler configuration. + * @return value of UsePrecompiledHeader property. + */ + private String getUsePrecompiledHeader( + final CommandLineCompilerConfiguration compilerConfig) { + String usePCH = "0"; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/Yc".equals(args[i])) { + usePCH = "1"; + } + if ("/Yu".equals(args[i])) { + usePCH = "2"; + } + } + return usePCH; + } + + /** + * Get value of PrecompiledHeaderFile property. + * @param compilerConfig compiler configuration. + * @return value of PrecompiledHeaderFile property. + */ + private String getPrecompiledHeaderFile( + final CommandLineCompilerConfiguration compilerConfig) { + String pch = null; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if (args[i].startsWith("/Fp")) { + pch = args[i].substring(3); + } + } + return pch; + } + + + + /** + * Get value of BasicRuntimeChecks property. + * @param compilerConfig compiler configuration. + * @return value of BasicRuntimeChecks property. + */ + private String getBasicRuntimeChecks( + final CommandLineCompilerConfiguration compilerConfig) { + String checks = "0"; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/RTCs".equals(args[i])) { + checks = "1"; + } + if ("/RTCu".equals(args[i])) { + checks = "2"; + } + if ("/RTC1".equals(args[i]) || "/GZ".equals(args[i])) { + checks = "3"; + } + } + return checks; + } + + /** + * Get value of WarningLevel property. + * @param compilerConfig compiler configuration. + * @return value of WarningLevel property. + */ + private String getWarningLevel( + final CommandLineCompilerConfiguration compilerConfig) { + String warn = null; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/W0".equals(args[i])) { + warn = "0"; + } + if ("/W1".equals(args[i])) { + warn = "1"; + } + if ("/W2".equals(args[i])) { + warn = "2"; + } + if ("/W3".equals(args[i])) { + warn = "3"; + } + } + return warn; + } + + /** + * Get value of Detect64BitPortabilityProblems property. + * @param compilerConfig compiler configuration. + * @return value of Detect64BitPortabilityProblems property. + */ + private String getDetect64BitPortabilityProblems( + final CommandLineCompilerConfiguration compilerConfig) { + String warn64 = null; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/Wp64".equals(args[i])) { + warn64 = trueLiteral; + } + } + return warn64; + } + + /** + * Get value of DebugInformationFormat property. + * @param compilerConfig compiler configuration. + * @return value of DebugInformationFormat property. + */ + private String getDebugInformationFormat( + final CommandLineCompilerConfiguration compilerConfig) { + String format = "0"; + String[] args = compilerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/Z7".equals(args[i])) { + format = "1"; + } + if ("/Zd".equals(args[i])) { + format = "2"; + } + if ("/Zi".equals(args[i])) { + format = "3"; + } + if ("/ZI".equals(args[i])) { + format = "4"; + } + } + return format; + } + + /** + * write the Compiler element. + * @param content serialization content handler. + * @param isDebug true if generating debug configuration. + * @param basePath base for relative file paths. + * @param compilerConfig compiler configuration. + * @throws SAXException thrown if error during serialization. + */ + private void writeCompilerElement(final ContentHandler content, + final boolean isDebug, + final String basePath, + final CommandLineCompilerConfiguration compilerConfig) + throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + addAttribute(attributes, "Name", "VCCLCompilerTool"); + String optimization = getOptimization(compilerConfig); + String debugFormat = getDebugInformationFormat(compilerConfig); + if(isDebug) { + optimization = "0"; + if ("0".equals(debugFormat)) { + debugFormat = "4"; + } + } else { + if ("0".equals(optimization)) { + optimization = "2"; + } + debugFormat = "0"; + } + addAttribute(attributes, "Optimization", optimization); + addAttribute(attributes, "AdditionalIncludeDirectories", + getAdditionalIncludeDirectories(basePath, compilerConfig)); + addAttribute(attributes, "PreprocessorDefinitions", + getPreprocessorDefinitions(compilerConfig, isDebug)); + addAttribute(attributes, "MinimalRebuild", trueLiteral); + addAttribute(attributes, "BasicRuntimeChecks", + getBasicRuntimeChecks(compilerConfig)); + addAttribute(attributes, "RuntimeLibrary", + getRuntimeLibrary(compilerConfig, isDebug)); + addAttribute(attributes, "UsePrecompiledHeader", + getUsePrecompiledHeader(compilerConfig)); + addAttribute(attributes, "PrecompiledHeaderFile", + getPrecompiledHeaderFile(compilerConfig)); + addAttribute(attributes, "WarningLevel", + getWarningLevel(compilerConfig)); + addAttribute(attributes, "Detect64BitPortabilityProblems", + getDetect64BitPortabilityProblems(compilerConfig)); + addAttribute(attributes, "DebugInformationFormat", + debugFormat); + content.startElement(null, "Tool", "Tool", attributes); + content.endElement(null, "Tool", "Tool"); + + } + + + /** + * Get value of LinkIncremental property. + * @param linkerConfig linker configuration. + * @return value of LinkIncremental property + */ + private String getLinkIncremental( + final CommandLineLinkerConfiguration linkerConfig) { + String incremental = "0"; + String[] args = linkerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/INCREMENTAL:NO".equals(args[i])) { + incremental = "1"; + } + if ("/INCREMENTAL:YES".equals(args[i])) { + incremental = "2"; + } + } + return incremental; + } + + + /** + * Get value of Subsystem property. + * @param linkerConfig linker configuration. + * @return value of Subsystem property + */ + private String getSubsystem( + final CommandLineLinkerConfiguration linkerConfig) { + String subsystem = "0"; + String[] args = linkerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/SUBSYSTEM:CONSOLE".equals(args[i])) { + subsystem = "1"; + } + if ("/SUBSYSTEM:WINDOWS".equals(args[i])) { + subsystem = "2"; + } + if ("/SUBSYSTEM:WINDOWSCE".equals(args[i])) { + subsystem = "9"; + } + } + return subsystem; + } + + /** + * Get value of TargetMachine property. + * @param linkerConfig linker configuration. + * @return value of TargetMachine property + */ + private String getTargetMachine( + final CommandLineLinkerConfiguration linkerConfig) { + String subsystem = "0"; + String[] args = linkerConfig.getPreArguments(); + for (int i = 0; i < args.length; i++) { + if ("/MACHINE:X86".equals(args[i])) { + subsystem = "1"; + } + } + return subsystem; + } + + /** + * Get value of AdditionalDependencies property. + * @param linkTarget link target. + * @param projectDependencies dependencies declared in project. + * @param targets all targets. + * @param basePath path to directory containing project file. + * @return value of AdditionalDependencies property. + */ + private String getAdditionalDependencies(final TargetInfo linkTarget, + final List projectDependencies, + final Map targets, + final String basePath) { + String dependencies = null; + File[] linkSources = linkTarget.getAllSources(); + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < linkSources.length; i++) { + // + // if file was not compiled or otherwise generated + // + if (targets.get(linkSources[i].getName()) == null) { + // + // if source appears to be a system library or object file + // just output the name of the file (advapi.lib for example) + // otherwise construct a relative path. + // + String relPath = linkSources[i].getName(); + // + // check if file comes from a project dependency + // if it does it should not be explicitly linked + boolean fromDependency = false; + if (relPath.indexOf(".") > 0) { + String baseName = relPath.substring(0, relPath.indexOf(".")); + for(Iterator iter = projectDependencies.iterator(); iter.hasNext(); ) { + DependencyDef depend = (DependencyDef) iter.next(); + if (baseName.compareToIgnoreCase(depend.getName()) == 0) { + fromDependency = true; + } + } + } + + if (!fromDependency) { + if (!CUtil.isSystemPath(linkSources[i])) { + relPath = CUtil.getRelativePath(basePath, linkSources[i]); + } + // + // if path has an embedded space then + // must quote + if (relPath.indexOf(' ') > 0) { + buf.append('\"'); + buf.append(CUtil.toWindowsPath(relPath)); + buf.append('\"'); + } else { + buf.append(relPath); + } + buf.append(' '); + } + } + } + if (buf.length() > 0) { + buf.setLength(buf.length() - 1); + dependencies = buf.toString(); + } + return dependencies; + + } + + /** + * Write Tool element for linker. + * @param content serialization content handler. + * @param isDebug true if generating debug configuration. + * @param dependencies project dependencies. + * @param basePath path to directory containing project file. + * @param linkTarget link target. + * @param targets all targets. + * @throws SAXException thrown if error during serialization. + */ + private void writeLinkerElement(final ContentHandler content, + final boolean isDebug, + final List dependencies, + final String basePath, + final TargetInfo linkTarget, + final Map targets) throws SAXException { + AttributesImpl attributes = new AttributesImpl(); + addAttribute(attributes, "Name", "VCLinkerTool"); + + ProcessorConfiguration config = linkTarget.getConfiguration(); + if (config instanceof CommandLineLinkerConfiguration) { + CommandLineLinkerConfiguration linkerConfig = + (CommandLineLinkerConfiguration) config; + if (linkerConfig.getLinker() instanceof DevStudioCompatibleLinker) { + addAttribute(attributes, "LinkIncremental", + getLinkIncremental(linkerConfig)); + if (isDebug) { + addAttribute(attributes, "GenerateDebugInformation", trueLiteral); + } else { + addAttribute(attributes, "GenerateDebugInformation", falseLiteral); + } + addAttribute(attributes, "SubSystem", + getSubsystem(linkerConfig)); + addAttribute(attributes, "TargetMachine", + getTargetMachine(linkerConfig)); + } + } + addAttribute(attributes, "AdditionalDependencies", + getAdditionalDependencies(linkTarget, dependencies, targets, basePath)); + content.startElement(null, "Tool", "Tool", attributes); + content.endElement(null, "Tool", "Tool"); + } + + /** + * Writes a project definition file. + * + * @param fileName project name for file, should has .cbx extension + * @param task cc task for which to write project + * @param projectDef project element + * @param sources source files + * @param targets compilation targets + * @param linkTarget link target + * @throws IOException if I/O error + * @throws SAXException if XML serialization error + */ + public void writeProject(final File fileName, + final CCTask task, + final ProjectDef projectDef, + final List sources, + final Hashtable targets, + final TargetInfo linkTarget) throws + IOException, + SAXException { + + String projectName = projectDef.getName(); + if (projectName == null) { + projectName = fileName.getName(); + } + + + File vcprojFile = new File(fileName + ".vcproj"); + if (!projectDef.getOverwrite() && vcprojFile.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + vcprojFile.toString()); + } + File slnFile = new File(fileName + ".sln"); + if (!projectDef.getOverwrite() && slnFile.exists()) { + throw new BuildException("Not allowed to overwrite project file " + + slnFile.toString()); + } + + CommandLineCompilerConfiguration compilerConfig = + getBaseCompilerConfiguration(targets); + if (compilerConfig == null) { + throw new BuildException( + "Unable to generate Visual Studio.NET project " + + "when Microsoft C++ is not used."); + } + + OutputStream outStream = new FileOutputStream(fileName + ".vcproj"); + OutputFormat format = new OutputFormat("xml", "UTF-8", true); + XMLSerializer serializer = new XMLSerializer(outStream, format); + ContentHandler content = serializer.asContentHandler(); + String basePath = fileName.getParentFile().getAbsolutePath(); + content.startDocument(); + + for(Iterator iter = projectDef.getComments().iterator(); iter.hasNext(); ) { + String comment = ((CommentDef) iter.next()).getText(); + serializer.comment(comment); + } + + AttributesImpl emptyAttrs = new AttributesImpl(); + + AttributesImpl attributes = new AttributesImpl(); + addAttribute(attributes, "ProjectType", "Visual C++"); + addAttribute(attributes, "Version", version); + addAttribute(attributes, "Name", projectName); + content.startElement(null, "VisualStudioProject", + "VisualStudioProject", attributes); + + content.startElement(null, "Platforms", "Platforms", emptyAttrs); + attributes.clear(); + addAttribute(attributes, "Name", "Win32"); + content.startElement(null, "Platform", "Platform", attributes); + content.endElement(null, "Platform", "Platform"); + content.endElement(null, "Platforms", "Platforms"); + content.startElement(null, "Configurations", + "Configurations", emptyAttrs); + + // + // write debug configuration + // + writeConfigurationStartTag(content, true, task, compilerConfig); + writeCompilerElement(content, true, basePath, compilerConfig); + writeLinkerElement(content, true, projectDef.getDependencies(), basePath, linkTarget, targets); + content.endElement(null, "Configuration", "Configuration"); + + // + // write release configuration + // + writeConfigurationStartTag(content, false, task, compilerConfig); + writeCompilerElement(content, false, basePath, compilerConfig); + writeLinkerElement(content, false, projectDef.getDependencies(), basePath, linkTarget, targets); + content.endElement(null, "Configuration", "Configuration"); + + content.endElement(null, "Configurations", "Configurations"); + content.startElement(null, "References", "References", emptyAttrs); + content.endElement(null, "References", "References"); + content.startElement(null, "Files", "Files", emptyAttrs); + + + File[] sortedSources = new File[sources.size()]; + sources.toArray(sortedSources); + Arrays.sort(sortedSources, new Comparator() { + public int compare(final Object o1, final Object o2) { + return ((File) o1).getName().compareTo(((File) o2).getName()); + } + }); + + writeFilteredSources("Source Files", + "cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx", + basePath, sortedSources, content); + + writeFilteredSources("Header Files", "h;hpp;hxx;hm;inl;inc;xsd", + basePath, sortedSources, content); + + writeFilteredSources("Resource Files", + "rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx", + basePath, sortedSources, content); + + content.endElement(null, "Files", "Files"); + content.startElement(null, "Globals", "Globals", emptyAttrs); + content.endElement(null, "Globals", "Globals"); + content.endElement(null, "VisualStudioProject", "VisualStudioProject"); + content.endDocument(); + } + + /** + * Writes a cluster of source files to the project. + * + * @param name name of filter + * @param filter file extensions + * @param basePath base path for files + * @param sortedSources array of source files + * @param content generated project + * @throws SAXException if invalid content + */ + private void writeFilteredSources(final String name, final String filter, + final String basePath, + final File[] sortedSources, + final ContentHandler content) + throws SAXException { + AttributesImpl filterAttrs = new AttributesImpl(); + filterAttrs.addAttribute(null, "Name", "Name", "#PCDATA", name); + filterAttrs.addAttribute(null, "Filter", "Filter", "#PCDATA", filter); + content.startElement(null, "Filter", "Filter", filterAttrs); + + + AttributesImpl fileAttrs = new AttributesImpl(); + fileAttrs.addAttribute(null, "RelativePath", "RelativePath", + "#PCDATA", ""); + + + for (int i = 0; i < sortedSources.length; i++) { + if (isGroupMember(filter, sortedSources[i])) { + String relativePath = CUtil.getRelativePath(basePath, + sortedSources[i]); + fileAttrs.setValue(0, relativePath); + content.startElement(null, "File", "File", fileAttrs); + content.endElement(null, "File", "File"); + } + } + content.endElement(null, "Filter", "Filter"); + + } + + /** + * Returns true if the file has an extension that + * appears in the group filter. + * + * @param filter String group filter + * @param candidate File file + * @return boolean true if member of group + */ + private boolean isGroupMember(final String filter, final File candidate) { + String fileName = candidate.getName(); + int lastDot = fileName.lastIndexOf('.'); + if (lastDot >= 0 && lastDot < fileName.length() - 1) { + String extension = + ";" + fileName.substring(lastDot + 1).toLowerCase() + ";"; + String semiFilter = ";" + filter + ";"; + return semiFilter.indexOf(extension) >= 0; + } + return false; + } + + + /** + * Adds an non-namespace-qualified attribute to attribute list. + * @param attributes list of attributes. + * @param attrName attribute name, may not be null. + * @param attrValue attribute value, if null attribute is not added. + */ + private static void addAttribute(final AttributesImpl attributes, + final String attrName, + final String attrValue) { + if (attrName == null) { + throw new IllegalArgumentException("attrName"); + } + if (attrValue != null) { + attributes.addAttribute(null, attrName, attrName, + "#PCDATA", attrValue); + } + } + + /** + * Gets the first recognized compiler from the + * compilation targets. + * @param targets compilation targets + * @return representative (hopefully) compiler configuration + */ + private CommandLineCompilerConfiguration + getBaseCompilerConfiguration(final Hashtable targets) { + // + // get the first target and assume that it is representative + // + Iterator targetIter = targets.values().iterator(); + while (targetIter.hasNext()) { + TargetInfo targetInfo = (TargetInfo) targetIter.next(); + ProcessorConfiguration config = targetInfo.getConfiguration(); + // + // for the first cl compiler + // + if (config instanceof CommandLineCompilerConfiguration) { + CommandLineCompilerConfiguration compilerConfig = + (CommandLineCompilerConfiguration) config; + if (compilerConfig.getCompiler() + instanceof DevStudioCCompiler) { + return compilerConfig; + } + } + } + return null; + } +} + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/devstudio/package.html b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/package.html new file mode 100644 index 0000000..46a31b4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/devstudio/package.html @@ -0,0 +1,27 @@ + + + + + + + +Adapters for Microsoft tools. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.java new file mode 100644 index 0000000..2e8d4af --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractArLibrarian.java @@ -0,0 +1,107 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +import org.apache.tools.ant.BuildException; +/** + * Adapter for the "ar" tool + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public abstract class AbstractArLibrarian extends CommandLineLinker { + private/* final */ + String outputPrefix; + protected AbstractArLibrarian(String command, String identificationArg, + String[] inputExtensions, String[] ignoredExtensions, + String outputPrefix, String outputExtension, boolean isLibtool, + AbstractArLibrarian libtoolLibrarian) { + super(command, identificationArg, inputExtensions, ignoredExtensions, + outputExtension, isLibtool, libtoolLibrarian); + this.outputPrefix = outputPrefix; + } + public void addBase(long base, Vector args) { + } + public void addFixed(Boolean fixed, Vector args) { + } + public void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + } + public void addIncremental(boolean incremental, Vector args) { + } + public void addMap(boolean map, Vector args) { + } + public void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + public String getCommandFileSwitch(String commandFile) { + return null; + } + public File[] getLibraryPath() { + return new File[0]; + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return new String[0]; + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + String[] baseNames = super.getOutputFileNames(baseName, versionInfo); + if (outputPrefix.length() > 0) { + for(int i = 0; i < baseNames.length; i++) { + baseNames[i] = outputPrefix + baseNames[i]; + } + } + return baseNames; + } + public String[] getOutputFileSwitch(String outputFile) { + return GccProcessor.getOutputFileSwitch("rvs", outputFile); + } + public boolean isCaseSensitive() { + return true; + } + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + // + // if there is an existing library then + // we must delete it before executing "ar" + if (outputFile.exists()) { + if (!outputFile.delete()) { + throw new BuildException("Unable to delete " + + outputFile.getAbsolutePath()); + } + } + // + // delegate to CommandLineLinker + // + super.link(task, outputFile, sourceFiles, config); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java new file mode 100644 index 0000000..75ddcc7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/AbstractLdLinker.java @@ -0,0 +1,339 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Abstract adapter for ld-like linkers + * + * @author Curt Arnold + */ +public abstract class AbstractLdLinker extends CommandLineLinker { + private String outputPrefix; + protected AbstractLdLinker(String command, String identifierArg, + String[] extensions, String[] ignoredExtensions, + String outputPrefix, String outputSuffix, boolean isLibtool, + AbstractLdLinker libtoolLinker) { + super(command, identifierArg, extensions, ignoredExtensions, + outputSuffix, isLibtool, libtoolLinker); + this.outputPrefix = outputPrefix; + } + public void addBase(long base, Vector args) { + if (base >= 0) { + args.addElement("--image-base"); + args.addElement(Long.toHexString(base)); + } + } + public void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (debug) { + args.addElement("-g"); + } + if (isDarwin()) { + if (linkType.isPluginModule()) { + args.addElement("-bundle"); + } else { + if (linkType.isSharedLibrary()) { + args.addElement("-prebind"); + args.addElement("-dynamiclib"); + } + } + } else { + if (linkType.isStaticRuntime()) { + args.addElement("-static"); + } + if (linkType.isPluginModule()) { + args.addElement("-shared"); + } else { + if (linkType.isSharedLibrary()) { + args.addElement("-shared"); + } + } + } + } + public void addIncremental(boolean incremental, Vector args) { + if (incremental) { + args.addElement("-i"); + } + } + protected int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + Vector libnames = new Vector(); + super.addLibrarySets(task, libsets, preargs, midargs, endargs); + LibraryTypeEnum previousLibraryType = null; + for (int i = 0; i < libsets.length; i++) { + LibrarySet set = libsets[i]; + File libdir = set.getDir(null); + String[] libs = set.getLibs(); + if (libdir != null) { + String relPath = libdir.getAbsolutePath(); + File outputFile = task.getOutfile(); + if (outputFile != null && outputFile.getParentFile() != null) { + relPath = CUtil.getRelativePath( + outputFile.getParentFile().getAbsolutePath(), libdir); + } + if (set.getType() != null && + "framework".equals(set.getType().getValue()) && + isDarwin()) { + endargs.addElement("-F" + relPath); + } else { + endargs.addElement("-L" + relPath); + } + } + // + // if there has been a change of library type + // + if (set.getType() != previousLibraryType) { + if (set.getType() != null && "static".equals(set.getType().getValue())) { + endargs.addElement(getStaticLibFlag()); + previousLibraryType = set.getType(); + } else { + if (set.getType() == null || + !"framework".equals(set.getType().getValue()) || + !isDarwin()) { + endargs.addElement(getDynamicLibFlag()); + previousLibraryType = set.getType(); + } + } + } + StringBuffer buf = new StringBuffer("-l"); + if (set.getType() != null && + "framework".equals(set.getType().getValue()) && + isDarwin()) { + buf.setLength(0); + buf.append("-framework "); + } + int initialLength = buf.length(); + for (int j = 0; j < libs.length; j++) { + // + // reset the buffer to just "-l" + // + buf.setLength(initialLength); + // + // add the library name + buf.append(libs[j]); + libnames.addElement(libs[j]); + // + // add the argument to the list + endargs.addElement(buf.toString()); + } + } + String rc[] = new String[libnames.size()]; + for (int i = 0; i < libnames.size(); i++) { + rc[i] = (String) libnames.elementAt(i); + } + return rc; + } + public void addMap(boolean map, Vector args) { + if (map) { + args.addElement("-M"); + } + } + public void addStack(int stack, Vector args) { + if (stack > 0) { + args.addElement("--stack"); + args.addElement(Integer.toString(stack)); + } + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + if (entry != null) { + args.addElement("-e"); + args.addElement(entry); + } + } + + public String getCommandFileSwitch(String commandFile) { + throw new IllegalStateException("ld does not support command files"); + } + /** + * Returns library path. + * + */ + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("LIB", ":"); + } + public String getLibraryKey(File libfile) { + String libname = libfile.getName(); + int lastDot = libname.lastIndexOf('.'); + if (lastDot >= 0) { + return libname.substring(0, lastDot); + } + return libname; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + return new File[0]; + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + int patternCount = libnames.length; + if (libType == null) { + patternCount *= 2; + } + String[] patterns = new String[patternCount]; + int offset = 0; + if (libType == null || "static".equals(libType.getValue())) { + offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + } + if (libType != null && "framework".equals(libType.getValue()) && isDarwin()) { + for(int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(libnames[i]); + buf.append(".framework/"); + buf.append(libnames[i]); + patterns[offset++] = buf.toString(); + } + } else { + if (libType == null || !"static".equals(libType.getValue())) { + if (isHPUX()) { + offset = addLibraryPatterns(libnames, buf, "lib", ".sl", patterns, + offset); + } else { + offset = addLibraryPatterns(libnames, buf, "lib", ".so", patterns, + offset); + } + } + } + return patterns; + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + String[] baseNames = super.getOutputFileNames(baseName, versionInfo); + if (outputPrefix.length() > 0) { + for(int i = 0; i < baseNames.length; i++) { + baseNames[i] = outputPrefix + baseNames[i]; + } + } + return baseNames; + } + public String[] getOutputFileSwitch(String outputFile) { + return GccProcessor.getOutputFileSwitch("-o", outputFile); + } + + public boolean isCaseSensitive() { + return true; + } + protected boolean isHPUX() { + String osname = System.getProperty("os.name").toLowerCase(); + if (osname.indexOf("hp") >= 0 && osname.indexOf("ux") >= 0) { + return true; + } + return false; + } + /** + * Prepares argument list for exec command. Will return null if command + * line would exceed allowable command line buffer. + * + * @param outputFile + * linker output file + * @param sourceFiles + * linker input files (.obj, .o, .res) + * @param config + * linker configuration + * @return arguments for runTask + */ + public String[] prepareArguments(CCTask task, String outputDir, + String outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) { + // + // need to suppress sources that correspond to + // library set entries since they are already + // in the argument list + String[] libnames = config.getLibraryNames(); + if (libnames == null || libnames.length == 0) { + return super.prepareArguments(task, outputDir, outputFile, + sourceFiles, config); + } + // + // + // null out any sources that correspond to library names + // + String[] localSources = (String[]) sourceFiles.clone(); + int extra = 0; + for (int i = 0; i < libnames.length; i++) { + String libname = libnames[i]; + for (int j = 0; j < localSources.length; j++) { + if (localSources[j] != null + && localSources[j].indexOf(libname) > 0 + && localSources[j].indexOf("lib") > 0) { + String filename = new File(localSources[j]).getName(); + if (filename.startsWith("lib") + && filename.substring(3).startsWith(libname)) { + String extension = filename + .substring(libname.length() + 3); + if (extension.equals(".a") || extension.equals(".so") + || extension.equals(".sl")) { + localSources[j] = null; + extra++; + } + } + } + } + } + if (extra == 0) { + return super.prepareArguments(task, outputDir, outputFile, + sourceFiles, config); + } + String[] finalSources = new String[localSources.length - extra]; + int index = 0; + for (int i = 0; i < localSources.length; i++) { + if (localSources[i] != null) { + finalSources[index++] = localSources[i]; + } + } + return super.prepareArguments(task, outputDir, outputFile, + finalSources, config); + } + + protected String getDynamicLibFlag() { + return "-Bdynamic"; + } + + protected String getStaticLibFlag() { + return "-Bstatic"; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java new file mode 100644 index 0000000..999ccf7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCCompiler.java @@ -0,0 +1,242 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * Adapter for the GCC C/C++ compiler + * + * @author Adam Murdoch + */ +public final class GccCCompiler extends GccCompatibleCCompiler { + private final static String[] sourceExtensions = new String[]{".c", /* C */ + ".cc", /* C++ */ + ".cpp", /* C++ */ + ".cxx", /* C++ */ + ".c++", /* C++ */ + ".i", /* preprocessed C */ + ".ii", /* preprocessed C++ */ + ".f", /* FORTRAN */ + ".for", /* FORTRAN */ + ".m", /* Objective-C */ + ".mm", /* Objected-C++ */ + ".s" /* Assembly */ + }; + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private static final GccCCompiler cppInstance = new GccCCompiler("c++", + sourceExtensions, headerExtensions, false, + new GccCCompiler("c++", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler g77Instance = new GccCCompiler("g77", + sourceExtensions, headerExtensions, false, + new GccCCompiler("g77", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler gppInstance = new GccCCompiler("g++", + sourceExtensions, headerExtensions, false, + new GccCCompiler("g++", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler instance = new GccCCompiler("gcc", + sourceExtensions, headerExtensions, false, + new GccCCompiler("gcc", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + /** + * Gets c++ adapter + */ + public static GccCCompiler getCppInstance() { + return cppInstance; + } + /** + * Gets g77 adapter + */ + public static GccCCompiler getG77Instance() { + return g77Instance; + } + /** + * Gets gpp adapter + */ + public static GccCCompiler getGppInstance() { + return gppInstance; + } + /** + * Gets gcc adapter + */ + public static GccCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + private boolean isPICMeaningful = true; + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + private GccCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions, boolean isLibtool, + GccCCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(command, null, sourceExtensions, headerExtensions, isLibtool, + libtoolCompiler, newEnvironment, env); + isPICMeaningful = System.getProperty("os.name").indexOf("Windows") < 0; + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + super.addImpliedArgs(args, debug, multithreaded, + exceptions, linkType, rtti, optimization); + if (isPICMeaningful && linkType.isSharedLibrary()) { + args.addElement("-fPIC"); + } + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new GccCCompiler(getCommand(), this.getSourceExtensions(), + this.getHeaderExtensions(), this.getLibtool(), + (GccCCompiler) this.getLibtoolCompiler(), newEnvironment, + env); + } + return this; + } + /** + * Create parser to determine dependencies. + * + * Will create appropriate parser (C++, FORTRAN) based on file extension. + * + */ + protected Parser createParser(File source) { + if (source != null) { + String sourceName = source.getName(); + int lastDot = sourceName.lastIndexOf('.'); + if (lastDot >= 0 && lastDot + 1 < sourceName.length()) { + char afterDot = sourceName.charAt(lastDot + 1); + if (afterDot == 'f' || afterDot == 'F') { + return new FortranParser(); + } + } + } + return new CParser(); + } + public File[] getEnvironmentIncludePath() { + if (includePath == null) { + // + // construct default include path from machine id and version id + // + String[] defaultInclude = new String[1]; + StringBuffer buf = new StringBuffer("/lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + buf.append("/include"); + defaultInclude[0] = buf.toString(); + // + // read specs file and look for -istart and -idirafter + // + String[] specs = GccProcessor.getSpecs(); + String[][] optionValues = GccProcessor.parseSpecs(specs, "*cpp:", + new String[]{"-isystem ", "-idirafter "}); + // + // if no entries were found, then use a default path + // + if (optionValues[0].length == 0 && optionValues[1].length == 0) { + optionValues[0] = new String[]{"/usr/local/include", + "/usr/include", "/usr/include/win32api"}; + } + // + // remove mingw entries. + // For MinGW compiles this will mean the + // location of the sys includes will be + // wrong in dependencies.xml + // but that should have no significant effect + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j].indexOf("mingw") > 0) { + optionValues[i][j] = null; + } + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(optionValues[0]); + GccProcessor.convertCygwinFilenames(optionValues[1]); + GccProcessor.convertCygwinFilenames(defaultInclude); + } + int count = CUtil.checkDirectoryArray(optionValues[0]); + count += CUtil.checkDirectoryArray(optionValues[1]); + count += CUtil.checkDirectoryArray(defaultInclude); + includePath = new File[count]; + int index = 0; + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j] != null) { + includePath[index++] = new File(optionValues[i][j]); + } + } + } + for (int i = 0; i < defaultInclude.length; i++) { + if (defaultInclude[i] != null) { + includePath[index++] = new File(defaultInclude[i]); + } + } + } + return (File[]) includePath.clone(); + } + public String getIdentifier() throws BuildException { + if (identifier == null) { + StringBuffer buf; + if (getLibtool()) { + buf = new StringBuffer("libtool "); + } else { + buf = new StringBuffer(' '); + } + buf.append(getCommand()); + buf.append(' '); + buf.append(GccProcessor.getVersion()); + buf.append(' '); + buf.append(GccProcessor.getMachine()); + identifier = buf.toString(); + } + return identifier; + } + public Linker getLinker(LinkType linkType) { + return GccLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.java new file mode 100644 index 0000000..0485fba --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccCompatibleCCompiler.java @@ -0,0 +1,146 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * Abstract base class for compilers that attempt to be command line compatible + * with GCC + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public abstract class GccCompatibleCCompiler extends CommandLineCCompiler { + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private final static String[] sourceExtensions = new String[]{".c", ".cc", + ".cpp", ".cxx", ".c++", ".i", ".f", ".for"}; + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + protected GccCompatibleCCompiler(String command, String identifierArg, + boolean libtool, GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + libtool ? ".fo" : ".o", libtool, libtoolCompiler, + newEnvironment, env); + } + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + protected GccCompatibleCCompiler(String command, String identifierArg, + String[] sourceExtensions, String[] headerExtensions, + boolean libtool, GccCompatibleCCompiler libtoolCompiler, + boolean newEnvironment, Environment env) { + super(command, identifierArg, sourceExtensions, headerExtensions, + libtool ? ".fo" : ".o", libtool, libtoolCompiler, + newEnvironment, env); + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + // + // -fPIC is too much trouble + // users have to manually add it for + // operating systems that make sense + // + args.addElement("-c"); + if (debug) { + args.addElement("-g"); + } else { + if (optimization != null) { + if (optimization.isSize()) { + args.addElement("-Os"); + } else if (optimization.isSpeed()) { + if ("full".equals(optimization.getValue())) { + args.addElement("-O2"); + } else { + if ("speed".equals(optimization.getValue())) { + args.addElement("-O1"); + } else { + args.addElement("-O3"); + } + } + } + } + } + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + if (rtti != null && !rtti.booleanValue()) { + args.addElement("-fno-rtti"); + } + + } + /** + * Adds an include path to the command. + */ + public void addIncludePath(String path, Vector cmd) { + cmd.addElement("-I" + path); + } + public void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("-w"); + break; + case 5 : + args.addElement("-Werror"); + /* nobreak */ + case 4 : + args.addElement("-W"); + /* nobreak */ + case 3 : + args.addElement("-Wall"); + break; + } + } + public void getDefineSwitch(StringBuffer buffer, String define, String value) { + buffer.append("-D"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ":"); + } + public String getIncludeDirSwitch(String includeDir) { + return "-I" + includeDir; + } + public void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("-U"); + buffer.append(define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.java new file mode 100644 index 0000000..0c6ae4b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLibrarian.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * Adapter for the 'ar' archiver + * + * @author Adam Murdoch + */ +public final class GccLibrarian extends AbstractArLibrarian { + private static String[] objFileExtensions = new String[]{".o"}; + private static GccLibrarian instance = new GccLibrarian("ar", + objFileExtensions, false, new GccLibrarian("ar", objFileExtensions, + true, null)); + public static GccLibrarian getInstance() { + return instance; + } + private GccLibrarian(String command, String[] inputExtensions, + boolean isLibtool, GccLibrarian libtoolLibrarian) { + super(command, "V", inputExtensions, new String[0], "lib", ".a", + isLibtool, libtoolLibrarian); + } + public Linker getLinker(LinkType type) { + return GccLinker.getInstance().getLinker(type); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java new file mode 100644 index 0000000..c4720c8 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccLinker.java @@ -0,0 +1,210 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * Adapter for the GCC linker + * + * @author Adam Murdoch + */ +public class GccLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", + "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", + "-static", "-shared", "-symbolic", "-Xlinker", + "--export-all-symbols", "-static-libgcc",}; + private static final GccLinker dllLinker = new GccLinker("gcc", objFiles, + discardFiles, "lib", ".so", false, new GccLinker("gcc", objFiles, + discardFiles, "lib", ".so", true, null)); + private static final GccLinker instance = new GccLinker("gcc", objFiles, + discardFiles, "", "", false, null); + private static final GccLinker machBundleLinker = new GccLinker("gcc", + objFiles, discardFiles, "lib", ".bundle", false, null); + private static final GccLinker machDllLinker = new GccLinker("gcc", + objFiles, discardFiles, "lib", ".dylib", false, null); + public static GccLinker getInstance() { + return instance; + } + private File[] libDirs; + protected GccLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GccLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + } + /** + * Allows drived linker to decorate linker option. Override by GccLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + case 'v' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + // + // construct gcc lib path from machine and version + // + StringBuffer buf = new StringBuffer("/lib/gcc-lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + // + // build default path from gcc and system /lib and /lib/w32api + // + String[] impliedLibPath = new String[]{buf.toString(), + "/lib/w32api", "/lib"}; + // + // read gcc specs file for other library paths + // + String[] specs = GccProcessor.getSpecs(); + String[][] libpaths = GccProcessor.parseSpecs(specs, "*link:", + new String[]{"%q"}); + String[] libpath; + if (libpaths[0].length > 0) { + libpath = new String[libpaths[0].length + 3]; + int i = 0; + for (; i < libpaths[0].length; i++) { + libpath[i] = libpaths[0][i]; + } + libpath[i++] = buf.toString(); + libpath[i++] = "/lib/w32api"; + libpath[i++] = "/lib"; + } else { + // + // if a failure to find any matches then + // use some default values for lib path entries + libpath = new String[]{"/usr/local/lib/mingw", + "/usr/local/lib", "/usr/lib/w32api", "/usr/lib/mingw", + "/usr/lib", buf.toString(), "/lib/w32api", "/lib"}; + } + for (int i = 0; i < libpath.length; i++) { + if (libpath[i].indexOf("mingw") >= 0) { + libpath[i] = null; + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(libpath); + } + // + // check that remaining entries are actual directories + // + int count = CUtil.checkDirectoryArray(libpath); + // + // populate return array with remaining entries + // + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; i++) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (isDarwin()) { + return machBundleLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (isDarwin()) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccProcessor.java new file mode 100644 index 0000000..988848d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GccProcessor.java @@ -0,0 +1,299 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; +/** + * A add-in class for Gcc processors + * + * + */ +public class GccProcessor { + // the results from gcc -dumpmachine + private static String machine; + private static String[] specs; + // the results from gcc -dumpversion + private static String version; + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + /** + * Converts absolute Cygwin file or directory names to the corresponding + * Win32 name. + * + * @param names + * array of names, some elements may be null, will be changed in + * place. + */ + public static void convertCygwinFilenames(String[] names) { + if (names == null) { + throw new NullPointerException("names"); + } + File gccDir = CUtil.getExecutableLocation("gcc.exe"); + if (gccDir != null) { + String prefix = gccDir.getAbsolutePath() + "/.."; + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < names.length; i++) { + String name = names[i]; + if (name != null && name.length() > 1 && name.charAt(0) == '/') { + buf.setLength(0); + buf.append(prefix); + buf.append(name); + names[i] = buf.toString(); + } + } + } + } + public static String[] getLibraryPatterns(String[] libnames) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length * 2]; + int offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + if (isHPUX()) { + offset = addLibraryPatterns(libnames, buf, "lib", ".sl", patterns, + offset); + } else { + offset = addLibraryPatterns(libnames, buf, "lib", ".so", patterns, + offset); + } + return patterns; + } + public static String getMachine() { + if (machine == null) { + String[] args = new String[]{"gcc", "-dumpmachine"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + machine = "nomachine"; + } else { + machine = cmdout[0]; + } + } + return machine; + } + public static String[] getOutputFileSwitch(String letter, String outputFile) { + StringBuffer buf = new StringBuffer(); + if (outputFile.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(outputFile.replace('\\', '/')); + buf.append('"'); + } else { + buf.append(outputFile.replace('\\', '/')); + } + String[] retval = new String[]{letter, buf.toString()}; + return retval; + } + /** + * Returns the contents of the gcc specs file. + * + * The implementation locates gcc.exe in the executable path and then + * builds a relative path name from the results of -dumpmachine and + * -dumpversion. Attempts to use gcc -dumpspecs to provide this information + * resulted in stalling on the Execute.run + * + * @return contents of the specs file + */ + public static String[] getSpecs() { + if (specs == null) { + File gccParent = CUtil.getExecutableLocation("gcc.exe"); + if (gccParent != null) { + // + // build a relative path like + // ../lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs + // + StringBuffer buf = new StringBuffer("../lib/gcc-lib/"); + buf.append(getMachine()); + buf.append('/'); + buf.append(getVersion()); + buf.append("/specs"); + // + // resolve it relative to the location of gcc.exe + // + String relativePath = buf.toString(); + File specsFile = new File(gccParent, relativePath); + // + // found the specs file + // + try { + // + // read the lines in the file + // + BufferedReader reader = new BufferedReader(new FileReader( + specsFile)); + Vector lines = new Vector(100); + String line = reader.readLine(); + while (line != null) { + lines.addElement(line); + line = reader.readLine(); + } + specs = new String[lines.size()]; + lines.copyInto(specs); + } catch (IOException ex) { + } + } + } + if (specs == null) { + specs = new String[0]; + } + return specs; + } + public static String getVersion() { + if (version == null) { + String[] args = new String[]{"gcc", "-dumpversion"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + version = "noversion"; + } else { + version = cmdout[0]; + } + } + return version; + } + public static boolean isCaseSensitive() { + return true; + } + /** + * Determines if task is running with cygwin + * + * @return true if cygwin was detected + */ + public static boolean isCygwin() { + return getMachine().indexOf("cygwin") > 0; + } + private static boolean isHPUX() { + String osname = System.getProperty("os.name").toLowerCase(); + if (osname.indexOf("hp") >= 0 && osname.indexOf("ux") >= 0) { + return true; + } + return false; + } + /** + * + * Parses the results of the specs file for a specific processor and + * options + * + * @param specsContent + * Contents of specs file as returned from getSpecs + * @param specSectionStart + * start of spec section, for example "*cpp:" + * @param options + * command line switches such as "-istart" + */ + public static String[][] parseSpecs(String[] specsContent, + String specSectionStart, String[] options) { + if (specsContent == null) { + throw new NullPointerException("specsContent"); + } + if (specSectionStart == null) { + throw new NullPointerException("specSectionStart"); + } + if (options == null) { + throw new NullPointerException("option"); + } + String[][] optionValues = new String[options.length][]; + StringBuffer optionValue = new StringBuffer(40); + for (int i = 0; i < specsContent.length; i++) { + String specLine = specsContent[i]; + // + // if start of section then start paying attention + // + if (specLine.startsWith(specSectionStart)) { + Vector[] optionVectors = new Vector[options.length]; + for (int j = 0; j < options.length; j++) { + optionVectors[j] = new Vector(10); + } + // + // go to next line and examine contents + // and repeat until end of file + // + for (i++; i < specsContent.length; i++) { + specLine = specsContent[i]; + for (int j = 0; j < options.length; j++) { + int optionStart = specLine.indexOf(options[j]); + while (optionStart >= 0) { + optionValue.setLength(0); + // + // walk rest of line looking for first non + // whitespace + // and then next space + boolean hasNonBlank = false; + int k = optionStart + options[j].length(); + for (; k < specLine.length(); k++) { + // + // either a blank or a "}" (close of + // conditional) + // section will end the path + // + if (specLine.charAt(k) == ' ' + || specLine.charAt(k) == '}') { + if (hasNonBlank) { + break; + } + } else { + hasNonBlank = true; + optionValue.append(specLine.charAt(k)); + } + } + // + // transition back to whitespace + // value is over, add it to vector + if (hasNonBlank) { + optionVectors[j].addElement(optionValue + .toString()); + } + // + // find next occurance on line + // + optionStart = specLine.indexOf(options[j], k); + } + } + } + // + // copy vectors over to option arrays + // + for (int j = 0; j < options.length; j++) { + optionValues[j] = new String[optionVectors[j].size()]; + optionVectors[j].copyInto(optionValues[j]); + } + } + } + // + // fill in any missing option values with + // a zero-length string array + for (int i = 0; i < optionValues.length; i++) { + String[] zeroLenArray = new String[0]; + if (optionValues[i] == null) { + optionValues[i] = zeroLenArray; + } + } + return optionValues; + } + private GccProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java new file mode 100644 index 0000000..f3bc174 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/GppLinker.java @@ -0,0 +1,203 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +/** + * Adapter for the g++ variant of the GCC linker + * + * @author Stephen M. Webb + */ +public class GppLinker extends AbstractLdLinker { + protected static final String[] discardFiles = new String[0]; + protected static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final GppLinker dllLinker = new GppLinker("gcc", objFiles, + discardFiles, "lib", ".so", false, new GppLinker("gcc", objFiles, + discardFiles, "lib", ".so", true, null)); + private final static String libPrefix = "libraries: ="; + protected static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", "-dylib", + "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib", + "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"}; + private static final GppLinker instance = new GppLinker("gcc", objFiles, + discardFiles, "", "", false, null); + private static final GppLinker machDllLinker = new GppLinker("gcc", + objFiles, discardFiles, "lib", ".dylib", false, null); + private static final GppLinker machPluginLinker = new GppLinker("gcc", + objFiles, discardFiles, "lib", ".bundle", false, null); + public static GppLinker getInstance() { + return instance; + } + private File[] libDirs; + private String runtimeLibrary; + protected GppLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GppLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + if (linkType.isStaticRuntime()) { + String[] cmdin = new String[]{"g++", "-print-file-name=libstdc++.a"}; + String[] cmdout = CaptureStreamHandler.run(cmdin); + if (cmdout.length > 0) { + runtimeLibrary = cmdout[0]; + } else { + runtimeLibrary = null; + } + } else { + runtimeLibrary = "-lstdc++"; + } + } + public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + String[] rs = super.addLibrarySets(task, libsets, preargs, midargs, + endargs); + if (runtimeLibrary != null) { + endargs.addElement(runtimeLibrary); + } + return rs; + } + /** + * Allows drived linker to decorate linker option. Override by GppLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + Vector dirs = new Vector(); + // Ask GCC where it will look for its libraries. + String[] args = new String[]{"g++", "-print-search-dirs"}; + String[] cmdout = CaptureStreamHandler.run(args); + for (int i = 0; i < cmdout.length; ++i) { + int prefixIndex = cmdout[i].indexOf(libPrefix); + if (prefixIndex >= 0) { + // Special case DOS-type GCCs like MinGW or Cygwin + int s = prefixIndex + libPrefix.length(); + int t = cmdout[i].indexOf(';', s); + while (t > 0) { + dirs.addElement(cmdout[i].substring(s, t)); + s = t + 1; + t = cmdout[i].indexOf(';', s); + } + dirs.addElement(cmdout[i].substring(s)); + ++i; + for (; i < cmdout.length; ++i) { + dirs.addElement(cmdout[i]); + } + } + } + // Eliminate all but actual directories. + String[] libpath = new String[dirs.size()]; + dirs.copyInto(libpath); + int count = CUtil.checkDirectoryArray(libpath); + // Build return array. + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; ++i) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machPluginLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/LdLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/LdLinker.java new file mode 100644 index 0000000..2104e34 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/LdLinker.java @@ -0,0 +1,57 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +/** + * Adapter for the 'ld' linker + * + * @author Curt Arnold + */ +public final class LdLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final LdLinker dllLinker = new LdLinker("ld", objFiles, + discardFiles, "lib", ".so", false, new LdLinker("ld", objFiles, + discardFiles, "lib", ".so", true, null)); + private static final LdLinker instance = new LdLinker("ld", objFiles, + discardFiles, "", "", false, null); + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + public static LdLinker getInstance() { + return instance; + } + private File[] libDirs; + private LdLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, LdLinker libtoolLinker) { + super(command, "-version", extensions, ignoredExtensions, outputPrefix, + outputSuffix, isLibtool, libtoolLinker); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java new file mode 100644 index 0000000..a617024 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java @@ -0,0 +1,121 @@ +/* + * + * Copyright 2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the GNU windres resource compiler. + * + * @author Curt Arnold + */ +public final class WindresResourceCompiler extends CommandLineCompiler { + private static final WindresResourceCompiler instance = new WindresResourceCompiler( + false, null); + public static WindresResourceCompiler getInstance() { + return instance; + } + private WindresResourceCompiler(boolean newEnvironment, Environment env) { + super("windres", null, new String[]{".rc"}, new String[]{".h", ".hpp", + ".inl"}, ".o", false, null, newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + if (debug) { + args.addElement("-D_DEBUG"); + } else { + args.addElement("-DNDEBUG"); + } + } + protected void addWarningSwitch(Vector args, int level) { + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new WindresResourceCompiler(newEnvironment, env); + } + return this; + } + /** + * The include parser for C will work just fine, but we didn't want to + * inherit from CommandLineCCompiler + */ + protected Parser createParser(File source) { + return new CParser(); + } + protected int getArgumentCountPerInputFile() { + return 2; + } + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-D"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + protected File[] getEnvironmentIncludePath() { + return new File[0]; + } + protected String getIncludeDirSwitch(String includeDir) { + return "-I" + includeDir; + } + protected String getInputFileArgument(File outputDir, String filename, + int index) { + if (index == 0) { + String outputFileName = getOutputFileNames(filename, null)[0]; + return "-o" + outputFileName; + } + return filename; + } + public Linker getLinker(LinkType type) { + return GccLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } + protected int getMaximumInputFilesPerCommand() { + return 1; + } + protected int getTotalArgumentLengthForInputFile(File outputDir, + String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 0); + String arg2 = getInputFileArgument(outputDir, inputFile, 1); + return arg1.length() + arg2.length() + 2; + } + protected void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("-U"); + buffer.append(define); + } + public String getIdentifier() { + return "GNU windres"; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.java new file mode 100644 index 0000000..86a8ac7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccCCompiler.java @@ -0,0 +1,272 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.CompilerParam; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * Adapter for the GCC C/C++ compiler + * + * @author Adam Murdoch + */ +public final class GccCCompiler extends GccCompatibleCCompiler { + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private final static String[] sourceExtensions = new String[]{".c", /* C */ + ".cc", /* C++ */ + ".cpp", /* C++ */ + ".cxx", /* C++ */ + ".c++", /* C++ */ + ".i", /* preprocessed C */ + ".ii", /* preprocessed C++ */ + ".f", /* FORTRAN */ + ".for", /* FORTRAN */ + ".m", /* Objective-C */ + ".mm", /* Objected-C++ */ + ".s" /* Assembly */ + }; + private static final GccCCompiler cppInstance = new GccCCompiler("c++", + sourceExtensions, headerExtensions, false, + new GccCCompiler("c++", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler g77Instance = new GccCCompiler("g77", + sourceExtensions, headerExtensions, false, + new GccCCompiler("g77", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler gppInstance = new GccCCompiler("g++", + sourceExtensions, headerExtensions, false, + new GccCCompiler("g++", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + private static final GccCCompiler instance = new GccCCompiler("gcc", + sourceExtensions, headerExtensions, false, + new GccCCompiler("gcc", sourceExtensions, headerExtensions, true, + null, false, null), false, null); + /** + * Gets c++ adapter + */ + public static GccCCompiler getCppInstance() { + return cppInstance; + } + /** + * Gets g77 adapter + */ + public static GccCCompiler getG77Instance() { + return g77Instance; + } + /** + * Gets gpp adapter + */ + public static GccCCompiler getGppInstance() { + return gppInstance; + } + /** + * Gets gcc adapter + */ + public static GccCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + private boolean isPICMeaningful = true; + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + private GccCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions, boolean isLibtool, + GccCCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(command, null, sourceExtensions, headerExtensions, isLibtool, + libtoolCompiler, newEnvironment, env); + isPICMeaningful = System.getProperty("os.name").indexOf("Windows") < 0; + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + super.addImpliedArgs(args, debug, multithreaded, + exceptions, linkType, rtti, optimization); + if (isPICMeaningful && linkType.isSharedLibrary()) { + args.addElement("-fPIC"); + } + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new GccCCompiler(getCommand(), this.getSourceExtensions(), + this.getHeaderExtensions(), this.getLibtool(), + (GccCCompiler) this.getLibtoolCompiler(), newEnvironment, + env); + } + return this; + } + protected Object clone() throws CloneNotSupportedException { + GccCCompiler clone = (GccCCompiler) super.clone(); + return clone; + } + public void compile(CCTask task, File outputDir, String[] sourceFiles, + String[] args, String[] endArgs, boolean relentless, + CommandLineCompilerConfiguration config, ProgressMonitor monitor) + throws BuildException { + try { + GccCCompiler clone = (GccCCompiler) this.clone(); + CompilerParam param = config.getParam("target"); + if (param != null) + clone.setCommand(param.getValue() + "-" + this.getCommand()); + clone.supercompile(task, outputDir, sourceFiles, args, endArgs, + relentless, config, monitor); + } catch (CloneNotSupportedException e) { + supercompile(task, outputDir, sourceFiles, args, endArgs, + relentless, config, monitor); + } + } + /** + * Create parser to determine dependencies. + * + * Will create appropriate parser (C++, FORTRAN) based on file extension. + * + */ + protected Parser createParser(File source) { + if (source != null) { + String sourceName = source.getName(); + int lastDot = sourceName.lastIndexOf('.'); + if (lastDot >= 0 && lastDot + 1 < sourceName.length()) { + char afterDot = sourceName.charAt(lastDot + 1); + if (afterDot == 'f' || afterDot == 'F') { + return new FortranParser(); + } + } + } + return new CParser(); + } + public File[] getEnvironmentIncludePath() { + if (includePath == null) { + // + // construct default include path from machine id and version id + // + String[] defaultInclude = new String[1]; + StringBuffer buf = new StringBuffer("/lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + buf.append("/include"); + defaultInclude[0] = buf.toString(); + // + // read specs file and look for -istart and -idirafter + // + String[] specs = GccProcessor.getSpecs(); + String[][] optionValues = GccProcessor.parseSpecs(specs, "*cpp:", + new String[]{"-isystem ", "-idirafter "}); + // + // if no entries were found, then use a default path + // + if (optionValues[0].length == 0 && optionValues[1].length == 0) { + optionValues[0] = new String[]{"/usr/local/include", + "/usr/include", "/usr/include/win32api"}; + } + // + // remove mingw entries. + // For MinGW compiles this will mean the + // location of the sys includes will be + // wrong in dependencies.xml + // but that should have no significant effect + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j].indexOf("mingw") > 0) { + optionValues[i][j] = null; + } + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(optionValues[0]); + GccProcessor.convertCygwinFilenames(optionValues[1]); + GccProcessor.convertCygwinFilenames(defaultInclude); + } + int count = CUtil.checkDirectoryArray(optionValues[0]); + count += CUtil.checkDirectoryArray(optionValues[1]); + count += CUtil.checkDirectoryArray(defaultInclude); + includePath = new File[count]; + int index = 0; + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j] != null) { + includePath[index++] = new File(optionValues[i][j]); + } + } + } + for (int i = 0; i < defaultInclude.length; i++) { + if (defaultInclude[i] != null) { + includePath[index++] = new File(defaultInclude[i]); + } + } + } + return (File[]) includePath.clone(); + } + public String getIdentifier() throws BuildException { + if (identifier == null) { + StringBuffer buf; + if (getLibtool()) { + buf = new StringBuffer("libtool "); + } else { + buf = new StringBuffer(' '); + } + buf.append(getCommand()); + buf.append(' '); + buf.append(GccProcessor.getVersion()); + buf.append(' '); + buf.append(GccProcessor.getMachine()); + identifier = buf.toString(); + } + return identifier; + } + public Linker getLinker(LinkType linkType) { + return GccLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + private void supercompile(CCTask task, File outputDir, + String[] sourceFiles, String[] args, String[] endArgs, + boolean relentless, CommandLineCompilerConfiguration config, + ProgressMonitor monitor) throws BuildException { + super.compile(task, outputDir, sourceFiles, args, endArgs, relentless, + config, monitor); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.java new file mode 100644 index 0000000..c9d28d9 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLibrarian.java @@ -0,0 +1,69 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian; + +import org.apache.tools.ant.BuildException; +/** + * Adapter for the 'ar' archiver + * + * @author Adam Murdoch + */ +public final class GccLibrarian extends AbstractArLibrarian { + private static String[] objFileExtensions = new String[]{".o"}; + private static GccLibrarian instance = new GccLibrarian("ar", + objFileExtensions, false, new GccLibrarian("ar", objFileExtensions, + true, null)); + public static GccLibrarian getInstance() { + return instance; + } + private GccLibrarian(String command, String[] inputExtensions, + boolean isLibtool, GccLibrarian libtoolLibrarian) { + super(command, "V", inputExtensions, new String[0], "lib", ".a", + isLibtool, libtoolLibrarian); + } + protected Object clone() throws CloneNotSupportedException { + GccLibrarian clone = (GccLibrarian) super.clone(); + return clone; + } + public Linker getLinker(LinkType type) { + return GccLinker.getInstance().getLinker(type); + } + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + try { + GccLibrarian clone = (GccLibrarian) this.clone(); + LinkerParam param = config.getParam("target"); + if (param != null) + clone.setCommand(param.getValue() + "-" + this.getCommand()); + clone.superlink(task, outputFile, sourceFiles, config); + } catch (CloneNotSupportedException e) { + superlink(task, outputFile, sourceFiles, config); + } + } + private void superlink(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + super.link(task, outputFile, sourceFiles, config); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.java new file mode 100644 index 0000000..4347211 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccLinker.java @@ -0,0 +1,234 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.File; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import org.apache.tools.ant.BuildException; +/** + * Adapter for the GCC linker + * + * @author Adam Murdoch + */ +public class GccLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final GccLinker dllLinker = new GccLinker("gcc", objFiles, + discardFiles, "lib", ".so", false, new GccLinker("gcc", objFiles, + discardFiles, "lib", ".so", true, null)); + private static final GccLinker instance = new GccLinker("gcc", objFiles, + discardFiles, "", "", false, null); + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", + "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", + "-static", "-shared", "-symbolic", "-Xlinker", + "--export-all-symbols", "-static-libgcc",}; + private static final GccLinker machBundleLinker = new GccLinker("gcc", + objFiles, discardFiles, "lib", ".bundle", false, null); + private static final GccLinker machDllLinker = new GccLinker("gcc", + objFiles, discardFiles, "lib", ".dylib", false, null); + public static GccLinker getInstance() { + return instance; + } + private File[] libDirs; + protected GccLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GccLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + } + protected Object clone() throws CloneNotSupportedException { + GccLinker clone = (GccLinker) super.clone(); + return clone; + } + /** + * Allows drived linker to decorate linker option. Override by GccLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + case 'v' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + // + // construct gcc lib path from machine and version + // + StringBuffer buf = new StringBuffer("/lib/gcc-lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + // + // build default path from gcc and system /lib and /lib/w32api + // + String[] impliedLibPath = new String[]{buf.toString(), + "/lib/w32api", "/lib"}; + // + // read gcc specs file for other library paths + // + String[] specs = GccProcessor.getSpecs(); + String[][] libpaths = GccProcessor.parseSpecs(specs, "*link:", + new String[]{"%q"}); + String[] libpath; + if (libpaths[0].length > 0) { + libpath = new String[libpaths[0].length + 3]; + int i = 0; + for (; i < libpaths[0].length; i++) { + libpath[i] = libpaths[0][i]; + } + libpath[i++] = buf.toString(); + libpath[i++] = "/lib/w32api"; + libpath[i++] = "/lib"; + } else { + // + // if a failure to find any matches then + // use some default values for lib path entries + libpath = new String[]{"/usr/local/lib/mingw", + "/usr/local/lib", "/usr/lib/w32api", "/usr/lib/mingw", + "/usr/lib", buf.toString(), "/lib/w32api", "/lib"}; + } + for (int i = 0; i < libpath.length; i++) { + if (libpath[i].indexOf("mingw") >= 0) { + libpath[i] = null; + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(libpath); + } + // + // check that remaining entries are actual directories + // + int count = CUtil.checkDirectoryArray(libpath); + // + // populate return array with remaining entries + // + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; i++) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (isDarwin()) { + return machBundleLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (isDarwin()) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + try { + GccLinker clone = (GccLinker) this.clone(); + LinkerParam param = config.getParam("target"); + if (param != null) + clone.setCommand(param.getValue() + "-" + this.getCommand()); + clone.superlink(task, outputFile, sourceFiles, config); + } catch (CloneNotSupportedException e) { + superlink(task, outputFile, sourceFiles, config); + } + } + private void superlink(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + super.link(task, outputFile, sourceFiles, config); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.java new file mode 100644 index 0000000..728cd47 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GccProcessor.java @@ -0,0 +1,288 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; + +/** + * A add-in class for Gcc processors + * + * + */ +public class GccProcessor { + // the results from gcc -dumpmachine + private static String machine; + private static String[] specs; + // the results from gcc -dumpversion + private static String version; + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + /** + * Converts absolute Cygwin file or directory names to the corresponding + * Win32 name. + * + * @param names + * array of names, some elements may be null, will be changed in + * place. + */ + public static void convertCygwinFilenames(String[] names) { + if (names == null) { + throw new NullPointerException("names"); + } + File gccDir = CUtil.getExecutableLocation("gcc.exe"); + if (gccDir != null) { + String prefix = gccDir.getAbsolutePath() + "/.."; + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < names.length; i++) { + String name = names[i]; + if (name != null && name.length() > 1 && name.charAt(0) == '/') { + buf.setLength(0); + buf.append(prefix); + buf.append(name); + names[i] = buf.toString(); + } + } + } + } + + public static String getMachine() { + if (machine == null) { + String[] args = new String[]{"gcc", "-dumpmachine"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + machine = "nomachine"; + } else { + machine = cmdout[0]; + } + } + return machine; + } + public static String[] getOutputFileSwitch(String letter, String outputFile) { + StringBuffer buf = new StringBuffer(); + if (outputFile.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(outputFile.replace('\\', '/')); + buf.append('"'); + } else { + buf.append(outputFile.replace('\\', '/')); + } + String[] retval = new String[]{letter, buf.toString()}; + return retval; + } + /** + * Returns the contents of the gcc specs file. + * + * The implementation locates gcc.exe in the executable path and then + * builds a relative path name from the results of -dumpmachine and + * -dumpversion. Attempts to use gcc -dumpspecs to provide this information + * resulted in stalling on the Execute.run + * + * @return contents of the specs file + */ + public static String[] getSpecs() { + if (specs == null) { + File gccParent = CUtil.getExecutableLocation("gcc.exe"); + if (gccParent != null) { + // + // build a relative path like + // ../lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs + // + StringBuffer buf = new StringBuffer("../lib/gcc-lib/"); + buf.append(getMachine()); + buf.append('/'); + buf.append(getVersion()); + buf.append("/specs"); + // + // resolve it relative to the location of gcc.exe + // + String relativePath = buf.toString(); + File specsFile = new File(gccParent, relativePath); + // + // found the specs file + // + try { + // + // read the lines in the file + // + BufferedReader reader = new BufferedReader(new FileReader( + specsFile)); + Vector lines = new Vector(100); + String line = reader.readLine(); + while (line != null) { + lines.addElement(line); + line = reader.readLine(); + } + specs = new String[lines.size()]; + lines.copyInto(specs); + } catch (IOException ex) { + } + } + } + if (specs == null) { + specs = new String[0]; + } + return specs; + } + public static String getVersion() { + if (version == null) { + String[] args = new String[]{"gcc", "-dumpversion"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + version = "noversion"; + } else { + version = cmdout[0]; + } + } + return version; + } + public static boolean isCaseSensitive() { + return true; + } + /** + * Determines if task is running with cygwin + * + * @return true if cygwin was detected + */ + public static boolean isCygwin() { + return getMachine().indexOf("cygwin") > 0; + } + private static boolean isHPUX() { + String osname = System.getProperty("os.name").toLowerCase(); + if (osname.indexOf("hp") >= 0 && osname.indexOf("ux") >= 0) { + return true; + } + return false; + } + /** + * + * Parses the results of the specs file for a specific processor and + * options + * + * @param specsContent + * Contents of specs file as returned from getSpecs + * @param specSectionStart + * start of spec section, for example "*cpp:" + * @param options + * command line switches such as "-istart" + */ + public static String[][] parseSpecs(String[] specsContent, + String specSectionStart, String[] options) { + if (specsContent == null) { + throw new NullPointerException("specsContent"); + } + if (specSectionStart == null) { + throw new NullPointerException("specSectionStart"); + } + if (options == null) { + throw new NullPointerException("option"); + } + String[][] optionValues = new String[options.length][]; + StringBuffer optionValue = new StringBuffer(40); + for (int i = 0; i < specsContent.length; i++) { + String specLine = specsContent[i]; + // + // if start of section then start paying attention + // + if (specLine.startsWith(specSectionStart)) { + Vector[] optionVectors = new Vector[options.length]; + for (int j = 0; j < options.length; j++) { + optionVectors[j] = new Vector(10); + } + // + // go to next line and examine contents + // and repeat until end of file + // + for (i++; i < specsContent.length; i++) { + specLine = specsContent[i]; + for (int j = 0; j < options.length; j++) { + int optionStart = specLine.indexOf(options[j]); + while (optionStart >= 0) { + optionValue.setLength(0); + // + // walk rest of line looking for first non + // whitespace + // and then next space + boolean hasNonBlank = false; + int k = optionStart + options[j].length(); + for (; k < specLine.length(); k++) { + // + // either a blank or a "}" (close of + // conditional) + // section will end the path + // + if (specLine.charAt(k) == ' ' + || specLine.charAt(k) == '}') { + if (hasNonBlank) { + break; + } + } else { + hasNonBlank = true; + optionValue.append(specLine.charAt(k)); + } + } + // + // transition back to whitespace + // value is over, add it to vector + if (hasNonBlank) { + optionVectors[j].addElement(optionValue + .toString()); + } + // + // find next occurance on line + // + optionStart = specLine.indexOf(options[j], k); + } + } + } + // + // copy vectors over to option arrays + // + for (int j = 0; j < options.length; j++) { + optionValues[j] = new String[optionVectors[j].size()]; + optionVectors[j].copyInto(optionValues[j]); + } + } + } + // + // fill in any missing option values with + // a zero-length string array + for (int i = 0; i < optionValues.length; i++) { + String[] zeroLenArray = new String[0]; + if (optionValues[i] == null) { + optionValues[i] = zeroLenArray; + } + } + return optionValues; + } + private GccProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.java new file mode 100644 index 0000000..b332c64 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/GppLinker.java @@ -0,0 +1,228 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; + +import org.apache.tools.ant.BuildException; +/** + * Adapter for the g++ variant of the GCC linker + * + * @author Stephen M. Webb + */ +public class GppLinker extends AbstractLdLinker { + protected static final String[] discardFiles = new String[0]; + protected static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final GppLinker dllLinker = new GppLinker("gcc", objFiles, + discardFiles, "lib", ".so", false, new GppLinker("gcc", objFiles, + discardFiles, "lib", ".so", true, null)); + private final static String libPrefix = "libraries: ="; + protected static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", "-dylib", + "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib", + "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"}; + private static final GppLinker instance = new GppLinker("gcc", objFiles, + discardFiles, "", "", false, null); + private static final GppLinker machDllLinker = new GppLinker("gcc", + objFiles, discardFiles, "lib", ".dylib", false, null); + private static final GppLinker machPluginLinker = new GppLinker("gcc", + objFiles, discardFiles, "lib", ".bundle", false, null); + public static GppLinker getInstance() { + return instance; + } + private File[] libDirs; + private String runtimeLibrary; + protected GppLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GppLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + if (linkType.isStaticRuntime()) { + String[] cmdin = new String[]{"g++", "-print-file-name=libstdc++.a"}; + String[] cmdout = CaptureStreamHandler.run(cmdin); + if (cmdout.length > 0) { + runtimeLibrary = cmdout[0]; + } else { + runtimeLibrary = null; + } + } else { + runtimeLibrary = "-lstdc++"; + } + } + public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + String[] rs = super.addLibrarySets(task, libsets, preargs, midargs, + endargs); + if (runtimeLibrary != null) { + endargs.addElement(runtimeLibrary); + } + return rs; + } + protected Object clone() throws CloneNotSupportedException { + GppLinker clone = (GppLinker) super.clone(); + return clone; + } + /** + * Allows drived linker to decorate linker option. Override by GppLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + Vector dirs = new Vector(); + // Ask GCC where it will look for its libraries. + String[] args = new String[]{"g++", "-print-search-dirs"}; + String[] cmdout = CaptureStreamHandler.run(args); + for (int i = 0; i < cmdout.length; ++i) { + int prefixIndex = cmdout[i].indexOf(libPrefix); + if (prefixIndex >= 0) { + // Special case DOS-type GCCs like MinGW or Cygwin + int s = prefixIndex + libPrefix.length(); + int t = cmdout[i].indexOf(';', s); + while (t > 0) { + dirs.addElement(cmdout[i].substring(s, t)); + s = t + 1; + t = cmdout[i].indexOf(';', s); + } + dirs.addElement(cmdout[i].substring(s)); + ++i; + for (; i < cmdout.length; ++i) { + dirs.addElement(cmdout[i]); + } + } + } + // Eliminate all but actual directories. + String[] libpath = new String[dirs.size()]; + dirs.copyInto(libpath); + int count = CUtil.checkDirectoryArray(libpath); + // Build return array. + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; ++i) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machPluginLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + try { + GppLinker clone = (GppLinker) this.clone(); + LinkerParam param = config.getParam("target"); + if (param != null) + clone.setCommand(param.getValue() + "-" + this.getCommand()); + clone.superlink(task, outputFile, sourceFiles, config); + } catch (CloneNotSupportedException e) { + superlink(task, outputFile, sourceFiles, config); + } + } + private void superlink(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + super.link(task, outputFile, sourceFiles, config); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.java new file mode 100644 index 0000000..26abf8c --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/LdLinker.java @@ -0,0 +1,83 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.LinkerParam; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; + +import org.apache.tools.ant.BuildException; +/** + * Adapter for the 'ld' linker + * + * @author Curt Arnold + */ +public final class LdLinker extends AbstractLdLinker { + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final String[] discardFiles = new String[0]; + private static final LdLinker dllLinker = new LdLinker("ld", objFiles, + discardFiles, "lib", ".so", false, new LdLinker("ld", objFiles, + discardFiles, "lib", ".so", true, null)); + private static final LdLinker instance = new LdLinker("ld", objFiles, + discardFiles, "", "", false, null); + public static LdLinker getInstance() { + return instance; + } + private File[] libDirs; + private LdLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, LdLinker libtoolLinker) { + super(command, "-version", extensions, ignoredExtensions, outputPrefix, + outputSuffix, isLibtool, libtoolLinker); + } + protected Object clone() throws CloneNotSupportedException { + LdLinker clone = (LdLinker) super.clone(); + return clone; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + try { + LdLinker clone = (LdLinker) this.clone(); + LinkerParam param = config.getParam("target"); + if (param != null) + clone.setCommand(param.getValue() + "-" + this.getCommand()); + clone.superlink(task, outputFile, sourceFiles, config); + } catch (CloneNotSupportedException e) { + superlink(task, outputFile, sourceFiles, config); + } + } + private void superlink(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + super.link(task, outputFile, sourceFiles, config); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.java new file mode 100644 index 0000000..44dd968 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccCCompiler.java @@ -0,0 +1,244 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +/** + * Adapter for the GCC C/C++ compiler + * + * @author Adam Murdoch + */ +public final class GccCCompiler extends GccCompatibleCCompiler { + private final static String[] sourceExtensions = new String[]{".c", /* C */ + ".cc", /* C++ */ + ".cpp", /* C++ */ + ".cxx", /* C++ */ + ".c++", /* C++ */ + ".i", /* preprocessed C */ + ".ii", /* preprocessed C++ */ + ".f", /* FORTRAN */ + ".for", /* FORTRAN */ + ".m", /* Objective-C */ + ".mm", /* Objected-C++ */ + ".s" /* Assembly */ + }; + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + public static final String CMD_PREFIX = "sparc-sun-solaris2-"; + private static final GccCCompiler cppInstance = new GccCCompiler(CMD_PREFIX + + "c++", sourceExtensions, headerExtensions, false, + new GccCCompiler(CMD_PREFIX + "c++", sourceExtensions, + headerExtensions, true, null, false, null), false, null); + private static final GccCCompiler g77Instance = new GccCCompiler(CMD_PREFIX + + "g77", sourceExtensions, headerExtensions, false, + new GccCCompiler(CMD_PREFIX + "g77", sourceExtensions, + headerExtensions, true, null, false, null), false, null); + private static final GccCCompiler gppInstance = new GccCCompiler(CMD_PREFIX + + "g++", sourceExtensions, headerExtensions, false, + new GccCCompiler(CMD_PREFIX + "g++", sourceExtensions, + headerExtensions, true, null, false, null), false, null); + private static final GccCCompiler instance = new GccCCompiler(CMD_PREFIX + + "gcc", sourceExtensions, headerExtensions, false, + new GccCCompiler(CMD_PREFIX + "gcc", sourceExtensions, + headerExtensions, true, null, false, null), false, null); + /** + * Gets c++ adapter + */ + public static GccCCompiler getCppInstance() { + return cppInstance; + } + /** + * Gets g77 adapter + */ + public static GccCCompiler getG77Instance() { + return g77Instance; + } + /** + * Gets gpp adapter + */ + public static GccCCompiler getGppInstance() { + return gppInstance; + } + /** + * Gets gcc adapter + */ + public static GccCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + private boolean isPICMeaningful = true; + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + private GccCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions, boolean isLibtool, + GccCCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super(command, null, sourceExtensions, headerExtensions, isLibtool, + libtoolCompiler, newEnvironment, env); + isPICMeaningful = System.getProperty("os.name").indexOf("Windows") < 0; + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + super.addImpliedArgs(args, debug, multithreaded, + exceptions, linkType, rtti, optimization); + if (isPICMeaningful && linkType.isSharedLibrary()) { + args.addElement("-fPIC"); + } + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new GccCCompiler(getCommand(), this.getSourceExtensions(), + this.getHeaderExtensions(), this.getLibtool(), + (GccCCompiler) this.getLibtoolCompiler(), newEnvironment, + env); + } + return this; + } + /** + * Create parser to determine dependencies. + * + * Will create appropriate parser (C++, FORTRAN) based on file extension. + * + */ + protected Parser createParser(File source) { + if (source != null) { + String sourceName = source.getName(); + int lastDot = sourceName.lastIndexOf('.'); + if (lastDot >= 0 && lastDot + 1 < sourceName.length()) { + char afterDot = sourceName.charAt(lastDot + 1); + if (afterDot == 'f' || afterDot == 'F') { + return new FortranParser(); + } + } + } + return new CParser(); + } + public File[] getEnvironmentIncludePath() { + if (includePath == null) { + // + // construct default include path from machine id and version id + // + String[] defaultInclude = new String[1]; + StringBuffer buf = new StringBuffer("/lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + buf.append("/include"); + defaultInclude[0] = buf.toString(); + // + // read specs file and look for -istart and -idirafter + // + String[] specs = GccProcessor.getSpecs(); + String[][] optionValues = GccProcessor.parseSpecs(specs, "*cpp:", + new String[]{"-isystem ", "-idirafter "}); + // + // if no entries were found, then use a default path + // + if (optionValues[0].length == 0 && optionValues[1].length == 0) { + optionValues[0] = new String[]{"/usr/local/include", + "/usr/include", "/usr/include/win32api"}; + } + // + // remove mingw entries. + // For MinGW compiles this will mean the + // location of the sys includes will be + // wrong in dependencies.xml + // but that should have no significant effect + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j].indexOf("mingw") > 0) { + optionValues[i][j] = null; + } + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(optionValues[0]); + GccProcessor.convertCygwinFilenames(optionValues[1]); + GccProcessor.convertCygwinFilenames(defaultInclude); + } + int count = CUtil.checkDirectoryArray(optionValues[0]); + count += CUtil.checkDirectoryArray(optionValues[1]); + count += CUtil.checkDirectoryArray(defaultInclude); + includePath = new File[count]; + int index = 0; + for (int i = 0; i < optionValues.length; i++) { + for (int j = 0; j < optionValues[i].length; j++) { + if (optionValues[i][j] != null) { + includePath[index++] = new File(optionValues[i][j]); + } + } + } + for (int i = 0; i < defaultInclude.length; i++) { + if (defaultInclude[i] != null) { + includePath[index++] = new File(defaultInclude[i]); + } + } + } + return (File[]) includePath.clone(); + } + public String getIdentifier() throws BuildException { + if (identifier == null) { + StringBuffer buf; + if (getLibtool()) { + buf = new StringBuffer("libtool "); + } else { + buf = new StringBuffer(' '); + } + buf.append(getCommand()); + buf.append(' '); + buf.append(GccProcessor.getVersion()); + buf.append(' '); + buf.append(GccProcessor.getMachine()); + identifier = buf.toString(); + } + return identifier; + } + public Linker getLinker(LinkType linkType) { + return GccLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.java new file mode 100644 index 0000000..779fb3d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLibrarian.java @@ -0,0 +1,43 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractArLibrarian; +/** + * Adapter for the 'ar' archiver + * + * @author Adam Murdoch + */ +public final class GccLibrarian extends AbstractArLibrarian { + private static String[] objFileExtensions = new String[]{".o"}; + private static GccLibrarian instance = new GccLibrarian( + GccCCompiler.CMD_PREFIX + "ar", objFileExtensions, false, + new GccLibrarian(GccCCompiler.CMD_PREFIX + "ar", objFileExtensions, + true, null)); + public static GccLibrarian getInstance() { + return instance; + } + private GccLibrarian(String command, String[] inputExtensions, + boolean isLibtool, GccLibrarian libtoolLibrarian) { + super(command, "V", inputExtensions, new String[0], "lib", ".a", + isLibtool, libtoolLibrarian); + } + public Linker getLinker(LinkType type) { + return GccLinker.getInstance().getLinker(type); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.java new file mode 100644 index 0000000..d7dd3db --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccLinker.java @@ -0,0 +1,215 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +/** + * Adapter for the GCC linker + * + * @author Adam Murdoch + */ +public class GccLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", + "-dynamiclib", "-nostartfiles", "-nostdlib", "-prebind", "-s", + "-static", "-shared", "-symbolic", "-Xlinker", + "--export-all-symbols", "-static-libgcc",}; + private static final GccLinker dllLinker = new GccLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".so", false, new GccLinker(GccCCompiler.CMD_PREFIX + "gcc", + objFiles, discardFiles, "lib", ".so", true, null)); + private static final GccLinker instance = new GccLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "", "", + false, null); + private static final GccLinker machBundleLinker = new GccLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".bundle", false, null); + private static final GccLinker machDllLinker = new GccLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".dylib", false, null); + public static GccLinker getInstance() { + return instance; + } + private File[] libDirs; + protected GccLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GccLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + } + /** + * Allows drived linker to decorate linker option. Override by GccLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + case 'v' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + // + // construct gcc lib path from machine and version + // + StringBuffer buf = new StringBuffer("/lib/gcc-lib/"); + buf.append(GccProcessor.getMachine()); + buf.append('/'); + buf.append(GccProcessor.getVersion()); + // + // build default path from gcc and system /lib and /lib/w32api + // + String[] impliedLibPath = new String[]{buf.toString(), + "/lib/w32api", "/lib"}; + // + // read gcc specs file for other library paths + // + String[] specs = GccProcessor.getSpecs(); + String[][] libpaths = GccProcessor.parseSpecs(specs, "*link:", + new String[]{"%q"}); + String[] libpath; + if (libpaths[0].length > 0) { + libpath = new String[libpaths[0].length + 3]; + int i = 0; + for (; i < libpaths[0].length; i++) { + libpath[i] = libpaths[0][i]; + } + libpath[i++] = buf.toString(); + libpath[i++] = "/lib/w32api"; + libpath[i++] = "/lib"; + } else { + // + // if a failure to find any matches then + // use some default values for lib path entries + libpath = new String[]{"/usr/local/lib/mingw", + "/usr/local/lib", "/usr/lib/w32api", "/usr/lib/mingw", + "/usr/lib", buf.toString(), "/lib/w32api", "/lib"}; + } + for (int i = 0; i < libpath.length; i++) { + if (libpath[i].indexOf("mingw") >= 0) { + libpath[i] = null; + } + } + // + // if cygwin then + // we have to prepend location of gcc32 + // and .. to start of absolute filenames to + // have something that will exist in the + // windows filesystem + if (GccProcessor.isCygwin()) { + GccProcessor.convertCygwinFilenames(libpath); + } + // + // check that remaining entries are actual directories + // + int count = CUtil.checkDirectoryArray(libpath); + // + // populate return array with remaining entries + // + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; i++) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (isDarwin()) { + return machBundleLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (isDarwin()) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.java new file mode 100644 index 0000000..bbcd13d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GccProcessor.java @@ -0,0 +1,305 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * A add-in class for Gcc processors + * + * + */ +public class GccProcessor { + // the results from gcc -dumpmachine + private static String machine; + private static String[] specs; + // the results from gcc -dumpversion + private static String version; + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + /** + * Converts absolute Cygwin file or directory names to the corresponding + * Win32 name. + * + * @param names + * array of names, some elements may be null, will be changed in + * place. + */ + public static void convertCygwinFilenames(String[] names) { + if (names == null) { + throw new NullPointerException("names"); + } + File gccDir = CUtil.getExecutableLocation(GccCCompiler.CMD_PREFIX + + "gcc.exe"); + if (gccDir != null) { + String prefix = gccDir.getAbsolutePath() + "/.."; + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < names.length; i++) { + String name = names[i]; + if (name != null && name.length() > 1 && name.charAt(0) == '/') { + buf.setLength(0); + buf.append(prefix); + buf.append(name); + names[i] = buf.toString(); + } + } + } + } + public static String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length * 2]; + int offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + if (isHPUX()) { + offset = addLibraryPatterns(libnames, buf, "lib", ".sl", patterns, + offset); + } else { + offset = addLibraryPatterns(libnames, buf, "lib", ".so", patterns, + offset); + } + return patterns; + } + public static String getMachine() { + if (machine == null) { + String[] args = new String[]{GccCCompiler.CMD_PREFIX + "gcc", + "-dumpmachine"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + machine = "nomachine"; + } else { + machine = cmdout[0]; + } + } + return machine; + } + public static String[] getOutputFileSwitch(String letter, String outputFile) { + StringBuffer buf = new StringBuffer(); + if (outputFile.indexOf(' ') >= 0) { + buf.append('"'); + buf.append(outputFile.replace('\\', '/')); + buf.append('"'); + } else { + buf.append(outputFile.replace('\\', '/')); + } + String[] retval = new String[]{letter, buf.toString()}; + return retval; + } + /** + * Returns the contents of the gcc specs file. + * + * The implementation locates gcc.exe in the executable path and then + * builds a relative path name from the results of -dumpmachine and + * -dumpversion. Attempts to use gcc -dumpspecs to provide this information + * resulted in stalling on the Execute.run + * + * @return contents of the specs file + */ + public static String[] getSpecs() { + if (specs == null) { + File gccParent = CUtil + .getExecutableLocation(GccCCompiler.CMD_PREFIX + "gcc.exe"); + if (gccParent != null) { + // + // build a relative path like + // ../lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs + // + StringBuffer buf = new StringBuffer("../lib/gcc-lib/"); + buf.append(getMachine()); + buf.append('/'); + buf.append(getVersion()); + buf.append("/specs"); + // + // resolve it relative to the location of gcc.exe + // + String relativePath = buf.toString(); + File specsFile = new File(gccParent, relativePath); + // + // found the specs file + // + try { + // + // read the lines in the file + // + BufferedReader reader = new BufferedReader(new FileReader( + specsFile)); + Vector lines = new Vector(100); + String line = reader.readLine(); + while (line != null) { + lines.addElement(line); + line = reader.readLine(); + } + specs = new String[lines.size()]; + lines.copyInto(specs); + } catch (IOException ex) { + } + } + } + if (specs == null) { + specs = new String[0]; + } + return specs; + } + public static String getVersion() { + if (version == null) { + String[] args = new String[]{GccCCompiler.CMD_PREFIX + "gcc", + "-dumpversion"}; + String[] cmdout = CaptureStreamHandler.run(args); + if (cmdout.length == 0) { + version = "noversion"; + } else { + version = cmdout[0]; + } + } + return version; + } + public static boolean isCaseSensitive() { + return true; + } + /** + * Determines if task is running with cygwin + * + * @return true if cygwin was detected + */ + public static boolean isCygwin() { + return getMachine().indexOf("cygwin") > 0; + } + private static boolean isHPUX() { + String osname = System.getProperty("os.name").toLowerCase(); + if (osname.indexOf("hp") >= 0 && osname.indexOf("ux") >= 0) { + return true; + } + return false; + } + /** + * + * Parses the results of the specs file for a specific processor and + * options + * + * @param specsContent + * Contents of specs file as returned from getSpecs + * @param specSectionStart + * start of spec section, for example "*cpp:" + * @param options + * command line switches such as "-istart" + */ + public static String[][] parseSpecs(String[] specsContent, + String specSectionStart, String[] options) { + if (specsContent == null) { + throw new NullPointerException("specsContent"); + } + if (specSectionStart == null) { + throw new NullPointerException("specSectionStart"); + } + if (options == null) { + throw new NullPointerException("option"); + } + String[][] optionValues = new String[options.length][]; + StringBuffer optionValue = new StringBuffer(40); + for (int i = 0; i < specsContent.length; i++) { + String specLine = specsContent[i]; + // + // if start of section then start paying attention + // + if (specLine.startsWith(specSectionStart)) { + Vector[] optionVectors = new Vector[options.length]; + for (int j = 0; j < options.length; j++) { + optionVectors[j] = new Vector(10); + } + // + // go to next line and examine contents + // and repeat until end of file + // + for (i++; i < specsContent.length; i++) { + specLine = specsContent[i]; + for (int j = 0; j < options.length; j++) { + int optionStart = specLine.indexOf(options[j]); + while (optionStart >= 0) { + optionValue.setLength(0); + // + // walk rest of line looking for first non + // whitespace + // and then next space + boolean hasNonBlank = false; + int k = optionStart + options[j].length(); + for (; k < specLine.length(); k++) { + // + // either a blank or a "}" (close of + // conditional) + // section will end the path + // + if (specLine.charAt(k) == ' ' + || specLine.charAt(k) == '}') { + if (hasNonBlank) { + break; + } + } else { + hasNonBlank = true; + optionValue.append(specLine.charAt(k)); + } + } + // + // transition back to whitespace + // value is over, add it to vector + if (hasNonBlank) { + optionVectors[j].addElement(optionValue + .toString()); + } + // + // find next occurance on line + // + optionStart = specLine.indexOf(options[j], k); + } + } + } + // + // copy vectors over to option arrays + // + for (int j = 0; j < options.length; j++) { + optionValues[j] = new String[optionVectors[j].size()]; + optionVectors[j].copyInto(optionValues[j]); + } + } + } + // + // fill in any missing option values with + // a zero-length string array + for (int i = 0; i < optionValues.length; i++) { + String[] zeroLenArray = new String[0]; + if (optionValues[i] == null) { + optionValues[i] = zeroLenArray; + } + } + return optionValues; + } + private GccProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.java new file mode 100644 index 0000000..45bbea9 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/GppLinker.java @@ -0,0 +1,210 @@ +/* + * + * Copyright 2003-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CaptureStreamHandler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +/** + * Adapter for the g++ variant of the GCC linker + * + * @author Stephen M. Webb + */ +public class GppLinker extends AbstractLdLinker { + protected static final String[] discardFiles = new String[0]; + protected static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private final static String libPrefix = "libraries: ="; + protected static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static String[] linkerOptions = new String[]{"-bundle", "-dylib", + "-dynamic", "-dynamiclib", "-nostartfiles", "-nostdlib", + "-prebind", "-s", "-static", "-shared", "-symbolic", "-Xlinker"}; + private static final GppLinker dllLinker = new GppLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".so", false, new GppLinker(GccCCompiler.CMD_PREFIX + "gcc", + objFiles, discardFiles, "lib", ".so", true, null)); + private static final GppLinker instance = new GppLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "", "", + false, null); + private static final GppLinker machDllLinker = new GppLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".dylib", false, null); + private static final GppLinker machPluginLinker = new GppLinker( + GccCCompiler.CMD_PREFIX + "gcc", objFiles, discardFiles, "lib", + ".bundle", false, null); + public static GppLinker getInstance() { + return instance; + } + private File[] libDirs; + private String runtimeLibrary; + protected GppLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, GppLinker libtoolLinker) { + super(command, "-dumpversion", extensions, ignoredExtensions, + outputPrefix, outputSuffix, isLibtool, libtoolLinker); + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + super.addImpliedArgs(debug, linkType, args); + if (getIdentifier().indexOf("mingw") >= 0) { + if (linkType.isSubsystemConsole()) { + args.addElement("-mconsole"); + } + if (linkType.isSubsystemGUI()) { + args.addElement("-mwindows"); + } + } + if (linkType.isStaticRuntime()) { + String[] cmdin = new String[]{GccCCompiler.CMD_PREFIX + "g++", + "-print-file-name=libstdc++.a"}; + String[] cmdout = CaptureStreamHandler.run(cmdin); + if (cmdout.length > 0) { + runtimeLibrary = cmdout[0]; + } else { + runtimeLibrary = null; + } + } else { + runtimeLibrary = "-lstdc++"; + } + } + public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + String[] rs = super.addLibrarySets(task, libsets, preargs, midargs, + endargs); + if (runtimeLibrary != null) { + endargs.addElement(runtimeLibrary); + } + return rs; + } + /** + * Allows drived linker to decorate linker option. Override by GppLinker to + * prepend a "-Wl," to pass option to through gcc to linker. + * + * @param buf + * buffer that may be used and abused in the decoration process, + * must not be null. + * @param arg + * linker argument + */ + public String decorateLinkerOption(StringBuffer buf, String arg) { + String decoratedArg = arg; + if (arg.length() > 1 && arg.charAt(0) == '-') { + switch (arg.charAt(1)) { + // + // passed automatically by GCC + // + case 'g' : + case 'f' : + case 'F' : + /* Darwin */ + case 'm' : + case 'O' : + case 'W' : + case 'l' : + case 'L' : + case 'u' : + break; + default : + boolean known = false; + for (int i = 0; i < linkerOptions.length; i++) { + if (linkerOptions[i].equals(arg)) { + known = true; + break; + } + } + if (!known) { + buf.setLength(0); + buf.append("-Wl,"); + buf.append(arg); + decoratedArg = buf.toString(); + } + break; + } + } + return decoratedArg; + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + Vector dirs = new Vector(); + // Ask GCC where it will look for its libraries. + String[] args = new String[]{GccCCompiler.CMD_PREFIX + "g++", + "-print-search-dirs"}; + String[] cmdout = CaptureStreamHandler.run(args); + for (int i = 0; i < cmdout.length; ++i) { + int prefixIndex = cmdout[i].indexOf(libPrefix); + if (prefixIndex >= 0) { + // Special case DOS-type GCCs like MinGW or Cygwin + int s = prefixIndex + libPrefix.length(); + int t = cmdout[i].indexOf(';', s); + while (t > 0) { + dirs.addElement(cmdout[i].substring(s, t)); + s = t + 1; + t = cmdout[i].indexOf(';', s); + } + dirs.addElement(cmdout[i].substring(s)); + ++i; + for (; i < cmdout.length; ++i) { + dirs.addElement(cmdout[i]); + } + } + } + // Eliminate all but actual directories. + String[] libpath = new String[dirs.size()]; + dirs.copyInto(libpath); + int count = CUtil.checkDirectoryArray(libpath); + // Build return array. + libDirs = new File[count]; + int index = 0; + for (int i = 0; i < libpath.length; ++i) { + if (libpath[i] != null) { + libDirs[index++] = new File(libpath[i]); + } + } + } + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isPluginModule()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machPluginLinker; + } else { + return dllLinker; + } + } + if (type.isSharedLibrary()) { + if (GccProcessor.getMachine().indexOf("darwin") >= 0) { + return machDllLinker; + } else { + return dllLinker; + } + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.java new file mode 100644 index 0000000..0cc5fbf --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/cross/sparc_sun_solaris2/LdLinker.java @@ -0,0 +1,60 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2; +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +/** + * Adapter for the 'ld' linker + * + * @author Curt Arnold + */ +public final class LdLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final LdLinker dllLinker = new LdLinker( + GccCCompiler.CMD_PREFIX + "ld", objFiles, discardFiles, "lib", + ".so", false, new LdLinker(GccCCompiler.CMD_PREFIX + "ld", + objFiles, discardFiles, "lib", ".so", true, null)); + private static final LdLinker instance = new LdLinker( + GccCCompiler.CMD_PREFIX + "ld", objFiles, discardFiles, "", "", + false, null); + public static LdLinker getInstance() { + return instance; + } + private File[] libDirs; + private LdLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, + String outputSuffix, boolean isLibtool, LdLinker libtoolLinker) { + super(command, "-version", extensions, ignoredExtensions, outputPrefix, + outputSuffix, isLibtool, libtoolLinker); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCCompiler.java new file mode 100644 index 0000000..b978f67 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCCompiler.java @@ -0,0 +1,116 @@ +/* + * + * Copyright 2001-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.hp; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the HP aC++ C++ compiler + * + * @author Curt Arnold + */ +public final class aCCCompiler extends GccCompatibleCCompiler { + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private final static String[] sourceExtensions = new String[]{".c", ".cc", + ".cxx", ".cpp", ".c++", ".i", ".s"}; + + private static final aCCCompiler instance = new aCCCompiler("aCC", + sourceExtensions, headerExtensions, false, null); + /** + * Gets singleton instance of this class + */ + public static aCCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + /** + * Private constructor. Use GccCCompiler.getInstance() to get singleton + * instance of this class. + */ + private aCCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions, boolean newEnvironment, + Environment env) { + super(command, "-help", sourceExtensions, headerExtensions, false, + null, newEnvironment, env); + } + public void addImpliedArgs(Vector args, boolean debug, + boolean multithreaded, boolean exceptions, LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("-c"); + if (debug) { + args.addElement("-g"); + } + /* + * if (multithreaded) { args.addElement("-mt"); } + */ + + // + // per patch 1193690 + // + if (linkType.isSharedLibrary() && (! args.contains("+Z"))) { + args.addElement("+z"); + } + } + public void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("-w"); + break; + case 1 : + case 2 : + args.addElement("+w"); + break; + /* + * case 3: case 4: case 5: args.addElement("+w2"); break; + */ + } + } + public File[] getEnvironmentIncludePath() { + if (includePath == null) { + File ccLoc = CUtil.getExecutableLocation("aCC"); + if (ccLoc != null) { + File compilerIncludeDir = new File( + new File(ccLoc, "../include").getAbsolutePath()); + if (compilerIncludeDir.exists()) { + includePath = new File[2]; + includePath[0] = compilerIncludeDir; + } + } + if (includePath == null) { + includePath = new File[1]; + } + includePath[includePath.length - 1] = new File("/usr/include"); + } + return includePath; + } + public Linker getLinker(LinkType linkType) { + return aCCLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCLinker.java new file mode 100644 index 0000000..94f7fc0 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/hp/aCCLinker.java @@ -0,0 +1,100 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.hp; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +/** + * Adapter for Sun (r) Forte(tm) C++ Linker + * + * @author Curt Arnold + */ +public final class aCCLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final aCCLinker arLinker = new aCCLinker("aCC", objFiles, + discardFiles, "", ".a"); + private static final aCCLinker dllLinker = new aCCLinker("aCC", objFiles, + discardFiles, "lib", ".sl"); + private static final aCCLinker instance = new aCCLinker("aCC", objFiles, + discardFiles, "", ""); + public static aCCLinker getInstance() { + return instance; + } + private File[] libDirs; + private aCCLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, String outputSuffix) { + super(command, "-help", extensions, ignoredExtensions, outputPrefix, + outputSuffix, false, null); + } + public void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (debug) { + args.addElement("-g"); + } + /* + * if(linkType.isStaticRuntime()) { args.addElement("-static"); } + */ + if (linkType.isSharedLibrary()) { + args.addElement("-b"); + } + /* + * if (linkType.isStaticLibrary()) { args.addElement("-Wl,-noshared"); } + */ + } + public void addIncremental(boolean incremental, Vector args) { + /* + * if (incremental) { args.addElement("-xidlon"); } else { + * args.addElement("-xidloff"); } + */ + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + File CCloc = CUtil.getExecutableLocation("aCC"); + if (CCloc != null) { + File compilerLib = new File(new File(CCloc, "../lib") + .getAbsolutePath()); + if (compilerLib.exists()) { + libDirs = new File[2]; + libDirs[0] = compilerLib; + } + } + if (libDirs == null) { + libDirs = new File[1]; + } + } + libDirs[libDirs.length - 1] = new File("/usr/lib"); + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return arLinker; + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.java new file mode 100644 index 0000000..781b6de --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeCCompiler.java @@ -0,0 +1,118 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ibm; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the IBM(r) Visual Age(tm) C++ compiler for AIX(tm) + * + * @author Curt Arnold + */ +public final class VisualAgeCCompiler extends GccCompatibleCCompiler { + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private final static String[] sourceExtensions = new String[]{".c", ".cc", + ".cxx", ".cpp", ".i", ".s"}; + + private static final VisualAgeCCompiler instance = new VisualAgeCCompiler( + "xlC", sourceExtensions, headerExtensions, false, null); + /** + * Gets singleton instance of this class + */ + public static VisualAgeCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + /** + * Private constructor. Use getInstance() to get singleton instance of this + * class. + */ + private VisualAgeCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions, boolean newEnvironment, + Environment env) { + super(command, "-help", sourceExtensions, headerExtensions, false, + null, newEnvironment, env); + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("-c"); + if (debug) { + args.addElement("-g"); + } + if (linkType.isSharedLibrary()) { + args.addElement("-fpic"); + } + if (rtti != null) { + if (rtti.booleanValue()) { + args.addElement("-qrtti=all"); + } else { + args.addElement("-qnortti"); + } + } + } + public void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("-w"); + break; + case 1 : + args.addElement("-qflag=s:s"); + break; + case 2 : + args.addElement("-qflag=e:e"); + break; + case 3 : + args.addElement("-qflag=w:w"); + break; + case 4 : + args.addElement("-qflag=i:i"); + break; + case 5 : + args.addElement("-qhalt=w:w"); + break; + } + } + public Linker getLinker(LinkType linkType) { + return VisualAgeLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + /** + * Gets identifier for the compiler. + * + * Initial attempt at extracting version information + * would lock up. Using a stock response. + */ + public String getIdentifier() { + return "VisualAge compiler - unidentified version"; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.java new file mode 100644 index 0000000..59ad6a3 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ibm/VisualAgeLinker.java @@ -0,0 +1,83 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ibm; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import net.sf.antcontrib.cpptasks.gcc.GccLibrarian; +/** + * Adapter for IBM(r) Visual Age(tm) Linker for AIX(tm) + * + * @author Curt Arnold + */ +public final class VisualAgeLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[]{}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final VisualAgeLinker dllLinker = new VisualAgeLinker( + "xlC", objFiles, discardFiles, "lib", ".a"); + private static final VisualAgeLinker instance = new VisualAgeLinker("xlC", + objFiles, discardFiles, "", ""); + public static VisualAgeLinker getInstance() { + return instance; + } + private VisualAgeLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, String outputSuffix) { + // + // just guessing that -? might display something useful + // + super(command, "-?", extensions, ignoredExtensions, outputPrefix, + outputSuffix, false, null); + } + public void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (debug) { + //args.addElement("-g"); + } + if (linkType.isSharedLibrary()) { + args.addElement("-qmkshrobj"); + } + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } + /** + * Gets identifier for the compiler. + * + * Initial attempt at extracting version information + * would lock up. Using a stock response. + */ + public String getIdentifier() { + return "VisualAge linker - unidentified version"; + } + + protected String getDynamicLibFlag() { + return "-bdynamic"; + } + + protected String getStaticLibFlag() { + return "-bstatic"; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/CommentDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/CommentDef.java new file mode 100644 index 0000000..2221aba --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/CommentDef.java @@ -0,0 +1,47 @@ +/* + * + * Copyright 2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ide; + +import org.apache.tools.ant.util.StringUtils; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +/** + * Defines a comment to place in the generated project files. + * + */ +public final class CommentDef { + private String text; + + public CommentDef() { + text = ""; + } + + + public String getText() { + return text; + } + public void addText(final String newText) { + text += newText; + } + + public String toString() { + return text; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/DebugDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/DebugDef.java new file mode 100644 index 0000000..8ddd04e --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/DebugDef.java @@ -0,0 +1,127 @@ +/* +* +* Copyright 2004-2005 The Ant-Contrib project +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +package net.sf.antcontrib.cpptasks.ide; + +import java.io.File; + +import org.apache.tools.ant.types.Commandline; +import org.apache.tools.ant.types.Environment; +import org.apache.tools.ant.types.DataType; + + +/** +* Specifies a debugging configuration for a project. +* +* @author Curt Arnold +*/ +public final class DebugDef + extends DataType { + + /** + * Working directory for debug runs. + */ + private File dir; + /** + * Name of executable. + */ + private String executable; + /** + * Environment used to hold environment variables. + */ + private Environment env = new Environment(); + /** + * Command line used to hold command line arguments. + */ + private Commandline cmdl = new Commandline(); + + /** + * Constructor. + * + */ + public DebugDef() { + } + + + /** + * Set the name of the executable program. + * @param value the name of the executable program + */ + public void setExecutable(final String value) { + this.executable = value; + } + + /** + * Get the name of the executable program. + * @return the name of the executable program, may be null. + */ + public String getExecutable() { + return executable; + } + + /** + * Set the working directory of the process. + * @param d the working directory of the process + */ + public void setDir(final File d) { + this.dir = d; + } + + /** + * Get the working directory of the process. + * @return the working directory of the process, may be null. + */ + public File getDir() { + return dir; + } + + /** + * Add an environment variable. + * + * @param var new environment variable + */ + public void addEnv(final Environment.Variable var) { + env.addVariable(var); + } + + /** + * Get the variable list as an array. + * @return array of key=value assignment strings + */ + public String[] getVariables() { + return env.getVariables(); + } + + + /** + * Adds a command-line argument. + * + * @return new command line argument created + */ + public Commandline.Argument createArg() { + return cmdl.createArgument(); + } + + /** + * Returns all arguments defined by addLine, + * addValue or the argument object. + * @return array of command line arguments, may be zero-length. + */ + public String[] getArguments() { + return cmdl.getArguments(); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/DependencyDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/DependencyDef.java new file mode 100644 index 0000000..a04cad1 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/DependencyDef.java @@ -0,0 +1,77 @@ +/* + * + * Copyright 2004-2006 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ide; + +import org.apache.tools.ant.util.StringUtils; + +import java.io.File; +import java.util.Collections; +import java.util.List; + +/** + * Defines a dependency + * + */ +public final class DependencyDef { + private String id; + private File file; + private String name; + private String depends; + + public DependencyDef() { + } + + + public void setID(final String val) { + id = val; + } + public File getFile() { + return file; + } + public void setFile(final File val) { + file = val; + } + public void setName(final String val) { + name = val; + } + public String getName() { + if (name != null) { + return name; + } else if(file != null) { + return file.getName(); + } + return "null"; + } + public String getID() { + if (id != null) { + return id; + } + return getName(); + } + public String getDepends() { + return depends; + } + public void setDepends(final String val) { + depends = val; + } + public List getDependsList() { + if (depends != null) { + return StringUtils.split(depends, ','); + } + return Collections.EMPTY_LIST; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java new file mode 100644 index 0000000..8883ebb --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectDef.java @@ -0,0 +1,372 @@ +/* + * + * Copyright 2004-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ide; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetInfo; +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.DataType; + +import java.io.File; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.List; + +/** + * Requests the creation of an IDE project file. Experimental. + * + * Implementation status: msdev5, msdev6 and cbuilderx + * generate reasonable project files for simple projects, + * xcode and msdev7 and msdev71 capture source file lists and + * a few settings. + * + * @author Curt Arnold + */ +public final class ProjectDef + extends DataType { + /** + * Name of property that must be present or definition will be ignored. May + * be null. + */ + private String ifProp; + + /** + * Name of property that must be absent or definition will be ignored. May + * be null. + */ + private String unlessProp; + + /** + * Project file name. + */ + private File outFile; + + /** + * Project name. + */ + private String name; + + /** + * Fail on error. + */ + private boolean failOnError = true; + + /** + * Overwrite existing project file. + */ + private boolean overwrite = true; + + /** + * Project writer. + */ + private ProjectWriter projectWriter; + + /** + * Object directory. + * + */ + private File objDir; + + /** + * List of dependency definitions. + */ + private List dependencies = new ArrayList(); + + /** + * List of comments. + */ + private List comments = new ArrayList(); + + /** + * Constructor. + * + */ + public ProjectDef() { + } + + /** + * Set project type. + * + * + * Supported project formats + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+ * + * @param value new value + */ + public void setType(final ProjectWriterEnum value) { + projectWriter = value.getProjectWriter(); + } + + /** + * Sets the name for the generated project file. + * + * @param outfile + * output file name + */ + public void setOutfile(final File outfile) { + // + // if file name was empty, skip link step + // + if (outfile == null || outfile.toString().length() > 0) { + outFile = outfile; + } + } + + /** + * Sets whether a failure to write the project file should cause the + * task to fail. Default is true. + * + * @param value new value + */ + public void setFailonerror(final boolean value) { + failOnError = value; + } + + /** + * Sets whether an existing project file should be overwritten, + * default is true. If false and the project file exists, + * the value of failonerror will determine if the task fails. + * + * @param value new value + */ + public void setOverwrite(final boolean value) { + overwrite = value; + } + + /** + * Gets whether an existing project file should be overwritten, + * default is true. If false and the project file exists, + * the value of failonerror will determine if the task fails. + * + * @return value + */ + public boolean getOverwrite() { + return overwrite; + } + + /** + * Determine if this def should be used. + * + * Definition will be active if the "if" variable (if specified) is set and + * the "unless" variable (if specified) is not set and that all reference + * or extended definitions are active + * + * @return true if processor is active + */ + public boolean isActive() { + Project project = getProject(); + if (!CUtil.isActive(project, ifProp, unlessProp)) { + return false; + } + return true; + } + + /** + * Class name for a user-supplied project writer. Use the "type" + * attribute to specify built-in project writer implementations. + * + * @param className + * full class name + * + */ + public void setClassname(final String className) { + Object proc = null; + try { + Class implClass = ProjectDef.class.getClassLoader().loadClass( + className); + try { + Method getInstance = implClass.getMethod("getInstance", + new Class[0]); + proc = getInstance.invoke(null, new Object[0]); + } catch (Exception ex) { + proc = implClass.newInstance(); + } + } catch (Exception ex) { + throw new BuildException(ex); + } + projectWriter = (ProjectWriter) proc; + } + + /** + * Sets the property name for the 'if' condition. + * + * The configuration will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * name of property + */ + public void setIf(final String propName) { + ifProp = propName; + } + + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the configuration will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(final String propName) { + unlessProp = propName; + } + + /** + * Get name. + * @return String name + */ + public String getName() { + return name; + } + + /** + * Set name. + * @param value String name + */ + public void setName(final String value) { + name = value; + } + + /** + * Executes the task. Compiles the given files. + * + * @param task cc task + * @param sources source files (includes headers) + * @param targets compilation targets + * @param linkTarget link target + */ + public void execute(final CCTask task, + final List sources, + final Hashtable targets, + final TargetInfo linkTarget) { + try { + projectWriter.writeProject(outFile, + task, + this, + sources, + targets, + linkTarget); + } catch (BuildException ex) { + if (failOnError) { + throw ex; + } else { + task.log(ex.toString()); + } + } catch (Exception ex) { + if (failOnError) { + throw new BuildException(ex); + } else { + task.log(ex.toString()); + } + } + } + + /** + * Gets the object files directory. + * @return directory, may be null. + */ + public File getObjdir() { + return objDir; + } + /** + * Sets the directory used for object files. If not specified, + * the object files directory from cc task will be used. + * @param oDir object file directory. + */ + public void getObjdir(final File oDir) { + this.objDir = oDir; + } + + /** + * Add a dependency definition to the project. + * @param dependency dependency. + */ + public void addDependency(final DependencyDef dependency) { + dependencies.add(dependency); + + } + + public List getDependencies() { + return new ArrayList(dependencies); + } + + + /** + * Add comment for the generated project file. + * @param comment comment, may not be null. + */ + public void addComment(final CommentDef comment) { + comments.add(comment); + + } + + public List getComments() { + return new ArrayList(comments); + } + + /** + * Required by documentation generator. + */ + public void execute() { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriter.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriter.java new file mode 100644 index 0000000..c4c144d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriter.java @@ -0,0 +1,53 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ide; + +import java.io.File; +import java.io.IOException; +import java.util.Hashtable; +import java.util.List; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.TargetInfo; +import org.xml.sax.SAXException; + +/** + * Project writer interface. + * + * @author curta + * + */ +public interface ProjectWriter { + /** + * Write project definition file. + * @param baseName File name base, writer may append appropriate extension + * @param task task + * @param projectDef project element + * @param files source and header files + * @param targets compilation targets + * @param linkTarget link target + * @throws IOException if I/O error is encountered + * @throws SAXException if I/O error during XML serialization + */ + void writeProject(final File baseName, + final CCTask task, + final ProjectDef projectDef, + final List files, + final Hashtable targets, + final TargetInfo linkTarget) + throws IOException, SAXException; +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.java new file mode 100644 index 0000000..a50a7b2 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/ProjectWriterEnum.java @@ -0,0 +1,105 @@ +/* + * + * Copyright 2004-2008 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package net.sf.antcontrib.cpptasks.ide; + +import net.sf.antcontrib.cpptasks.apple.XcodeProjectWriter; +import net.sf.antcontrib.cpptasks.borland.CBuilderXProjectWriter; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioProjectWriter; +import net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter; +import org.apache.tools.ant.types.EnumeratedAttribute; + +/** + * Enumeration of supported project file generators. + * + * Supported project generators + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+ * + * @author Curt Arnold + * + */ +public final class ProjectWriterEnum + extends EnumeratedAttribute { + /** + * Enumeration values. + */ + private static String[] values = new String[] { + "cbuilderx", "msvc5", + "msvc6", "msvc7", "msvc71", "msvc8", "msvc9", "xcode"}; + + /** + * Project writers associated with enumeration values. + */ + private static ProjectWriter[] writers = new ProjectWriter[] { + new CBuilderXProjectWriter(), new DevStudioProjectWriter("5.00"), + new DevStudioProjectWriter("6.00"), + new VisualStudioNETProjectWriter("7.00", "TRUE", "FALSE"), + new VisualStudioNETProjectWriter("7.10", "TRUE", "FALSE"), + new VisualStudioNETProjectWriter("8.00", "true", "false"), + new VisualStudioNETProjectWriter("9.00", "true", "false"), + new XcodeProjectWriter()}; + + /** + * Gets ProjectWriter associated with enumeration value. + * + * @return project writer + */ + public ProjectWriter getProjectWriter() { + return writers[this.getIndex()]; + } + + /** + * Gets acceptible values for enumeration. + * + * @return acceptible values + */ + public String[] getValues() { + return (String[]) values.clone(); + } +} + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ide/package.html b/src/main/java/net/sf/antcontrib/cpptasks/ide/package.html new file mode 100644 index 0000000..ed0de56 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ide/package.html @@ -0,0 +1,27 @@ + + + + + + + +IDE project file generation. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.java new file mode 100644 index 0000000..12fd5bd --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32CCompiler.java @@ -0,0 +1,58 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Intel (r) C/C++ compiler for IA-32 Linux (r) + * + * The Intel (r) C/C++ compiler for IA32 Linux mimics the command options for + * gcc compiler. + * + * @author Curt Arnold + */ +public final class IntelLinux32CCompiler extends GccCompatibleCCompiler { + private static final IntelLinux32CCompiler instance = new IntelLinux32CCompiler( + false, new IntelLinux32CCompiler(true, null, false, null), false, + null); + public static IntelLinux32CCompiler getInstance() { + return instance; + } + private IntelLinux32CCompiler(boolean isLibtool, + IntelLinux32CCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super("icc", "-V", isLibtool, libtoolCompiler, newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IntelLinux32CCompiler(getLibtool(), + (IntelLinux32CCompiler) getLibtoolCompiler(), + newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return IntelLinux32Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.java new file mode 100644 index 0000000..9bed915 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux32Linker.java @@ -0,0 +1,55 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import net.sf.antcontrib.cpptasks.gcc.GccLibrarian; +/** + * Adapter for the Intel (r) Linker for Linux (r) for IA-32 + * + * @author Curt Arnold + */ +public final class IntelLinux32Linker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final IntelLinux32Linker dllLinker = new IntelLinux32Linker( + "lib", ".so", false, new IntelLinux32Linker("lib", ".so", true, + null)); + private static final IntelLinux32Linker instance = new IntelLinux32Linker( + "", "", false, null); + public static IntelLinux32Linker getInstance() { + return instance; + } + private IntelLinux32Linker(String outputPrefix, String outputSuffix, + boolean isLibtool, IntelLinux32Linker libtoolLinker) { + super("icc", "-V", objFiles, discardFiles, outputPrefix, outputSuffix, + isLibtool, libtoolLinker); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.java new file mode 100644 index 0000000..9ed6393 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64CCompiler.java @@ -0,0 +1,58 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Intel (r) C/C++ compiler for IA-64 Linux (r) + * + * The Intel C/C++ compiler for IA-64 Linux mimics the command options for gcc + * compiler. + * + * @author Curt Arnold + */ +public final class IntelLinux64CCompiler extends GccCompatibleCCompiler { + private static final IntelLinux64CCompiler instance = new IntelLinux64CCompiler( + false, new IntelLinux64CCompiler(true, null, false, null), false, + null); + public static IntelLinux64CCompiler getInstance() { + return instance; + } + private IntelLinux64CCompiler(boolean isLibtool, + IntelLinux64CCompiler libtoolCompiler, boolean newEnvironment, + Environment env) { + super("ecc", "-V", isLibtool, libtoolCompiler, newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IntelLinux64CCompiler(getLibtool(), + (IntelLinux64CCompiler) this.getLibtoolCompiler(), + newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return IntelLinux64Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.java new file mode 100644 index 0000000..d712e5b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelLinux64Linker.java @@ -0,0 +1,55 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +import net.sf.antcontrib.cpptasks.gcc.GccLibrarian; +/** + * Adapter for the Intel (r) linker for Linux for IA-64 + * + * @author Curt Arnold + */ +public final class IntelLinux64Linker extends AbstractLdLinker { + private static final String[] discardFiles = new String[0]; + private static final String[] libtoolObjFiles = new String[]{".fo", ".a", + ".lib", ".dll", ".so", ".sl"}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib", + ".dll", ".so", ".sl"}; + private static final IntelLinux64Linker dllLinker = new IntelLinux64Linker( + "lib", ".so", false, new IntelLinux64Linker("lib", ".so", true, + null)); + private static final IntelLinux64Linker instance = new IntelLinux64Linker( + "", "", false, null); + public static IntelLinux64Linker getInstance() { + return instance; + } + private IntelLinux64Linker(String outputPrefix, String outputSuffix, + boolean isLibtool, IntelLinux64Linker libtoolLinker) { + super("ecc", "-V", objFiles, discardFiles, outputPrefix, outputSuffix, + isLibtool, libtoolLinker); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return GccLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelProcessor.java new file mode 100644 index 0000000..ed7c61a --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelProcessor.java @@ -0,0 +1,51 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor; +/** + * A add-in class for Intel (r) compilers and linkers + * + * + */ +public class IntelProcessor { + public static void addWarningSwitch(Vector args, int level) { + DevStudioProcessor.addWarningSwitch(args, level); + } + public static String getCommandFileSwitch(String cmdFile) { + return DevStudioProcessor.getCommandFileSwitch(cmdFile); + } + public static void getDefineSwitch(StringBuffer buffer, String define, + String value) { + DevStudioProcessor.getDefineSwitch(buffer, define, value); + } + public static String getIncludeDirSwitch(String includeDir) { + return DevStudioProcessor.getIncludeDirSwitch(includeDir); + } + public static String[] getOutputFileSwitch(String outPath) { + return DevStudioProcessor.getOutputFileSwitch(outPath); + } + public static void getUndefineSwitch(StringBuffer buffer, String define) { + DevStudioProcessor.getUndefineSwitch(buffer, define); + } + public static boolean isCaseSensitive() { + return false; + } + private IntelProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.java new file mode 100644 index 0000000..80ade19 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32CCompiler.java @@ -0,0 +1,52 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler; +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Intel (r) C++ compiler for 32-bit applications + * + * The Intel (r) C++ compiler for IA32 Windows mimics the command options for + * the Microsoft (r) C++ compiler. + * + * @author Curt Arnold + */ +public final class IntelWin32CCompiler extends DevStudioCompatibleCCompiler { + private static final IntelWin32CCompiler instance = new IntelWin32CCompiler( + false, null); + public static IntelWin32CCompiler getInstance() { + return instance; + } + private IntelWin32CCompiler(boolean newEnvironment, Environment env) { + super("icl", "-help", newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IntelWin32CCompiler(newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + return IntelWin32Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.java new file mode 100644 index 0000000..e9473d5 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Librarian.java @@ -0,0 +1,38 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLibrarian; +/** + * Adapter for the xilib from the Intel(r) C++ Compiler for IA-32 or IA-64 + * systems running Microsoft (r) operating systems + * + * @author Curt Arnold + */ +public class IntelWin32Librarian extends DevStudioCompatibleLibrarian { + private static final IntelWin32Librarian instance = new IntelWin32Librarian(); + public static IntelWin32Librarian getInstance() { + return instance; + } + protected IntelWin32Librarian() { + super("xilib", "-qv"); + } + public Linker getLinker(LinkType type) { + return IntelWin32Linker.getInstance().getLinker(type); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.java new file mode 100644 index 0000000..66009f0 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin32Linker.java @@ -0,0 +1,46 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleLinker; +/** + * Adapter for the Intel (r) linker for 32-bit applications + * + * @author Curt Arnold + */ +public final class IntelWin32Linker extends DevStudioCompatibleLinker { + private static final IntelWin32Linker dllLinker = new IntelWin32Linker( + ".dll"); + private static final IntelWin32Linker instance = new IntelWin32Linker( + ".exe"); + public static IntelWin32Linker getInstance() { + return instance; + } + private IntelWin32Linker(String outputSuffix) { + super("xilink", "-qv", outputSuffix); + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return IntelWin32Librarian.getInstance(); + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.java new file mode 100644 index 0000000..6344022 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/intel/IntelWin64CCompiler.java @@ -0,0 +1,53 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.intel; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.devstudio.DevStudioCompatibleCCompiler; + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Intel C++ compiler for Itanium(TM) Applications + * + * @author Curt Arnold + */ +public final class IntelWin64CCompiler extends DevStudioCompatibleCCompiler { + private static final IntelWin64CCompiler instance = new IntelWin64CCompiler( + false, null); + public static IntelWin64CCompiler getInstance() { + return instance; + } + private IntelWin64CCompiler(boolean newEnvironment, Environment env) { + super("ecl", "-help", newEnvironment, env); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IntelWin64CCompiler(newEnvironment, env); + } + return this; + } + public Linker getLinker(LinkType type) { + // + // currently the Intel Win32 and Win64 linkers + // are command line equivalent + return IntelWin32Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return 32767; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.java new file mode 100644 index 0000000..32eb9ec --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/mozilla/XpidlCompiler.java @@ -0,0 +1,365 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.mozilla; + +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.OptimizationEnum; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +import net.sf.antcontrib.cpptasks.gcc.LdLinker; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the Mozilla Xpidl Compiler. + * + * @author Curt Arnold + */ +public final class XpidlCompiler + extends CommandLineCompiler { + /** + * Singleton instance. + */ + private static final XpidlCompiler INSTANCE = new XpidlCompiler( + false, null); + /** + * Gets singleton instance of compiler. + * @return XpidlCompiler singleton instance + */ + public static XpidlCompiler getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param newEnvironment boolean establish an new environment. + * @param env Environment environment. + */ + private XpidlCompiler(final boolean newEnvironment, + final Environment env) { + super("xpidl", null, new String[] {".idl", ".xpidl"} + , new String[0], ".xpt", false, null, newEnvironment, env); + } + + /** + * Add arguments for debug, etc. + * @param args Vector command argument list + * @param debug boolean build for debug if true + * @param multithreaded boolean build for multithreading if true + * @param exceptions boolean enable exceptions if true + * @param linkType LinkType output and runtime type + * @param rtti Boolean enable run-time type identification if true + * @param optimization OptimizationEnum optimization + */ + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + } + + /** + * Add arguments for specified warning level. + * @param args Vector command line arguments + * @param level int warning level value + */ + protected void addWarningSwitch(final Vector args, + final int level) { + } + + /** + * Change enviroment (deprecated). + * @param newEnvironment boolean use new environment. + * @param env Environment environment + * @return Processor modified processor + */ + public Processor changeEnvironment(final boolean newEnvironment, + final Environment env) { + return this; + } + + /** + * Gets dependency parser. + * @param source source file + * @return parser + */ + protected Parser createParser(final File source) { + return new CParser(); + } + + /** + * Gets number of command line arguments per input file. + * @return int number of command line arguments per input file. + */ + protected int getArgumentCountPerInputFile() { + return 3; + } + + /** + * Gets output file names. + * @param inputFile String input file name + * @param versionInfo version info, not used by this compiler. + * @return String[] output file names + */ + public String[] getOutputFileNames(final String inputFile, + final VersionInfo versionInfo) { + // + // if a recognized input file + // + String baseName = getBaseOutputName(inputFile); + return new String[] { + baseName + ".xpt", + baseName + ".h"}; + } + + /** + * Gets input file arguments. + * @param outputDir File output directory + * @param filename String input file name. + * @param index int argument index, + * 0 to getNumberOfArgumentsPerInputFile() -1 + * @return String input file argument + */ + protected String getInputFileArgument(final File outputDir, + final String filename, + final int index) { + return ""; + } + + /** + * Gets maximum length of command line. + * @return int maximum length of command line + */ + public int getMaximumCommandLength() { + return 1024; + } + + /** + * Gets maximum number of input files processed per command. + * @return int maximum number of input files processed per command. + */ + protected int getMaximumInputFilesPerCommand() { + return 1; + } + + /** + * Adds command line arguments for include paths. + * + * @param baseDirPath String base directory + * @param includeDirs File[] include directories + * @param args Vector command line arguments + * @param relativeArgs Vector arguments for configuration identification + * @param includePathId StringBuffer buffer for configuration identification + */ + protected void addIncludes(final String baseDirPath, + final File[] includeDirs, + final Vector args, + final Vector relativeArgs, + final StringBuffer includePathId) { + // + // requires space between switch and path + // + for (int i = 0; i < includeDirs.length; i++) { + args.addElement("-I"); + args.addElement(includeDirs[i].getAbsolutePath()); + if (relativeArgs != null) { + String relative = CUtil.getRelativePath(baseDirPath, + includeDirs[i]); + relativeArgs.addElement("-I"); + relativeArgs.addElement(relative); + if (includePathId != null) { + if (includePathId.length() == 0) { + includePathId.append("-I "); + } else { + includePathId.append(" -I "); + } + includePathId.append(relative); + } + } + } + } + + /** + * Gets include directory switch. + * @param includeDir String include directory + * @return String command switch to add specified directory to search path + */ + protected String getIncludeDirSwitch(final String includeDir) { + return "-I" + includeDir; + } + + /** + * Gets switch to define preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + * @param value String macro value, may be null. + */ + protected void getDefineSwitch(final StringBuffer buffer, + final String define, + final String value) { + } + + /** + * Gets switch to undefine preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + */ + protected void getUndefineSwitch(final StringBuffer buffer, + final String define) { + } + + /** + * Gets standard include paths. + * @return File[] standard include paths + */ + protected File[] getEnvironmentIncludePath() { + return new File[0]; + } + + /** + * Gets linker associated with this type. + * @param type LinkType linker, returns ld. + * @return Linker + */ + public Linker getLinker(final LinkType type) { + return LdLinker.getInstance(); + } + + /** + * Compiles an .idl file into the corresponding .h and .xpt files. + * @param task current cc task + * @param outputDir output directory + * @param sourceFiles source files + * @param args command line arguments that appear before input files + * @param endArgs command line arguments that appear after input files + * @param relentless if true, do not stop at first compilation error + * @param config compiler configuration + * @param monitor progress monitor + */ + public void compile(final CCTask task, + final File outputDir, + final String[] sourceFiles, + final String[] args, + final String[] endArgs, + final boolean relentless, + final CommandLineCompilerConfiguration config, + final ProgressMonitor monitor) { + + BuildException exc = null; + String[] thisSource = new String[1]; + String[] tlbCommand = new String[args.length + endArgs.length + 6]; + tlbCommand[0] = "xpidl"; + tlbCommand[1] = "-m"; + tlbCommand[2] = "typelib"; + String[] headerCommand = new String[args.length + endArgs.length + 6]; + headerCommand[0] = "xpidl"; + headerCommand[1] = "-m"; + headerCommand[2] = "header"; + for (int i = 0; i < args.length; i++) { + tlbCommand[i + 3] = args[i]; + headerCommand[i + 3] = args[i]; + } + tlbCommand[args.length + 3] = "-e"; + headerCommand[args.length + 3] = "-e"; + + int tlbIndex = args.length + 6; + int headerIndex = args.length + 6; + for (int i = 0; i < endArgs.length; i++) { + tlbCommand[tlbIndex++] = endArgs[i]; + headerCommand[headerIndex++] = endArgs[i]; + } + for (int j = 0; j < sourceFiles.length; j++) { + tlbIndex = args.length + 4; + headerIndex = args.length + 4; + String[] outputFileNames = getOutputFileNames(sourceFiles[j], null); + + tlbCommand[tlbIndex++] = outputFileNames[0]; + tlbCommand[tlbIndex++] = sourceFiles[j]; + + headerCommand[headerIndex++] = outputFileNames[1]; + headerCommand[headerIndex++] = sourceFiles[j]; + + int retval = runCommand(task, outputDir, tlbCommand); + if (retval == 0) { + retval = runCommand(task, outputDir, headerCommand); + } + if (monitor != null) { + thisSource[0] = sourceFiles[j]; + monitor.progress(thisSource); + } + // + // if the process returned a failure code and + // we aren't holding an exception from an earlier + // interation + if (retval != 0 && exc == null) { + // + // construct the exception + // + exc = new BuildException(this.getCommand() + + " failed with return code " + retval, task + .getLocation()); + // + // and throw it now unless we are relentless + // + if (!relentless) { + throw exc; + } + } + } + // + // if the compiler returned a failure value earlier + // then throw an exception + if (exc != null) { + throw exc; + } + } + + /** + * Get total command line length due to the input file. + * @param outputDir File output directory + * @param inputFile String input file + * @return int characters added to command line for the input file. + */ + protected int getTotalArgumentLengthForInputFile( + final File outputDir, + final String inputFile) { + return 0; + } + + /** + * Gets compiler identifier. + * @return String compiler identification string + */ + public String getIdentifier() { + return "Mozilla xpidl"; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/mozilla/package.html b/src/main/java/net/sf/antcontrib/cpptasks/mozilla/package.html new file mode 100644 index 0000000..6be6dff --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/mozilla/package.html @@ -0,0 +1,27 @@ + + + + + + + +Compiler adapter for Mozilla's XPCOM compiler. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.java new file mode 100644 index 0000000..4c36438 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCCompiler.java @@ -0,0 +1,84 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the OpenWatcom C Compiler. + * + * @author Curt Arnold + */ +public final class OpenWatcomCCompiler + extends OpenWatcomCompiler { + /** + * Singleton. + */ + private static final OpenWatcomCCompiler INSTANCE = new OpenWatcomCCompiler( + "wcl386", + false, null); + + /** + * Get compiler. + * @return OpenWatcomCCompiler compiler + */ + public static OpenWatcomCCompiler getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param command String command + * @param newEnvironment boolean use new environment + * @param env Environment environment + */ + private OpenWatcomCCompiler(final String command, + final boolean newEnvironment, + final Environment env) { + super(command, "/?", + new String[] {".c", ".cc", ".cpp", ".cxx", ".c++"} + , + new String[] {".h", ".hpp", ".inl"} + , + newEnvironment, env); + } + + /** + * Create parser. + * @param source File file to be parsed. + * @return Parser parser + */ + public Parser createParser(final File source) { + return new CParser(); + } + + /** + * Get linker. + * @param type link type + * @return linker + */ + public Linker getLinker(final LinkType type) { + return OpenWatcomCLinker.getInstance().getLinker(type); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.java new file mode 100644 index 0000000..93e65b4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCLinker.java @@ -0,0 +1,69 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; + +/** + * Adapter for the OpenWatcom linker. + * + * @author Curt Arnold + */ +public final class OpenWatcomCLinker + extends OpenWatcomLinker { + /** + * Dll linker. + */ + private static final OpenWatcomCLinker DLL_LINKER = + new OpenWatcomCLinker(".dll"); + /** + * Exe linker. + */ + private static final OpenWatcomCLinker INSTANCE = + new OpenWatcomCLinker(".exe"); + /** + * Get linker instance. + * @return OpenWatcomCLinker linker + */ + public static OpenWatcomCLinker getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param outputSuffix String output suffix. + */ + private OpenWatcomCLinker(final String outputSuffix) { + super("wcl386", outputSuffix); + } + + /** + * Get linker. + * @param type LinkType link type + * @return Linker linker + */ + public Linker getLinker(final LinkType type) { + if (type.isStaticLibrary()) { + return OpenWatcomLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return DLL_LINKER; + } + return INSTANCE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.java new file mode 100644 index 0000000..4cf2d18 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomCompiler.java @@ -0,0 +1,169 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.OptimizationEnum; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Processor; + +import org.apache.tools.ant.types.Environment; + +/** + * An abstract base class for the OpenWatcom C and Fortran compilers. + * + * @author Curt Arnold + */ +public abstract class OpenWatcomCompiler + extends CommandLineCompiler { + /** + * Constructor. + * @param command String command + * @param identifierArg String identifier + * @param sourceExtensions String[] source extension + * @param headerExtensions String[] header extension + * @param newEnvironment boolean use new enviroment + * @param env Environment environment + */ + protected OpenWatcomCompiler(final String command, + final String identifierArg, + final String[] sourceExtensions, + final String[] headerExtensions, + final boolean newEnvironment, + final Environment env) { + super(command, identifierArg, sourceExtensions, + headerExtensions, ".obj", false, + null, newEnvironment, env); + } + + /** + * Add implied arguments. + * @param args Vector command line arguments + * @param debug boolean is debug + * @param multithreaded boolean multithreaderd + * @param exceptions boolean support exceptions + * @param linkType LinkType link type + * @param rtti Boolean run time type information + * @param optimization OptimizationEnum + */ + protected final void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("/c"); + if (exceptions) { + args.addElement("/xs"); + } + if (multithreaded) { + args.addElement("/bm"); + } + if (debug) { + args.addElement("/d2"); + args.addElement("/od"); + args.addElement("/d_DEBUG"); + } else { + if (optimization != null) { + if (optimization.isSize()) { + args.addElement("/os"); + } + if (optimization.isSpeed()) { + args.addElement("/ot"); + } + } + args.addElement("/dNDEBUG"); + } + if (rtti != null && rtti.booleanValue()) { + args.addElement("/xr"); + } + } + + /** + * Add warning switch. + * @param args Vector command line arguments + * @param level int warning level + */ + protected final void addWarningSwitch(final Vector args, final int level) { + OpenWatcomProcessor.addWarningSwitch(args, level); + } + + /** + * Change enviroment. + * @param newEnvironment boolean use new enviroment + * @param env Environment environment + * @return Processor modified processor + */ + public final Processor changeEnvironment(final boolean newEnvironment, + final Environment env) { + return this; + } + + /** + * Get define switch. + * @param buffer StringBuffer buffer + * @param define String preprocessor macro + * @param value String value, may be null. + */ + protected final void getDefineSwitch(final StringBuffer buffer, + final String define, + final String value) { + OpenWatcomProcessor.getDefineSwitch(buffer, define, value); + } + + /** + * Get include path from environment. + * @return File[] + */ + protected final File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ";"); + } + + /** + * Get include directory switch. + * @param includeDir String include directory + * @return String command line argument + */ + protected final String getIncludeDirSwitch(final String includeDir) { + return OpenWatcomProcessor.getIncludeDirSwitch(includeDir); + } + + + /** + * Get maximum command line length. + * @return int maximum command line length + */ + public final int getMaximumCommandLength() { + return 4096; + } + + /** + * Get undefine switch. + * @param buffer StringBuffer argument destination + * @param define String preprocessor macro + */ + protected final void getUndefineSwitch(final StringBuffer buffer, + final String define) { + OpenWatcomProcessor.getUndefineSwitch(buffer, define); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.java new file mode 100644 index 0000000..ca3abcb --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranCompiler.java @@ -0,0 +1,86 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.io.File; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.parser.FortranParser; +import net.sf.antcontrib.cpptasks.parser.Parser; + +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the OpenWatcom Fortran compiler. + * + * @author Curt Arnold + */ +public final class OpenWatcomFortranCompiler + extends OpenWatcomCompiler { + /** + * Singleton. + */ + private static final OpenWatcomFortranCompiler[] INSTANCE = + new OpenWatcomFortranCompiler[] { + new OpenWatcomFortranCompiler( + "wfl386", false, null)}; + + /** + * Get instance. + * @return OpenWatcomFortranCompiler compiler instance + */ + public static OpenWatcomFortranCompiler getInstance() { + return INSTANCE[0]; + } + + /** + * Constructor. + * @param command String command + * @param newEnvironment boolean use new environment + * @param env Environment environment + */ + private OpenWatcomFortranCompiler(final String command, + final boolean newEnvironment, + final Environment env) { + super(command, "/?", + new String[] {".f90", ".for", ".f"} + , + new String[] {".i", ".i90", ".fpp"} + , + newEnvironment, env); + } + + /** + * Create dependency parser. + * @param source File source file + * @return Parser parser + */ + public Parser createParser(final File source) { + return new FortranParser(); + } + + /** + * Get linker. + * @param type link type + * @return linker + */ + public Linker getLinker(final LinkType type) { + return OpenWatcomFortranLinker.getInstance().getLinker(type); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.java new file mode 100644 index 0000000..82b6999 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomFortranLinker.java @@ -0,0 +1,69 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; + +/** + * Adapter for the OpenWatcom Fortran linker. + * + * @author Curt Arnold + */ +public final class OpenWatcomFortranLinker + extends OpenWatcomLinker { + /** + * Singleton for DLL linking. + */ + private static final OpenWatcomFortranLinker DLL_LINKER = new + OpenWatcomFortranLinker(".dll"); + /** + * Singleton for executables. + */ + private static final OpenWatcomFortranLinker INSTANCE = new + OpenWatcomFortranLinker(".exe"); + /** + * Get instance. + * @return OpenWatcomFortranLinker linker + */ + public static OpenWatcomFortranLinker getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param outputSuffix String output suffix + */ + private OpenWatcomFortranLinker(final String outputSuffix) { + super("wfl386", outputSuffix); + } + + /** + * Get linker. + * @param type LinkType link type + * @return Linker linker + */ + public Linker getLinker(final LinkType type) { + if (type.isStaticLibrary()) { + return OpenWatcomLibrarian.getInstance(); + } + if (type.isSharedLibrary()) { + return DLL_LINKER; + } + return INSTANCE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.java new file mode 100644 index 0000000..848c395 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLibrarian.java @@ -0,0 +1,254 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the OpenWatcom Librarian. + * + * @author Curt Arnold + */ +public final class OpenWatcomLibrarian + extends CommandLineLinker { + /** + * Singleton. + */ + private static final OpenWatcomLibrarian INSTANCE = new OpenWatcomLibrarian(); + /** + * Singleton accessor. + * @return OpenWatcomLibrarian librarian instance + */ + public static OpenWatcomLibrarian getInstance() { + return INSTANCE; + } + + /** + * Constructor. + */ + private OpenWatcomLibrarian() { + super("wlib", null, new String[] {".obj"} + , new String[0], ".lib", false, + null); + } + + /** + * Add base address. + * @param base long base address + * @param args Vector command line arguments + */ + protected void addBase(final long base, final Vector args) { + } + + /** + * Add alternative entry point. + * @param entry String entry point + * @param args Vector command line arguments + */ + protected void addEntry(final String entry, final Vector args) { + } + + /** + * Add fixed parameter. + * @param fixed Boolean true if fixed + * @param args Vector command line arguments + */ + protected void addFixed(final Boolean fixed, final Vector args) { + } + + /** + * Add implied arguments. + * @param debug boolean true if debugging + * @param linkType LinkType link type + * @param args Vector command line arguments + */ + protected void addImpliedArgs(final boolean debug, + final LinkType linkType, + final Vector args) { + } + + /** + * Add incremental option. + * @param incremental boolean true if incremental + * @param args Vector command line arguments + */ + protected void addIncremental(final boolean incremental, + final Vector args) { + } + + /** + * Add map option. + * @param map boolean true to create map file + * @param args Vector command line argument + */ + protected void addMap(final boolean map, + final Vector args) { + } + + /** + * Add stack size option. + * @param stack int stack size + * @param args Vector command line arguments + */ + protected void addStack(final int stack, + final Vector args) { + } + + /** + * Get command file switch. + * @param cmdFile String command file + * @return String command file switch + */ + protected String getCommandFileSwitch(final String cmdFile) { + return OpenWatcomProcessor.getCommandFileSwitch(cmdFile); + } + + + /** + * Get library search path. + * @return File[] library search path + */ + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + + /** + * Get file selectors for specified library names. + * @param libnames String[] library names + * @param libType LibraryTypeEnum library type enum + * @return String[] file selection patterns + */ + public String[] getLibraryPatterns(final String[] libnames, + final LibraryTypeEnum libType) { + return OpenWatcomProcessor.getLibraryPatterns(libnames, libType); + } + + /** + * Get linker. + * @param type LinkType link type + * @return Linker linker + */ + public Linker getLinker(final LinkType type) { + return OpenWatcomCLinker.getInstance().getLinker(type); + } + + /** + * Gets maximum command line. + * @return int maximum command line + */ + public int getMaximumCommandLength() { + return 1024; + } + + /** + * Create output file switch. + * @param outFile String output file switch + * @return String[] output file switch + */ + public String[] getOutputFileSwitch(final String outFile) { + return OpenWatcomProcessor.getOutputFileSwitch(outFile); + } + + /** + * Gets case-sensisitivity of processor. + * @return boolean true if case sensitive + */ + public boolean isCaseSensitive() { + return OpenWatcomProcessor.isCaseSensitive(); + } + + /** + * Builds a library. + * @param task task + * @param outputFile generated library + * @param sourceFiles object files + * @param config linker configuration + */ + public void link(final CCTask task, + final File outputFile, + final String[] sourceFiles, + final CommandLineLinkerConfiguration config) { + // + // delete any existing library + outputFile.delete(); + // + // build a new library + super.link(task, outputFile, sourceFiles, config); + } + + /** + * Prepares argument list for exec command. + * @param task task + * @param outputDir output directory + * @param outputName output file name + * @param sourceFiles object files + * @param config linker configuration + * @return arguments for runTask + */ + protected String[] prepareArguments( + final CCTask task, + final String outputDir, + final String outputName, + final String[] sourceFiles, + final CommandLineLinkerConfiguration config) { + String[] preargs = config.getPreArguments(); + String[] endargs = config.getEndArguments(); + StringBuffer buf = new StringBuffer(); + Vector execArgs = new Vector(preargs.length + endargs.length + 10 + + sourceFiles.length); + + execArgs.addElement(this.getCommand()); + String outputFileName = new File(outputDir, outputName).toString(); + execArgs.addElement(quoteFilename(buf, outputFileName)); + + for (int i = 0; i < preargs.length; i++) { + execArgs.addElement(preargs[i]); + } + + int objBytes = 0; + + for (int i = 0; i < sourceFiles.length; i++) { + String last4 = sourceFiles[i] + .substring(sourceFiles[i].length() - 4).toLowerCase(); + if (!last4.equals(".def") + && !last4.equals(".res") + && !last4.equals(".lib")) { + execArgs.addElement("+" + quoteFilename(buf, sourceFiles[i])); + objBytes += new File(sourceFiles[i]).length(); + } + } + + for (int i = 0; i < endargs.length; i++) { + execArgs.addElement(endargs[i]); + } + + String[] execArguments = new String[execArgs.size()]; + execArgs.copyInto(execArguments); + + return execArguments; + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.java new file mode 100644 index 0000000..f0bbe3d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomLinker.java @@ -0,0 +1,205 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.io.File; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.platforms.WindowsPlatform; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for the OpenWatcom linker. + * + * @author Curt Arnold + */ +public abstract class OpenWatcomLinker + extends CommandLineLinker { + /** + * Constructor. + * @param command String command string (wcl386 or wfl386) + * @param outputSuffix String output suffix + */ + protected OpenWatcomLinker(final String command, + final String outputSuffix) { + super(command, "-r", new String[] {".obj", ".lib", ".res"} + , + new String[] {".map", ".pdb", ".lnk"} + , outputSuffix, false, null); + } + + /** + * Add specified base address to linker options. + * @param base long base address + * @param args Vector command options + */ + protected final void addBase(final long base, final Vector args) { + } + + /** + * Adds non-default entry point. + * @param entry entry point name + * @param args command line parameters + */ + protected final void addEntry(final String entry, final Vector args) { + } + + /** + * Adds fixed option. + * @param fixed if executable is fixed + * @param args command line parameters + */ + protected final void addFixed(final Boolean fixed, final Vector args) { + } + + /** + * Adds other command line parameters. + * @param debug boolean is debug + * @param linkType LinkType link type + * @param args Vector command line arguments + */ + protected final void addImpliedArgs(final boolean debug, + final LinkType linkType, + final Vector args) { + if (linkType.isExecutable()) { + if (linkType.isSubsystemConsole()) { + args.addElement("/bc"); + } else { + if (linkType.isSubsystemGUI()) { + args.addElement("/bg"); + } + } + } + if (linkType.isSharedLibrary()) { + args.addElement("/bd"); + } + } + + /** + * Add command line switch to force incremental linking. + * @param incremental boolean do incremental linking + * @param args Vector command line arguments + */ + protected final void addIncremental(final boolean incremental, + final Vector args) { + } + + /** + * Add command line switch to force map generation. + * @param map boolean build map + * @param args Vector command line arguments + */ + protected final void addMap(final boolean map, final Vector args) { + if (map) { + args.addElement("/fm"); + } + } + + /** + * Add command line switch for stack reservation. + * @param stack int stack size. + * @param args Vector command line arguments. + */ + protected final void addStack(final int stack, final Vector args) { + if (stack >= 0) { + String stackStr = Integer.toString(stack); + args.addElement("/k" + stackStr); + } + } + + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + * @throws IOException if unable to write version resource + */ + public final void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) throws IOException { + WindowsPlatform.addVersionFiles(versionInfo, linkType, outputFile, isDebug, + objDir, matcher); + } + + /** + * Get command file switch. + * @param commandFile String command file name + * @return String command line option + */ + public final String getCommandFileSwitch(final String commandFile) { + return "@" + commandFile; + } + + /** + * Get search path for libraries. + * @return File[] library path + */ + public final File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + + /** + * Get file selectors for libraries. + * @param libnames String[] + * @param libType LibraryTypeEnum + * @return String[] + */ + public final String[] getLibraryPatterns(final String[] libnames, + final LibraryTypeEnum libType) { + return OpenWatcomProcessor.getLibraryPatterns(libnames, libType); + } + + /** + * Get maximum command line length. + * @return int command line length + */ + public final int getMaximumCommandLength() { + return 1024; + } + + /** + * Get output file switch. + * @param outFile Output file name + * @return String[] command line switches + */ + public final String[] getOutputFileSwitch(final String outFile) { + return OpenWatcomProcessor.getOutputFileSwitch(outFile); + } + + /** + * Gets file name sensitivity of processors. + * @return boolean true if case sensitive. + */ + public final boolean isCaseSensitive() { + return OpenWatcomProcessor.isCaseSensitive(); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.java new file mode 100644 index 0000000..5845776 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/OpenWatcomProcessor.java @@ -0,0 +1,169 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.openwatcom; + +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * A add-in class for OpenWatcom processors. + * + * + */ +public final class OpenWatcomProcessor { + /** + * Adds warning command line options. + * + * @param args Vector list of options + * @param level int value of WarningLevelEnum + */ + public static void addWarningSwitch(final Vector args, final int level) { + switch (level) { + case 0: + args.addElement("/w0"); + break; + case 1: + args.addElement("/w1"); + break; + case 2: + break; + case 3: + args.addElement("/w2"); + break; + case 4: + args.addElement("/w3"); + break; + case 5: + args.addElement("/we"); + break; + default: + args.addElement("/w1"); + break; + } + } + + /** + * Gets command line option to read from an option file. + * + * @param cmdFile String file name for option file + * @return String Command line option + */ + public static String getCommandFileSwitch(final String cmdFile) { + StringBuffer buf = new StringBuffer("@"); + if (cmdFile.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(cmdFile.replace('/', '\\')); + buf.append('\"'); + } else { + buf.append(cmdFile); + } + return buf.toString(); + } + + /** + * Creates a command line option to define a preprocessor macro. + * + * @param buffer StringBuffer destination buffer + * @param define String parameter to define + * @param value String value, may be null + */ + public static void getDefineSwitch(final StringBuffer buffer, + final String define, + final String value) { + buffer.append("/d"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + + /** + * Create a command line option to add a directory to the include path. + * @param includeDir String directory + * @return String command line option + */ + public static String getIncludeDirSwitch(final String includeDir) { + return "/i=" + includeDir.replace('/', '\\'); + } + + /** + * Builds command line options to specify the output file names. + * + * @param outPath String path to output file + * @return String[] command line options + */ + public static String[] getOutputFileSwitch(final String outPath) { + StringBuffer buf = new StringBuffer("/fo="); + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + String[] retval = new String[] { + buf.toString()}; + return retval; + } + + /** + * Get file selectors for specified libraries. + * @param libnames library names + * @param libType library type + * @return file selectors + */ + public static String[] getLibraryPatterns(final String[] libnames, + final LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length]; + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(libnames[i]); + buf.append(".lib"); + patterns[i] = buf.toString(); + } + return patterns; + } + + /** + * Builds a command line option to undefine a preprocessor macro. + * @param buffer StringBuffer destination + * @param define String macro to be undefined + */ + public static void getUndefineSwitch(final StringBuffer buffer, + final String define) { + buffer.append("/u"); + buffer.append(define); + } + + /** + * Gets whether processor tratement of file names is case-sensitive. + * @return boolean true if case sensitive + */ + public static boolean isCaseSensitive() { + return false; + } + + /** + * Private constructor. + */ + private OpenWatcomProcessor() { + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/package.html b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/package.html new file mode 100644 index 0000000..3d9adab --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/openwatcom/package.html @@ -0,0 +1,27 @@ + + + + + + + +Adapters for OpenWatcom compilers and tools. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.java new file mode 100644 index 0000000..6b1895f --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390CCompiler.java @@ -0,0 +1,156 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os390; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.CompilerDef; +import net.sf.antcontrib.cpptasks.compiler.AbstractCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.types.DefineArgument; +import net.sf.antcontrib.cpptasks.types.UndefineArgument; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the IBM (R) OS/390 (tm) C++ Compiler + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class OS390CCompiler extends CommandLineCCompiler { + private static final AbstractCompiler instance = new OS390CCompiler(false, + null); + public static AbstractCompiler getInstance() { + return instance; + } + private OS390CCompiler(boolean newEnvironment, Environment env) { + super("cxx", null, new String[]{".c", ".cc", ".cpp", ".cxx", ".c++", + ".s"}, new String[]{".h", ".hpp"}, ".o", false, null, + newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + // Specifies that only compilations and assemblies be done. + // Link-edit is not done + args.addElement("-c"); + args.addElement("-W"); + args.addElement("c,NOEXPMAC,NOSHOWINC"); + /* + * if (exceptions) { args.addElement("/GX"); } + */ + if (debug) { + args.addElement("-g"); + args.addElement("-D"); + args.addElement("_DEBUG"); + /* + * if (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MTd"); } else { args.addElement("/MDd"); + * args.addElement("/D_DLL"); } } else { args.addElement("/MLd"); } + */ + } else { + args.addElement("-D"); + args.addElement("NEBUG"); + /* + * if (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MT"); } else { args.addElement("/MD"); + * args.addElement("/D_DLL"); } } else { args.addElement("/ML"); } + */ + } + } + protected void addWarningSwitch(Vector args, int level) { + OS390Processor.addWarningSwitch(args, level); + } + /** + * The buildDefineArguments implementation CommandLineCCompiler is not good + * for us because os390 defines are give by -D definex instead of + * /Ddefinex, 2 args not 1! since we implement this ourslefs, we do not + * have to implement the getDefineSwitch() and the getUndefineSwitch(). + */ + protected void buildDefineArguments(CompilerDef[] defs, Vector args) { + // + // assume that we aren't inheriting defines from containing + // + UndefineArgument[] merged = defs[0].getActiveDefines(); + for (int i = 1; i < defs.length; i++) { + // + // if we are inheriting, merge the specific defines with the + // containing defines + merged = DefineArgument.merge(defs[i].getActiveDefines(), merged); + } + StringBuffer buf = new StringBuffer(30); + for (int i = 0; i < merged.length; i++) { + buf.setLength(0); + UndefineArgument current = merged[i]; + if (current.isDefine()) { + args.addElement("-D"); + buf.append(current.getName()); + if (current.getValue() != null + && current.getValue().length() > 0) { + buf.append('='); + buf.append(current.getValue()); + } + args.addElement(buf.toString()); + } else { + args.addElement("-U"); + args.addElement(current.getName()); + } + } + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new OS390CCompiler(newEnvironment, env); + } + return this; + } + /* + * @see CommandLineCompiler#getDefineSwitch(StringBuffer, String, String) + */ + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ":"); + } + protected String getIncludeDirSwitch(String includeDir) { + return OS390Processor.getIncludeDirSwitch(includeDir); + } + public Linker getLinker(LinkType type) { + return OS390Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + /* Only compile one file at time for now */ + protected int getMaximumInputFilesPerCommand() { + return Integer.MAX_VALUE; + } + /* + * @see CommandLineCompiler#getUndefineSwitch(StringBuffer, String) + */ + protected void getUndefineSwitch(StringBuffer buffer, String define) { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Linker.java new file mode 100644 index 0000000..9c4f845 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Linker.java @@ -0,0 +1,208 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os390; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +/** + * Adapter for the IBM (R) OS/390 (tm) Linker + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public final class OS390Linker extends CommandLineLinker { + private static final OS390Linker datasetLinker = new OS390Linker(); + private static final OS390Linker dllLinker = new OS390Linker("", ".dll"); + private static final OS390Linker instance = new OS390Linker("", ""); + public static OS390Linker getDataSetInstance() { + return datasetLinker; + } + public static OS390Linker getInstance() { + return instance; + } + private boolean isADatasetLinker; + File outputFile; + private String outputPrefix; + CCTask task; + private OS390Linker() { + super("cxx", "/bogus", new String[]{".o", ".a", ".lib", ".xds"}, + new String[]{".dll", ".x"}, ".xds", false, null); + this.outputPrefix = ""; + this.isADatasetLinker = true; + } + private OS390Linker(String outputPrefix, String outputSuffix) { + super("cxx", "/bogus", new String[]{".o", ".a", ".lib", ".x"}, + new String[]{".dll"}, outputSuffix, false, null); + this.outputPrefix = outputPrefix; + this.isADatasetLinker = false; + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (linkType.isSharedLibrary()) { + args.addElement("-W"); + args.addElement("l,DLL"); + } + } + protected void addIncremental(boolean incremental, Vector args) { + } + /* + * @see CommandLineLinker#addLibrarySets(LibrarySet[], Vector, Vector, + * Vector) + */ + protected String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + // If yo want to link against a library sitting in a dataset and + // not in the HFS, you can just use the //'dataset' notation + // to specify it. e.g: + // + // + // We have to have special handling here because the file is not + // on the normal filesystem so the task will not noramly include it + // as part of the link command. + if (libsets != null) { + for (int i = 0; i < libsets.length; i++) { + String libs[] = libsets[i].getLibs(); + for (int j = 0; j < libs.length; j++) { + if (libs[j].startsWith("//")) { + endargs.addElement("-l"); + endargs.addElement(libs[j]); + } else if (libsets[i].getDataset() != null) { + String ds = libsets[i].getDataset(); + endargs.addElement("//'" + ds + "(" + libs[j] + ")'"); + } + } + } + } + return super.addLibrarySets(task, libsets, preargs, midargs, endargs); + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + protected void addEntry(String entry, Vector args) { + } + + public String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length * 3]; + int offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + offset = addLibraryPatterns(libnames, buf, "", ".x", patterns, offset); + offset = addLibraryPatterns(libnames, buf, "", ".o", patterns, offset); + return patterns; + } + + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + + public Linker getLinker(LinkType linkType) { + if (this == datasetLinker) + return datasetLinker; + if (linkType.isSharedLibrary()) + return dllLinker; + return instance; + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + String[] baseNames = super.getOutputFileNames(baseName, versionInfo); + if (outputPrefix.length() > 0) { + for(int i = 0; i < baseNames.length; i++) { + baseNames[i] = outputPrefix + baseNames[i]; + } + } + return baseNames; + } + protected String[] getOutputFileSwitch(CCTask task, String outputFile) { + if (isADatasetLinker && task.getDataset() != null) { + String ds = task.getDataset(); + outputFile = "//'" + ds + "(" + outputFile + ")'"; + } + return getOutputFileSwitch(outputFile); + } + public String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-o", outputFile}; + } + public boolean isCaseSensitive() { + return OS390Processor.isCaseSensitive(); + } + /* + * @see CommandLineLinker#link(Task, File, String[], + * CommandLineLinkerConfiguration) + */ + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + this.task = task; + this.outputFile = outputFile; + if (isADatasetLinker) { + int p = outputFile.getName().indexOf("."); + if (p >= 0) { + String newname = outputFile.getName().substring(0, p); + outputFile = new File(outputFile.getParent(), newname); + } + } + super.link(task, outputFile, sourceFiles, config); + } + /* + * @see CommandLineLinker#runCommand(Task, File, String[]) + */ + protected int runCommand(CCTask task, File workingDir, String[] cmdline) + throws BuildException { + int rc = super.runCommand(task, workingDir, cmdline); + // create the .xds file if everything was ok. + if (rc == 0) { + try { + outputFile.delete(); + new FileOutputStream(outputFile).close(); + } catch (IOException e) { + throw new BuildException(e.getMessage()); + } + } + return rc; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Processor.java b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Processor.java new file mode 100644 index 0000000..d3243fc --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os390/OS390Processor.java @@ -0,0 +1,71 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os390; +import java.util.Vector; +/** + * A add-in class for IBM (r) OS/390 compilers and linkers + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class OS390Processor { + public static void addWarningSwitch(Vector args, int level) { + switch (level) { + /* + * case 0: args.addElement("/W0"); break; + * + * case 1: args.addElement("/W1"); break; + * + * case 2: break; + * + * case 3: args.addElement("/W3"); break; + * + * case 4: args.addElement("/W4"); break; + */ + } + } + public static String getCommandFileSwitch(String cmdFile) { + StringBuffer buf = new StringBuffer("@"); + if (cmdFile.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(cmdFile); + buf.append('\"'); + } else { + buf.append(cmdFile); + } + return buf.toString(); + } + public static String getIncludeDirSwitch(String includeDir) { + return "-I" + includeDir; + } + public static String[] getOutputFileSwitch(String outPath) { + StringBuffer buf = new StringBuffer("-o "); + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + String[] retval = new String[]{buf.toString()}; + return retval; + } + public static boolean isCaseSensitive() { + return true; + } + private OS390Processor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os400/IccCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccCompiler.java new file mode 100644 index 0000000..952d719 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccCompiler.java @@ -0,0 +1,123 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os400; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.AbstractCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the IBM (R) OS/390 (tm) C++ Compiler + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class IccCompiler extends CommandLineCCompiler { + private static final AbstractCompiler instance = new IccCompiler(false, + null); + public static AbstractCompiler getInstance() { + return instance; + } + private IccCompiler(boolean newEnvironment, Environment env) { + super("icc", null, new String[]{".c", ".cc", ".cpp", ".cxx", ".c++", + ".s"}, new String[]{".h", ".hpp"}, ".o", false, null, + newEnvironment, env); + } + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + // Specifies that only compilations and assemblies be done. + // Link-edit is not done + args.addElement("-c"); + /* + * if (exceptions) { args.addElement("/GX"); } + */ + if (debug) { + args.addElement("-g"); + /* + * args.addElement("-D"); args.addElement("_DEBUG"); if + * (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MTd"); } else { args.addElement("/MDd"); + * args.addElement("/D_DLL"); } } else { args.addElement("/MLd"); } + */ + } else { + /* + * args.addElement("-D"); args.addElement("NEBUG"); if + * (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MT"); } else { args.addElement("/MD"); + * args.addElement("/D_DLL"); } } else { args.addElement("/ML"); } + */ + } + } + protected void addWarningSwitch(Vector args, int level) { + IccProcessor.addWarningSwitch(args, level); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new IccCompiler(newEnvironment, env); + } + return this; + } + /* + * @see CommandLineCompiler#getDefineSwitch(StringBuffer, String, String) + */ + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-q"); + buffer.append(define); + if (value != null && value.length() > 0) { + buffer.append('='); + buffer.append(value); + } + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ":"); + } + protected String getIncludeDirSwitch(String includeDir) { + return IccProcessor.getIncludeDirSwitch(includeDir); + } + public Linker getLinker(LinkType type) { + return IccLinker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + /* Only compile one file at time for now */ + protected int getMaximumInputFilesPerCommand() { + return 1; + //return Integer.MAX_VALUE; + } + /* + * @see CommandLineCompiler#getUndefineSwitch(StringBuffer, String) + */ + protected void getUndefineSwitch(StringBuffer buffer, String define) { + /* + * buffer.addElement("-q"); buf.append(define); + */ + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os400/IccLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccLinker.java new file mode 100644 index 0000000..ea10bcc --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccLinker.java @@ -0,0 +1,209 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os400; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +import net.sf.antcontrib.cpptasks.VersionInfo; +import org.apache.tools.ant.BuildException; +/** + * Adapter for the IBM (R) OS/390 (tm) Linker + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public final class IccLinker extends CommandLineLinker { + private static final IccLinker datasetLinker = new IccLinker(); + private static final IccLinker dllLinker = new IccLinker("", ".dll"); + private static final IccLinker instance = new IccLinker("", ""); + public static IccLinker getDataSetInstance() { + return datasetLinker; + } + public static IccLinker getInstance() { + return instance; + } + private boolean isADatasetLinker; + File outputFile; + private String outputPrefix; + CCTask task; + private IccLinker() { + super("icc", "/bogus", new String[]{".o", ".a", ".lib", ".xds"}, + new String[]{".dll", ".x"}, ".xds", false, null); + this.outputPrefix = ""; + this.isADatasetLinker = true; + } + private IccLinker(String outputPrefix, String outputSuffix) { + super("icc", "/bogus", new String[]{".o", ".a", ".lib", ".x"}, + new String[]{".dll"}, outputSuffix, false, null); + this.outputPrefix = outputPrefix; + this.isADatasetLinker = false; + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (linkType.isSharedLibrary()) { + args.addElement("-W"); + args.addElement("l,DLL"); + } + } + protected void addIncremental(boolean incremental, Vector args) { + } + /* + * @see CommandLineLinker#addLibrarySets(LibrarySet[], Vector, Vector, + * Vector) + */ + protected String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + // If yo want to link against a library sitting in a dataset and + // not in the HFS, you can just use the //'dataset' notation + // to specify it. e.g: + // + // + // We have to have special handling here because the file is not + // on the normal filesystem so the task will not noramly include it + // as part of the link command. + if (libsets != null) { + for (int i = 0; i < libsets.length; i++) { + String libs[] = libsets[i].getLibs(); + for (int j = 0; j < libs.length; j++) { + if (libs[j].startsWith("//")) { + endargs.addElement("-l"); + endargs.addElement(libs[j]); + } else if (libsets[i].getDataset() != null) { + String ds = libsets[i].getDataset(); + endargs.addElement("//'" + ds + "(" + libs[j] + ")'"); + } + } + } + } + return super.addLibrarySets(task, libsets, preargs, midargs, endargs); + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + public String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + String[] patterns = new String[libnames.length * 3]; + int offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + offset = addLibraryPatterns(libnames, buf, "", ".x", patterns, offset); + offset = addLibraryPatterns(libnames, buf, "", ".o", patterns, offset); + return patterns; + } + + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + + + public Linker getLinker(LinkType linkType) { + if (this == datasetLinker) + return datasetLinker; + if (linkType.isSharedLibrary()) + return dllLinker; + return instance; + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + protected String[] getOutputFileSwitch(CCTask task, String outputFile) { + if (isADatasetLinker && task.getDataset() != null) { + String ds = task.getDataset(); + outputFile = "//'" + ds + "(" + outputFile + ")'"; + } + return getOutputFileSwitch(outputFile); + } + public String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-o", outputFile}; + } + public boolean isCaseSensitive() { + return IccProcessor.isCaseSensitive(); + } + /* + * @see CommandLineLinker#link(Task, File, String[], + * CommandLineLinkerConfiguration) + */ + public void link(CCTask task, File outputFile, String[] sourceFiles, + CommandLineLinkerConfiguration config) throws BuildException { + this.task = task; + this.outputFile = outputFile; + if (isADatasetLinker) { + int p = outputFile.getName().indexOf("."); + if (p >= 0) { + String newname = outputFile.getName().substring(0, p); + outputFile = new File(outputFile.getParent(), newname); + } + } + super.link(task, outputFile, sourceFiles, config); + } + /* + * @see CommandLineLinker#runCommand(Task, File, String[]) + */ + protected int runCommand(CCTask task, File workingDir, String[] cmdline) + throws BuildException { + int rc = super.runCommand(task, workingDir, cmdline); + // create the .xds file if everything was ok. + if (rc == 0) { + try { + outputFile.delete(); + new FileOutputStream(outputFile).close(); + } catch (IOException e) { + throw new BuildException(e.getMessage()); + } + } + return rc; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + String[] baseNames = super.getOutputFileNames(baseName, versionInfo); + if (outputPrefix.length() > 0) { + for(int i = 0; i < baseNames.length; i++) { + baseNames[i] = outputPrefix + baseNames[i]; + } + } + return baseNames; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/os400/IccProcessor.java b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccProcessor.java new file mode 100644 index 0000000..f15aa8b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/os400/IccProcessor.java @@ -0,0 +1,71 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.os400; +import java.util.Vector; +/** + * A add-in class for IBM (r) OS/390 compilers and linkers + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class IccProcessor { + public static void addWarningSwitch(Vector args, int level) { + switch (level) { + /* + * case 0: args.addElement("/W0"); break; + * + * case 1: args.addElement("/W1"); break; + * + * case 2: break; + * + * case 3: args.addElement("/W3"); break; + * + * case 4: args.addElement("/W4"); break; + */ + } + } + public static String getCommandFileSwitch(String cmdFile) { + StringBuffer buf = new StringBuffer("@"); + if (cmdFile.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(cmdFile); + buf.append('\"'); + } else { + buf.append(cmdFile); + } + return buf.toString(); + } + public static String getIncludeDirSwitch(String includeDir) { + return "-I" + includeDir; + } + public static String[] getOutputFileSwitch(String outPath) { + StringBuffer buf = new StringBuffer("-o "); + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + String[] retval = new String[]{buf.toString()}; + return retval; + } + public static boolean isCaseSensitive() { + return true; + } + private IccProcessor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/package.html b/src/main/java/net/sf/antcontrib/cpptasks/package.html new file mode 100644 index 0000000..fba9d80 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/package.html @@ -0,0 +1,27 @@ + + + + + + + +C++ and other compiled languages build support for Ant. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParser.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParser.java new file mode 100644 index 0000000..b9bca25 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParser.java @@ -0,0 +1,67 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +import java.io.IOException; +import java.io.Reader; +/** + * An abstract base class for simple parsers + * + * @author Curt Arnold + */ +public abstract class AbstractParser { + /** + * + * + */ + protected AbstractParser() { + } + protected abstract void addFilename(String filename); + public abstract AbstractParserState getNewLineState(); + protected void parse(Reader reader) throws IOException { + char[] buf = new char[4096]; + AbstractParserState newLineState = getNewLineState(); + AbstractParserState state = newLineState; + int charsRead = -1; + do { + charsRead = reader.read(buf, 0, buf.length); + if (state == null) { + for (int i = 0; i < charsRead; i++) { + if (buf[i] == '\n') { + state = newLineState; + break; + } + } + } + if (state != null) { + for (int i = 0; i < charsRead; i++) { + state = state.consume(buf[i]); + // + // didn't match a production, skip to a new line + // + if (state == null) { + for (; i < charsRead; i++) { + if (buf[i] == '\n') { + state = newLineState; + break; + } + } + } + } + } + } while (charsRead >= 0); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParserState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParserState.java new file mode 100644 index 0000000..b3e3307 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/AbstractParserState.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +/** + * An base class for objects that represent the state of an AbstractParser. + * + * @author CurtArnold + * @see AbstractParser + */ +public abstract class AbstractParserState { + private AbstractParser parser; + protected AbstractParserState(AbstractParser parser) { + if (parser == null) { + throw new NullPointerException("parser"); + } + this.parser = parser; + } + /** + * Consume a character + * + * @return new state, may be null to ignore the rest of the line + */ + public abstract AbstractParserState consume(char ch); + protected AbstractParser getParser() { + return parser; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/BranchState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/BranchState.java new file mode 100644 index 0000000..4b869e0 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/BranchState.java @@ -0,0 +1,46 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +public class BranchState extends AbstractParserState { + private char[] branchChars; + private AbstractParserState[] branchStates; + private AbstractParserState noMatchState; + public BranchState(AbstractParser parser, char[] branchChars, + AbstractParserState[] branchStates, AbstractParserState noMatchState) { + super(parser); + this.branchChars = (char[]) branchChars.clone(); + this.branchStates = (AbstractParserState[]) branchStates.clone(); + this.noMatchState = noMatchState; + } + public AbstractParserState consume(char ch) { + AbstractParserState state; + for (int i = 0; i < branchChars.length; i++) { + if (ch == branchChars[i]) { + state = branchStates[i]; + return state.consume(ch); + } + } + state = getNoMatchState(); + if (state != null) { + return state.consume(ch); + } + return state; + } + protected AbstractParserState getNoMatchState() { + return noMatchState; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/CParser.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/CParser.java new file mode 100644 index 0000000..d10d889 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/CParser.java @@ -0,0 +1,78 @@ +/* + * + * Copyright 2002-2005 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +import java.io.IOException; +import java.io.Reader; +import java.util.Vector; +/** + * A parser that extracts #include statements from a Reader. + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public final class CParser extends AbstractParser implements Parser { + private final Vector includes = new Vector(); + private AbstractParserState newLineState; + /** + * + * + */ + public CParser() { + AbstractParserState quote = new FilenameState(this, new char[]{'"'}); + AbstractParserState bracket = new FilenameState(this, new char[]{'>'}); + AbstractParserState postE = new PostE(this, bracket, quote); + // + // nclude + // + AbstractParserState e = new LetterState(this, 'e', postE, null); + AbstractParserState d = new LetterState(this, 'd', e, null); + AbstractParserState u = new LetterState(this, 'u', d, null); + AbstractParserState l = new LetterState(this, 'l', u, null); + AbstractParserState c = new LetterState(this, 'c', l, null); + AbstractParserState n = new LetterState(this, 'n', c, null); + // + // mport is equivalent to nclude + // + AbstractParserState t = new LetterState(this, 't', postE, null); + AbstractParserState r = new LetterState(this, 'r', t, null); + AbstractParserState o = new LetterState(this, 'o', r, null); + AbstractParserState p = new LetterState(this, 'p', o, null); + AbstractParserState m = new LetterState(this, 'm', p, null); + // + // switch between + // + AbstractParserState n_m = new BranchState(this, new char[]{'n', 'm'}, + new AbstractParserState[]{n, m}, null); + AbstractParserState i = new WhitespaceOrLetterState(this, 'i', n_m); + newLineState = new WhitespaceOrLetterState(this, '#', i); + } + public void addFilename(String include) { + includes.addElement(include); + } + public String[] getIncludes() { + String[] retval = new String[includes.size()]; + includes.copyInto(retval); + return retval; + } + public AbstractParserState getNewLineState() { + return newLineState; + } + public void parse(Reader reader) throws IOException { + includes.setSize(0); + super.parse(reader); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.java new file mode 100644 index 0000000..edcfe83 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/CaseInsensitiveLetterState.java @@ -0,0 +1,87 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +/** + * This parser state checks consumed characters against a specific character + * (case insensitive). + * + * @author Curt Arnold + */ +public final class CaseInsensitiveLetterState + extends AbstractParserState { + /** + * Next state if a match is found. + */ + private final AbstractParserState nextState; + + /** + * Next state if not match is found. + */ + private final AbstractParserState noMatchState; + + /** + * Lower case version of character to match. + */ + private final char lowerLetter; + + /** + * Lower case version of character to match. + */ + private final char upperLetter; + + /** + * Constructor. + * + * @param parser + * parser + * @param matchLetter + * letter to match + * @param nextStateArg + * next state if a match on the letter + * @param noMatchStateArg + * state if no match on letter + */ + public CaseInsensitiveLetterState(final AbstractParser parser, + final char matchLetter, + final AbstractParserState nextStateArg, + final AbstractParserState noMatchStateArg) { + super(parser); + this.lowerLetter = Character.toLowerCase(matchLetter); + this.upperLetter = Character.toUpperCase(matchLetter); + this.nextState = nextStateArg; + this.noMatchState = noMatchStateArg; + } + + /** + * Consumes a character and returns the next state for the parser. + * + * @param ch + * next character + * @return the configured nextState if ch is the expected character or the + * configure noMatchState otherwise. + */ + public AbstractParserState consume(final char ch) { + if (ch == lowerLetter || ch == upperLetter) { + return nextState; + } + if (ch == '\n') { + getParser().getNewLineState(); + } + return noMatchState; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/FilenameState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/FilenameState.java new file mode 100644 index 0000000..f3a6193 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/FilenameState.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +public class FilenameState extends AbstractParserState { + private final StringBuffer buf = new StringBuffer(); + private final char[] terminators; + public FilenameState(AbstractParser parser, char[] terminators) { + super(parser); + this.terminators = (char[]) terminators.clone(); + } + public AbstractParserState consume(char ch) { + for (int i = 0; i < terminators.length; i++) { + if (ch == terminators[i]) { + getParser().addFilename(buf.toString()); + buf.setLength(0); + return null; + } + } + if (ch == '\n') { + buf.setLength(0); + return getParser().getNewLineState(); + } else { + buf.append(ch); + } + return this; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/FortranParser.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/FortranParser.java new file mode 100644 index 0000000..d393e65 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/FortranParser.java @@ -0,0 +1,106 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +import java.io.IOException; +import java.io.Reader; +import java.util.Vector; + +/** + * A parser that extracts INCLUDE statements from a Reader. + * + * @author Curt Arnold + */ +public final class FortranParser + extends AbstractParser + implements Parser { + /** + * List of included filenames. + */ + private final Vector includes = new Vector(); + + /** + * State that starts consuming content at the beginning of a line. + */ + private final AbstractParserState newLineState; + + /** + * Default constructor. + * + */ + public FortranParser() { + AbstractParserState filename = new FilenameState(this, new char[] {'\'', + '/'}); + AbstractParserState apos = new WhitespaceOrLetterState(this, '\'', + filename); + AbstractParserState blank = new LetterState(this, ' ', apos, null); + AbstractParserState e = new CaseInsensitiveLetterState(this, 'E', + blank, null); + AbstractParserState d = new CaseInsensitiveLetterState(this, 'D', e, + null); + AbstractParserState u = new CaseInsensitiveLetterState(this, 'U', d, + null); + AbstractParserState l = new CaseInsensitiveLetterState(this, 'L', u, + null); + AbstractParserState c = new CaseInsensitiveLetterState(this, 'C', l, + null); + AbstractParserState n = new CaseInsensitiveLetterState(this, 'N', c, + null); + newLineState = new WhitespaceOrCaseInsensitiveLetterState(this, 'I', n); + } + + /** + * Called by FilenameState at completion of file name production. + * + * @param include + * include file name + */ + public void addFilename(final String include) { + includes.addElement(include); + } + + /** + * Gets collection of include file names encountered in parse. + * @return include file names + */ + public String[] getIncludes() { + String[] retval = new String[includes.size()]; + includes.copyInto(retval); + return retval; + } + + /** + * Get the state for the beginning of a new line. + * @return start of line state + */ + public AbstractParserState getNewLineState() { + return newLineState; + } + + /** + * Collects all included files from the content of the reader. + * + * @param reader + * character reader containing a FORTRAN source module + * @throws IOException + * throw if I/O error during parse + */ + public void parse(final Reader reader) throws IOException { + includes.setSize(0); + super.parse(reader); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/LetterState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/LetterState.java new file mode 100644 index 0000000..fc62f9b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/LetterState.java @@ -0,0 +1,80 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +/** + * This parser state checks consumed characters against a specific character. + * + * @author Curt Arnold + */ +public final class LetterState + extends AbstractParserState { + /** + * Next state if a match is found. + */ + private final AbstractParserState nextState; + + /** + * Next state if not match is found. + */ + private final AbstractParserState noMatchState; + + /** + * Character to match. + */ + private final char thisLetter; + + /** + * Constructor. + * + * @param parser + * parser + * @param matchLetter + * letter to match + * @param nextStateArg + * next state if a match on the letter + * @param noMatchStateArg + * state if no match on letter + */ + public LetterState(final AbstractParser parser, + final char matchLetter, + final AbstractParserState nextStateArg, + final AbstractParserState noMatchStateArg) { + super(parser); + this.thisLetter = matchLetter; + this.nextState = nextStateArg; + this.noMatchState = noMatchStateArg; + } + + /** + * Consumes a character and returns the next state for the parser. + * + * @param ch + * next character + * @return the configured nextState if ch is the expected character or the + * configure noMatchState otherwise. + */ + public AbstractParserState consume(final char ch) { + if (ch == thisLetter) { + return nextState; + } + if (ch == '\n') { + getParser().getNewLineState(); + } + return noMatchState; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/Parser.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/Parser.java new file mode 100644 index 0000000..bf63ae7 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/Parser.java @@ -0,0 +1,28 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +import java.io.IOException; +import java.io.Reader; +/** + * A parser that extracts #include statements from a Reader. + * + * @author Curt Arnold + */ +public interface Parser { + String[] getIncludes(); + void parse(Reader reader) throws IOException; +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/PostE.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/PostE.java new file mode 100644 index 0000000..d599f19 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/PostE.java @@ -0,0 +1,41 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; +public class PostE extends AbstractParserState { + private AbstractParserState bracket; + private AbstractParserState quote; + public PostE(CParser parser, AbstractParserState bracket, + AbstractParserState quote) { + super(parser); + this.bracket = bracket; + this.quote = quote; + } + public AbstractParserState consume(char ch) { + switch (ch) { + case ' ' : + case '\t' : + return this; + case '<' : + return bracket; + case '"' : + return quote; + case '\n' : + return getParser().getNewLineState(); + } + return null; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.java new file mode 100644 index 0000000..f7cbcea --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrCaseInsensitiveLetterState.java @@ -0,0 +1,83 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +/** + * This parser state checks consumed characters against a specific character + * (case insensitive) or whitespace. + * + * @author Curt Arnold + */ +public final class WhitespaceOrCaseInsensitiveLetterState + extends + AbstractParserState { + /** + * Next state if the character is found. + */ + private final AbstractParserState nextState; + + /** + * Character to match (lower case). + */ + private final char lowerLetter; + + /** + * Character to match (upper case). + */ + private final char upperLetter; + + /** + * Constructor. + * + * @param parser + * parser + * @param matchLetter + * letter to match + * @param nextStateArg + * next state if a match on the letter + */ + public WhitespaceOrCaseInsensitiveLetterState(final AbstractParser parser, + final char matchLetter, + final AbstractParserState + nextStateArg) { + super(parser); + this.lowerLetter = Character.toLowerCase(matchLetter); + this.upperLetter = Character.toUpperCase(matchLetter); + this.nextState = nextStateArg; + } + + /** + * Consumes a character and returns the next state for the parser. + * + * @param ch + * next character + * @return the configured nextState if ch is the expected character or the + * configure noMatchState otherwise. + */ + public AbstractParserState consume(final char ch) { + if (ch == lowerLetter || ch == upperLetter) { + return nextState; + } + if (ch == ' ' || ch == '\t') { + return this; + } + if (ch == '\n') { + getParser().getNewLineState(); + } + return null; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.java b/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.java new file mode 100644 index 0000000..61c133d --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/WhitespaceOrLetterState.java @@ -0,0 +1,75 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.parser; + +/** + * This parser state checks consumed characters against a specific character or + * whitespace. + * + * @author Curt Arnold + */ +public final class WhitespaceOrLetterState + extends AbstractParserState { + /** + * Next state if the character is found. + */ + private final AbstractParserState nextState; + + /** + * Character to match. + */ + private final char thisLetter; + + /** + * Constructor. + * + * @param parser + * parser + * @param matchLetter + * letter to match + * @param nextStateArg + * next state if a match on the letter + */ + public WhitespaceOrLetterState(final AbstractParser parser, + final char matchLetter, + final AbstractParserState nextStateArg) { + super(parser); + this.thisLetter = matchLetter; + this.nextState = nextStateArg; + } + + /** + * Consumes a character and returns the next state for the parser. + * + * @param ch + * next character @returns the configured nextState if ch is the + * expected character or the configure noMatchState otherwise. + * @return next state + */ + public AbstractParserState consume(final char ch) { + if (ch == thisLetter) { + return nextState; + } + if (ch == ' ' || ch == '\t') { + return this; + } + if (ch == '\n') { + getParser().getNewLineState(); + } + return null; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/parser/package.html b/src/main/java/net/sf/antcontrib/cpptasks/parser/package.html new file mode 100644 index 0000000..1d7aa49 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/parser/package.html @@ -0,0 +1,28 @@ + + + + + + + +Provides minimal scanners to extract dependencies, +such as include statements, from source files. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.java b/src/main/java/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.java new file mode 100644 index 0000000..f16f94e --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/platforms/WindowsPlatform.java @@ -0,0 +1,364 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.platforms; + +import java.io.BufferedWriter; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStreamWriter; +import java.io.Writer; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.TargetMatcher; +import net.sf.antcontrib.cpptasks.VersionInfo; +import net.sf.antcontrib.cpptasks.compiler.LinkType; + + +/** + * Platform specific behavior for Microsoft Windows. + * + * @author Curt Arnold + */ +public final class WindowsPlatform { + + /** + * Constructor. + */ + private WindowsPlatform() { + } + /** + * Adds source or object files to the bidded fileset to + * support version information. + * + * @param versionInfo version information + * @param linkType link type + * @param isDebug true if debug build + * @param outputFile name of generated executable + * @param objDir directory for generated files + * @param matcher bidded fileset + * @throws IOException if unable to write version resource + */ + public static void addVersionFiles(final VersionInfo versionInfo, + final LinkType linkType, + final File outputFile, + final boolean isDebug, + final File objDir, + final TargetMatcher matcher) + throws IOException { + if (versionInfo == null) { + throw new NullPointerException("versionInfo"); + } + if (linkType == null) { + throw new NullPointerException("linkType"); + } + if (outputFile == null) { + throw new NullPointerException("outputFile"); + } + if (objDir == null) { + throw new NullPointerException("objDir"); + } + + /** + * Fully resolve version info + */ + VersionInfo mergedInfo = versionInfo.merge(); + + File versionResource = new File(objDir, "versioninfo.rc"); + + boolean notChanged = false; + // + // if the resource exists + // + if (versionResource.exists()) { + ByteArrayOutputStream memStream = new ByteArrayOutputStream(); + Writer writer = new BufferedWriter(new OutputStreamWriter(memStream)); + writeResource(writer, mergedInfo, outputFile, isDebug, linkType); + writer.close(); + ByteArrayInputStream proposedResource = new ByteArrayInputStream( + memStream.toByteArray()); + + InputStream existingResource = new FileInputStream(versionResource); + // + // + // + notChanged = hasSameContent(proposedResource, existingResource); + existingResource.close(); + } + + // + // if the resource file did not exist or will be changed then + // write the file + // + if (!notChanged) { + Writer writer = new BufferedWriter( + new OutputStreamWriter( + new FileOutputStream(versionResource))); + writeResource(writer, mergedInfo, outputFile, isDebug, linkType); + writer.close(); + } + if (matcher != null) { + matcher.visit(new File(versionResource.getParent()), + versionResource.getName()); + } + + } + + /** + * Compare two input streams for duplicate content + * + * Naive implementation, but should not be performance issue. + * @param stream1 stream + * @param stream2 stream + * @return true if streams are identical in content + * @throws IOException if error reading streams + */ + private static boolean hasSameContent(final InputStream stream1, + final InputStream stream2) + throws IOException { + int byte1 = -1; + int byte2 = -1; + do { + byte1 = stream1.read(); + byte2 = stream2.read(); + + } + while (byte1 == byte2 && byte1 != -1); + return (byte1 == byte2); + } + + + /** + * Parse version string into array of four short values. + * @param version String version + * @return short[] four element array + */ + public static short[] parseVersion(final String version) { + short[] values = new short[] { + 0, 0, 0, 0}; + if (version != null) { + StringBuffer buf = new StringBuffer(version); + int start = 0; + for (int i = 0; i < 4; i++) { + int end = version.indexOf('.', start); + if (end <= 0) { + end = version.length(); + for (int j = end; j > start; j--) { + String part = buf.substring(start, end); + try { + values[i] = Short.parseShort(part); + break; + } catch (NumberFormatException ex) { + values[i] = 0; + } + } + break; + } else { + String part = buf.substring(start, end); + try { + values[i] = Short.parseShort(part); + start = end + 1; + } catch (NumberFormatException ex) { + break; + } + } + } + } + return values; + } + + /** + * Converts parsed version information into a string representation. + * + * @param buf StringBuffer string buffer to receive version number + * @param version short[] four-element array + */ + private static void encodeVersion(final StringBuffer buf, + final short[] version) { + for (int i = 0; i < 3; i++) { + buf.append(Short.toString(version[i])); + buf.append(','); + } + buf.append(Short.toString(version[3])); + } + + /** + * Writes windows resource. + * @param writer writer, may not be nul + * @param versionInfo version information + * @param outputFile executable file + * @param isDebug true if debug + * @param linkType link type + * @throws IOException if error writing resource file + */ + public static void writeResource(final Writer writer, + final VersionInfo versionInfo, + final File outputFile, + final boolean isDebug, + final LinkType linkType) throws IOException { + + //writer.write("#include \"windows.h\"\n"); + + writer.write("VS_VERSION_INFO VERSIONINFO\n"); + StringBuffer buf = new StringBuffer("FILEVERSION "); + encodeVersion(buf, parseVersion(versionInfo.getFileversion())); + buf.append("\nPRODUCTVERSION "); + encodeVersion(buf, parseVersion(versionInfo.getProductversion())); + buf.append("\n"); + writer.write(buf.toString()); + buf.setLength(0); + buf.append("FILEFLAGSMASK 0x1L /* VS_FF_DEBUG */"); + Boolean patched = versionInfo.getPatched(); + Boolean prerelease = versionInfo.getPrerelease(); + if (patched != null) { + buf.append(" | 0x4L /* VS_FF_PATCHED */"); + } + if (prerelease != null) { + buf.append(" | 0x2L /* VS_FF_PRERELEASE */"); + } + if (versionInfo.getPrivatebuild() != null) { + buf.append(" | 0x8L /* VS_FF_PRIVATEBUILD */"); + } + if (versionInfo.getSpecialbuild() != null) { + buf.append(" | 0x20L /* VS_FF_SPECIALBUILD */"); + } + buf.append('\n'); + writer.write(buf.toString()); + buf.setLength(0); + buf.append("FILEFLAGS "); + + if (isDebug) { + buf.append("0x1L /* VS_FF_DEBUG */ | "); + } + if (Boolean.TRUE.equals(patched)) { + buf.append("0x4L /* VS_FF_PATCHED */ | "); + } + if (Boolean.TRUE.equals(prerelease)) { + buf.append("0x2L /* VS_FF_PRERELEASE */ | "); + } + if (Boolean.TRUE.equals(versionInfo.getPrivatebuild())) { + buf.append("0x8L /* VS_FF_PRIVATEBUILD */ | "); + } + if (Boolean.TRUE.equals(versionInfo.getSpecialbuild())) { + buf.append("0x20L /* VS_FF_SPECIALBUILD */ | "); + } + if (buf.length() > 10) { + buf.setLength(buf.length() - 3); + buf.append('\n'); + } else { + buf.append("0\n"); + } + writer.write(buf.toString()); + buf.setLength(0); + + writer.write("FILEOS 0x40004 /* VOS_NT_WINDOWS32 */\nFILETYPE "); + if (linkType.isExecutable()) { + writer.write("0x1L /* VFT_APP */\n"); + } else { + if (linkType.isSharedLibrary()) { + writer.write("0x2L /* VFT_DLL */\n"); + } else if (linkType.isStaticLibrary()) { + writer.write("0x7L /* VFT_STATIC_LIB */\n"); + } else { + writer.write("0x0L /* VFT_UNKNOWN */\n"); + } + } + writer.write("FILESUBTYPE 0x0L\n"); + writer.write("BEGIN\n"); + writer.write("BLOCK \"StringFileInfo\"\n"); + writer.write(" BEGIN\n#ifdef UNICODE\nBLOCK \"040904B0\"\n"); + writer.write("#else\nBLOCK \"040904E4\"\n#endif\n"); + writer.write("BEGIN\n"); + if (versionInfo.getFilecomments() != null) { + writer.write("VALUE \"Comments\", \""); + writer.write(versionInfo.getFilecomments()); + writer.write("\\0\"\n"); + } + if (versionInfo.getCompanyname() != null) { + writer.write("VALUE \"CompanyName\", \""); + writer.write(versionInfo.getCompanyname()); + writer.write("\\0\"\n"); + } + if (versionInfo.getFiledescription() != null) { + writer.write("VALUE \"FileDescription\", \""); + writer.write(versionInfo.getFiledescription()); + writer.write("\\0\"\n"); + } + if (versionInfo.getFileversion() != null) { + writer.write("VALUE \"FileVersion\", \""); + writer.write(versionInfo.getFileversion()); + writer.write("\\0\"\n"); + } + String baseName = CUtil.getBasename(outputFile); + String internalName = versionInfo.getInternalname(); + if (internalName == null) { + internalName = baseName; + } + writer.write("VALUE \"InternalName\", \""); + writer.write(internalName); + writer.write("\\0\"\n"); + if (versionInfo.getLegalcopyright() != null) { + writer.write("VALUE \"LegalCopyright\", \""); + writer.write(versionInfo.getLegalcopyright()); + writer.write("\\0\"\n"); + } + if (versionInfo.getLegaltrademarks() != null) { + writer.write("VALUE \"LegalTrademarks\", \""); + writer.write(versionInfo.getLegaltrademarks()); + writer.write("\\0\"\n"); + } + writer.write("VALUE \"OriginalFilename\", \""); + writer.write(baseName); + writer.write("\\0\"\n"); + if (versionInfo.getPrivatebuild() != null) { + writer.write("VALUE \"PrivateBuild\", \""); + writer.write(versionInfo.getPrivatebuild()); + writer.write("\\0\"\n"); + } + if (versionInfo.getProductname() != null) { + writer.write("VALUE \"ProductName\", \""); + writer.write(versionInfo.getProductname()); + writer.write("\\0\"\n"); + } + if (versionInfo.getProductversion() != null) { + writer.write("VALUE \"ProductVersion\", \""); + writer.write(versionInfo.getProductversion()); + writer.write("\\0\"\n"); + } + if (versionInfo.getSpecialbuild() != null) { + writer.write("VALUE \"SpecialBuild\", \""); + writer.write(versionInfo.getSpecialbuild()); + writer.write("\\0\"\n"); + } + writer.write("END\n"); + writer.write("END\n"); + + writer.write("BLOCK \"VarFileInfo\"\n"); + writer.write("BEGIN\n#ifdef UNICODE\n"); + writer.write("VALUE \"Translation\", 0x409, 1200\n"); + writer.write("#else\n"); + writer.write("VALUE \"Translation\", 0x409, 1252\n"); + writer.write("#endif\n"); + writer.write("END\n"); + writer.write("END\n"); + } + +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/platforms/package.html b/src/main/java/net/sf/antcontrib/cpptasks/platforms/package.html new file mode 100644 index 0000000..e054c41 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/platforms/package.html @@ -0,0 +1,27 @@ + + + + + + + +Platform specific utilities. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/sun/C89CCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89CCompiler.java new file mode 100644 index 0000000..4ac8ac1 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89CCompiler.java @@ -0,0 +1,108 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.AbstractCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for the Sun C89 C++ Compiler + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class C89CCompiler extends CommandLineCCompiler { + private static final AbstractCompiler instance = new C89CCompiler(false, + null); + public static AbstractCompiler getInstance() { + return instance; + } + private C89CCompiler(boolean newEnvironment, Environment env) { + super("c89", null, new String[]{".c", ".cc", ".cpp", ".cxx", ".c++"}, + new String[]{".h", ".hpp"}, ".o", false, null, newEnvironment, + env); + } + protected void addImpliedArgs( + final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + // Specifies that only compilations and assemblies be done. + args.addElement("-c"); + /* + * if (exceptions) { args.addElement("/GX"); } + */ + if (debug) { + args.addElement("-g"); + args.addElement("-D_DEBUG"); + /* + * if (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MTd"); } else { args.addElement("/MDd"); + * args.addElement("/D_DLL"); } } else { args.addElement("/MLd"); } + */ + } else { + args.addElement("-DNDEBUG"); + /* + * if (multithreaded) { args.addElement("/D_MT"); if (staticLink) { + * args.addElement("/MT"); } else { args.addElement("/MD"); + * args.addElement("/D_DLL"); } } else { args.addElement("/ML"); } + */ + } + } + protected void addWarningSwitch(Vector args, int level) { + C89Processor.addWarningSwitch(args, level); + } + public Processor changeEnvironment(boolean newEnvironment, Environment env) { + if (newEnvironment || env != null) { + return new C89CCompiler(newEnvironment, env); + } + return this; + } + protected void getDefineSwitch(StringBuffer buf, String define, String value) { + C89Processor.getDefineSwitch(buf, define, value); + } + protected File[] getEnvironmentIncludePath() { + return CUtil.getPathFromEnvironment("INCLUDE", ":"); + } + protected String getIncludeDirSwitch(String includeDir) { + return C89Processor.getIncludeDirSwitch(includeDir); + } + public Linker getLinker(LinkType type) { + return C89Linker.getInstance().getLinker(type); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + /* Only compile one file at time for now */ + protected int getMaximumInputFilesPerCommand() { + return 1; + } + protected void getUndefineSwitch(StringBuffer buf, String define) { + C89Processor.getUndefineSwitch(buf, define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Linker.java b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Linker.java new file mode 100644 index 0000000..6c41c89 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Linker.java @@ -0,0 +1,132 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibrarySet; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; +import net.sf.antcontrib.cpptasks.VersionInfo; + +/** + * Adapter for the Sun C89 Linker + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public final class C89Linker extends CommandLineLinker { + private static final C89Linker dllLinker = new C89Linker("lib", ".so"); + private static final C89Linker instance = new C89Linker("", ""); + public static C89Linker getInstance() { + return instance; + } + private String outputPrefix; + private C89Linker(String outputPrefix, String outputSuffix) { + super("ld", "/bogus", new String[]{".o", ".a", ".lib", ".x"}, + new String[]{}, outputSuffix, false, null); + this.outputPrefix = outputPrefix; + } + protected void addBase(long base, Vector args) { + } + protected void addFixed(Boolean fixed, Vector args) { + } + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (linkType.isSharedLibrary()) { + args.addElement("-G"); + } + } + protected void addIncremental(boolean incremental, Vector args) { + } + public String[] addLibrarySets(CCTask task, LibrarySet[] libsets, + Vector preargs, Vector midargs, Vector endargs) { + super.addLibrarySets(task, libsets, preargs, midargs, endargs); + StringBuffer buf = new StringBuffer("-l"); + for (int i = 0; i < libsets.length; i++) { + LibrarySet set = libsets[i]; + File libdir = set.getDir(null); + String[] libs = set.getLibs(); + if (libdir != null) { + endargs.addElement("-L"); + endargs.addElement(libdir.getAbsolutePath()); + } + for (int j = 0; j < libs.length; j++) { + // + // reset the buffer to just "-l" + // + buf.setLength(2); + // + // add the library name + buf.append(libs[j]); + // + // add the argument to the list + endargs.addElement(buf.toString()); + } + } + return null; + } + protected void addMap(boolean map, Vector args) { + } + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + public String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + public File[] getLibraryPath() { + return CUtil.getPathFromEnvironment("LIB", ";"); + } + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return C89Processor.getLibraryPatterns(libnames, libType); + } + public Linker getLinker(LinkType linkType) { + if (linkType.isSharedLibrary()) { + return dllLinker; + } + /* + * if(linkType.isStaticLibrary()) { return + * OS390Librarian.getInstance(); } + */ + return instance; + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } + public String[] getOutputFileNames(String baseName, VersionInfo versionInfo) { + String[] baseNames = super.getOutputFileNames(baseName, versionInfo); + if (outputPrefix.length() > 0) { + for(int i = 0; i < baseNames.length; i++) { + baseNames[i] = outputPrefix + baseNames[i]; + } + } + return baseNames; + } + public String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-o", outputFile}; + } + public boolean isCaseSensitive() { + return C89Processor.isCaseSensitive(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Processor.java b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Processor.java new file mode 100644 index 0000000..343293a --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/sun/C89Processor.java @@ -0,0 +1,116 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.util.Vector; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * A add-in class for Sun C89 compilers and linkers + * + * @author Hiram Chirino (cojonudo14@hotmail.com) + */ +public class C89Processor { + private static int addLibraryPatterns(String[] libnames, StringBuffer buf, + String prefix, String extension, String[] patterns, int offset) { + for (int i = 0; i < libnames.length; i++) { + buf.setLength(0); + buf.append(prefix); + buf.append(libnames[i]); + buf.append(extension); + patterns[offset + i] = buf.toString(); + } + return offset + libnames.length; + } + public static void addWarningSwitch(Vector args, int level) { + switch (level) { + /* + * case 0: args.addElement("/W0"); break; + * + * case 1: args.addElement("/W1"); break; + * + * case 2: break; + * + * case 3: args.addElement("/W3"); break; + * + * case 4: args.addElement("/W4"); break; + */ + } + } + public static String getCommandFileSwitch(String cmdFile) { + StringBuffer buf = new StringBuffer("@"); + if (cmdFile.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(cmdFile); + buf.append('\"'); + } else { + buf.append(cmdFile); + } + return buf.toString(); + } + public static void getDefineSwitch(StringBuffer buf, String define, + String value) { + buf.setLength(0); + buf.append("-D"); + buf.append(define); + if (value != null && value.length() > 0) { + buf.append('='); + buf.append(value); + } + } + public static String getIncludeDirSwitch(String includeDir) { + return "-I" + includeDir; + } + public static String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + StringBuffer buf = new StringBuffer(); + int patternCount = libnames.length*2; + if (libType != null) { + patternCount = libnames.length; + } + String[] patterns = new String[patternCount]; + int offset = 0; + if (libType == null || "static".equals(libType.getValue())) { + offset = addLibraryPatterns(libnames, buf, "lib", ".a", patterns, 0); + } + if (libType == null || !"static".equals(libType.getValue())) { + offset = addLibraryPatterns(libnames, buf, "lib", ".so", patterns, + offset); + } + return patterns; + } + public static String[] getOutputFileSwitch(String outPath) { + StringBuffer buf = new StringBuffer("-o "); + if (outPath.indexOf(' ') >= 0) { + buf.append('\"'); + buf.append(outPath); + buf.append('\"'); + } else { + buf.append(outPath); + } + String[] retval = new String[]{buf.toString()}; + return retval; + } + public static void getUndefineSwitch(StringBuffer buf, String define) { + buf.setLength(0); + buf.append("-U"); + buf.append(define); + } + public static boolean isCaseSensitive() { + return true; + } + private C89Processor() { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.java new file mode 100644 index 0000000..9422e49 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.java @@ -0,0 +1,130 @@ +/* + * + * Copyright 2001-2007 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler; +import net.sf.antcontrib.cpptasks.OptimizationEnum; +/** + * Adapter for the Sun (r) Forte (tm) C++ compiler + * + * @author Curt Arnold + */ +public final class ForteCCCompiler extends GccCompatibleCCompiler { + private final static String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + private final static String[] sourceExtensions = new String[]{".c", ".cc", + ".cxx", ".cpp", ".c++", ".i", ".s"}; + + private static final ForteCCCompiler instance = new ForteCCCompiler("CC", + sourceExtensions, headerExtensions); + /** + * Gets singleton instance of this class + */ + public static ForteCCCompiler getInstance() { + return instance; + } + private String identifier; + private File[] includePath; + /** + * Private constructor. Use ForteCCCompiler.getInstance() to get singleton + * instance of this class. + */ + private ForteCCCompiler(String command, String[] sourceExtensions, + String[] headerExtensions) { + super(command, "-V", sourceExtensions, headerExtensions, false, null, + false, null); + } + public void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + args.addElement("-c"); + if (debug) { + args.addElement("-g"); + } + if (optimization != null) { + if (optimization.isSpeed()) { + args.addElement("-xO2"); + } + } + if (rtti != null) { + if (rtti.booleanValue()) { + args.addElement("-features=rtti"); + } else { + args.addElement("-features=no%rtti"); + } + } + if (multithreaded) { + args.addElement("-mt"); + } + if (linkType.isSharedLibrary()) { + args.addElement("-KPIC"); + } + + } + public void addWarningSwitch(Vector args, int level) { + switch (level) { + case 0 : + args.addElement("-w"); + break; + case 1 : + case 2 : + break; + case 3 : + args.addElement("+w"); + break; + case 4 : + args.addElement("+w2"); + break; + case 5 : + args.addElement("+w2"); + args.addElement("-xwe"); + } + } + public File[] getEnvironmentIncludePath() { + if (includePath == null) { + File ccLoc = CUtil.getExecutableLocation("CC"); + if (ccLoc != null) { + File compilerIncludeDir = new File( + new File(ccLoc, "../include").getAbsolutePath()); + if (compilerIncludeDir.exists()) { + includePath = new File[2]; + includePath[0] = compilerIncludeDir; + } + } + if (includePath == null) { + includePath = new File[1]; + } + includePath[includePath.length - 1] = new File("/usr/include"); + } + return includePath; + } + public Linker getLinker(LinkType linkType) { + return ForteCCLinker.getInstance().getLinker(linkType); + } + public int getMaximumCommandLength() { + return Integer.MAX_VALUE; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.java new file mode 100644 index 0000000..47d2155 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCLinker.java @@ -0,0 +1,100 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.sun; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker; +/** + * Adapter for Sun (r) Forte(tm) C++ Linker + * + * @author Curt Arnold + */ +public final class ForteCCLinker extends AbstractLdLinker { + private static final String[] discardFiles = new String[]{".dll", ".so", + ".sl"}; + private static final String[] objFiles = new String[]{".o", ".a", ".lib"}; + private static final ForteCCLinker arLinker = new ForteCCLinker("CC", + objFiles, discardFiles, "lib", ".a"); + private static final ForteCCLinker dllLinker = new ForteCCLinker("CC", + objFiles, discardFiles, "lib", ".so"); + private static final ForteCCLinker instance = new ForteCCLinker("CC", + objFiles, discardFiles, "", ""); + public static ForteCCLinker getInstance() { + return instance; + } + private File[] libDirs; + private ForteCCLinker(String command, String[] extensions, + String[] ignoredExtensions, String outputPrefix, String outputSuffix) { + super(command, "-V", extensions, ignoredExtensions, outputPrefix, + outputSuffix, false, null); + } + public void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (debug) { + args.addElement("-g"); + } + if (linkType.isStaticRuntime()) { + args.addElement("-static"); + } + if (linkType.isSharedLibrary()) { + args.addElement("-G"); + } + if (linkType.isStaticLibrary()) { + args.addElement("-xar"); + } + } + public void addIncremental(boolean incremental, Vector args) { + /* + * if (incremental) { args.addElement("-xidlon"); } else { + * args.addElement("-xidloff"); } + */ + } + /** + * Returns library path. + * + */ + public File[] getLibraryPath() { + if (libDirs == null) { + File CCloc = CUtil.getExecutableLocation("CC"); + if (CCloc != null) { + File compilerLib = new File(new File(CCloc, "../lib") + .getAbsolutePath()); + if (compilerLib.exists()) { + libDirs = new File[2]; + libDirs[0] = compilerLib; + } + } + if (libDirs == null) { + libDirs = new File[1]; + } + } + libDirs[libDirs.length - 1] = new File("/usr/lib"); + return libDirs; + } + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + return arLinker; + } + if (type.isSharedLibrary()) { + return dllLinker; + } + return instance; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.java new file mode 100644 index 0000000..c844ac4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxCCompiler.java @@ -0,0 +1,191 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ti; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.OptimizationEnum; + + +import org.apache.tools.ant.types.Environment; +/** + * Adapter for TI DSP compilers with cl** commands + * + * @author CurtA + */ +public class ClxxCCompiler extends CommandLineCCompiler { + /** + * Header file extensions + */ + private static final String[] headerExtensions = new String[]{".h", ".hpp", + ".inl"}; + /** + * Source file extensions + */ + private static final String[] sourceExtensions = new String[]{".c", ".cc", + ".cpp", ".cxx", ".c++"}; + /** + * Singleton for TMS320C55x + */ + private static final ClxxCCompiler cl55 = new ClxxCCompiler("cl55", false, + null); + /** + * Singleton for TMS320C6000 + */ + private static final ClxxCCompiler cl6x = new ClxxCCompiler("cl6x", false, + null); + public static ClxxCCompiler getCl55Instance() { + return cl55; + } + public static ClxxCCompiler getCl6xInstance() { + return cl6x; + } + /** + * Private constructor + * + * @param command + * executable name + * @param newEnvironment + * Change environment + * @param env + * New environment + */ + private ClxxCCompiler(String command, boolean newEnvironment, + Environment env) { + super(command, "-h", sourceExtensions, headerExtensions, ".o", false, + null, newEnvironment, env); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#addImpliedArgs(java.util.Vector, + * boolean, boolean, boolean, + * net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + protected void addImpliedArgs( + final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + if (debug) { + args.addElement("-gw"); + } + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#addWarningSwitch(java.util.Vector, + * int) + */ + protected void addWarningSwitch(Vector args, int warnings) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getDefineSwitch(java.lang.StringBuffer, + * java.lang.String, java.lang.String) + */ + protected void getDefineSwitch(StringBuffer buffer, String define, + String value) { + buffer.append("-d"); + buffer.append(define); + if (value != null) { + buffer.append('='); + buffer.append(value); + } + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getEnvironmentIncludePath() + */ + protected File[] getEnvironmentIncludePath() { + File[] c_dir = CUtil.getPathFromEnvironment("C_DIR", ";"); + File[] cx_dir = CUtil.getPathFromEnvironment("C6X_C_DIR", ";"); + if (c_dir.length == 0) { + return cx_dir; + } + if (cx_dir.length == 0) { + return c_dir; + } + File[] combo = new File[c_dir.length + cx_dir.length]; + for (int i = 0; i < cx_dir.length; i++) { + combo[i] = cx_dir[i]; + } + for (int i = 0; i < c_dir.length; i++) { + combo[i + cx_dir.length] = c_dir[i]; + } + return combo; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getIncludeDirSwitch(java.lang.String) + */ + protected String getIncludeDirSwitch(String source) { + return "-I" + source; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType type) { + if (type.isStaticLibrary()) { + if (this == cl6x) { + return ClxxLibrarian.getCl6xInstance(); + } + return ClxxLibrarian.getCl55Instance(); + } + if (type.isSharedLibrary()) { + if (this == cl6x) { + return ClxxLinker.getCl6xDllInstance(); + } + return ClxxLinker.getCl55DllInstance(); + } + if (this == cl6x) { + return ClxxLinker.getCl6xInstance(); + } + return ClxxLinker.getCl55Instance(); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getMaximumCommandLength() + */ + public int getMaximumCommandLength() { + return 1024; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler#getUndefineSwitch(java.lang.StringBuffer, + * java.lang.String) + */ + protected void getUndefineSwitch(StringBuffer buffer, String define) { + buffer.append("-u"); + buffer.append(define); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.java b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.java new file mode 100644 index 0000000..c48815a --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.java @@ -0,0 +1,162 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ti; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * + * Adapter for TI DSP librarian + * * + * @author CurtA + */ +public class ClxxLibrarian extends CommandLineLinker { + private static final ClxxLibrarian cl55Instance = new ClxxLibrarian("ar55"); + private static final ClxxLibrarian cl6xInstance = new ClxxLibrarian("ar6x"); + public static final ClxxLibrarian getCl55Instance() { + return cl55Instance; + } + public static final ClxxLibrarian getCl6xInstance() { + return cl6xInstance; + } + private ClxxLibrarian(String command) { + super(command, null, new String[]{".o"}, new String[0], ".lib", false, + null); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long, + * java.util.Vector) + */ + protected void addBase(long base, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean, + * java.util.Vector) + */ + protected void addFixed(Boolean fixed, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean, + * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector) + */ + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean, + * java.util.Vector) + */ + protected void addIncremental(boolean incremental, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean, + * java.util.Vector) + */ + protected void addMap(boolean map, Vector args) { + // TODO Auto-generated method stub + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int, + * java.util.Vector) + */ + protected void addStack(int stack, Vector args) { + // TODO Auto-generated method stub + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String) + */ + protected String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath() + */ + public File[] getLibraryPath() { + return new File[0]; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[]) + */ + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + return new String[0]; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType linkType) { + return null; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength() + */ + protected int getMaximumCommandLength() { + return 1024; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String) + */ + protected String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-o", outputFile}; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive() + */ + public boolean isCaseSensitive() { + // TODO Auto-generated method stub + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLinker.java b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLinker.java new file mode 100644 index 0000000..bb644a4 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/ti/ClxxLinker.java @@ -0,0 +1,181 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.ti; +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum; + +/** + * Adapter for TI DSP linkers + * * + * @author CurtA + * + */ +public class ClxxLinker extends CommandLineLinker { + private static final ClxxLinker cl55DllInstance = new ClxxLinker("lnk55", + ".dll"); + private static final ClxxLinker cl55Instance = new ClxxLinker("lnk55", + ".exe"); + private static final ClxxLinker cl6xDllInstance = new ClxxLinker("lnk6x", + ".dll"); + private static final ClxxLinker cl6xInstance = new ClxxLinker("lnk6x", + ".exe"); + public static ClxxLinker getCl55DllInstance() { + return cl55DllInstance; + } + public static ClxxLinker getCl55Instance() { + return cl55Instance; + } + public static ClxxLinker getCl6xDllInstance() { + return cl6xDllInstance; + } + public static ClxxLinker getCl6xInstance() { + return cl6xInstance; + } + private ClxxLinker(String command, String outputSuffix) { + super(command, "-h", new String[]{".o", ".lib", ".res"}, new String[]{ + ".map", ".pdb", ".lnk"}, outputSuffix, false, null); + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long, + * java.util.Vector) + */ + protected void addBase(long base, Vector args) { + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean, + * java.util.Vector) + */ + protected void addFixed(Boolean fixed, Vector args) { + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean, + * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector) + */ + protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args) { + if (linkType.isSharedLibrary()) { + args.addElement("-abs"); + } + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean, + * java.util.Vector) + */ + protected void addIncremental(boolean incremental, Vector args) { + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean, + * java.util.Vector) + */ + protected void addMap(boolean map, Vector args) { + if (map) { + args.addElement("-m"); + } + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int, + * java.util.Vector) + */ + protected void addStack(int stack, Vector args) { + } + /* (non-Javadoc) + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector) + */ + protected void addEntry(String entry, Vector args) { + } + + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String) + */ + protected String getCommandFileSwitch(String commandFile) { + return "@" + commandFile; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath() + */ + public File[] getLibraryPath() { + return new File[0]; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[]) + */ + public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) { + // + // TODO: Looks bogus, should be .a or .so's not .o's + // + String[] libpats = new String[libnames.length]; + for (int i = 0; i < libnames.length; i++) { + libpats[i] = libnames[i] + ".o"; + } + return libpats; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType) + */ + public Linker getLinker(LinkType linkType) { + return this; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength() + */ + protected int getMaximumCommandLength() { + return 1024; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String) + */ + protected String[] getOutputFileSwitch(String outputFile) { + return new String[]{"-o", outputFile}; + } + /* + * (non-Javadoc) + * + * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive() + */ + public boolean isCaseSensitive() { + // TODO Auto-generated method stub + return false; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.java new file mode 100644 index 0000000..25651da --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectCompiler.java @@ -0,0 +1,280 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.FileReader; +import java.io.Reader; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.OptimizationEnum; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.parser.CParser; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.gcc.LdLinker; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the Trolltech Qt MOC Compiler. + * + * @author Curt Arnold + */ +public final class MetaObjectCompiler + extends CommandLineCompiler { + /** + * Singleton instance. + */ + private static final MetaObjectCompiler INSTANCE = new MetaObjectCompiler( + false, null); + + /** + * Gets singleton instance of compiler. + * @return MetaObjectCompiler singleton instance + */ + public static MetaObjectCompiler getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param newEnvironment boolean establish an new environment. + * @param env Environment environment. + */ + private MetaObjectCompiler(final boolean newEnvironment, + final Environment env) { + super("moc", "-version", new String[] {".h", ".cpp"} + , new String[0], ".moc", false, null, newEnvironment, env); + } + + /** + * Add arguments for debug, etc. + * @param args Vector command argument list + * @param debug boolean build for debug if true + * @param multithreaded boolean build for multithreading if true + * @param exceptions boolean enable exceptions if true + * @param linkType LinkType output and runtime type + * @param rtti Boolean enable run-time type identification if true + * @param optimization OptimizationEnum optimization + */ + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + } + + /** + * Add arguments for specified warning level. + * @param args Vector command line arguments + * @param level int warning level value + */ + protected void addWarningSwitch(final Vector args, final int level) { + } + + /** + * Change enviroment (deprecated). + * @param newEnvironment boolean use new environment. + * @param env Environment environment + * @return Processor modified processor + */ + public Processor changeEnvironment(final boolean newEnvironment, + final Environment env) { + return this; + } + + /** + * Gets a parser to scan source file for dependencies. + * @param source source file + * @return parser + */ + protected Parser createParser(final File source) { + return new CParser(); + } + + /** + * Gets number of command line arguments per input file. + * @return int number of command line arguments per input file. + */ + protected int getArgumentCountPerInputFile() { + return 3; + } + + /** + * Returns the bid of the processor for the file. + * + * @param inputFile + * filename of input file + * @return bid for the file, 0 indicates no interest, 1 indicates that the + * processor recognizes the file but doesn't process it (header + * files, for example), 100 indicates strong interest + */ + public int bid(final String inputFile) { + // + // get base bid + int baseBid = super.bid(inputFile); + // + // if the base bid was non-zero (.h or .cpp extension) + // + if (baseBid > 0) { + // + // scan the file for Q_OBJECT + // skip file if not present + // + try { + Reader reader = new BufferedReader(new FileReader(inputFile)); + boolean hasQObject = MetaObjectParser.hasQObject(reader); + reader.close(); + if (hasQObject) { + return baseBid; + } + } catch (IOException ex) { + return 0; + } + } + return 0; + } + + /** + * Gets output file names. + * @param inputFile String input file name + * @param versionInfo version info, not used by this compiler. + * @return String[] output file names + */ + public String[] getOutputFileNames(final String inputFile, + final VersionInfo versionInfo) { + if (inputFile.endsWith(".cpp")) { + return super.getOutputFileNames(inputFile, versionInfo); + } + // + // if a recognized input file + // + String baseName = getBaseOutputName(inputFile); + return new String[] { + "moc_" + baseName + ".cpp"}; + } + + /** + * Gets input file arguments. + * @param outputDir File output directory + * @param filename String input file name. + * @param index int argument index, + * 0 to getNumberOfArgumentsPerInputFile() -1 + * @return String input file argument + */ + protected String getInputFileArgument(final File outputDir, + final String filename, + final int index) { + switch (index) { + case 0: + return "-o"; + case 1: + String outputFileName = getOutputFileNames(filename, null)[0]; + return new File(outputDir, outputFileName) + .toString(); + + case 2: + return filename; + + default: + return null; + } + } + + /** + * Gets maximum length of command line. + * @return int maximum length of command line + */ + public int getMaximumCommandLength() { + return 1024; + } + + /** + * Gets maximum number of input files processed per command. + * @return int maximum number of input files processed per command. + */ + protected int getMaximumInputFilesPerCommand() { + return 1; + } + + /** + * Gets include directory switch. + * @param includeDir String include directory + * @return String command switch to add specified directory to search path + */ + protected String getIncludeDirSwitch(final String includeDir) { + return ""; + } + + /** + * Gets switch to define preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + * @param value String macro value, may be null. + */ + protected void getDefineSwitch(final StringBuffer buffer, + final String define, + final String value) { + } + + /** + * Gets switch to undefine preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + */ + protected void getUndefineSwitch(final StringBuffer buffer, + final String define) { + } + + /** + * Gets standard include paths. + * @return File[] standard include paths + */ + protected File[] getEnvironmentIncludePath() { + return new File[0]; + } + + /** + * Gets linker associated with this type. + * @param type LinkType linker, returns ld. + * @return Linker + */ + public Linker getLinker(final LinkType type) { + return LdLinker.getInstance(); + } + + /** + * Get total command line length due to the input file. + * @param outputDir File output directory + * @param inputFile String input file + * @return int characters added to command line for the input file. + */ + protected int getTotalArgumentLengthForInputFile(final File outputDir, + final String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 0); + String arg2 = getInputFileArgument(outputDir, inputFile, 1); + return arg1.length() + arg2.length() + 3; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.java b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.java new file mode 100644 index 0000000..e75a116 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/MetaObjectParser.java @@ -0,0 +1,148 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import java.io.IOException; +import java.io.Reader; + +import net.sf.antcontrib.cpptasks.parser.AbstractParser; +import net.sf.antcontrib.cpptasks.parser.AbstractParserState; +import net.sf.antcontrib.cpptasks.parser.LetterState; +import net.sf.antcontrib.cpptasks.parser.WhitespaceOrLetterState; + +/** + * Scans a source file for Q_OBJECT. + * + * @author Curt Arnold + */ +public final class MetaObjectParser + extends AbstractParser { + /** + * Parser state that matches file T character. + */ + private static final class FinalTState + extends AbstractParserState { + /** + * Parser. + */ + private final MetaObjectParser mocParser; + + /** + * Constructor. + * @param parser MetaObjectParser parser + */ + public FinalTState(final MetaObjectParser parser) { + super(parser); + this.mocParser = parser; + } + + /** + * Consumes a character and returns the next state for the parser. + * + * @param ch + * next character + * @return the configured nextState if ch is the expected character or the + * configure noMatchState otherwise. + */ + public AbstractParserState consume(final char ch) { + if (ch == 'T') { + mocParser.setQObject(true); + return null; + } + if (ch == '\n') { + getParser().getNewLineState(); + } + return null; + } + } + + /** + * Determines if source file contains Q_OBJECT. + * @param reader Reader source reader + * @throws IOException if unable to read source file + * @return boolean true if source contains Q_OBJECT + */ + public static boolean hasQObject(final Reader reader) throws IOException { + MetaObjectParser parser = new MetaObjectParser(); + parser.parse(reader); + return parser.hasQObject; + + } + + /** + * Has Q_OBJECT been encountered. + */ + private boolean hasQObject = false; + + /** + * Parser state for start of new line. + */ + private AbstractParserState newLineState; + + /** + * Constructor. + * + */ + private MetaObjectParser() { + // + // search for Q_OBJECT + // + AbstractParserState t = new FinalTState(this); + AbstractParserState c = new LetterState(this, 'C', t, null); + AbstractParserState e = new LetterState(this, 'E', c, null); + AbstractParserState j = new LetterState(this, 'J', e, null); + AbstractParserState b = new LetterState(this, 'B', j, null); + AbstractParserState o = new LetterState(this, 'O', b, null); + AbstractParserState underline = new LetterState(this, '_', o, null); + newLineState = new WhitespaceOrLetterState(this, 'Q', underline); + } + + /** + * Adds a filename to the list of included files. + * + * @param filename filename to be added + */ + protected void addFilename(final String filename) { + + } + + /** + * Gets new line state. + * @return AbstractParserState new line state. + */ + public AbstractParserState getNewLineState() { + return newLineState; + } + + /** + * Parse input file. + * @param reader Reader source file + * @throws IOException if error reading source file + */ + public void parse(final Reader reader) throws IOException { + hasQObject = false; + super.parse(reader); + } + + /** + * Called FinalTState to set that Q_OBJECT was found. + * @param value boolean new value for hasQObject + */ + public void setQObject(final boolean value) { + this.hasQObject = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.java new file mode 100644 index 0000000..cc4cf3b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceCompiler.java @@ -0,0 +1,347 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import java.io.File; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CCTask; +import net.sf.antcontrib.cpptasks.OptimizationEnum; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler; +import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration; +import net.sf.antcontrib.cpptasks.compiler.LinkType; +import net.sf.antcontrib.cpptasks.compiler.Linker; +import net.sf.antcontrib.cpptasks.compiler.Processor; +import net.sf.antcontrib.cpptasks.compiler.ProgressMonitor; +import net.sf.antcontrib.cpptasks.gcc.LdLinker; +import net.sf.antcontrib.cpptasks.parser.Parser; +import net.sf.antcontrib.cpptasks.VersionInfo; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.Environment; + +/** + * Adapter for the Trolltech Qt UIC Compiler. + * + * @author Curt Arnold + */ +public final class UserInterfaceCompiler + extends CommandLineCompiler { + /** + * Singleton instance. + */ + private static final UserInterfaceCompiler INSTANCE = new + UserInterfaceCompiler( + false, null); + + /** + * Gets singleton instance of compiler. + * @return MetaObjectCompiler singleton instance + */ + public static UserInterfaceCompiler getInstance() { + return INSTANCE; + } + + /** + * Constructor. + * @param newEnvironment boolean establish an new environment. + * @param env Environment environment. + */ + private UserInterfaceCompiler(final boolean newEnvironment, + final Environment env) { + super("uic", "-version", new String[] {".ui"} + , new String[0], ".h", false, null, newEnvironment, env); + } + + /** + * Add arguments for debug, etc. + * @param args Vector command argument list + * @param debug boolean build for debug if true + * @param multithreaded boolean build for multithreading if true + * @param exceptions boolean enable exceptions if true + * @param linkType LinkType output and runtime type + * @param rtti Boolean enable run-time type identification if true + * @param optimization OptimizationEnum optimization + */ + protected void addImpliedArgs(final Vector args, + final boolean debug, + final boolean multithreaded, + final boolean exceptions, + final LinkType linkType, + final Boolean rtti, + final OptimizationEnum optimization) { + } + + /** + * Add arguments for specified warning level. + * @param args Vector command line arguments + * @param level int warning level value + */ + protected void addWarningSwitch(final Vector args, final int level) { + } + + /** + * Change enviroment (deprecated). + * @param newEnvironment boolean use new environment. + * @param env Environment environment + * @return Processor modified processor + */ + public Processor changeEnvironment(final boolean newEnvironment, + final Environment env) { + return this; + } + + /** + * The include parser for C will work just fine, but we didn't want to + * inherit from CommandLineCCompiler. + * @param source source file to be parsed + * @return parser + */ + protected Parser createParser(final File source) { + return new UserInterfaceParser(); + } + + /** + * Gets number of command line arguments per input file. + * @return int number of command line arguments per input file. + */ + protected int getArgumentCountPerInputFile() { + return 3; + } + + /** + * Gets output file names. + * @param inputFile String input file name + * @param versionInfo version info, not used by this compiler. + * @return String[] output file names + */ + public String[] getOutputFileNames(final String inputFile, + final VersionInfo versionInfo) { + // + // if a recognized input file + // + String baseName = getBaseOutputName(inputFile); + return new String[] { + baseName + ".h", + baseName + ".cpp", + "moc_" + baseName + ".cpp"}; + } + + /** + * Gets input file arguments. + * @param outputDir File output directory + * @param filename String input file name. + * @param index int argument index, + * 0 to getNumberOfArgumentsPerInputFile() -1 + * @return String input file argument + */ + protected String getInputFileArgument(final File outputDir, + final String filename, + final int index) { + switch (index) { + case 0: + return "-o"; + + case 1: + String outputFileName = getOutputFileNames(filename, null)[0]; + return new File(outputDir, outputFileName) + .toString(); + + case 2: + return filename; + + default: + return null; + } + } + + /** + * Gets maximum length of command line. + * @return int maximum length of command line + */ + public int getMaximumCommandLength() { + return 1024; + } + + /** + * Gets maximum number of input files processed per command. + * @return int maximum number of input files processed per command. + */ + protected int getMaximumInputFilesPerCommand() { + return 1; + } + + /** + * Gets include directory switch. + * @param includeDir String include directory + * @return String command switch to add specified directory to search path + */ + protected String getIncludeDirSwitch(final String includeDir) { + return ""; + } + + /** + * Gets switch to define preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + * @param value String macro value, may be null. + */ + protected void getDefineSwitch(final StringBuffer buffer, + final String define, + final String value) { + } + + /** + * Gets switch to undefine preprocessor macro. + * @param buffer StringBuffer command line argument + * @param define String macro name + */ + protected void getUndefineSwitch(final StringBuffer buffer, + final String define) { + } + + /** + * Gets standard include paths. + * @return File[] standard include paths + */ + protected File[] getEnvironmentIncludePath() { + return new File[0]; + } + + /** + * Gets linker associated with this type. + * @param type LinkType linker, returns ld. + * @return Linker + */ + public Linker getLinker(final LinkType type) { + return LdLinker.getInstance(); + } + + /** + * Compiles an .ui file into the corresponding .h, .cpp and moc_*.cpp files. + * @param task current cc task + * @param outputDir output directory + * @param sourceFiles source files + * @param args command line arguments that appear before input files + * @param endArgs command line arguments that appear after input files + * @param relentless if true, do not stop at first compilation error + * @param config compiler configuration + * @param monitor progress monitor + */ + public void compile(final CCTask task, + final File outputDir, + final String[] sourceFiles, + final String[] args, + final String[] endArgs, + final boolean relentless, + final CommandLineCompilerConfiguration config, + final ProgressMonitor monitor) { + + BuildException exc = null; + String[] thisSource = new String[1]; + String[] uicCommand = new String[args.length + endArgs.length + 4]; + uicCommand[0] = "uic"; + String[] uicImplCommand = new String[args.length + endArgs.length + 6]; + uicImplCommand[0] = "uic"; + String[] mocCommand = new String[args.length + endArgs.length + 4]; + mocCommand[0] = "moc"; + for (int i = 0; i < args.length; i++) { + uicCommand[i + 1] = args[i]; + uicImplCommand[i + 1] = args[i]; + mocCommand[i + i] = args[i]; + } + uicCommand[args.length + 1] = "-o"; + uicImplCommand[args.length + 1] = "-o"; + mocCommand[args.length + 1] = "-o"; + + int uicIndex = args.length + 4; + int uicImplIndex = args.length + 6; + int mocIndex = args.length + 4; + for (int i = 0; i < endArgs.length; i++) { + uicCommand[uicIndex++] = endArgs[i]; + uicImplCommand[uicImplIndex++] = endArgs[i]; + mocCommand[mocIndex++] = endArgs[i]; + } + for (int j = 0; j < sourceFiles.length; j++) { + uicIndex = args.length + 2; + uicImplIndex = args.length + 2; + mocIndex = args.length + 2; + String[] outputFileNames = getOutputFileNames(sourceFiles[j], null); + + uicCommand[uicIndex++] = outputFileNames[0]; + uicCommand[uicIndex++] = sourceFiles[j]; + + uicImplCommand[uicImplIndex++] = outputFileNames[1]; + uicImplCommand[uicImplIndex++] = "-impl"; + uicImplCommand[uicImplIndex++] = outputFileNames[0]; + uicImplCommand[uicImplIndex++] = sourceFiles[j]; + + mocCommand[mocIndex++] = outputFileNames[2]; + mocCommand[mocIndex++] = outputFileNames[0]; + + int retval = runCommand(task, outputDir, uicCommand); + if (retval == 0) { + retval = runCommand(task, outputDir, uicImplCommand); + if (retval == 0) { + retval = runCommand(task, outputDir, mocCommand); + } + } + if (monitor != null) { + thisSource[0] = sourceFiles[j]; + monitor.progress(thisSource); + } + // + // if the process returned a failure code and + // we aren't holding an exception from an earlier + // interation + if (retval != 0 && exc == null) { + // + // construct the exception + // + exc = new BuildException(this.getCommand() + + " failed with return code " + retval, task + .getLocation()); + // + // and throw it now unless we are relentless + // + if (!relentless) { + throw exc; + } + } + } + // + // if the compiler returned a failure value earlier + // then throw an exception + if (exc != null) { + throw exc; + } + } + + /** + * Get total command line length due to the input file. + * @param outputDir File output directory + * @param inputFile String input file + * @return int characters added to command line for the input file. + */ + protected int getTotalArgumentLengthForInputFile( + final File outputDir, + final String inputFile) { + String arg1 = getInputFileArgument(outputDir, inputFile, 1); + String arg2 = getInputFileArgument(outputDir, inputFile, 2); + return arg1.length() + arg2.length() + 4; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.java b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.java new file mode 100644 index 0000000..e3e309c --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/UserInterfaceParser.java @@ -0,0 +1,67 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.trolltech; + +import java.io.IOException; +import java.io.Reader; + +import net.sf.antcontrib.cpptasks.parser.Parser; + +/** + * Dependency scanner for Trolltech Qt User Interface definition files. + * + * .ui files are XML documents that may contain an include elements, + * however the includes are just copied to the generated files and + * and changes to the includes do not need to trigger rerunning uic. + * + * @author Curt Arnold + */ +public final class UserInterfaceParser + implements Parser { + + /** + * Constructor. + * + */ + public UserInterfaceParser() { + } + + /** + * Adds filename to the list of included files. + * + * @param include String included file name + */ + public void addFilename(final String include) { + } + + /** + * Gets included files. + * @return String[] included files + */ + public String[] getIncludes() { + return new String[0]; + } + + /** + * Parses source file for dependencies. + * + * @param reader Reader reader + * @throws IOException if error reading source file + */ + public void parse(final Reader reader) throws IOException { + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/trolltech/package.html b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/package.html new file mode 100644 index 0000000..c12d506 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/trolltech/package.html @@ -0,0 +1,27 @@ + + + + + + + +Adapters for Trolltech Qt moc and uic compilers. + + + diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/CommandLineArgument.java b/src/main/java/net/sf/antcontrib/cpptasks/types/CommandLineArgument.java new file mode 100644 index 0000000..e428469 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/CommandLineArgument.java @@ -0,0 +1,104 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * An compiler/linker command line flag. + */ +public class CommandLineArgument { + /** + * Enumerated attribute with the values "start", "mid" and "end", + */ + public static class LocationEnum extends EnumeratedAttribute { + public String[] getValues() { + return new String[]{"start", "mid", "end"}; + } + } + private String ifCond; + private int location; + private String unlessCond; + private String value; + public CommandLineArgument() { + } + public int getLocation() { + return location; + } + public String getValue() { + return value; + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + */ + public boolean isActive(org.apache.tools.ant.Project p) { + if (value == null) { + return false; + } + if (ifCond != null && p.getProperty(ifCond) == null) { + return false; + } else if (unlessCond != null && p.getProperty(unlessCond) != null) { + return false; + } + return true; + } + /** + * Sets the property name for the 'if' condition. + * + * The argument will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Specifies relative location of argument on command line. "start" will + * place argument at start of command line, "mid" will place argument after + * all "start" arguments but before filenames, "end" will place argument + * after filenames. + * + */ + public void setLocation(LocationEnum location) { + this.location = location.getIndex(); + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the argument will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } + /** + * Specifies the string that should appear on the command line. The + * argument will be quoted if it contains embedded blanks. Use multiple + * arguments to avoid quoting. + * + */ + public void setValue(String value) { + this.value = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/CompilerArgument.java b/src/main/java/net/sf/antcontrib/cpptasks/types/CompilerArgument.java new file mode 100644 index 0000000..2137186 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/CompilerArgument.java @@ -0,0 +1,28 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +/** + * A compiler command line argument. + */ +public class CompilerArgument extends CommandLineArgument { + public CompilerArgument() { + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.java b/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.java new file mode 100644 index 0000000..7bc22ee --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalFileSet.java @@ -0,0 +1,84 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import net.sf.antcontrib.cpptasks.CUtil; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.AbstractFileSet; +import org.apache.tools.ant.types.FileSet; +/** + * An Ant FileSet object augmented with if and unless conditions. + * + * @author Curt Arnold + */ +public class ConditionalFileSet extends FileSet { + private String ifCond; + private String unlessCond; + public ConditionalFileSet() { + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** + * overrides FileSet's implementation which would throw an exception since + * the referenced object isn't this type. + */ + protected AbstractFileSet getRef(Project p) { + return (AbstractFileSet) ref.getReferencedObject(p); + } + /** + * Returns true if the Path's if and unless conditions (if any) are + * satisfied. + */ + public boolean isActive() throws BuildException { + Project p = getProject(); + if (p == null) { + throw new java.lang.IllegalStateException( + "setProject() should have been called"); + } + return CUtil.isActive(p, ifCond, unlessCond); + } + /** + * Sets the property name for the 'if' condition. + * + * The fileset will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the fileset will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalPath.java b/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalPath.java new file mode 100644 index 0000000..ae45eaa --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/ConditionalPath.java @@ -0,0 +1,75 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import net.sf.antcontrib.cpptasks.CUtil; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.Path; +/** + * An Ant Path object augmented with if and unless conditionals + * + * @author Curt Arnold + */ +public class ConditionalPath extends Path { + private String ifCond; + private String unlessCond; + public ConditionalPath(Project project) { + super(project); + } + public ConditionalPath(Project p, String path) { + super(p, path); + } + /** + * Returns true if the Path's if and unless conditions (if any) are + * satisfied. + */ + public boolean isActive(org.apache.tools.ant.Project p) + throws BuildException { + return CUtil.isActive(p, ifCond, unlessCond); + } + /** + * Sets the property name for the 'if' condition. + * + * The path will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the path will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/DefineArgument.java b/src/main/java/net/sf/antcontrib/cpptasks/types/DefineArgument.java new file mode 100644 index 0000000..5118e79 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/DefineArgument.java @@ -0,0 +1,38 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +/** + * Preprocessor macro definition. + * + * @author Mark A Russell mark_russell@csg_systems.com + * + */ +public class DefineArgument extends UndefineArgument { + private String value; + public DefineArgument() { + super(true); + } + /** Returns the value of the define */ + public final String getValue() { + return value; + } + /** Set the value attribute */ + public final void setValue(String value) { + this.value = value; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/DefineSet.java b/src/main/java/net/sf/antcontrib/cpptasks/types/DefineSet.java new file mode 100644 index 0000000..f3ab44b --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/DefineSet.java @@ -0,0 +1,199 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.Reference; +/** + * Set of preprocessor macro defines and undefines. + * + * @author Mark A Russell mark_russell@csg_systems.com + * + * @author Adam Murdoch + */ +public class DefineSet extends DataType { + private Vector defineList = new Vector(); + private String ifCond = null; + private String unlessCond = null; + /** + * + * Adds a define element. + * + * @throws BuildException + * if reference + */ + public void addDefine(DefineArgument arg) throws BuildException { + if (isReference()) { + throw noChildrenAllowed(); + } + defineList.addElement(arg); + } + /** Adds defines/undefines. */ + private void addDefines(String[] defs, boolean isDefine) { + for (int i = 0; i < defs.length; i++) { + UndefineArgument def; + if (isDefine) { + def = new DefineArgument(); + } else { + def = new UndefineArgument(); + } + def.setName(defs[i]); + defineList.addElement(def); + } + } + /** + * + * Adds an undefine element. + * + * @throws BuildException + * if reference + */ + public void addUndefine(UndefineArgument arg) throws BuildException { + if (isReference()) { + throw noChildrenAllowed(); + } + defineList.addElement(arg); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** Returns the defines and undefines in this set. */ + public UndefineArgument[] getDefines() throws BuildException { + if (isReference()) { + DefineSet defset = (DefineSet) getCheckedRef(DefineSet.class, + "DefineSet"); + return defset.getDefines(); + } else { + if (isActive()) { + UndefineArgument[] defs = new UndefineArgument[defineList + .size()]; + defineList.copyInto(defs); + return defs; + } else { + return new UndefineArgument[0]; + } + } + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + * + * @exception BuildException + * throws build exception if name is not set + */ + public final boolean isActive() throws BuildException { + return CUtil.isActive(getProject(), ifCond, unlessCond); + } + /** + * A comma-separated list of preprocessor macros to define. Use nested + * define elements to define macro values. + * + * @param defList + * comma-separated list of preprocessor macros + * @throws BuildException + * throw if defineset is a reference + */ + public void setDefine(CUtil.StringArrayBuilder defList) + throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + addDefines(defList.getValue(), true); + } + /** + * Sets a description of the current data type. + */ + public void setDescription(String desc) { + super.setDescription(desc); + } + /** + * Sets an id that can be used to reference this element. + * + * @param id + * id + */ + public void setId(String id) { + // + // this is actually accomplished by a different + // mechanism, but we can document it + // + } + /** + * Sets the property name for the 'if' condition. + * + * The define will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public final void setIf(String propName) { + ifCond = propName; + } + /** + * Specifies that this element should behave as if the content of the + * element with the matching id attribute was inserted at this location. If + * specified, no other attributes or child content should be specified, + * other than "description". + * + */ + public void setRefid(Reference r) throws BuildException { + if (!defineList.isEmpty()) { + throw tooManyAttributes(); + } + super.setRefid(r); + } + /** + * A comma-separated list of preprocessor macros to undefine. + * + * @param undefList + * comma-separated list of preprocessor macros + * @throws BuildException + * throw if defineset is a reference + */ + public void setUndefine(CUtil.StringArrayBuilder undefList) + throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + addDefines(undefList.getValue(), false); + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public final void setUnless(String propName) { + unlessCond = propName; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/FlexLong.java b/src/main/java/net/sf/antcontrib/cpptasks/types/FlexLong.java new file mode 100644 index 0000000..f710aa3 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/FlexLong.java @@ -0,0 +1,59 @@ +/* + * + * Copyright 2002-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import java.lang.reflect.Method; + +/** + * Helper class which can be used for Ant task attribute setter methods to + * allow the build file to specify a long in either decimal, octal, or + * hexadecimal format. + * // FlexInteger author + * @author Erik Hatcher + * @see org.apache.tools.ant.types.FlexInteger + */ +public class FlexLong { + private Long value; + /** + * Constructor used by Ant's introspection mechanism for attribute + * population + */ + public FlexLong(String value) { + // Java 1.1 did not support Long.decode().. so we call it by + // reflection. + try { + Method m = Long.class + .getMethod("decode", new Class[]{String.class}); + Object rc = m.invoke(null, new Object[]{value}); + this.value = (Long) rc; + } catch (Exception e) { + // Try it the old fashioned way, we must be on a 1.1 jre + this.value = new Long(value); + } + } + /** + * Returns the decimal integer value + */ + public long longValue() { + return value.longValue(); + } + /** + * Overridden method to return the decimal value for display + */ + public String toString() { + return value.toString(); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/IncludePath.java b/src/main/java/net/sf/antcontrib/cpptasks/types/IncludePath.java new file mode 100644 index 0000000..e4c8414 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/IncludePath.java @@ -0,0 +1,38 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import org.apache.tools.ant.Project; +/** + * An include path. + * + * Works like other paths in Ant with with the addition of "if" and "unless" + * conditions. + * + * @author Curt Arnold + */ +public class IncludePath extends ConditionalPath { + public IncludePath(Project project) { + super(project); + } + public IncludePath(Project p, String path) { + super(p, path); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/LibrarySet.java b/src/main/java/net/sf/antcontrib/cpptasks/types/LibrarySet.java new file mode 100644 index 0000000..acac911 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/LibrarySet.java @@ -0,0 +1,347 @@ +/* + * + * Copyright 2001-2006 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import java.io.File; + +import net.sf.antcontrib.cpptasks.CUtil; +import net.sf.antcontrib.cpptasks.FileVisitor; +import net.sf.antcontrib.cpptasks.compiler.Linker; + +import org.apache.tools.ant.BuildException; +import org.apache.tools.ant.DirectoryScanner; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.types.DataType; +import org.apache.tools.ant.types.FileSet; +import org.apache.tools.ant.types.PatternSet; +/** + * A set of library names. Libraries can also be added to a link by specifying + * them in a fileset. + * + * For most Unix-like compilers, libset will result in a series of -l and -L + * linker arguments. For Windows compilers, the library names will be used to + * locate the appropriate library files which will be added to the linkers + * input file list as if they had been specified in a fileset. + * + * @author Mark A Russell mark_russell@csg_systems.com + * + * @author Adam Murdoch + * @author Curt Arnold + */ +public class LibrarySet extends DataType { + private String dataset; + private boolean explicitCaseSensitive; + private String ifCond; + private String[] libnames; + private final FileSet set = new FileSet(); + private String unlessCond; + private LibraryTypeEnum libraryType; + public LibrarySet() { + libnames = new String[0]; + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** + * Gets the dataset. Used on OS390 if the libs are in a dataset. + * + * @return Returns a String + */ + public String getDataset() { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.getDataset(); + } + return dataset; + } + public File getDir(final Project project) { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.getDir(project); + } + return set.getDir(project); + } + protected FileSet getFileSet() { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.getFileSet(); + } + return set; + } + public String[] getLibs() { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.getLibs(); + } + String[] retval = (String[]) libnames.clone(); + return retval; + } + + /** + * Gets preferred library type + * + * @return library type, may be null. + */ + public LibraryTypeEnum getType() { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.getType(); + } + return libraryType; + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + */ + public boolean isActive(final org.apache.tools.ant.Project p) { + if (p == null) { + throw new NullPointerException("p"); + } + if (ifCond != null) { + String ifValue = p.getProperty(ifCond); + if (ifValue != null) { + if (ifValue.equals("no") || ifValue.equals("false")) { + throw new BuildException( + "property " + + ifCond + + " used as if condition has value " + + ifValue + + " which suggests a misunderstanding of if attributes"); + } + } else { + return false; + } + } + if (unlessCond != null) { + String unlessValue = p.getProperty(unlessCond); + if (unlessValue != null) { + if (unlessValue.equals("no") || unlessValue.equals("false")) { + throw new BuildException( + "property " + + unlessCond + + " used as unless condition has value " + + unlessValue + + " which suggests a misunderstanding of unless attributes"); + } + return false; + } + } + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + return master.isActive(project); + } + if (libnames.length == 0) { + p.log("libnames not specified or empty.", Project.MSG_WARN); + return false; + } + return true; + } + /** + * Sets case sensitivity of the file system. If not set, will default to + * the linker's case sensitivity. + * + * @param isCaseSensitive + * "true"|"on"|"yes" if file system is case sensitive, + * "false"|"off"|"no" when not. + */ + public void setCaseSensitive(final boolean isCaseSensitive) { + if (isReference()) { + throw tooManyAttributes(); + } + explicitCaseSensitive = true; + set.setCaseSensitive(isCaseSensitive); + } + /** + * Sets the dataset. Used on OS390 if the libs are in a dataset. + * + * @param dataset + * The dataset to set + */ + public void setDataset(final String dataset) { + if (isReference()) { + throw tooManyAttributes(); + } + this.dataset = dataset; + } + /** + * Library directory. + * + * @param dir + * library directory + * + */ + public void setDir(final File dir) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + set.setDir(dir); + } + /** + * Sets the property name for the 'if' condition. + * + * The library set will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public void setIf(String propName) { + ifCond = propName; + } + /** + * Comma-separated list of library names without leading prefixes, such as + * "lib", or extensions, such as ".so" or ".a". + * + */ + public void setLibs(final CUtil.StringArrayBuilder libs) throws BuildException { + if (isReference()) { + throw tooManyAttributes(); + } + libnames = libs.getValue(); + // + // earlier implementations would warn of suspicious library names + // (like libpthread for pthread or kernel.lib for kernel). + // visitLibraries now provides better feedback and ld type linkers + // should provide adequate feedback so the check here is not necessary. + } + public void setProject(final Project project) { + set.setProject(project); + super.setProject(project); + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the library set will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public void setUnless(String propName) { + unlessCond = propName; + } + + /** + * Sets the preferred library type. Supported values "shared", "static", and + * "framework". "framework" is equivalent to "shared" on non-Darwin platforms. + */ + public void setType(final LibraryTypeEnum type) { + if (isReference()) { + throw tooManyAttributes(); + } + this.libraryType = type; + } + + public void visitLibraries(final Project project, + final Linker linker, + final File[] libpath, + final FileVisitor visitor) throws BuildException { + if (isReference()) { + LibrarySet master = ((LibrarySet) getCheckedRef(LibrarySet.class, "LibrarySet")); + master.visitLibraries(project, linker, libpath, visitor); + } + // + // if there was a libs attribute then + // add the corresponding patterns to the FileSet + // + if (libnames != null) { + for (int i = 0; i < libnames.length; i++) { + String[] patterns = linker.getLibraryPatterns(new String[] { libnames[i] }, libraryType); + if (patterns.length > 0) { + FileSet localSet = (FileSet) set.clone(); + // + // unless explicitly set + // will default to the linker case sensitivity + // + if (!explicitCaseSensitive) { + boolean linkerCaseSensitive = linker.isCaseSensitive(); + localSet.setCaseSensitive(linkerCaseSensitive); + } + // + // add all the patterns for this libname + // + for (int j = 0; j < patterns.length; j++) { + PatternSet.NameEntry entry = localSet.createInclude(); + entry.setName(patterns[j]); + } + int matches = 0; + // + // if there was no specified directory then + // run through the libpath backwards + // + if (localSet.getDir(project) == null) { + // + // scan libpath in reverse order + // to give earlier entries priority + // + for (int j = libpath.length - 1; j >= 0; j--) { + FileSet clone = (FileSet) localSet.clone(); + clone.setDir(libpath[j]); + DirectoryScanner scanner = clone.getDirectoryScanner(project); + File basedir = scanner.getBasedir(); + String[] files = scanner.getIncludedFiles(); + matches += files.length; + for (int k = 0; k < files.length; k++) { + visitor.visit(basedir, files[k]); + } + } + } else { + DirectoryScanner scanner = localSet.getDirectoryScanner(project); + File basedir = scanner.getBasedir(); + String[] files = scanner.getIncludedFiles(); + matches += files.length; + for (int k = 0; k < files.length; k++) { + visitor.visit(basedir, files[k]); + } + } + // + // TODO: following section works well for Windows + // style linkers but unnecessary fails + // Unix style linkers. Will need to revisit. + // + if (matches == 0 && false) { + StringBuffer msg = new StringBuffer("No file matching "); + if (patterns.length == 1) { + msg.append("pattern ("); + msg.append(patterns[0]); + msg.append(")"); + } else { + msg.append("patterns (\""); + msg.append(patterns[0]); + for (int k = 1; k < patterns.length; k++) { + msg.append(", "); + msg.append(patterns[k]); + } + msg.append(")"); + } + msg.append(" for library name \""); + msg.append(libnames[i]); + msg.append("\" was found."); + throw new BuildException(msg.toString()); + } + } + } + } + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.java b/src/main/java/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.java new file mode 100644 index 0000000..c0af5f8 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/LibraryTypeEnum.java @@ -0,0 +1,48 @@ +/* + * + * Copyright 2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import org.apache.tools.ant.types.EnumeratedAttribute; +/** + * Enumeration of library types for LibrarySet + * + * @author Curt Arnold + * + */ +public class LibraryTypeEnum extends EnumeratedAttribute { + /** + * Constructor + * + * Set by default to "shared" + * + * @see java.lang.Object#Object() + */ + public LibraryTypeEnum() { + setValue("shared"); + } + /** + * Gets list of acceptable values + * + * @see org.apache.tools.ant.types.EnumeratedAttribute#getValues() + */ + public String[] getValues() { + return new String[]{"shared", // prefer shared libraries + "static", // prefer static libraries + "framework" // framework libraries (Mac OS/X) + // equiv to shared on other platforms + }; + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/LinkerArgument.java b/src/main/java/net/sf/antcontrib/cpptasks/types/LinkerArgument.java new file mode 100644 index 0000000..bee15cf --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/LinkerArgument.java @@ -0,0 +1,28 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +/** + * A linker command line argument. + */ +public class LinkerArgument extends CommandLineArgument { + public LinkerArgument() { + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/SystemIncludePath.java b/src/main/java/net/sf/antcontrib/cpptasks/types/SystemIncludePath.java new file mode 100644 index 0000000..37a3e28 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/SystemIncludePath.java @@ -0,0 +1,45 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import org.apache.tools.ant.Project; +/** + * A system include path. + * + * Files located using a system include path will not participate in dependency + * analysis. + * + * Standard include paths for a compiler should not be specified since these + * should be determined from environment variables or configuration files by + * the compiler adapter. + * + * Works like other paths in Ant with with the addition of "if" and "unless" + * conditions. + * + * @author Curt Arnold + */ +public class SystemIncludePath extends ConditionalPath { + public SystemIncludePath(Project project) { + super(project); + } + public SystemIncludePath(Project p, String path) { + super(p, path); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.java b/src/main/java/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.java new file mode 100644 index 0000000..97c4fa2 --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/SystemLibrarySet.java @@ -0,0 +1,37 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +/** + * A set of system library names. Timestamp or location of system libraries are + * not considered in dependency analysis. + * + * Libraries can also be added to a link by specifying them in a fileset. + * + * For most Unix-like compilers, syslibset will result in a series of -l and -L + * linker arguments. For Windows compilers, the library names will be used to + * locate the appropriate library files which will be added to the linkers + * input file list as if they had been specified in a fileset. + */ +public class SystemLibrarySet extends LibrarySet { + public SystemLibrarySet() { + super(); + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } +} diff --git a/src/main/java/net/sf/antcontrib/cpptasks/types/UndefineArgument.java b/src/main/java/net/sf/antcontrib/cpptasks/types/UndefineArgument.java new file mode 100644 index 0000000..aa958ef --- /dev/null +++ b/src/main/java/net/sf/antcontrib/cpptasks/types/UndefineArgument.java @@ -0,0 +1,153 @@ +/* + * + * Copyright 2001-2004 The Ant-Contrib project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.sf.antcontrib.cpptasks.types; +import java.util.Vector; + +import net.sf.antcontrib.cpptasks.CUtil; + +import org.apache.tools.ant.BuildException; +/** + * Preprocessor macro undefinition. + * + * @author Mark A Russell mark_russell@csg_systems.com + * + */ +public class UndefineArgument { + /** + * This method returns an array of UndefineArgument and DefineArgument's by + * merging a base list with an override list. + * + * Any define in the base list with a name that appears in the override + * list is suppressed. All entries in the override list are preserved + * + */ + public static UndefineArgument[] merge(UndefineArgument[] base, + UndefineArgument[] override) { + if (base.length == 0) { + UndefineArgument[] overrideClone = (UndefineArgument[]) override + .clone(); + return overrideClone; + } + if (override.length == 0) { + UndefineArgument[] baseClone = (UndefineArgument[]) base.clone(); + return baseClone; + } + Vector unduplicated = new Vector(base.length); + for (int i = 0; i < base.length; i++) { + UndefineArgument current = base[i]; + String currentName = current.getName(); + boolean match = false; + if (currentName == null) { + match = true; + } else { + for (int j = 0; j < override.length; j++) { + UndefineArgument over = override[j]; + String overName = over.getName(); + if (overName != null && overName.equals(currentName)) { + match = true; + break; + } + } + } + if (!match) { + unduplicated.addElement(current); + } + } + UndefineArgument[] combined = new UndefineArgument[unduplicated.size() + + override.length]; + unduplicated.copyInto(combined); + int offset = unduplicated.size(); + for (int i = 0; i < override.length; i++) { + combined[offset + i] = override[i]; + } + return combined; + } + private boolean define = false; + private String ifCond; + private String name; + private String unlessCond; + public UndefineArgument() { + } + protected UndefineArgument(boolean isDefine) { + this.define = isDefine; + } + public void execute() throws org.apache.tools.ant.BuildException { + throw new org.apache.tools.ant.BuildException( + "Not an actual task, but looks like one for documentation purposes"); + } + /** Returns the name of the define */ + public final String getName() { + return name; + } + /** Returns the value of the define */ + public String getValue() { + return null; + } + /** + * Returns true if the define's if and unless conditions (if any) are + * satisfied. + * + * @exception BuildException + * throws build exception if name is not set + */ + public final boolean isActive(org.apache.tools.ant.Project p) + throws BuildException { + if (name == null) { + throw new BuildException(" is missing name attribute"); + } + return CUtil.isActive(p, ifCond, unlessCond); + } + /** Returns true if this is a define, false if an undefine. */ + public final boolean isDefine() { + return define; + } + /** + * Sets the property name for the 'if' condition. + * + * The define will be ignored unless the property is defined. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") will throw an exception when + * evaluated. + * + * @param propName + * property name + */ + public final void setIf(String propName) { + ifCond = propName; + } + /** Set the name attribute */ + public final void setName(String name) { + this.name = name; + } + /** + * Set the property name for the 'unless' condition. + * + * If named property is set, the define will be ignored. + * + * The value of the property is insignificant, but values that would imply + * misinterpretation ("false", "no") of the behavior will throw an + * exception when evaluated. + * + * @param propName + * name of property + */ + public final void setUnless(String propName) { + unlessCond = propName; + } +} diff --git a/src/main/resources/META-INF/LICENSE b/src/main/resources/META-INF/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/src/main/resources/META-INF/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/main/resources/META-INF/NOTICE b/src/main/resources/META-INF/NOTICE new file mode 100644 index 0000000..340dceb --- /dev/null +++ b/src/main/resources/META-INF/NOTICE @@ -0,0 +1,4 @@ +This product includes software developed by + The Ant-Contrib project (http://ant-contrib.sourceforge.net) +This product includes software developed by + The Apache Software Foundation (http://www.apache.org/). diff --git a/src/main/resources/cpptasks.tasks b/src/main/resources/cpptasks.tasks new file mode 100644 index 0000000..425935a --- /dev/null +++ b/src/main/resources/cpptasks.tasks @@ -0,0 +1 @@ +cc=net.sf.antcontrib.cpptasks.CCTask diff --git a/src/main/resources/cpptasks.types b/src/main/resources/cpptasks.types new file mode 100644 index 0000000..c37c17f --- /dev/null +++ b/src/main/resources/cpptasks.types @@ -0,0 +1,8 @@ +defineset=net.sf.antcontrib.cpptasks.types.DefineSet +compiler=net.sf.antcontrib.cpptasks.CompilerDef +linker=net.sf.antcontrib.cpptasks.LinkerDef +targetplatform=net.sf.antcontrib.cpptasks.TargetDef +versioninfo=net.sf.antcontrib.cpptasks.VersionInfo +distributer=net.sf.antcontrib.cpptasks.DistributerDef +syslibset=net.sf.antcontrib.cpptasks.types.SystemLibrarySet +libset=net.sf.antcontrib.cpptasks.types.LibrarySet \ No newline at end of file diff --git a/src/main/resources/net/sf/antcontrib/cpptasks/antlib.xml b/src/main/resources/net/sf/antcontrib/cpptasks/antlib.xml new file mode 100644 index 0000000..5f8af42 --- /dev/null +++ b/src/main/resources/net/sf/antcontrib/cpptasks/antlib.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/src/samples/blas.ant b/src/samples/blas.ant new file mode 100644 index 0000000..c1a28f5 --- /dev/null +++ b/src/samples/blas.ant @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/samples/check.ant b/src/samples/check.ant new file mode 100644 index 0000000..f0e1c14 --- /dev/null +++ b/src/samples/check.ant @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/samples/cppunit.ant b/src/samples/cppunit.ant new file mode 100644 index 0000000..9b0938b --- /dev/null +++ b/src/samples/cppunit.ant @@ -0,0 +1,583 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/samples/hello/build.xml b/src/samples/hello/build.xml new file mode 100644 index 0000000..b8e0b78 --- /dev/null +++ b/src/samples/hello/build.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + diff --git a/src/samples/hello/src/main/c/hello.c b/src/samples/hello/src/main/c/hello.c new file mode 100644 index 0000000..6912199 --- /dev/null +++ b/src/samples/hello/src/main/c/hello.c @@ -0,0 +1,25 @@ +/* + + Licensed to the Ant-Contrib Project under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +#include + +int main(int argc, const char** argv) { + puts("Hello, World."); + return 0; +} diff --git a/src/samples/qtunit.ant b/src/samples/qtunit.ant new file mode 100644 index 0000000..fab89ed --- /dev/null +++ b/src/samples/qtunit.ant @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/samples/xercesc.ant b/src/samples/xercesc.ant new file mode 100644 index 0000000..b3072de --- /dev/null +++ b/src/samples/xercesc.ant @@ -0,0 +1,1113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/samples/xpcom.ant b/src/samples/xpcom.ant new file mode 100644 index 0000000..b1da4b2 --- /dev/null +++ b/src/samples/xpcom.ant @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt new file mode 100644 index 0000000..ac4696a --- /dev/null +++ b/src/site/apt/index.apt @@ -0,0 +1,71 @@ +~~ Licensed to the Ant-Contrib Project under one or more +~~ contributor license agreements. See the NOTICE file distributed with +~~ this work for additional information regarding copyright ownership. +~~ The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0 +~~ (the "License"); you may not use this file except in compliance with +~~ the License. You may obtain a copy of the License at +~~ +~~ http://www.apache.org/licenses/LICENSE-2.0 +~~ +~~ Unless required by applicable law or agreed to in writing, software +~~ distributed under the License is distributed on an "AS IS" BASIS, +~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +~~ See the License for the specific language governing permissions and +~~ limitations under the License. + ------ +cpptasks for Apache Ant + ------ + ------ + ------ + +cpptasks for Apache Ant + + The cc task can compile various source languages and produce executables, + shared libraries (aka DLL's) and static libraries. Compiler adaptors are currently available + for C/C++, FORTRAN, MIDL and Windows Resource compilers. + + The task can be used with Apache Ant 1.5 and later. This software is not a product + of the Apache Software Foundation (ASF) and no endorsement by the ASF is implied. + + + To use: + * Place cpptasks.jar into Ant's classpath by placing in Ant's lib directory, + adding to CLASSPATH environment variable or using the -lib command line option. + + * Add type and task definitions in build file using either taskdef or antlib. + + * Add {{{antdocs/CCTask.html}cc}} element to some target in your build file. + + * Set path and environment variables to be able to run compiler from command line. + + * Build project. + + Trivial Sample using taskdef (compatible with Ant 1.5 or later): + ++-- + + + + + + + + + ++-- + + Trivial Sample using antlib (compatible with Ant 1.6 or later): + ++-- + + + + + + + + ++-- + + More complex samples appear in src/samples. + diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..ab1d7f5 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,69 @@ + + + + ant-contrib + http://ant-contrib.sourceforge.net/ + + + SourceForge.net Logo + http://sflogo.sourceforge.net/sflogo.php?group_id=36177&type=5 + http://www.sourceforge.net/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/site/xdoc/antdocs/CCTask.xml b/src/site/xdoc/antdocs/CCTask.xml new file mode 100644 index 0000000..ce994d9 --- /dev/null +++ b/src/site/xdoc/antdocs/CCTask.xml @@ -0,0 +1,534 @@ + + + + +cc + + +
+Compile and link task. + +

+ This task can compile various source languages and produce executables, + shared libraries (aka DLL's) and static libraries. Compiler adaptors are + currently available for several C/C++ compilers, FORTRAN, MIDL and Windows + Resource files. +

+ +

+ Copyright (c) 2001-2008, The Ant-Contrib project. +

+ +

+ Licensed under the Apache Software License 2.0, + http://www.apache.org/licenses/LICENSE-2.0. +

+ +

+ For use with Apache Ant 1.5 or later. This software is not a product of the + of the Apache Software Foundation and no endorsement is implied. +

+ +

+ THIS SOFTWARE IS PROVIDED 'AS-IS', See + http://www.apache.org/licenses/LICENSE-2.0 for additional disclaimers. +

+ + To use: +
    +
  1. + Place cpptasks.jar into Ant's classpath by placing it in Ant's lib + directory, adding it to the CLASSPATH environment variable or by using the + -lib command line option. +
  2. +
  3. + Add type and task definitions to the build file: +
      +
    • + Ant 1.6 or later: +
        +
      • Add xmlns:cpptasks="antlib:net.sf.antcontrib.cpptasks" to + <project> element. +
      • +
      • + Add <cpptasks:cc/>, <cpptasks:compiler/> and + <cpptasks:linker/> elements to the project. +
      • +
      +
    • +
    • + Ant 1.5 or later: +
        +
      • Add <taskdef resource="cpptasks.tasks"/> and + <typedef resource="cpptasks.types"/> to body of <project> + element. +
      • +
      • + Add <cc/>, <compiler/> and <linker/> elements to the + project. +
      • +
      +
    • +
    +
  4. +
  5. + Set the path and environment variables to be able to run compiler from + command line. +
  6. +
  7. + Build the project. +
  8. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
classnameSets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler.String
datasetSets the dataset for OS/390 builds.String
debugEnables or disables generation of debug info.boolean
dependencydepthDeprecated. + + Controls the depth of the dependency evaluation. Used to do a quick + check of changes before a full build. + + Any negative value which will perform full dependency checking. Positive + values will truncate dependency checking. A value of 0 will cause only + those files that changed to be recompiled, a value of 1 which cause + files that changed or that explicitly include a file that changed to be + recompiled. + + Any non-negative value will cause a BuildException to be thrown before + attempting a link or completing the task.int
descriptionString
exceptionsEnables generation of exception handling codeboolean
failonerrorIndicates whether the build will continue + even if there are compilation errors; defaults to true.boolean
incrementalEnables or disables incremental linking.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command line for + compatible processorsboolean
linkSets the output file type. Supported values "executable", "shared", and + "static". Deprecated, specify outtype instead. +OutputTypeEnum +
locationLocation
multithreadedEnables or disables generation of multithreaded codeboolean
nameSets type of the default compiler and linker. + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU FORTRAN compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler (creates .h, .cpp and moc_*.cpp files).
mocQt meta-object compiler
xpidlMozilla xpidl compiler (creates .h and .xpt files).
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+
+CompilerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
objdirSets the destination directory for object files. + + Generally this should be a property expression that evaluates to + distinct debug and release object file directories.File
optimizeSets optimization. +OptimizationEnum +
outfileSets the output file name. If not specified, the task will only compile + files and not attempt to link. If an extension is not specified, the + task may use a system appropriate extension and prefix, for example, + outfile="example" may result in "libexample.so" being created.File
outputfilepropertySpecifies the name of a property to set with the physical filename that + is produced by the linkerString
outtypeSets the output file type. Supported values "executable", "shared", and + "static". +OutputTypeEnum +
owningtargetTarget
projectsonlyboolean
rebuildIf set to true, all files will be rebuilt.boolean
relentlessIf set to true, compilation errors will not stop the task until all + files have been attempted.boolean
rttiEnables run-time type information.boolean
runtimeSets the type of runtime library, possible values "dynamic", "static". +RuntimeType +
subsystemSets the nature of the subsystem under which that the program will + execute. + + Supported subsystems + + + + + + + + + + + + +
guiGraphical User Interface
consoleCommand Line Console
otherOther
+
+SubsystemEnum +
tasknameString
tasktypeString
warningsEnumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +WarningLevelEnum +
+
+ +
+
+compiler +
+
Adds a compiler definition or reference.
+
+compilerarg +
+
Adds a compiler command-line arg. Argument will be inherited by all + nested compiler elements that do not have inherit="false".
+
+defineset +
+
Adds a defineset. Will be inherited by all compiler elements that do not + have inherit="false".
+
+distributer +
+
Adds a distributer definition or reference (Non-functional prototype).
+
+env +
+
Add an environment variable to the launched process.
+
+fileset +
+
Adds a source file set. + + Files in these filesets will be auctioned to the available compiler + configurations, with the default compiler implied by the cc element + bidding last. If no compiler is interested in the file, it will be + passed to the linker. + + To have a file be processed by a particular compiler configuration, add + a fileset to the corresponding compiler element.
+
+includepath +
+
Adds an include path. + + Include paths will be inherited by nested compiler elements that do not + have inherit="false".
+
+libset +
+
Adds a library set. + + Library sets will be inherited by all linker elements that do not have + inherit="false".
+
+linker +
+
Adds a linker definition. The first linker that is not disqualified by + its "if" and "unless" attributes will perform the link. If no child + linker element is active, the linker implied by the cc elements name or + classname attribute will be used.
+
+linkerarg +
+
Adds a linker command-line arg. Argument will be inherited by all nested + linker elements that do not have inherit="false".
+
+precompile +
+
Specifies precompilation prototype file and exclusions. Inherited by all + compilers that do not have inherit="false".
+
+project +
+
Specifies the generation of IDE project file. Experimental.
+
+sysincludepath +
+
Adds a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files. + + System include paths will be inherited by nested compiler elements that + do not have inherit="false".
+
+syslibset +
+
Adds a system library set. Timestamps and locations of system library + sets are not used in dependency analysis. + + Essential libraries (such as C Runtime libraries) should not be + specified since the task will attempt to identify the correct libraries + based on the multithread, debug and runtime attributes. + + System library sets will be inherited by all linker elements that do not + have inherit="false".
+
+target +
+
Adds a target definition or reference (Non-functional prototype).
+
+versioninfo +
+
Adds desriptive version information to be included in the + generated file. The first active version info block will + be used.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/CommentDef.xml b/src/site/xdoc/antdocs/CommentDef.xml new file mode 100644 index 0000000..68373e9 --- /dev/null +++ b/src/site/xdoc/antdocs/CommentDef.xml @@ -0,0 +1,37 @@ + + + + +comment + + +
+Defines a comment to place in the generated project files. + +
+
+text +
+
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/CompilerArgument.xml b/src/site/xdoc/antdocs/CompilerArgument.xml new file mode 100644 index 0000000..abbf0dd --- /dev/null +++ b/src/site/xdoc/antdocs/CompilerArgument.xml @@ -0,0 +1,83 @@ + + + + +compilerarg + + +
+A compiler command line argument. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames. +LocationEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/CompilerDef.xml b/src/site/xdoc/antdocs/CompilerDef.xml new file mode 100644 index 0000000..7d98127 --- /dev/null +++ b/src/site/xdoc/antdocs/CompilerDef.xml @@ -0,0 +1,313 @@ + + + + +compiler + + +
+A compiler definition. compiler elements may be placed either as children of + a cc element or the project element. A compiler element with an id attribute + may be referenced from compiler elements with refid or extends attributes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
classnameSets the default compiler adapter. Use the "name" attribute when the + compiler is a supported compiler.String
debugIf set true, all targets will be built for debugging.boolean
descriptionSets a description of the current data type.String
exceptionsEnables or disables exception support.boolean
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
inheritIf inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command lineboolean
multithreadedEnables or disables generation of multithreaded code. Unless specified, + multithreaded code generation is enabled.boolean
nameSets compiler type. + + + Supported compilers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gcc (default)GCC C++ compiler
g++GCC C++ compiler
c++GCC C++ compiler
g77GNU Fortran compiler
msvcMicrosoft Visual C++
bccBorland C++ Compiler
msrcMicrosoft Resource Compiler
brcBorland Resource Compiler
dfCompaq Visual Fortran Compiler
midlMicrosoft MIDL Compiler
iclIntel C++ compiler for Windows (IA-32)
eclIntel C++ compiler for Windows (IA-64)
iccIntel C++ compiler for Linux (IA-32)
eccIntel C++ compiler for Linux (IA-64)
CCSun ONE C++ compiler
aCCHP aC++ C++ Compiler
os390OS390 C Compiler
os400Icc Compiler
sunc89Sun C89 C Compiler
xlCVisualAge C Compiler
uicQt user interface compiler
mocQt meta-object compiler
wclOpenWatcom C/C++ compiler
wflOpenWatcom FORTRAN compiler
+
+CompilerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
optimizeSets optimization level. +OptimizationEnum +
rebuildIf set true, all targets will be unconditionally rebuilt.boolean
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "if", "unless" and "description".Reference
rttiEnables or disables run-time type information.boolean
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
warningsEnumerated attribute with the values "none", "severe", "default", + "production", "diagnostic", and "aserror". +WarningLevelEnum +
+
+ +
+
+compilerarg +
+
Adds a compiler command-line arg.
+
+compilerparam +
+
Adds a compiler command-line arg.
+
+defineset +
+
Adds a defineset.
+
+env +
+
Add an environment variable to the launched process.
+
+fileset +
+
Adds a source file set. + + Files in these set will be processed by this configuration and will not + participate in the auction.
+
+includepath +
+
Creates an include path.
+
+precompile +
+
Specifies precompilation prototype file and exclusions.
+
+sysincludepath +
+
Creates a system include path. Locations and timestamps of files located + using the system include paths are not used in dependency analysis. + + + Standard include locations should not be specified. The compiler + adapters should recognized the settings from the appropriate environment + variables or configuration files.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/CompilerParam.xml b/src/site/xdoc/antdocs/CompilerParam.xml new file mode 100644 index 0000000..5a3475b --- /dev/null +++ b/src/site/xdoc/antdocs/CompilerParam.xml @@ -0,0 +1,81 @@ + + + + +compilerparam + + +
+Place class description here. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/ConditionalFileSet.xml b/src/site/xdoc/antdocs/ConditionalFileSet.xml new file mode 100644 index 0000000..8566212 --- /dev/null +++ b/src/site/xdoc/antdocs/ConditionalFileSet.xml @@ -0,0 +1,221 @@ + + + + +conditionalfileset + + +
+An Ant FileSet object augmented with if and unless conditions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
casesensitiveboolean
defaultexcludesboolean
descriptionString
dirFile
excludesString
excludesfileFile
fileFile
followsymlinksboolean
ifSets the property name for the 'if' condition. + + The fileset will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
includesString
includesfileFile
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the fileset will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+ +
+
+
+and +
+
+
+contains +
+
+
+containsregexp +
+
+
+custom +
+
+
+date +
+
+
+depend +
+
+
+depth +
+
+
+different +
+
+
+exclude +
+
+
+excludesfile +
+
+
+filename +
+
+
+include +
+
+
+includesfile +
+
+
+majority +
+
+
+modified +
+
+
+none +
+
+
+not +
+
+
+or +
+
+
+patternset +
+
+
+present +
+
+
+selector +
+
+
+size +
+
+
+type +
+
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/ConditionalPath.xml b/src/site/xdoc/antdocs/ConditionalPath.xml new file mode 100644 index 0000000..0ba7346 --- /dev/null +++ b/src/site/xdoc/antdocs/ConditionalPath.xml @@ -0,0 +1,122 @@ + + + + +conditionalpath + + +
+An Ant Path object augmented with if and unless conditionals + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+ +
+
+
+dirset +
+
+
+existing +
+
+
+extdirs +
+
+
+filelist +
+
+
+fileset +
+
+
+path +
+
+
+pathelement +
+
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DebugDef.xml b/src/site/xdoc/antdocs/DebugDef.xml new file mode 100644 index 0000000..c3084e8 --- /dev/null +++ b/src/site/xdoc/antdocs/DebugDef.xml @@ -0,0 +1,76 @@ + + + + +debug + + +
+Specifies a debugging configuration for a project. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
dirSet the working directory of the process.File
executableSet the name of the executable program.String
refidReference
+
+ +
+
+arg +
+
Adds a command-line argument.
+
+env +
+
Add an environment variable.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DefineArgument.xml b/src/site/xdoc/antdocs/DefineArgument.xml new file mode 100644 index 0000000..996dee8 --- /dev/null +++ b/src/site/xdoc/antdocs/DefineArgument.xml @@ -0,0 +1,76 @@ + + + + +definearg + + +
+Preprocessor macro definition. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet the name attributeString
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSet the value attributeString
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DefineSet.xml b/src/site/xdoc/antdocs/DefineSet.xml new file mode 100644 index 0000000..50ef5ca --- /dev/null +++ b/src/site/xdoc/antdocs/DefineSet.xml @@ -0,0 +1,111 @@ + + + + +defineset + + +
+Set of preprocessor macro defines and undefines. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
defineA comma-separated list of preprocessor macros to define. Use nested + define elements to define macro values. +StringArrayBuilder +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "description".Reference
undefineA comma-separated list of preprocessor macros to undefine. +StringArrayBuilder +
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+define +
+
Adds a define element.
+
+undefine +
+
Adds an undefine element.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DependencyDef.xml b/src/site/xdoc/antdocs/DependencyDef.xml new file mode 100644 index 0000000..d0fd35b --- /dev/null +++ b/src/site/xdoc/antdocs/DependencyDef.xml @@ -0,0 +1,64 @@ + + + + +dependency + + +
+Defines a dependency + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
dependsString
fileFile
idString
nameString
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DistributerDef.xml b/src/site/xdoc/antdocs/DistributerDef.xml new file mode 100644 index 0000000..3530039 --- /dev/null +++ b/src/site/xdoc/antdocs/DistributerDef.xml @@ -0,0 +1,113 @@ + + + + +distributer + + +
+Distributed build information (Non-functional prototype). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
hostsSets hosts.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
protocolSets protocol. +DistributerProtocolEnum +
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
tcpcorkSets TCP_CORK value.int
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
userSets remote user name.String
+
+ +
+
+map +
+
Local to remote filename maps.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/DistributerMap.xml b/src/site/xdoc/antdocs/DistributerMap.xml new file mode 100644 index 0000000..fa7be49 --- /dev/null +++ b/src/site/xdoc/antdocs/DistributerMap.xml @@ -0,0 +1,96 @@ + + + + +distributermap + + +
+Local to remote filename mapping (Experimental). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
hostsSets hosts for which this mapping is valid.String
ifSets the property name for the 'if' condition. + + This object will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
localSets local directory for base of mapping.File
refidReference
remoteSets remote name for directory.String
remoteseparatorSets the separator character (/ or \) for the remote system.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/IncludePath.xml b/src/site/xdoc/antdocs/IncludePath.xml new file mode 100644 index 0000000..a50ec2a --- /dev/null +++ b/src/site/xdoc/antdocs/IncludePath.xml @@ -0,0 +1,125 @@ + + + + +includepath + + +
+An include path. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+ +
+
+
+dirset +
+
+
+existing +
+
+
+extdirs +
+
+
+filelist +
+
+
+fileset +
+
+
+path +
+
+
+pathelement +
+
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/LibrarySet.xml b/src/site/xdoc/antdocs/LibrarySet.xml new file mode 100644 index 0000000..095a182 --- /dev/null +++ b/src/site/xdoc/antdocs/LibrarySet.xml @@ -0,0 +1,114 @@ + + + + +libset + + +
+A set of library names. Libraries can also be added to a link by specifying + them in a fileset. + + For most Unix-like compilers, libset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
casesensitiveSets case sensitivity of the file system. If not set, will default to + the linker's case sensitivity.boolean
datasetSets the dataset. Used on OS390 if the libs are in a dataset.String
descriptionString
dirLibrary directory.File
ifSets the property name for the 'if' condition. + + The library set will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
libsComma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a". +StringArrayBuilder +
refidReference
typeSets the preferred library type. Supported values "shared", "static", and + "framework". "framework" is equivalent to "shared" on non-Darwin platforms. +LibraryTypeEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the library set will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/LinkerArgument.xml b/src/site/xdoc/antdocs/LinkerArgument.xml new file mode 100644 index 0000000..94b64d2 --- /dev/null +++ b/src/site/xdoc/antdocs/LinkerArgument.xml @@ -0,0 +1,83 @@ + + + + +linkerarg + + +
+A linker command line argument. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames. +LocationEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/LinkerDef.xml b/src/site/xdoc/antdocs/LinkerDef.xml new file mode 100644 index 0000000..32e802f --- /dev/null +++ b/src/site/xdoc/antdocs/LinkerDef.xml @@ -0,0 +1,284 @@ + + + + +linker + + +
+A linker definition. linker elements may be placed either as children of a + cc element or the project element. A linker element with an id attribute may + be referenced by linker elements with refid or extends attributes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
baseSets the base address. May be specified in either decimal or hex. +FlexLong +
classnameSets the class name for the adapter. Use the "name" attribute when the + tool is supported.String
debugIf set true, all targets will be built for debugging.boolean
descriptionSets a description of the current data type.String
entrySets the starting address.String
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
fixedIf true, marks the file to be loaded only at its preferred address.boolean
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
incrementalIf true, allows incremental linking.boolean
inheritIf inherit has the default value of true, defines, includes and other + settings from the containing cc element will be inherited.boolean
libtoolSet use of libtool. + + If set to true, the "libtool " will be prepended to the command lineboolean
mapIf set to true, a map file will be produced.boolean
nameSets linker type. + + + Supported linkers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
gccGcc Linker
g++G++ Linker
ldLd Linker
arGcc Librarian
msvcMicrosoft Linker
bccBorland Linker
dfCompaq Visual Fortran Linker
iclIntel Linker for Windows (IA-32)
eclIntel Linker for Windows (IA-64)
iccIntel Linker for Linux (IA-32)
eccIntel Linker for Linux (IA-64)
CCSun ONE Linker
aCCHP aC++ Linker
os390OS390 Linker
os390batchOS390 Linker
os400IccLinker
sunc89C89 Linker
xlCVisualAge Linker
wclOpenWatcom C/C++ linker
wflOpenWatcom FORTRAN linker
+
+LinkerEnum +
newenvironmentDo not propagate old environment when new environment variables are + specified.boolean
rebuildIf set true, all targets will be unconditionally rebuilt.boolean
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes or child content should be specified, + other than "if", "unless" and "description".Reference
stackSets stack size in bytes.FlexInteger
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+env +
+
Add an environment variable to the launched process.
+
+fileset +
+
Adds a source file set. + + Files in these set will be processed by this configuration and will not + participate in the auction.
+
+libset +
+
Adds a system library set.
+
+linkerarg +
+
Adds a linker command-line arg.
+
+linkerparam +
+
Adds a compiler command-line arg.
+
+syslibset +
+
Adds a system library set.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/LinkerParam.xml b/src/site/xdoc/antdocs/LinkerParam.xml new file mode 100644 index 0000000..e5ad6a7 --- /dev/null +++ b/src/site/xdoc/antdocs/LinkerParam.xml @@ -0,0 +1,81 @@ + + + + +linkerparam + + +
+Place class description here. + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The argument will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSpecifies relative location of argument on command line. "start" will + place argument at start of command line, "mid" will place argument after + all "start" arguments but before filenames, "end" will place argument + after filenames.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the argument will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
valueSpecifies the string that should appear on the command line. The + argument will be quoted if it contains embedded blanks. Use multiple + arguments to avoid quoting.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/PrecompileDef.xml b/src/site/xdoc/antdocs/PrecompileDef.xml new file mode 100644 index 0000000..5b700f7 --- /dev/null +++ b/src/site/xdoc/antdocs/PrecompileDef.xml @@ -0,0 +1,99 @@ + + + + +precompile + + +
+An element that specifies a prototype file and rules for source files that + should not use precompiled headers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSet the 'if' condition. + + The processor will be ignored unless the property is defined. + + The value of property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + isActive() is evaluated.String
prototypeSets file to precompile. + + Should be a source file that includes only one unguarded header file. + Default value is "stdafx.cpp".File
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location.Reference
unlessSet the 'unless' condition. If named property exists at execution time, + the processor will be ignored. + + Value of property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when isActive is called.String
+
+ +
+
+except +
+
Adds filesets that specify files that should not be processed with + precompiled headers enabled.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/PrecompileExceptDef.xml b/src/site/xdoc/antdocs/PrecompileExceptDef.xml new file mode 100644 index 0000000..f645473 --- /dev/null +++ b/src/site/xdoc/antdocs/PrecompileExceptDef.xml @@ -0,0 +1,64 @@ + + + + +precompileexcept + + +
+Specifies files that should not be compiled using precompiled headers. + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
dirSets the base-directoryFile
includesComma or space separated list of file patterns that should not be + compiled using precompiled headers.String
+
+ +
+
+fileset +
+
Adds filesets that specify files that should not be processed using + precompiled headers.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/ProjectDef.xml b/src/site/xdoc/antdocs/ProjectDef.xml new file mode 100644 index 0000000..ebafe48 --- /dev/null +++ b/src/site/xdoc/antdocs/ProjectDef.xml @@ -0,0 +1,166 @@ + + + + +project + + +
+Requests the creation of an IDE project file. Experimental. + + Implementation status: msdev5, msdev6 and cbuilderx + generate reasonable project files for simple projects, + xcode and msdev7 and msdev71 capture source file lists and + a few settings. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
classnameClass name for a user-supplied project writer. Use the "type" + attribute to specify built-in project writer implementations.String
descriptionString
failonerrorSets whether a failure to write the project file should cause the + task to fail. Default is true.boolean
ifSets the property name for the 'if' condition. + + The configuration will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet name.String
outfileSets the name for the generated project file.File
overwriteSets whether an existing project file should be overwritten, + default is true. If false and the project file exists, + the value of failonerror will determine if the task fails.boolean
refidReference
typeSet project type. + + + Supported project formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
cbuilderxBorland C++BuilderX
msvc5Microsoft Visual C++ 97
msvc6Microsoft Visual C++ 6
msvc7Microsoft Visual C++.NET
msvc71Microsoft Visual C++.NET 2003
msvc8Microsoft Visual C++ 2005
msvc9Microsoft Visual C++ 2008
xcodeApple Xcode
+
+ProjectWriterEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the configuration will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+comment +
+
Add comment for the generated project file.
+
+dependency +
+
Add a dependency definition to the project.
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/SystemIncludePath.xml b/src/site/xdoc/antdocs/SystemIncludePath.xml new file mode 100644 index 0000000..0bb789f --- /dev/null +++ b/src/site/xdoc/antdocs/SystemIncludePath.xml @@ -0,0 +1,132 @@ + + + + +systemincludepath + + +
+A system include path. + + Files located using a system include path will not participate in dependency + analysis. + + Standard include paths for a compiler should not be specified since these + should be determined from environment variables or configuration files by + the compiler adapter. + + Works like other paths in Ant with with the addition of "if" and "unless" + conditions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
descriptionString
ifSets the property name for the 'if' condition. + + The path will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
locationFile
pathString
refidReference
unlessSet the property name for the 'unless' condition. + + If named property is set, the path will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+ +
+
+ +
+
+
+dirset +
+
+
+existing +
+
+
+extdirs +
+
+
+filelist +
+
+
+fileset +
+
+
+path +
+
+
+pathelement +
+
+
+
+
+ +
diff --git a/src/site/xdoc/antdocs/SystemLibrarySet.xml b/src/site/xdoc/antdocs/SystemLibrarySet.xml new file mode 100644 index 0000000..0a9b566 --- /dev/null +++ b/src/site/xdoc/antdocs/SystemLibrarySet.xml @@ -0,0 +1,116 @@ + + + + +syslibset + + +
+A set of system library names. Timestamp or location of system libraries are + not considered in dependency analysis. + + Libraries can also be added to a link by specifying them in a fileset. + + For most Unix-like compilers, syslibset will result in a series of -l and -L + linker arguments. For Windows compilers, the library names will be used to + locate the appropriate library files which will be added to the linkers + input file list as if they had been specified in a fileset. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
casesensitiveSets case sensitivity of the file system. If not set, will default to + the linker's case sensitivity.boolean
datasetSets the dataset. Used on OS390 if the libs are in a dataset.String
descriptionString
dirLibrary directory.File
ifSets the property name for the 'if' condition. + + The library set will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
libsComma-separated list of library names without leading prefixes, such as + "lib", or extensions, such as ".so" or ".a". +StringArrayBuilder +
refidReference
typeSets the preferred library type. Supported values "shared", "static", and + "framework". "framework" is equivalent to "shared" on non-Darwin platforms. +LibraryTypeEnum +
unlessSet the property name for the 'unless' condition. + + If named property is set, the library set will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/TargetDef.xml b/src/site/xdoc/antdocs/TargetDef.xml new file mode 100644 index 0000000..6274cf7 --- /dev/null +++ b/src/site/xdoc/antdocs/TargetDef.xml @@ -0,0 +1,105 @@ + + + + +targetplatform + + +
+Information on the execution platforms for the generated code. + (Non-functional prototype) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
archSets cpu architecture, compiler may use cpu specific instructions. +ArchEnum +
cpuSets preferred cpu, but does not use cpu specific instructions. +CPUEnum +
descriptionSets a description of the current data type.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
osfamilySets operating system family. +OSFamilyEnum +
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/UndefineArgument.xml b/src/site/xdoc/antdocs/UndefineArgument.xml new file mode 100644 index 0000000..533e227 --- /dev/null +++ b/src/site/xdoc/antdocs/UndefineArgument.xml @@ -0,0 +1,71 @@ + + + + +undefinearg + + +
+Preprocessor macro undefinition. + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
nameSet the name attributeString
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/site/xdoc/antdocs/VersionInfo.xml b/src/site/xdoc/antdocs/VersionInfo.xml new file mode 100644 index 0000000..37fd97b --- /dev/null +++ b/src/site/xdoc/antdocs/VersionInfo.xml @@ -0,0 +1,187 @@ + + + + +versioninfo + + +
+Version Information. + + This information is applied in a platform specific manner + to embed version information into executable images. This + behavior is new and subject to change. + + On the Microsoft Windows platform, a resource is generated and added + to the set of files to be compiled. A resource compiler must + be specified to compile the generated file. + + On Unix platforms, versioninfo is currently not used. + Future versions may append fileversion to the output file name, + use compatibility version for -soname and possibly create + symbolic links. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Attribute + +Description + +Type +
companynameSets company name.String
compatibilityversionSets compatibility version.String
descriptionString
extendsSpecifies that this element extends the element with id attribute with a + matching value. The configuration will be constructed from the settings + of this element, element referenced by extends, and the containing cc + element.Reference
filecommentsSets comments.String
filedescriptionSets file description.String
fileversionSets file version.String
idSets an id that can be used to reference this element.String
ifSets the property name for the 'if' condition. + + The define will be ignored unless the property is defined. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") will throw an exception when + evaluated.String
internalnameSets internal name. Internal name will automatically be + specified from build step, only set this value if + intentionally overriding that value.String
languageSets language.String
legalcopyrightSets legal copyright.String
legaltrademarksSets legal trademark.String
originalfilenameSets original name. Only set this value if + intentionally overriding the value from the build set.String
patchedSets prerelease.boolean
prereleaseSets prerelease.boolean
privatebuildSets private build.String
productnameSets product name.String
productversionSets product version.String
refidSpecifies that this element should behave as if the content of the + element with the matching id attribute was inserted at this location. If + specified, no other attributes should be specified.Reference
specialbuildSets private build.String
unlessSet the property name for the 'unless' condition. + + If named property is set, the define will be ignored. + + The value of the property is insignificant, but values that would imply + misinterpretation ("false", "no") of the behavior will throw an + exception when evaluated.String
+
+
+ +
diff --git a/src/taskdocs/java/net/sf/antcontrib/taskdocs/TaskDoclet.java b/src/taskdocs/java/net/sf/antcontrib/taskdocs/TaskDoclet.java new file mode 100644 index 0000000..8d22928 --- /dev/null +++ b/src/taskdocs/java/net/sf/antcontrib/taskdocs/TaskDoclet.java @@ -0,0 +1 @@ +/* Licensed to the Ant-Contrib Project under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package net.sf.antcontrib.taskdocs; import com.sun.javadoc.*; import org.xml.sax.*; import org.xml.sax.helpers.AttributesImpl; import org.xml.sax.helpers.DefaultHandler; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import javax.xml.transform.Source; import javax.xml.transform.sax.SAXTransformerFactory; import javax.xml.transform.sax.TransformerHandler; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; import java.io.File; import java.io.StringReader; import java.util.HashMap; import java.util.Iterator; import java.util.Locale; import java.util.Map; /** * This document writes an XML representation of the * Ant related Javadoc through an XSLT transform that creates xdoc files. * */ public final class TaskDoclet { /** * Process Javadoc content. * @param root root of javadoc content. * @return true if successful * @throws Exception IO exceptions and the like. */ public static boolean start(RootDoc root) throws Exception { SAXTransformerFactory tf = (SAXTransformerFactory) SAXTransformerFactory.newInstance(); Source typeStyle = new StreamSource(new File("src/taskdocs/resources/net/sf/antcontrib/taskdocs/element.xslt")); // // replace with tf.newTransformerHandler() if you want to see raw generated XML. TransformerHandler typeHandler = tf.newTransformerHandler(typeStyle); Map referencedTypes = new HashMap(); Map documentedTypes = new HashMap(); ClassDoc[] classes = root.classes(); for (int i = 0; i < classes.length; ++i) { ClassDoc clazz = classes[i]; if (clazz.isPublic() && !clazz.isAbstract()) { if (isTask(clazz) || isType(clazz)) { writeClass(typeHandler, clazz, referencedTypes); documentedTypes.put(clazz.qualifiedTypeName(), clazz); } } } Map additionalTypes = new HashMap(); for (Iterator iter = referencedTypes.keySet().iterator(); iter.hasNext();) { String referencedName = (String) iter.next(); if (documentedTypes.get(referencedName) == null) { ClassDoc referencedClass = root.classNamed(referencedName); if (referencedClass != null) { if (!referencedClass.qualifiedTypeName().startsWith("org.apache.tools.ant")) { writeClass(typeHandler, referencedClass, additionalTypes); documentedTypes.put(referencedClass.qualifiedTypeName(), referencedClass); } } } } return true; } /** * Determine if class is an Ant task. * @param clazz class to test. * @return true if class is an Ant task. */ private static boolean isTask(final ClassDoc clazz) { if (clazz == null) return false; if ("org.apache.tools.ant.Task".equals(clazz.qualifiedTypeName())) { System.out.print("true"); return true; } return isTask(clazz.superclass()); } /** * Determine if class is an Ant type. * @param clazz class to test. * @return true if class is an Ant type. */ private static boolean isType(final ClassDoc clazz) { if (clazz == null) return false; if ("org.apache.tools.ant.types.DataType".equals(clazz.qualifiedTypeName())) { return true; } return isType(clazz.superclass()); } /** * Namespace URI for class description elements. */ private static final String NS_URI = "http://ant-contrib.sf.net/taskdocs"; /** * Namespace URI for XHTML elements. */ private static final String XHTML_URI = "http://www.w3.org/1999/xhtml"; /** * Write a Java type. * @param tf content handler. * @param type documented type. * @throws Exception if IO or other exception. */ private static void writeType(final TransformerHandler tf, final Type type) throws Exception { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, "name", "name", "CDATA", type.simpleTypeName()); attributes.addAttribute(null, "qualifiedTypeName", "qualifiedTypeName", "CDATA", type.qualifiedTypeName()); tf.startElement(NS_URI, "type", "type", attributes); ClassDoc typeDoc = type.asClassDoc(); if (typeDoc != null && typeDoc.commentText() != null && typeDoc.commentText().length() > 0) { writeDescription(tf, typeDoc.commentText()); } else { tf.characters(type.typeName().toCharArray(), 0, type.typeName().length()); } tf.endElement(NS_URI, "type", "type"); } /** * Write an Ant task or type attribute (aka property). * @param tf content handler. * @param method set method for property. * @throws Exception if IO or other exception. */ private static void writeAttribute(final TransformerHandler tf, final MethodDoc method) throws Exception { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, "name", "name", "CDATA", method.name().substring(3).toLowerCase(Locale.US)); tf.startElement(NS_URI, "attribute", "attribute", attributes); writeType(tf, method.parameters()[0].type()); attributes.clear(); tf.startElement(NS_URI, "comment", "comment", attributes); writeDescription(tf, method.commentText()); tf.endElement(NS_URI, "comment", "comment"); tf.endElement(NS_URI, "attribute", "attribute"); } /** * Write an Ant nested element. * @param tf content handler. * @param method method to add element to task or type. * @param name name of nested element. * @param type type of nested element. * @param referencedTypes map of types referenced in documentation. * @throws Exception if IO or other exception. */ private static void writeChild(final TransformerHandler tf, final MethodDoc method, final String name, final Type type, final Map referencedTypes) throws Exception { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, "name", "name", "CDATA", name.toLowerCase(Locale.US)); tf.startElement(NS_URI, "child", "child", attributes); attributes.clear(); tf.startElement(NS_URI, "comment", "comment", attributes); writeDescription(tf, method.commentText()); tf.endElement(NS_URI, "comment", "comment"); writeType(tf, type); tf.endElement(NS_URI, "child", "child"); referencedTypes.put(type.qualifiedTypeName(), type); } /** * Redirects parsed XHTML comment into output stream. * Drops start and end document and body element. */ private static class RedirectHandler extends DefaultHandler { /** * output handler. */ private final ContentHandler tf; /** * Create new instance. * @param tf output handler, may not be null. */ public RedirectHandler(final TransformerHandler tf) { if (tf == null) { throw new IllegalArgumentException("tf"); } this.tf = tf; } /** {@inheritDoc} */ public void characters(final char[] ch, final int start, final int length) throws SAXException { tf.characters(ch, start, length); } /** {@inheritDoc} */ public void endDocument() { } /** {@inheritDoc} */ public void endElement(final String namespaceURI, final String localName, final String qName) throws SAXException { if (!"body".equals(localName)) { tf.endElement(namespaceURI, localName, qName); } } /** {@inheritDoc} */ public void endPrefixMapping(final String prefix) throws SAXException { tf.endPrefixMapping(prefix); } /** {@inheritDoc} */ public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { tf.ignorableWhitespace(ch, start, length); } /** {@inheritDoc} */ public void processingInstruction(final String target, final String data) throws SAXException { tf.processingInstruction(target, data); } /** {@inheritDoc} */ public void setDocumentLocator(final Locator locator) { tf.setDocumentLocator(locator); } /** {@inheritDoc} */ public void skippedEntity(String name) throws SAXException { tf.skippedEntity(name); } /** {@inheritDoc} */ public void startDocument() { } /** {@inheritDoc} */ public void startElement(final String namespaceURI, final String localName, final String qName, final Attributes atts) throws SAXException { if (!"body".equals(localName)) { tf.startElement(namespaceURI, localName, qName, atts); } } /** {@inheritDoc} */ public void startPrefixMapping(String prefix, String uri) throws SAXException { tf.startPrefixMapping(prefix, uri); } } /** * Writes description. * @param tf destination. * @param description description, may contain XHTML elements. * @throws SAXException if IO or other exception. */ private static void writeDescription(final TransformerHandler tf, final String description) throws SAXException { if (description.indexOf('<') == -1) { tf.characters(description.toCharArray(), 0, description.length()); } else { // // attempt to fabricate an XHTML fragment // StringBuffer buf = new StringBuffer(description); buf.insert(0, ""); buf.append(""); try { SAXParserFactory sf = SAXParserFactory.newInstance(); sf.setNamespaceAware(true); SAXParser parser = sf.newSAXParser(); parser.parse(new InputSource(new StringReader(buf.toString())), new RedirectHandler(tf)); } catch (Exception ex) { tf.characters(ex.toString().toCharArray(), 0, ex.toString().length()); } } } /** * Write all Ant attributes in this class and superclasses. * @param tf destination. * @param clazz class documentation. * @param processed map of processed methods. * @param referencedTypes map of referenced types. * @throws Exception if IO or other exception. */ private static void writeAttributes(final TransformerHandler tf, final ClassDoc clazz, final Map processed, final Map referencedTypes) throws Exception { MethodDoc[] methods = clazz.methods(); for (int i = 0; i < methods.length; i++) { MethodDoc method = methods[i]; if (processed.get(method.name()) == null) { if (method.name().startsWith("set") && method.isPublic() && method.parameters().length == 1) { writeAttribute(tf, method); referencedTypes.put(method.parameters()[0].typeName(), method.parameters()[0].type()); } processed.put(method.name(), method); } } if (clazz.superclass() != null) { writeAttributes(tf, clazz.superclass(), processed, referencedTypes); } } /** * Write all Ant nested elements in this class and superclasses. * @param tf destination. * @param clazz class documentation. * @param processed map of processed methods. * @param referencedTypes map of referenced types. * @throws Exception if IO or other exception. */ private static final void writeChildren(final TransformerHandler tf, final ClassDoc clazz, final Map processed, final Map referencedTypes) throws Exception { MethodDoc[] methods = clazz.methods(); for (int i = 0; i < methods.length; i++) { MethodDoc method = methods[i]; if (processed.get(method.name()) == null) { if (method.name().startsWith("addConfigured") && method.isPublic() && method.parameters().length == 1) { writeChild(tf, method, method.name().substring(13), method.parameters()[0].type(), referencedTypes); } else if (method.name().startsWith("add") && method.isPublic() && method.parameters().length == 1) { writeChild(tf, method, method.name().substring(3), method.parameters()[0].type(), referencedTypes); } else if (method.isPublic() && method.parameters().length == 0 && method.name().startsWith("create")) { writeChild(tf, method, method.name().substring(6), method.returnType(), referencedTypes); } processed.put(method.name(), method); } } if (clazz.superclass() != null) { writeChildren(tf, clazz.superclass(), processed, referencedTypes); } } /** * Write Ant documentation for this class. * @param tf destination. * @param clazz class documentation. * @param referencedTypes map of referenced types. * @throws Exception if IO or other exception. */ private static void writeClass(final TransformerHandler tf, final ClassDoc clazz, final Map referencedTypes) throws Exception { StreamResult result = new StreamResult(new File("src/site/xdoc/antdocs/" + clazz.name() + ".xml")); tf.setResult(result); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute(null, "name", "name", "CDATA", clazz.name()); StringBuffer firstSentence = new StringBuffer(); Tag[] tags = clazz.firstSentenceTags(); for (int i = 0; i < tags.length; i++) { firstSentence.append(tags[i].text()); } if (firstSentence.length() > 0) { attributes.addAttribute(null, "firstSentence", "firstSentence", "CDATA", firstSentence.toString()); } tf.startDocument(); tf.startElement(NS_URI, "class", "class", attributes); attributes.clear(); tf.startElement(NS_URI, "comment", "comment", attributes); writeDescription(tf, clazz.commentText()); tf.endElement(NS_URI, "comment", "comment"); tf.startElement(NS_URI, "attributes", "attributes", attributes); Map methods = new HashMap(); methods.put("setProject", "setProject"); methods.put("setRuntimeConfigurableWrapper", "setRuntimeConfigurableWrapper"); writeAttributes(tf, clazz, methods, referencedTypes); tf.endElement(NS_URI, "attributes", "attributes"); tf.startElement(NS_URI, "children", "children", attributes); Map children = new HashMap(); writeChildren(tf, clazz, children, referencedTypes); tf.endElement(NS_URI, "children", "children"); tf.endElement(NS_URI, "class", "class"); tf.endDocument(); } } \ No newline at end of file diff --git a/src/taskdocs/resources/net/sf/antcontrib/taskdocs/element.xslt b/src/taskdocs/resources/net/sf/antcontrib/taskdocs/element.xslt new file mode 100644 index 0000000..b489247 --- /dev/null +++ b/src/taskdocs/resources/net/sf/antcontrib/taskdocs/element.xslt @@ -0,0 +1,210 @@ + + + + + + + + + + + +Licensed to the Ant-Contrib Project under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The Ant-Contrib Project licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + + + + + + + + + + + + + + + + + + + syslibset + libset + targetplatform + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:call-template name='pretty-name'> + <xsl:with-param name="name"> + <xsl:value-of select="@name"/> + </xsl:with-param> + </xsl:call-template> + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionType
+
+
+ + +
+ + + +
+ +
+
+
+ + +
+ + +
+ + + + + + + +