org.apache.tools.ant.taskdefs.optional.ide

Class VAJExport

public class VAJExport extends VAJTask

Export packages from the Visual Age for Java workspace. The packages are specified similar to all other MatchingTasks. Since the VA Workspace is not file based, this task is simulating a directory hierarchy for the workspace: The 'root' contains all project 'dir's, and the projects contain their respective package 'dir's. Example:
<vajexport destdir="C:/builddir/source">  <include name="/MyVAProject/org/foo/subsystem1/**" />  <exclude name="/MyVAProject/org/foo/subsystem1/test/**"/> </vajexport>
exports all packages in the project MyVAProject which start with 'org.foo.subsystem1' except of these starting with 'org.foo.subsystem1.test'.

Parameters:

Attribute Description Required
destdir location to store the exported files Yes
exportSources export Java sources, defaults to "yes" No
exportResources export resource files, defaults to "yes" No
exportClasses export class files, defaults to "no" No
exportDebugInfo include debug info in exported class files, defaults to "no" No
defaultexcludes use default excludes when exporting, defaults to "yes". Default excludes are: IBM/**, Java class libraries/**, Sun class libraries/**, JSP Page Compile Generated Code/**, Visual Age*/** No
overwrite overwrite existing files, defaults to "yes" No
remote remote tool server to run this command against (format: <servername> : <port no>) No
haltonerror stop the build process if an error occurs, defaults to "yes" No
Field Summary
protected FiledestDir
protected booleanexportClasses
protected booleanexportDebugInfo
protected booleanexportResources
protected booleanexportSources
protected booleanoverwrite
protected PatternSetpatternSet
protected booleanuseDefaultExcludes
Method Summary
PatternSet.NameEntrycreateExclude()
add a name entry on the exclude list
PatternSet.NameEntrycreateInclude()
add a name entry on the include list
voidexecute()
do the export
voidsetDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not; default true.
voidsetDestdir(File destDir)
Set the destination directory into which the selected items should be exported; required.
voidsetExcludes(String excludes)
Sets the set of exclude patterns.
voidsetExportClasses(boolean doExport)
optional flag to export the class files; default false.
voidsetExportDebugInfo(boolean doExport)
optional flag to export the debug info; default false. debug info
voidsetExportResources(boolean doExport)
optional flag to export the resource file; default true.
voidsetExportSources(boolean doExport)
optional flag to export the Java files; default true.
voidsetIncludes(String includes)
Sets the set of include patterns.
voidsetOverwrite(boolean doOverwrite)
if Overwrite is set, files will be overwritten during export

Field Detail

destDir

protected File destDir

exportClasses

protected boolean exportClasses

exportDebugInfo

protected boolean exportDebugInfo

exportResources

protected boolean exportResources

exportSources

protected boolean exportSources

overwrite

protected boolean overwrite

patternSet

protected PatternSet patternSet

useDefaultExcludes

protected boolean useDefaultExcludes

Method Detail

createExclude

public PatternSet.NameEntry createExclude()
add a name entry on the exclude list

createInclude

public PatternSet.NameEntry createInclude()
add a name entry on the include list

execute

public void execute()
do the export

setDefaultexcludes

public void setDefaultexcludes(boolean useDefaultExcludes)
Sets whether default exclusions should be used or not; default true.

Parameters: useDefaultExcludes "true"|"on"|"yes" when default exclusions should be used, "false"|"off"|"no" when they shouldn't be used.

setDestdir

public void setDestdir(File destDir)
Set the destination directory into which the selected items should be exported; required.

setExcludes

public void setExcludes(String excludes)
Sets the set of exclude patterns. Patterns may be separated by a comma or a space. Currently only patterns denoting packages are supported

Parameters: excludes the string containing the exclude patterns

setExportClasses

public void setExportClasses(boolean doExport)
optional flag to export the class files; default false.

setExportDebugInfo

public void setExportDebugInfo(boolean doExport)
optional flag to export the debug info; default false. debug info

setExportResources

public void setExportResources(boolean doExport)
optional flag to export the resource file; default true.

setExportSources

public void setExportSources(boolean doExport)
optional flag to export the Java files; default true.

setIncludes

public void setIncludes(String includes)
Sets the set of include patterns. Patterns may be separated by a comma or a space. Currently only patterns denoting packages are supported

Parameters: includes the string containing the include patterns

setOverwrite

public void setOverwrite(boolean doOverwrite)
if Overwrite is set, files will be overwritten during export
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.