Top Inners Fields Constructors Methods
org.glassfish.pfl.basic.tools.file

public Class WorkspaceRename

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.util.ArrayList, .List, org.glassfish.pfl.basic.tools.argparser.ArgParser, .DefaultValue, .Help

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static interface

Field Summary

Modifier and TypeField and Description
private static final String[]
private final boolean
private final File
private final boolean
private final boolean
private static final String[]
private static final String[]
private static final String[]
private final List<String>
private final List<ArgParser.StringPair>
private final File
private static final String[]
private static final String[]
private final int
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] strs)

private FileWrapper
private void
run()

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

COPY_SUFFIXESback to summary
private static final String[] COPY_SUFFIXES
copyonlyback to summary
private final boolean copyonly
destinationback to summary
private final File destination
dryrunback to summary
private final boolean dryrun
expandtabsback to summary
private final boolean expandtabs
IGNORE_DIRSback to summary
private static final String[] IGNORE_DIRS
IGNORE_NAMESback to summary
private static final String[] IGNORE_NAMES
IGNORE_SUFFIXESback to summary
private static final String[] IGNORE_SUFFIXES
noActionFileNamesback to summary
private final List<String> noActionFileNames
patternsback to summary
private final List<ArgParser.StringPair> patterns
sourceback to summary
private final File source
SUBSTITUTE_NAMESback to summary
private static final String[] SUBSTITUTE_NAMES
SUBSTITUTE_SUFFIXESback to summary
private static final String[] SUBSTITUTE_SUFFIXES
verboseback to summary
private final int verbose
versionback to summary
private final String version

Constructor Detail

WorkspaceRenameback to summary
public WorkspaceRename(String[] strs)

Method Detail

mainback to summary
public static void main(String[] strs)
makeTargetFileWrapperback to summary
private FileWrapper makeTargetFileWrapper(FileWrapper arg)
runback to summary
private void run()
traceback to summary
private void trace(String msg)
org.glassfish.pfl.basic.tools.file back to summary

private Interface WorkspaceRename.Arguments


Method Summary

Modifier and TypeMethod and Description
public boolean
public File
public boolean
public boolean
public List<ArgParser.StringPair>
public File
public int
public String

Method Detail

copyonlyback to summary
public boolean copyonly()
Annotations
@Help:If true, copy all files without renaming anything
@DefaultValue:false
destinationback to summary
public File destination()
Annotations
@Help:Destination directory for rename
@DefaultValue
dryrunback to summary
public boolean dryrun()
Annotations
@Help:Set to true to avoid modifying any files
@DefaultValue:false
expandtabsback to summary
public boolean expandtabs()
Annotations
@Help:If true, expand all tabs into spaces on files that are renamed (all text file)
@DefaultValue:true
patternsback to summary
public List<ArgParser.StringPair> patterns()
Annotations
@Help:List of patterns given as :. Also handes the /-separated version of the pattern. If the string VERSION occurs in the renamed java package name, it will be replaced with the value of the version() argument.
@DefaultValue
sourceback to summary
public File source()
Annotations
@Help:Source directory for rename
@DefaultValue
verboseback to summary
public int verbose()
Annotations
@Help:Set to >0 to get information about actions taken for every file. Larger values give more detail.
@DefaultValue:0
versionback to summary
public String version()
Annotations
@Help:The renamed package
@DefaultValue:ee