Java Doc for VisualBasicCompile.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » dotnet » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Build » ANT » org.apache.tools.ant.taskdefs.optional.dotnet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
   org.apache.tools.ant.taskdefs.optional.dotnet.DotnetCompile
      org.apache.tools.ant.taskdefs.optional.dotnet.VisualBasicCompile

VisualBasicCompile
public class VisualBasicCompile extends DotnetCompile (Code)
This task compiles Visual Basic.NET source into executables or modules. The task requires vbc.exe on the execute path, unless it or an equivalent program is specified in the executable parameter

All parameters are optional: <vbc/> should suffice to produce a debug build of all *.vb files.

The task is a directory based task, so attributes like includes="**\/*.vb" and excludes="broken.vb" can be used to control the files pulled in. By default, all *.vb files from the project folder down are included in the command. When this happens the destFile -if not specified- is taken as the first file in the list, which may be somewhat hard to control. Specifying the output file with destfile is prudent.

Also, dependency checking only works if destfile is set.

For historical reasons the pattern **/*.vb is preset as includes list and you can not override it with an explicit includes attribute. Use nested <src> elements instead of the basedir attribute if you need more control.

As with <csc> nested src filesets of source, reference filesets, definitions and resources can be provided.

Example

<vbc
 optimize="true"
 debug="false"
 warnLevel="4"
 targetType="exe"
 definitions="RELEASE"
 excludes="src/unicode_class.vb"
 mainClass = "MainApp"
 destFile="NetApp.exe"
 optionExplicit="true"
 optionCompare="text"
 references="System.Xml,System.Web.Xml"
 >
 <reference file="${testCSC.dll}" />
 <define name="RELEASE" />
 <define name="DEBUG" if="debug.property"/>
 <define name="def3" unless="def2.property"/>
 </vbc>
 



Constructor Summary
public  VisualBasicCompile()
     Constructor for VisualBasicCompile.

Method Summary
protected  voidaddCompilerSpecificOptions(NetCommand command)
    
public  voidclear()
     reset all contents.
protected  voidcreateResourceParameter(NetCommand command, DotnetResource resource)
    
public  StringgetFileExtension()
     Get the extension of filenames to compile.
public  StringgetImports()
     Get global imports for namespaces in referenced metadata files.
protected  StringgetImportsParameter()
     Format the option for imports.
public  StringgetOptionCompare()
     "binary" or "text" for the string-comparison style.
protected  StringgetOptionCompareParameter()
     Format the option for string comparison style.
public  booleangetOptionExplicit()
     Get the flag for whether to require explicit declaration of variables.
public  StringgetOptionExplicitParameter()
     Form the option string for optionExplicit..
public  booleangetOptionStrict()
     Get the flag for whether to enforce strict language semantics.
public  StringgetOptionStrictParameter()
     For the option string for optionStrict.
public  StringgetReferenceDelimiter()
     Get the delimiter that the compiler uses between references.
public  booleangetRemoveIntChecks()
     Get the flag for removing integer checks.
public  StringgetRemoveIntChecksParameter()
     Form the option string for removeIntChecks.
public  StringgetRootNamespace()
     Get the root namespace.
protected  StringgetRootNamespaceParameter()
     Form the option string for rootNamespace.
protected  StringgetWin32ResParameter()
    
public  voidsetImports(String imports)
     Declare global imports for namespaces in referenced metadata files.
public  voidsetOptionCompare(String optionCompare)
     Specify binary- or text-style string comparisons.
public  voidsetOptionExplicit(boolean flag)
     Whether to require explicit declaration of variables.
public  voidsetOptionStrict(boolean flag)
     Enforce strict language semantics.
public  voidsetRemoveIntChecks(boolean flag)
     Whether to remove integer checks.
public  voidsetRootNamespace(String rootNamespace)
     Specifies the root namespace for all type declarations.
protected  voidvalidate()
    


Constructor Detail
VisualBasicCompile
public VisualBasicCompile()(Code)
Constructor for VisualBasicCompile.




Method Detail
addCompilerSpecificOptions
protected void addCompilerSpecificOptions(NetCommand command)(Code)
implement VBC commands
Parameters:
  command - the command to set arguements on.



clear
public void clear()(Code)
reset all contents.



createResourceParameter
protected void createResourceParameter(NetCommand command, DotnetResource resource)(Code)



getFileExtension
public String getFileExtension()(Code)
Get the extension of filenames to compile. The string extension of files to compile.



getImports
public String getImports()(Code)
Get global imports for namespaces in referenced metadata files. the imports string.



getImportsParameter
protected String getImportsParameter()(Code)
Format the option for imports. the formatted import option.



getOptionCompare
public String getOptionCompare()(Code)
"binary" or "text" for the string-comparison style. the option compare style.



getOptionCompareParameter
protected String getOptionCompareParameter()(Code)
Format the option for string comparison style. The formatted option.



getOptionExplicit
public boolean getOptionExplicit()(Code)
Get the flag for whether to require explicit declaration of variables. true if flag is turned on



getOptionExplicitParameter
public String getOptionExplicitParameter()(Code)
Form the option string for optionExplicit.. The parameter string.



getOptionStrict
public boolean getOptionStrict()(Code)
Get the flag for whether to enforce strict language semantics. true if flag is turned on



getOptionStrictParameter
public String getOptionStrictParameter()(Code)
For the option string for optionStrict. The parameter string.



getReferenceDelimiter
public String getReferenceDelimiter()(Code)
Get the delimiter that the compiler uses between references. For example, c# will return ";"; VB.NET will return "," The string delimiter for the reference string.



getRemoveIntChecks
public boolean getRemoveIntChecks()(Code)
Get the flag for removing integer checks. true if flag is turned on



getRemoveIntChecksParameter
public String getRemoveIntChecksParameter()(Code)
Form the option string for removeIntChecks. The parameter string.



getRootNamespace
public String getRootNamespace()(Code)
Get the root namespace. the root namespace.



getRootNamespaceParameter
protected String getRootNamespaceParameter()(Code)
Form the option string for rootNamespace. the root namespace option string.



getWin32ResParameter
protected String getWin32ResParameter()(Code)
get the argument or null for no argument needed This is overridden from DotnetCompile.java because VBC uses "/win32resource:" rather than "/win32res:" The Win32Res Parameter to CSC



setImports
public void setImports(String imports)(Code)
Declare global imports for namespaces in referenced metadata files.
Parameters:
  imports - the imports string



setOptionCompare
public void setOptionCompare(String optionCompare)(Code)
Specify binary- or text-style string comparisons. Defaults to "binary"
Parameters:
  optionCompare - the option compare style. "text" | "binary".



setOptionExplicit
public void setOptionExplicit(boolean flag)(Code)
Whether to require explicit declaration of variables.
Parameters:
  flag - on/off flag



setOptionStrict
public void setOptionStrict(boolean flag)(Code)
Enforce strict language semantics.
Parameters:
  flag - on/off flag



setRemoveIntChecks
public void setRemoveIntChecks(boolean flag)(Code)
Whether to remove integer checks. Default false.
Parameters:
  flag - on/off flag



setRootNamespace
public void setRootNamespace(String rootNamespace)(Code)
Specifies the root namespace for all type declarations.
Parameters:
  rootNamespace - a root namespace.



validate
protected void validate() throws BuildException(Code)
validation code
throws:
  BuildException - if validation failed



Fields inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetCompile
final protected static String REFERENCE_OPTION(Code)(Java Doc)
protected String additionalModules(Code)(Java Doc)
protected boolean debug(Code)(Java Doc)
protected Vector definitionList(Code)(Java Doc)
protected String executable(Code)(Java Doc)
protected String extraOptions(Code)(Java Doc)
protected String mainClass(Code)(Java Doc)
protected Vector referenceFilesets(Code)(Java Doc)
protected Vector resources(Code)(Java Doc)
protected String targetType(Code)(Java Doc)
protected boolean utf8output(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetCompile
abstract protected void addCompilerSpecificOptions(NetCommand command)(Code)(Java Doc)
public void addDefine(DotnetDefine define)(Code)(Java Doc)
public void addReference(FileSet reference)(Code)(Java Doc)
protected int addReferenceFilesets(NetCommand command, long outputTimestamp)(Code)(Java Doc)
public void addResource(DotnetResource resource)(Code)(Java Doc)
protected void addResources(NetCommand command)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
protected NetCommand createNetCommand()(Code)(Java Doc)
abstract protected void createResourceParameter(NetCommand command, DotnetResource resource)(Code)(Java Doc)
public void execute() throws BuildException(Code)(Java Doc)
protected void fillInSharedParameters(NetCommand command)(Code)(Java Doc)
protected String getAdditionalModulesParameter()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
protected String getDebugParameter()(Code)(Java Doc)
public String getDefinitionsDelimiter()(Code)(Java Doc)
protected String getDefinitionsParameter() throws BuildException(Code)(Java Doc)
protected String getDestFileParameter()(Code)(Java Doc)
protected String getExecutable()(Code)(Java Doc)
public String getExtraOptions()(Code)(Java Doc)
protected String getExtraOptionsParameter()(Code)(Java Doc)
protected String[] getExtraOptionsParameters()(Code)(Java Doc)
public boolean getFailOnError()(Code)(Java Doc)
abstract public String getFileExtension()(Code)(Java Doc)
public String getFilePattern()(Code)(Java Doc)
public boolean getIncludeDefaultReferences()(Code)(Java Doc)
protected String getIncludeDefaultReferencesParameter()(Code)(Java Doc)
public String getMainClass()(Code)(Java Doc)
protected String getMainClassParameter()(Code)(Java Doc)
public boolean getOptimize()(Code)(Java Doc)
protected String getOptimizeParameter()(Code)(Java Doc)
abstract public String getReferenceDelimiter()(Code)(Java Doc)
protected String getReferenceFilesParameter()(Code)(Java Doc)
protected String getReferencesParameter()(Code)(Java Doc)
public String getTargetType()(Code)(Java Doc)
protected String getTargetTypeParameter()(Code)(Java Doc)
protected String getUtf8OutputParameter()(Code)(Java Doc)
public int getWarnLevel()(Code)(Java Doc)
protected String getWarnLevelParameter()(Code)(Java Doc)
protected String getWin32IconParameter()(Code)(Java Doc)
public File getWin32Res()(Code)(Java Doc)
protected String getWin32ResParameter()(Code)(Java Doc)
protected static boolean isFileManagedBinary(File file)(Code)(Java Doc)
public boolean isUseResponseFile()(Code)(Java Doc)
protected boolean notEmpty(String s)(Code)(Java Doc)
public void setAdditionalModules(String params)(Code)(Java Doc)
public void setDebug(boolean f)(Code)(Java Doc)
public void setDestDir(File dirName)(Code)(Java Doc)
public void setExecutable(String executable)(Code)(Java Doc)
public void setExtraOptions(String extraOptions)(Code)(Java Doc)
public void setFailOnError(boolean b)(Code)(Java Doc)
public void setIncludeDefaultReferences(boolean f)(Code)(Java Doc)
public void setMainClass(String mainClass)(Code)(Java Doc)
public void setOptimize(boolean f)(Code)(Java Doc)
public void setReferenceFiles(Path path)(Code)(Java Doc)
public void setReferences(String s)(Code)(Java Doc)
public void setTargetType(TargetTypes targetType)(Code)(Java Doc)
public void setTargetType(String ttype) throws BuildException(Code)(Java Doc)
public void setUseResponseFile(boolean useResponseFile)(Code)(Java Doc)
public void setUtf8Output(boolean enabled)(Code)(Java Doc)
public void setWarnLevel(int warnLevel)(Code)(Java Doc)
public void setWin32Icon(File fileName)(Code)(Java Doc)
public void setWin32Res(File fileName)(Code)(Java Doc)
protected void validate() throws BuildException(Code)(Java Doc)

Fields inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
protected Vector filesets(Code)(Java Doc)
final protected static boolean isWindows(Code)(Java Doc)
protected File outputFile(Code)(Java Doc)
protected File srcDir(Code)(Java Doc)

Methods inherited from org.apache.tools.ant.taskdefs.optional.dotnet.DotnetBaseMatchingTask
protected void addFilesAndExecute(NetCommand command, boolean ignoreTimestamps)(Code)(Java Doc)
protected void addFilesToCommand(Hashtable filesToBuild, NetCommand command)(Code)(Java Doc)
public void addSrc(FileSet src)(Code)(Java Doc)
protected int buildFileList(NetCommand command, Hashtable filesToBuild, long outputTimestamp)(Code)(Java Doc)
public File getDestFile()(Code)(Java Doc)
protected long getOutputFileTimestamp()(Code)(Java Doc)
public File getSrcDir()(Code)(Java Doc)
public void setDestFile(File file)(Code)(Java Doc)
public void setSrcDir(File srcDirName)(Code)(Java Doc)

w__w__w___.__j__a_v__a_2__s___.__com__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.